Less nesting needed in _header.css.
This commit is contained in:
parent
4dc8cd6f86
commit
fe23338a11
1 changed files with 29 additions and 29 deletions
|
|
@ -14,42 +14,42 @@
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Wrapping link for logo. */
|
/* Wrapping link for logo. */
|
||||||
.header__logo {
|
.header__logo {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Logo image. */
|
||||||
|
.header__logo-image {
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The name of the website. */
|
||||||
|
.header__site-name {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The link around the name of the website. */
|
||||||
|
.header__site-link {
|
||||||
|
&:link,
|
||||||
|
&:visited {
|
||||||
|
color: var(--color-text);
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Logo image. */
|
&:hover,
|
||||||
.header__logo-image {
|
&:focus {
|
||||||
vertical-align: bottom;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* The name of the website. */
|
/* Wrapper for any blocks placed in the header region. */
|
||||||
.header__site-name {
|
.header__region {
|
||||||
margin: 0;
|
@media (min-width: 666px) {
|
||||||
line-height: 1;
|
margin-inline-start: auto;
|
||||||
}
|
|
||||||
|
|
||||||
/* The link around the name of the website. */
|
|
||||||
.header__site-link {
|
|
||||||
&:link,
|
|
||||||
&:visited {
|
|
||||||
color: var(--color-text);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Wrapper for any blocks placed in the header region. */
|
|
||||||
.header__region {
|
|
||||||
@media (min-width: 666px) {
|
|
||||||
margin-inline-start: auto;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue