-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Семантика для контактов + изменения стилей
Пришлось отказаться от гридов в пользу списков с margin-bottom
- Loading branch information
Showing
2 changed files
with
25 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|