mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
a9ded36b57
- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
77 lines
1.4 KiB
Plaintext
77 lines
1.4 KiB
Plaintext
@admin-pane-width: 300px;
|
|
|
|
.admin-nav {
|
|
& .description {
|
|
display: none;
|
|
}
|
|
}
|
|
.admin-content {
|
|
padding: 20px 0;
|
|
}
|
|
@media @desktop, @desktop-hd {
|
|
.admin-nav {
|
|
position: fixed;
|
|
top: @header-height;
|
|
bottom: 0;
|
|
width: @admin-pane-width;
|
|
box-shadow: 0 2px 6px @shadow-color;
|
|
background: @body-bg;
|
|
border-top: 1px solid @control-bg;
|
|
|
|
& .dropdown-select .dropdown-menu > li {
|
|
& > a {
|
|
padding: 15px 15px 15px 45px;
|
|
display: block;
|
|
text-decoration: none;
|
|
white-space: normal;
|
|
}
|
|
& > a, & > a:hover, &.active > a {
|
|
color: @muted-color;
|
|
}
|
|
&.active > a {
|
|
background: @control-bg;
|
|
font-weight: normal;
|
|
|
|
& .label, & .icon {
|
|
color: @text-color;
|
|
}
|
|
& .label {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
&:hover:not(.active) {
|
|
& .label {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
& .icon {
|
|
float: left;
|
|
margin-left: -30px;
|
|
font-size: 14px;
|
|
margin-top: 2px;
|
|
}
|
|
& .label {
|
|
display: block;
|
|
font-size: 15px;
|
|
font-weight: normal;
|
|
margin: 0 0 5px;
|
|
}
|
|
& .description {
|
|
display: block;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
.admin-content {
|
|
margin-left: @admin-pane-width;
|
|
padding: 20px;
|
|
}
|
|
.container {
|
|
width: 100%;
|
|
|
|
.global-content & {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|