Skip to content

Commit

Permalink
Семантика для контактов + изменения стилей
Browse files Browse the repository at this point in the history
Пришлось отказаться от гридов в пользу списков с margin-bottom
  • Loading branch information
1640max committed Feb 8, 2024
1 parent fb2e718 commit 6003871
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
28 changes: 11 additions & 17 deletions _sass/_contacts.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
.contacts {
display: grid;
gap: 1.5rem;
font-style: normal;
}

.contacts__contact {
display: grid;
gap: .25rem;
.contacts__list {
margin: 0;
}

.contacts__heading {
font: 1.25rem/115% $heading-family;
margin: 0;
margin: 0 0 .25rem;

@media (min-width: $xl) {
font-size: 3rem;
margin-bottom: 0;
}
}

.contacts__content {
margin: 0;
margin: 0 0 1.5rem;
opacity: .9;
}

@media (min-width: $xl) {

.contacts__contact {
gap: 0;
&:last-child {
margin-bottom: 0;
}

.contacts__heading {
font-size: 3rem;
}

}
30 changes: 14 additions & 16 deletions contacts.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ <h1 class="title fullscreen__title"><a class="link-reset" href="/">{{ site.title
<nav class="menu fullscreen__menu">{% include menu.html %}</nav>
<main class="fullscreen__content">
<address class="contacts">
<article class="contacts__contact">
<h2 class="contacts__heading">Почтовый адрес:</h2>
<p class="contacts__content">
<dl class="contacts__list">
<dt class="contacts__heading">Почтовый адрес:</dt>
<dd class="contacts__content">
ул. Подъёмная д. 14, стр. 25, апп. 304, 109052, г. Москва
</p>
</article>
<article class="contacts__contact">
<h2 class="contacts__heading">Телефон:</h2>
<p class="contacts__content">+7 915 162-10-63</p>
</article>
<article class="contacts__contact">
<h2 class="contacts__heading">Эл. почта:</h2>
<a class="link-inverted contacts__content"
href="mailto:[email protected]">
[email protected]
</a>
</article>
</dd>

<dt class="contacts__heading">Телефон:</dt>
<dd class="contacts__content">+7 915 162-10-63</dd>

<dt class="contacts__heading">Эл. почта:</dt>
<dd class="contacts__content">
<a class="link-inverted"
href="mailto:[email protected]">[email protected]</a>
</dd>
</dl>
</address>
</main>
</div>
Expand Down

0 comments on commit 6003871

Please sign in to comment.