mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
322 lines
8.8 KiB
Plaintext
322 lines
8.8 KiB
Plaintext
.at-Layout {
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
display: flex;
|
|
|
|
&-topNav {
|
|
display: flex;
|
|
background-color: @at-color-top-nav-background;
|
|
border-bottom: @at-border-default-width solid @at-color-top-nav-border-bottom;
|
|
z-index: @at-z-index-nav;
|
|
position: fixed;
|
|
right: 0;
|
|
left: 0;
|
|
top: 0;
|
|
height: @at-height-top-nav;
|
|
|
|
.at-Layout-topNavRightAligner {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.at-Layout-topNavItem {
|
|
color: @at-color-top-nav-item-text;
|
|
padding: 0 @at-padding-top-nav-item-sides;
|
|
|
|
a {
|
|
cursor: pointer;
|
|
}
|
|
|
|
a, div {
|
|
color: @at-color-top-nav-item-text;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
}
|
|
|
|
i {
|
|
color: @at-color-top-nav-item-icon;
|
|
font-size: @at-height-top-nav-item-icon;
|
|
}
|
|
|
|
&--logo {
|
|
padding-left: 0px;
|
|
|
|
img {
|
|
max-width: @main-menu-max-width;
|
|
max-height: @main-menu-max-height;
|
|
height: @main-menu-height;
|
|
width: @main-menu-width;
|
|
margin: @main-menu-margin;
|
|
flex: initial;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
&--user {
|
|
i {
|
|
margin-right: @at-margin-top-nav-item-between-icon-and-name;
|
|
}
|
|
}
|
|
|
|
&--socket {
|
|
i {
|
|
margin-top: @at-margin-top-nav-item-icon-socket-top-makeup;
|
|
font-size: @at-height-top-nav-item-icon-socket;
|
|
text-shadow:
|
|
-@at-border-default-width -@at-border-default-width 0 @at-color-top-nav-item-icon-socket-outline,
|
|
@at-border-default-width -@at-border-default-width 0 @at-color-top-nav-item-icon-socket-outline,
|
|
-@at-border-default-width @at-border-default-width 0 @at-color-top-nav-item-icon-socket-outline,
|
|
@at-border-default-width @at-border-default-width 0 @at-color-top-nav-item-icon-socket-outline
|
|
}
|
|
}
|
|
|
|
&:focus,
|
|
&:hover,
|
|
&.is-currentRoute {
|
|
background-color: @at-color-top-nav-item-background-hover;
|
|
}
|
|
|
|
&.is-loggedOut {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.at-Layout-Approvals {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
}
|
|
|
|
.at-Layout-ApprovalsBadge {
|
|
margin-left: 10px;
|
|
padding: 5px;
|
|
border-radius: 3px;
|
|
background-color: @at-gray-646972;
|
|
color: @at-white;
|
|
height: 16px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
cursor: default;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.at-Layout-ApprovalsBadgeActive {
|
|
background-color: @at-red-bright;
|
|
}
|
|
}
|
|
|
|
&-sideContainer {
|
|
background: @at-color-side-nav-background;
|
|
}
|
|
|
|
&-side {
|
|
margin-top: @at-height-top-side-nav-makeup;
|
|
width: @at-width-collapsed-side-nav;
|
|
|
|
.at-Popover-container {
|
|
margin-top: 2px;
|
|
margin-left: -11px;
|
|
}
|
|
|
|
.at-Popover-arrow {
|
|
padding-top: 7px;
|
|
margin-left: -10px;
|
|
}
|
|
|
|
.at-Layout-sideNavItem {
|
|
background: inherit;
|
|
color: @at-color-side-nav-content;
|
|
display: flex;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
line-height: 1.42857143;
|
|
i {
|
|
cursor: pointer;
|
|
color: @at-color-side-nav-item-icon;
|
|
font-size: @at-font-size-side-nav-icon;
|
|
padding: @at-padding-side-nav-item-icon;
|
|
padding-left: @at-padding-left-side-nav-item-icon;
|
|
text-align: center;
|
|
width: 50px;
|
|
}
|
|
|
|
i.is-no-tooltip {
|
|
padding-left: @at-padding-left-side-nav-item-icon-no-tooltip;
|
|
}
|
|
|
|
&:hover,
|
|
&.is-active {
|
|
background: @at-color-side-nav-item-background-hover;
|
|
border-left: @at-highlight-left-border-size solid @at-color-side-nav-item-border-hover;
|
|
|
|
i {
|
|
color: @at-color-side-nav-content;
|
|
margin-left: @at-highlight-left-border-margin-makeup;
|
|
}
|
|
}
|
|
}
|
|
|
|
.at-Layout-sideNavToggle {
|
|
padding-top: @at-padding-top-side-nav-toggle;
|
|
|
|
i {
|
|
padding-left: @at-padding-left-side-nav-toggle-icon;
|
|
}
|
|
}
|
|
|
|
.at-Layout-sideNavSpacer {
|
|
border-bottom: 1px solid @at-color-side-nav-space-collapsed-border;
|
|
padding: 0;
|
|
margin: @at-margin-side-nav-space-collapsed;
|
|
}
|
|
|
|
.at-Layout-sideNavSpacer--first {
|
|
display: none;
|
|
}
|
|
|
|
.at-Layout-sideNavHeader {
|
|
display: none;
|
|
}
|
|
|
|
&--expanded {
|
|
width: @at-width-expanded-side-nav;
|
|
|
|
.at-Layout-sideNavItem {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
padding-right: @at-padding-between-side-nav-icon-text;
|
|
|
|
i {
|
|
padding-left: @at-padding-left-side-nav-item-icon-expanded;
|
|
}
|
|
}
|
|
|
|
+ .at-Layout-main {
|
|
padding-left: @at-width-expanded-side-nav;
|
|
}
|
|
|
|
+ .at-Layout-main--noLicense {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.at-Layout-sideNavSpacer--first {
|
|
display: inherit;
|
|
}
|
|
|
|
.at-Layout-sideNavSpacer {
|
|
height: @at-height-side-nav-spacer;
|
|
font-size: @at-font-size-side-nav-space;
|
|
color: @at-color-side-nav-item-spacer;
|
|
padding: @at-padding-side-nav-item-spacer;
|
|
text-transform: uppercase;
|
|
border-bottom: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.at-Layout-sideNavHeader {
|
|
display: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-main {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
padding-bottom: @at-space-4x;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
&-content {
|
|
flex: 1px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: @at-breakpoint-mobile-layout) {
|
|
.at-Layout {
|
|
&-side {
|
|
top: 60px;
|
|
background-color: transparent;
|
|
|
|
.at-Layout-sideNavItem.at-Layout-sideNavToggle {
|
|
display: flex;
|
|
height: @at-height-side-nav-toggle-mobile;
|
|
align-items: center;
|
|
width: @at-width-side-nav-toggle-mobile;
|
|
|
|
i {
|
|
padding-bottom: @at-padding-bottom-side-nav-toggle-mobile;
|
|
}
|
|
}
|
|
|
|
.at-Layout-sideNavItem,
|
|
.at-Layout-sideNavSpacer {
|
|
display: none;
|
|
background-color: @at-color-side-nav-background;
|
|
}
|
|
|
|
&--expanded {
|
|
width: 100vw;
|
|
z-index: @at-z-index-side-nav;
|
|
|
|
.at-Layout-sideNavItem,
|
|
.at-Layout-sideNavSpacer {
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.at-Layout-main {
|
|
padding-left: 0;
|
|
|
|
#content-container {
|
|
padding-top: 100px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Tower Sub Nav Dropdown */
|
|
.at-SettingsSubPane {
|
|
position: relative;
|
|
}
|
|
.at-SettingsSubPane-content {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: @at-color-side-nav-background;
|
|
min-width: 140px;
|
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
|
bottom: 0px;
|
|
left: @at-width-collapsed-side-nav;
|
|
z-index: 2000;
|
|
}
|
|
|
|
.at-Layout-side--expanded + .at-SettingsSubPane {
|
|
.at-SettingsSubPane-content {
|
|
left: @at-width-expanded-side-nav;
|
|
}
|
|
}
|
|
|
|
.at-SettingsSubPane-content a {
|
|
color: @at-white;
|
|
font-size: 13px;
|
|
padding: 10px 20px;
|
|
text-decoration: none;
|
|
display: block;
|
|
height: 39px;
|
|
}
|
|
|
|
// hover stuff
|
|
.at-SettingsSubPane-content a:hover {
|
|
background-color: @at-color-side-nav-item-background-hover;
|
|
}
|
|
.at-SettingsSubPane.at-SettingsSubPane--visible .at-SettingsSubPane-content {
|
|
display: block;
|
|
}
|
|
.at-SettingsSubPane.at-SettingsSubPane--visible .nav-button {
|
|
background-color: @at-color-side-nav-item-background-hover;
|
|
} |