mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 08:17:39 -02:30
Add mobile menu styles and click handlers
Signed-off-by: Marliana Lara <mlara@redhat.com>
This commit is contained in:
@@ -83,8 +83,6 @@
|
||||
}
|
||||
|
||||
&-side {
|
||||
background: @at-color-side-nav-background;
|
||||
color: @at-color-side-nav-content;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
top: @at-height-top-side-nav-makeup;
|
||||
@@ -94,11 +92,12 @@
|
||||
z-index: @at-z-index-side-nav;
|
||||
|
||||
.at-Layout-sideNavItem {
|
||||
background: @at-color-side-nav-background;
|
||||
color: @at-color-side-nav-content;
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
|
||||
|
||||
> i.fa {
|
||||
padding-left: 20px;
|
||||
}
|
||||
@@ -124,6 +123,7 @@
|
||||
|
||||
.at-Layout-sideNavSpacer {
|
||||
height: @at-height-side-nav-spacer;
|
||||
background: @at-color-side-nav-background;
|
||||
}
|
||||
|
||||
&--expanded {
|
||||
@@ -173,3 +173,40 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@breakpoint-sm: 700px;
|
||||
|
||||
@media screen and (max-width: @breakpoint-sm) {
|
||||
.at-Layout {
|
||||
&-side {
|
||||
top: 60px;
|
||||
|
||||
.at-Layout-sideNavItem.at-Layout-sideNavToggle {
|
||||
display: flex;
|
||||
height: 40px;
|
||||
align-items: center;
|
||||
width: 55px;
|
||||
}
|
||||
|
||||
.at-Layout-sideNavItem,
|
||||
.at-Layout-sideNavSpacer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&--expanded {
|
||||
width: 100vw;
|
||||
z-index: @at-z-index-side-nav;
|
||||
|
||||
.at-Layout-sideNavItem,
|
||||
.at-Layout-sideNavSpacer {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.at-Layout-main {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user