framework/less/admin/AdminNav.less

224 lines
3.8 KiB
Plaintext
Raw Normal View History

@admin-pane-width: 250px;
2015-03-30 10:16:55 +08:00
2015-07-29 19:28:22 +08:00
.App {
padding-bottom: 0;
}
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;
}
.Header-controls {
> li {
margin-left: 10px;
}
}
@media @phone {
.Dropdown-menu {
height: 70vh;
.item-search {
margin: 10px;
.SearchBar {
width: 100%
}
}
}
.ExtensionNavButton {
.Button-label {
margin-left: 30px;
}
.ExtensionIcon {
margin: 0 0 0 -4px !important;
}
}
}
@media @tablet {
2020-12-08 04:14:22 +08:00
.AdminNav {
.item-search,
li[class^="item-category"],
li[class^="item-extension"],
.AdminLinkButton-description {
display: none !important;
}
}
}
@media @phone, @tablet {
.App-nav .AdminNav {
.Dropdown-menu {
> li {
.ExtensionListTitle {
color: @muted-color;
text-transform: uppercase;
margin: 25px 0 10px 15px;
}
.ExtensionIcon {
margin: -2px -29px;
width: 25px;
height: 25px;
font-size: 12.5px;
.icon {
margin: 0;
}
}
}
}
}
}
2020-12-08 04:14:22 +08:00
@media @desktop-up {
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;
2015-07-29 19:28:22 +08:00
z-index: @zindex-pane;
overflow-y: scroll;
padding-bottom: 40px;
.affix & {
position: fixed;
bottom: 0;
}
2015-07-29 19:28:22 +08:00
}
.App-content .sideNavOffset {
margin-left: @admin-pane-width;
}
.App-nav .AdminNav {
.Dropdown-menu {
.item-search {
margin-top: 10px;
margin-bottom: 20px;
2015-03-30 10:16:55 +08:00
}
2020-12-08 04:14:22 +08:00
.item-category-core {
> .ExtensionListTitle {
margin-top: 10px;
}
}
> li {
> a {
padding: 10px 10px 10px 45px;
display: block;
text-decoration: none;
}
2020-12-08 04:14:22 +08:00
> a,
> a:hover,
&.active > a {
color: @text-color;
}
2020-12-08 04:14:22 +08:00
> a:hover {
background: @control-bg;
}
2020-12-08 04:14:22 +08:00
&.active > a {
2020-12-08 04:14:22 +08:00
background: @control-color;
font-weight: normal;
2020-12-08 04:14:22 +08:00
color: @body-bg;
.Button-label,
.Button-icon {
font-weight: bold;
}
}
2020-12-08 04:14:22 +08:00
.Button-icon {
float: left;
font-size: 13px !important;
margin-left: -25px !important;
margin-top: 4px !important;
}
2020-12-08 04:14:22 +08:00
.Button-label {
padding-left: 5px;
font-size: 14px;
font-weight: normal;
}
.Search-input,
.SearchBar {
max-width: 215px;
margin: 0 auto;
}
.ExtensionListTitle {
color: @muted-color;
text-transform: uppercase;
2020-12-08 04:14:22 +08:00
margin: 25px 0 8px 15px;
}
.ExtensionIcon {
width: 25px;
height: 25px;
font-size: 15px;
margin-left: -29px;
vertical-align: middle;
2015-03-30 10:16:55 +08:00
}
}
}
}
2015-03-30 10:16:55 +08:00
.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;
}
}
}
2020-12-08 04:14:22 +08:00
.AdminLinkButton-description {
white-space: normal;
padding-left: 5px;
}
.ExtensionListItem-Dot {
height: 10px;
width: 10px;
border-radius: 50%;
display: inline-block;
right: 13px;
margin: 6px 5px;
position: absolute;
}
.ExtensionNavButton {
.Button-label {
display: inline-block;
max-width: ~"calc(100% - 18px)";
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
margin-left: 5px;
}
}
.ExtensionListItem-Dot.enabled {
background-color: #2ECC40;
}
.ExtensionListItem-Dot.disabled {
border: 2px solid #FF4136;
box-sizing: border-box;
2015-03-30 10:16:55 +08:00
}