refactor(docs-infra): scope top-menu styles to the .app-toolbar
element (#40704)
This commit ensures that all styles for the app top-menu (which are defined in `_top-menu.scss`) only apply to elements inside an `.app-toolbar` element. This will prevent the styles accidentally taking effect on a different part of the app. PR Close #40704
This commit is contained in:
parent
e3f5f9331b
commit
b258b2901c
@ -62,43 +62,8 @@ mat-toolbar.app-toolbar {
|
|||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXTERNAL LINK ICONS
|
// HAMBURGER BUTTON
|
||||||
.toolbar-external-icons-container {
|
.hamburger {
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-shrink: 0; // This is required for the icons to be displayed correctly in IE11.
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
a {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 24px;
|
|
||||||
margin: 0 -16px;
|
|
||||||
|
|
||||||
&:focus {
|
|
||||||
// `outline-offset` is not applied on Chrome on Windows, if `outline-style` is `auto.
|
|
||||||
outline: 1px solid $focus-outline-ondark;
|
|
||||||
outline-offset: -16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 480px) {
|
|
||||||
margin: 0 0 0 8px;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
opacity: 0.8;
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// HAMBURGER BUTTON
|
|
||||||
.hamburger {
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: $hamburgerShownMargin;
|
margin: $hamburgerShownMargin;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -127,10 +92,10 @@ mat-toolbar.app-toolbar {
|
|||||||
color: $white;
|
color: $white;
|
||||||
position: inherit;
|
position: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// HOME NAV-LINK
|
// HOME NAV-LINK
|
||||||
.nav-link.home {
|
.nav-link.home {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0 16px 0 0;
|
margin: 0 16px 0 0;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
@ -161,10 +126,10 @@ mat-toolbar.app-toolbar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TOP MENU
|
// TOP MENU
|
||||||
aio-top-menu {
|
aio-top-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -227,10 +192,10 @@ aio-top-menu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SEARCH BOX
|
// SEARCH BOX
|
||||||
aio-search-box.search-container {
|
aio-search-box.search-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -272,4 +237,39 @@ aio-search-box.search-container {
|
|||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// EXTERNAL LINK ICONS
|
||||||
|
.toolbar-external-icons-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-shrink: 0; // This is required for the icons to be displayed correctly in IE11.
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 24px;
|
||||||
|
margin: 0 -16px;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
// `outline-offset` is not applied on Chrome on Windows, if `outline-style` is `auto.
|
||||||
|
outline: 1px solid $focus-outline-ondark;
|
||||||
|
outline-offset: -16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
|
margin: 0 0 0 8px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user