123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679 |
- $sidebar-width: 20%;
- $sidebar-padding: 2rem;
- $topbar-height: 4.2rem;
- $update-height: 3rem;
- #admin-sidebar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: $sidebar-width;
- background: $accent-bg;
- @include breakpoint(mobile-only) {
- display: none;
- width: 75%;
- z-index: 999999;
- }
- a {
- color: shade($accent-fg,20%);
- &:hover {
- color: $accent-fg;
- }
- }
- }
- #admin-logo {
- background: $darker-accent-bg;
- height: $topbar-height;
- h3 {
- text-transform: uppercase;
- margin: 0;
- @extend %vertical-align;
- text-align: center;
- font-size: 1.2rem;
- i {
- font-size: 1rem;
- vertical-align: middle;
- margin-top: -1px;
- }
- }
- }
- #admin-user-details {
- padding: $sidebar-padding;
- border-bottom: 1px solid $darker-accent-bg;
- overflow: hidden;
- img {
- @include transition(all 0.5s ease);
- border-radius: 100%;
- float: left;
- @include breakpoint(tablet-range){
- float: none;
- }
- }
- &:hover img {
- box-shadow: 0px 0px 0 50px lighten($accent-bg,3%);
- }
- .admin-user-names {
- margin-left: 45px;
- @include breakpoint(tablet-range){
- margin-left: 0;
- }
- h4, h5 {
- color: darken($accent-fg,10%);
- margin: 0;
- font-size: 1rem;
- line-height: 1.3;
- }
- h5 {
- font-family: $font-family-default;
- color: lighten($accent-bg,55%);
- font-size: 0.9rem;
- }
- }
- }
- #admin-menu {
- display: block;
- margin: 0;
- padding: 0;
- list-style: none;
- li {
- font-family: $font-family-header;
- .badges {
- float: right;
- margin-right:1rem;
- .badge {
- display: inline-block;
- margin-right: -5px;
- color: shade($accent-fg,10%);
- }
- .count {
- background-color: lighten($accent-bg, 10%);
- }
- .updates {
- background-color: $tertiary-accent-bg;
- display: none;
- }
- &.with-updates {
- .count {
- border-bottom-left-radius: 0;
- border-top-left-radius: 0;
- }
- .updates {
- border-bottom-right-radius: 0;
- border-top-right-radius: 0;
- display: inline-block;
- }
- }
- }
- a {
- @include transition(all 0.2s ease);
- display: block;
- padding-left: 25px;
- padding-top: 0.7rem;
- padding-bottom: 0.7rem;
- color: lighten($accent-bg,65%);
- @include breakpoint(tablet-range){
- padding-left: 20px;
- }
- i {
- @include transition(all 0.2s ease);
- color: lighten($accent-bg,55%);
- margin-right: 8px;
- @include breakpoint(tablet-range){
- display: none;
- }
- }
- &:hover {
- background: $darker-accent-bg;
- // padding-left: 30px;
- color: $accent-fg;
- i {
- font-size: 1.2rem;
- }
- }
- }
- &.selected {
- a {
- background: $page-bg;
- color: $accent-fg;
- padding-left: 16px;
- border-left: 9px solid $secondary-accent-bg;
- @include breakpoint(tablet-range){
- padding-left: 11px;
- }
- i {
- color: lighten($accent-bg,70%);
- }
- }
- }
- }
- }
- #admin-main {
- margin-left: $sidebar-width;
- @include breakpoint(mobile-only) {
- width: 100%;
- margin-left: 0;
- }
- .hint:after, [data-hint]:after {
- font-size: 0.9rem;
- width: 400px;
- line-height: inherit;
- white-space: normal;
- }
- h1 {
- margin: 0;
- font-size: 1.5rem;
- text-align: left;
- letter-spacing: -1px;
- }
- .titlebar {
- position: relative;
- height: $topbar-height;
- padding: 0 $padding-default;
- h1 {
- @extend %vertical-align;
- @include breakpoint(mobile-only){
- > i:first-child:before {
- content: "\f0c9";
- }
- @include transform(inherit);
- top: 5px;
- font-size: 1.2rem;
- }
- }
- .button-bar {
- @extend %vertical-align;
- padding: 0;
- @include breakpoint(mobile-only) {
- @include transform(inherit);
- top: inherit;
- bottom: 5px;
- position: absolute;
- right: 1rem;
- }
- }
- .preview {
- color: $secondary-accent-fg;
- font-size: 90%;
- }
- .button {
- padding: 0.3rem 0.6rem;
- @include breakpoint(mobile-only) {
- padding: 0.2rem 0.5rem;
- font-size: 0.9rem;
- }
- i {
- font-size: 13px;
- }
- }
- }
- .admin-block .grav-update, .admin-block .alert {
- margin-top: -2rem;
- margin-bottom: 2rem;
- }
- .grav-update {
- @include clearfix;
- padding: 0 $padding-default;
- margin-top: -$padding-default;
- background: $info-bg;
- color: $info-fg;
- &.plugins {
- padding-right: 1rem;
- }
- .button {
- float: right;
- margin-top: 0.6rem;
- margin-left: 1rem;
- line-height: 1.5;
- @include button-color(shade($info-bg, 20%));
- }
- p {
- line-height: $update-height;
- margin: 0;
- }
- i {
- padding-right: 0.5rem;
- }
- .less {
- color: rgba($info-fg,0.75);
- }
- &.grav {
- margin-top: 0;
- @include transition (margin-top 0.15s ease-out);
- @include breakpoint(mobile-only){
- position: absolute;
- z-index: 9;
- bottom: 0;
- width: 100%;
- p * {
- display: none;
- }
- p {
- font-size: 0;
- button {
- width: 95%;
- display: inherit;
- position: absolute;
- top: 0;
- left: 0;
- margin-left: 2.5%;
- margin-right: 2.5%;
- padding-left: 0;
- }
- }
- }
- }
- }
- .grav-update.grav + .content-padding {
- top: $topbar-height + $update-height;
- @include transition (top 0.15s ease-out);
- @include breakpoint(mobile-only){
- top: 5.2rem;
- padding-bottom: 8rem;
- padding-top: 0rem;
- }
- }
- .content-padding {
- position: absolute;
- top: $topbar-height;
- bottom: 0;
- left: $sidebar-width;
- right: 0;
- overflow-y: auto;
- padding: 2.5rem;
- @include breakpoint(mobile-only) {
- left: 0;
- }
- }
- .admin-block {
- background: $content-bg;
- color: $content-fg;
- padding: 2rem 0;
- h1 {
- color: $page-bg;
- padding: 0 $padding-default 0.5rem;
- margin: 0 0 1rem;
- border-bottom: 3px solid darken($content-bg, 5%);
-
- @include breakpoint(mobile-only){
- padding: 0 0 0.5rem;
- margin: 0 0 1rem !important;
- text-indent: $padding-default;
- }
- &.no_underline {
- border-bottom: 0;
- }
- }
- .button-bar {
- margin-right: $padding-default;
- @include breakpoint(mobile-only) {
- width: 100%;
- margin: -.5rem 0 1rem 0;
- text-align: center;
- .button {
- width: 100%;
- }
- }
- }
- }
- .flush-bottom {
- &.button-bar {
- margin: 1rem -2rem -1rem;
- height: 70px;
- padding: 0 1rem;
- float: none;
- @include breakpoint(mobile-only){
- height: auto;
- padding: 2rem 1rem 0rem 1rem;
- }
- .button {
- @extend %vertical-align;
- @include breakpoint(mobile-only) {
- margin-left: 0 !important;
- margin-bottom: .5rem;
- width: 100%;
- }
- }
- }
- }
- .danger, .success {
- position: relative;
- &.button-bar {
- margin: 2rem 0 -2rem;
- height: 70px;
- padding: 1rem;
- float: none;
- .button {
- @extend %vertical-align;
- }
- background: darken($content-bg, 2%);
- }
- }
- .danger {
- &.button-bar {
- .button {
- @include button-color($secondary-link);
- }
- }
- }
- }
- #admin-dashboard {
- @include clearfix;
- .dashboard-item {
- float: left;
- width: 50%;
- margin-bottom: 2.5rem;
- @include breakpoint(mobile-only) {
- width: 100%;
- }
- > div {
- padding: 1rem 2rem;
- }
- }
- .dashboard-left {
- padding-right: 1.25rem;
- @include breakpoint(mobile-only) {
- padding-right: 0rem;
- }
- }
- .dashboard-right {
- padding-left: 1.25rem;
- @include breakpoint(mobile-only) {
- padding-left: 0rem;
- }
- }
- #updates {
- p {
- text-align: center;
- color: rgba($white,0.96);
- margin: 0;
- }
- .updates-chart {
- width: 50%;
- float: left;
- }
- .chart-wrapper {
- position: relative;
- }
- .backups-chart {
- position: relative;
- width: 50%;
- float: left;
- }
- .numeric {
- display: block;
- position: absolute;
- width: 100%;
- text-align: center;
- font-size: 1.7rem;
- line-height: 1;
- @extend %vertical-align;
- em {
- display:block;
- font-style: normal;
- font-size: 1rem;
- color: rgba($white, .85);
- }
- }
- .admin-update-charts {
- @include clearfix;
- min-height: 191px;
- }
- .button {
- margin-left: 0.5rem;
- @include breakpoint(tablet-range){
- width: 49%;
- padding: .3rem 0rem;
- margin-left: 0;
- }
- }
- }
- #popularity {
- p {
- text-align: center;
- color: rgba($white,0.95);
- margin: 0;
- }
- .button-bar {
- height: 100px;
- padding: 0 1rem;
- }
- .stat {
- @extend %vertical-align;
- display:block;
- float: left;
- width: 33%;
- text-align: center;
- b {
- display: block;
- font-size: 2.5rem;
- line-height: 1;
- font-weight: 300;
- }
- i {
- display: block;
- font-style: normal;
- color: rgba($white, 0.75);
- }
- }
- }
- .tertiary-accent {
- @include linear-gradient($tertiary-accent-bg, lighten($tertiary-accent-bg,20%));
- }
- .secondary-accent {
- @include linear-gradient($secondary-accent-bg, lighten($secondary-accent-bg,20%));
- }
- }
- .no-flick{-webkit-transform:translate3d(0,0,0);}
- .card-row {
- @include justify-content(space-between);
- }
- .card-item {
- @extend .no-flick;
- overflow: hidden;
- padding: 1rem;
- margin: 0;
- position: relative;
- width: 31%;
- @include breakpoint(tablet-range) {
- width: 48%;
- }
- @include breakpoint(mobile-only) {
- width: 100%;
- }
- border: 1px solid darken($content-bg, 5%);
- background: $white;
- margin-bottom: 2rem;
- h4 {
- font-size: 1.2rem;
- line-height: 1.2;
- }
- }
- .user-details {
- text-align: center;
- img {
- border-radius: 100%;
- }
- h2 {
- margin: 0;
- font-size: 1.8rem;
- }
- h5 {
- color: lighten($content-fg,10%);
- font-size: 1.1rem;
- margin: 0;
- }
- }
- #footer {
- text-align: center;
- padding: 3rem 0 1rem;
- }
- // Chart overrides
- .ct-chart {
- .ct-series {
- .ct-bar {
- stroke-width: 20px;
- }
- &.ct-series-a {
- .ct-bar {
- stroke: rgba($white, 0.85) !important;
- }
- .ct-slice-donut {
- stroke: $white !important;
- }
- }
- &.ct-series-b {
- .ct-slice-donut {
- stroke: rgba($white, 0.2) !important;
- }
- }
- }
- }
- #popularity .ct-chart {
- margin: 0 -10px -10px;
- .ct-chart-bar {
- padding: 10px;
- }
- }
- #latest {
- .page-title, .page-route {
- overflow: auto;
- }
- .last-modified {
- padding-left: 10px;
- }
- }
- #overlay {
- position: fixed;
- width: 25%;
- height: 100%;
- z-index: 999999;
- left: 75%;
- top: 0;
- display: none;
- }
|