framework/less/admin/AdminNav.less

89 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-03-30 10:16:55 +08:00
@admin-pane-width: 300px;
2015-07-29 19:28:22 +08:00
.App {
padding-bottom: 0;
}
.AdminLinkButton-description {
display: none;
2015-03-30 10:16:55 +08:00
}
2015-07-29 19:28:22 +08:00
.AdminContent {
2015-03-30 10:16:55 +08:00
padding: 20px 0;
}
2015-07-29 19:28:22 +08:00
.App-content .sideNavOffset {
margin-top: 0;
}
2015-03-30 10:16:55 +08:00
@media @desktop, @desktop-hd {
2015-07-29 19:28:22 +08:00
.App-nav {
position: absolute;
2015-03-30 10:16:55 +08:00
top: @header-height;
height: ~"calc(100vh - @{header-height})";
2015-03-30 10:16:55 +08:00
width: @admin-pane-width;
.box-shadow(0 6px 6px @shadow-color);
background: @body-bg;
border-top: 1px solid @control-bg;
2015-07-29 19:28:22 +08:00
z-index: @zindex-pane;
overflow: auto;
.affix & {
position: fixed;
bottom: 0;
height: auto;
}
2015-07-29 19:28:22 +08:00
}
.App-content .sideNavOffset {
margin-left: @admin-pane-width;
}
.App-nav .AdminNav {
.Dropdown-menu > li {
> a {
2015-03-30 10:16:55 +08:00
padding: 15px 15px 15px 45px;
display: block;
text-decoration: none;
white-space: normal;
}
2015-07-29 19:28:22 +08:00
> a, > a:hover, &.active > a {
color: @muted-color;
2015-03-30 10:16:55 +08:00
}
2015-07-29 19:28:22 +08:00
> a:hover {
background: @control-bg;
}
2015-03-30 10:16:55 +08:00
&.active > a {
background: @control-bg;
2015-03-30 10:16:55 +08:00
font-weight: normal;
2015-07-29 19:28:22 +08:00
.Button-label, .Button-icon {
color: @text-color;
2015-03-30 10:16:55 +08:00
font-weight: bold;
}
}
}
2015-07-29 19:28:22 +08:00
.Button-icon {
2015-03-30 10:16:55 +08:00
float: left;
margin-left: -30px;
font-size: 14px;
2015-07-29 19:28:22 +08:00
margin-top: 4px !important;
2015-03-30 10:16:55 +08:00
}
2015-07-29 19:28:22 +08:00
.Button-label {
2015-03-30 10:16:55 +08:00
display: block;
font-size: 15px;
font-weight: normal;
margin: 0 0 5px;
}
2015-07-29 19:28:22 +08:00
.AdminLinkButton-description {
2015-03-30 10:16:55 +08:00
display: block;
font-size: 12px;
}
}
.container {
width: 100%;
2015-07-29 19:28:22 +08:00
margin: 0;
2015-03-30 10:16:55 +08:00
.App-content & {
padding: 0 30px;
}
2015-07-29 19:28:22 +08:00
.App-content > & {
2015-03-30 10:16:55 +08:00
padding: 0;
}
}
}