mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
c3989cc952
- Extensions now have their own pages - The API for extensions to register permissions and settings has been overhauled via the `flarum/admin/utils/ExtensionData` util - An extension grid has been added as a widget to the Dashboard page
210 lines
3.5 KiB
Plaintext
210 lines
3.5 KiB
Plaintext
@admin-pane-width: 250px;
|
|
|
|
.App {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.AdminContent {
|
|
padding: 20px 0;
|
|
}
|
|
.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 {
|
|
.item-search{
|
|
display: none;
|
|
}
|
|
|
|
.ExtensionItem, .item-search {
|
|
display: none !important;
|
|
}
|
|
|
|
.ExtensionListTitle {
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@media @desktop, @desktop-hd {
|
|
.App-nav {
|
|
position: absolute;
|
|
top: @header-height;
|
|
height: ~"calc(100vh - @{header-height})";
|
|
width: @admin-pane-width;
|
|
.box-shadow(0 6px 6px @shadow-color);
|
|
background: @body-bg;
|
|
z-index: @zindex-pane;
|
|
overflow-y: scroll;
|
|
padding-bottom: 40px;
|
|
|
|
.affix & {
|
|
position: fixed;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
.App-content .sideNavOffset {
|
|
margin-left: @admin-pane-width;
|
|
}
|
|
.App-nav .AdminNav {
|
|
.Dropdown-menu {
|
|
.item-search {
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
> li {
|
|
> a {
|
|
padding: 10px 10px 10px 45px;
|
|
display: block;
|
|
text-decoration: none;
|
|
}
|
|
> a,
|
|
> a:hover,
|
|
&.active > a {
|
|
color: @text-color;
|
|
}
|
|
> a:hover {
|
|
background: @control-bg;
|
|
}
|
|
&.active > a {
|
|
background: @primary-color;
|
|
font-weight: normal;
|
|
|
|
.Button-label,
|
|
.Button-icon {
|
|
color: @body-bg;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
.Button-icon {
|
|
float: left;
|
|
font-size: 13px !important;
|
|
margin-left: -25px !important;
|
|
margin-top: 4px !important;
|
|
}
|
|
.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;
|
|
margin: 25px 0 15px 15px;
|
|
}
|
|
|
|
.ExtensionIcon {
|
|
width: 25px;
|
|
height: 25px;
|
|
font-size: 15px;
|
|
margin-left: -29px;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
margin: 0;
|
|
|
|
.App-content & {
|
|
padding: 0 30px;
|
|
}
|
|
.App-content > & {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.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 {
|
|
background-color: #FF4136;
|
|
}
|