123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179 |
- $topbar-height: 4.2rem;
- $update-height: 3rem;
- $sidebar-width-large: 240px;
- $sidebar-width-small: $topbar-height;
- $sidebar-padding: 2rem;
- // Special cases
- .sidebar-closed:not(.sidebar-quickopen) {
- #admin-sidebar {
- float: left;
- visibility: visible;
- opacity: 1;
- width: $sidebar-width-small;
- #admin-logo {
- h3 {
- font-size: 0;
- &:first-letter {
- font-size: 2.5rem;
- }
- }
- .admin-logo .front-end {
- display: none;
- }
- }
- #grav-logo-small {
- display: inline-block;
- }
- #grav-logo-large {
- display: none;
- }
- #admin-user-details {
- padding: 15px 0 15px 10px;
- text-align: left;
- }
- .admin-user-names {
- display: none;
- }
- #admin-menu {
- em {
- display: none;
- }
- li {
- .badges {
- .updates {
- border-radius: 100%;
- position: absolute;
- top: 4px;
- right: 10px;
- font-size: 9px;
- line-height: 12px;
- padding: 1px 3px;
- min-width: 15px;
- }
- .count {
- display: none;
- }
- }
- }
- }
- #open-handle {
- @include breakpoint(large-desktop-plus) {
- .fa-angle-double-right:before {
- content: "\f101";
- }
- }
- }
- }
- #admin-main {
- margin-left: $sidebar-width-small;
- }
- }
- .sidebar-open {
- #admin-sidebar {
- z-index: 10001;
- float: left;
- visibility: visible;
- opacity: 1;
- width: $sidebar-width-large;
- h3 {
- font-size: 1.2rem;
- &:first-letter {
- font-size: 1.2rem;
- }
- }
- #grav-logo-small {
- display: none;
- }
- #grav-logo-large {
- display: inline-block;
- }
- #admin-user-details {
- padding: 15px 10px;
- text-align: left;
- }
- .admin-user-names {
- display: block;
- }
- .admin-logo .front-end {
- display: inline-block;
- }
- #admin-menu {
- em {
- display: inline;
- }
- li {
- .badges {
- .updates {
- border-bottom-right-radius: 0;
- border-top-right-radius: 0;
- position: relative;
- top: auto;
- right: auto;
- @extend .badge;
- }
- .count {
- display: inline-block;
- }
- }
- }
- }
- #open-handle {
- @include breakpoint(mini-nav-range) {
- .fa-angle-double-right:before {
- content: "\f100";
- }
- }
- }
- }
- }
- #admin-sidebar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 100%;
- max-height: 100vh;
- opacity: 0;
- z-index: 3;
- //transition: opacity 0.2s 0s, visibility 0s 0.2s;
- #open-handle {
- display: block;
- position: absolute;
- cursor: pointer;
- right: -16px;
- top: 20px;
- width: 16px;
- height: 25px;
- text-align: center;
- line-height: 23px;
- z-index: 3;
- font-size: 1.2rem;
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
- @include breakpoint(large-desktop-plus) {
- .fa-angle-double-right:before {
- content: "\f100";
- }
- }
- }
- &.sidebar-is-visible {
- opacity: 1;
- visibility: visible;
- //transition: opacity 0.2s 0s, visibility 0s 0s
- }
- @include breakpoint(mobile-only) {
- z-index: 5;
- }
- @include breakpoint(tablet-plus) {
- float: left;
- visibility: visible;
- opacity: 1;
- width: $sidebar-width-small;
- }
- @include breakpoint(large-desktop-plus) {
- float: left;
- visibility: visible;
- opacity: 1;
- width: $sidebar-width-large;
- }
- }
- #admin-logo {
- height: $topbar-height;
- text-align: center;
- .admin-logo {
- a {
- display: inline-block;
- vertical-align: middle;
- width: 20%;
- text-align: right;
- padding-right: 1rem;
- &:first-child {
- width: 70%;
- padding-right: 0;
- @include breakpoint(mobile-only) {
- width: 100%;
- }
- }
- .fa {
- display: block;
- margin-top: -5px;
- }
- }
- }
- .admin-logo .front-end {
- @include breakpoint(mobile-only) {
- position: absolute;
- right: 20px;
- top: 23px;
- line-height: 2rem;
- padding-right: 0;
- i {
- font-size: 2rem;
- }
- }
- @include breakpoint(mini-nav-range) {
- display: none;
- }
- }
- #grav-logo-small {
- max-width: 100%;
- height: 40px;
- display: none;
- margin: 13px 0 12px;
- @include breakpoint(tablet-plus) {
- display: inline-block;
- }
- @include breakpoint(large-desktop-plus) {
- display: none;
- }
- }
- #grav-logo-large {
- max-width: 100%;
- padding-left: 1.5rem;
- height: 40px;
- margin: 13px 0 12px;
- @include breakpoint(tablet-plus) {
- display: none;
- }
- @include breakpoint(large-desktop-plus) {
- display: inline-block;
- }
- }
- h3 {
- text-transform: uppercase;
- margin: 0;
- @extend %vertical-align;
- text-align: center;
- font-size: 1.2rem;
- @include breakpoint(tablet-plus) {
- font-size: 0;
- &:first-letter {
- font-size: 2.5rem;
- }
- }
- @include breakpoint(large-desktop-plus) {
- font-size: 1.2rem;
- &:first-letter {
- font-size: 1.2rem;
- }
- }
- i {
- font-size: 1rem;
- vertical-align: middle;
- margin-top: -1px;
- }
- }
- }
- .block-userinfo {
- img {
- width: 200px;
- height: 200px;
- object-fit: cover;
- }
- & ~ .block-file {
- margin-top: -5rem !important;
- }
- }
- #offline-status {
- padding: .2rem 1rem;
- text-align: center;
- display: none;
- .fa-plane {
- @include transform(rotate(45deg));
- }
- }
- #admin-user-details {
- img {
- width: 47px;
- height: 47px;
- object-fit: cover;
- }
- }
- #admin-user-details, .admin-user-details {
- padding: 15px 10px;
- min-height: 80px;
- overflow: hidden;
- text-align: left;
- @include breakpoint(mini-nav-range) {
- padding: 1rem 10px;
- text-align: center;
- }
- img {
- @include transition(all 0.5s ease);
- border-radius: 100%;
- float: left;
- }
- .admin-user-names {
- margin-left: 60px;
- margin-top: 5px;
- display: block;
- @include breakpoint(mini-nav-range) {
- display: none;
- }
- h4, h5 {
- margin: 0;
- font-size: 1rem;
- line-height: 1.3;
- }
- .badge {
- font-size: 0.8rem;
- }
- h5 {
- opacity: 0.8;
- font-size: 0.9rem;
- }
- }
- }
- #admin-nav-quick-tray {
- margin: 0;
- list-style: none;
- padding: 3px 10px 5px 25px;
- li {
- cursor: pointer;
- width: 24px;
- }
- i {
- transition: all .2s ease-in-out;
- &:hover {
- transform: scale(1.2);
- }
- }
- }
- .content-padding {
- #messages.default-box-shadow {
- margin-bottom: 2.5rem;
- @include breakpoint(mobile-only) {
- margin-bottom: 0.5rem;
- }
- }
- }
- .admin-menu-wrapper {
- height: calc(100vh - 180px);
- overflow: hidden;
- @include breakpoint(mini-nav-range) {
- height: calc(100vh - 136px);
- }
- }
- #admin-menu {
- display: block;
- margin: 0;
- padding: 0;
- list-style: none;
- em {
- font-style: normal;
- @include breakpoint(mini-nav-range) {
- display: none;
- }
- }
- li {
- .badges {
- float: right;
- margin-right: 1rem;
- .badge {
- display: inline-block;
- margin-right: -5px;
- }
- .updates {
- display: none;
- }
- .count {
- @include breakpoint(mini-nav-range) {
- 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;
- @include breakpoint(mini-nav-range) {
- border-radius: 100%;
- position: absolute;
- top: 4px;
- right: 10px;
- font-size: 9px;
- line-height: 12px;
- padding: 1px 3px;
- min-width: 15px;
- }
- }
- }
- }
- a {
- @include transition(all 0.2s ease);
- display: block;
- padding-left: 25px;
- padding-top: 0.7rem;
- padding-bottom: 0.7rem;
- position: relative;
- .fa {
- @include transition(all 0.2s ease);
- margin-right: 8px;
- }
- &:hover {
- .fa {
- font-size: 1.2rem;
- }
- }
- }
- &.selected {
- a {
- padding-left: 16px;
- }
- }
- }
- }
- body.sidebar-quickopen #admin-main {
- @include breakpoint(large-desktop-plus) {
- margin-left: $sidebar-width-small;
- }
- }
- #admin-main {
- @include breakpoint(tablet-plus) {
- margin-left: $sidebar-width-small;
- }
- @include breakpoint(large-desktop-plus) {
- margin-left: $sidebar-width-large;
- }
- .hint:after, [data-hint]:after {
- font-size: 0.9rem;
- width: 300px;
- line-height: inherit;
- white-space: normal;
- @include breakpoint(mobile-only) {
- font-size: 0.5rem;
- }
- }
- h1 {
- margin: 0;
- font-size: 1.5rem;
- text-align: left;
- letter-spacing: -1px;
- line-height: 1.5;
- }
- .padding {
- padding: $padding-default;
- }
- .lines-button {
- display: none;
- margin-left: $padding-default / 4;
- &:focus {
- outline:none;
- }
- @include breakpoint(mobile-only) {
- display: inline-block;
- }
- }
- .button {
- white-space: nowrap;
- }
- .titlebar {
- position: relative;
- height: $topbar-height;
- padding: 0 $padding-default;
- box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
- @include breakpoint(mobile-only) {
- padding: 0 ($padding-default / 4) 0 ($padding-default + 1);
- }
- h1 {
- @extend %vertical-align;
- display: block;
- white-space: nowrap;
- overflow: hidden;
- -ms-text-overflow: ellipsis;
- text-overflow: ellipsis;
- @include breakpoint(mobile-only) {
- font-size: 18px;
- i {
- display: none;
- }
- }
- }
- .button-bar {
- @extend %vertical-align;
- padding: 0;
- white-space: nowrap;
- z-index: 4;
- }
- .preview {
- font-size: 90%;
- }
- .button {
- padding: 0.3rem 0.4rem;
- vertical-align: top;
- @include breakpoint(mobile-only) {
- font-size: 0;
- padding: 0.5rem 0.5rem;
- min-height: 36px;
- i {
- font-size: 20px;
- margin-right: 0;
- }
- }
- @media only all and (max-width: 20.875em) {
- padding: 0.5rem 0.2rem;
- }
- }
- @include breakpoint(mobile-only) {
- .dropdown-menu .button {
- font-size: 0.9rem;
- }
- }
- }
- .admin-block .alert {
- margin-top: -2rem;
- margin-bottom: 2rem;
- }
- .alert {
- &:before {
- font-family: FontAwesome;
- margin-right: 5px;
- }
- &.info:before {
- content: "\f0a1";
- }
- &.warning:before {
- content: "\f071";
- }
- &.note:before {
- content: "\f24a";
- }
- &.grav:before {
- font-family: rockettheme-apps;
- content: "\62";
- vertical-align: bottom;
- }
- &.grav {
- #grav-update-button {
- float: right;
- }
- }
- }
- .grav-update {
- @include clearfix;
- padding: 0 $padding-default;
- margin-top: -2rem;
- margin-bottom: 1rem;
- display: none;
- @include breakpoint(mobile-only) {
- padding: 0 1rem;
- }
- .button {
- float: right;
- margin-top: 0.6rem;
- margin-left: 1rem;
- line-height: 1.5;
- }
- p {
- line-height: $update-height;
- margin: 0;
- display: block;
- white-space: nowrap;
- overflow: hidden;
- -ms-text-overflow: ellipsis;
- text-overflow: ellipsis;
- }
- span[class="hint--left"]::after {
- line-height: 1.5;
- }
- i {
- padding-right: 0.5rem;
- }
- }
- .grav-update.grav + .content-wrapper {
- height: calc(100vh - #{$topbar-height} - #{$update-height});
- }
- .content-wrapper {
- position: relative;
- overflow-y: hidden;
- height: calc(100vh - #{$topbar-height});
- .gm-scrollbar.-vertical {
- right: 5px;
- top: 5px;
- width: 8px;
- border-radius: 4px;
- }
- }
- .content-padding {
- padding: 2.5rem;
- @include breakpoint(mobile-only) {
- padding: 0;
- }
- }
- .admin-block {
- padding: 2rem 0;
- &:empty {
- padding: 0;
- }
- h1 {
- padding: 0 $padding-default 0.5rem;
- margin: 0 0 1rem;
- @include breakpoint(mobile-only) {
- padding: 0 1rem 0.5rem;
- }
- &.no_underline {
- border-bottom: 0;
- }
- }
- .button-bar {
- margin: 0 $padding-default;
- @include breakpoint(mobile-only) {
- margin: -1rem 0 1rem 0;
- width: 100%;
- padding: 0 1rem;
- text-align: center;
- .button {
- width: 100%;
- }
- }
- }
- }
- .flush-bottom {
- &.button-bar {
- margin: 1rem -2rem -1rem;
- height: 70px;
- padding: 1rem;
- float: none;
- .button {
- @extend %vertical-align;
- margin: 0;
- }
- }
- }
- .danger, .success {
- position: relative;
- &.button-bar {
- margin: 2rem 0 -2rem;
- height: 70px;
- padding: 1rem;
- float: none;
- .button {
- @extend %vertical-align;
- }
- }
- }
- }
- .content-padding {
- #admin-dashboard {
- .dashboard-item-flex {
- &:nth-of-type(2n) .dashboard-item {
- margin-right: 0;
- margin-left: 4%;
- }
- &:nth-of-type(2n+1) .dashboard-item {
- margin-left: 0;
- margin-right: 4%;
- }
- }
- .dashboard-item {
- margin-bottom: 2.5rem;
- }
- }
- }
- #admin-dashboard {
- @include display(flex);
- @include flex-flow(row wrap);
- .dashboard-item-flex {
- @include display(flex);
- @include flex-flow(column nowrap);
- width: 50%;
- @include breakpoint(mobile-only) {
- width: 100%;
- .dashboard-item {
- margin-right: 0px !important;
- margin-left: 0px !important;
- margin-bottom: 10px !important;
- }
- }
- }
- .dashboard-item {
- > div:not(.widget-content) {
- padding: 1rem 2rem;
- }
- h1 .right {
- float: right;
- }
- &.admin-block {
- padding: 1rem 0;
- ul {
- margin: 0 0 1rem 0;
- padding: 0;
- list-style: none;
- }
- li {
- margin: 0;
- padding: 0.425rem 3rem 0.2rem 3rem;
- &:last-child {
- border-bottom: 0;
- }
- }
- }
- }
- .chart-loader {
- position: relative;
- .fa {
- display: block;
- position: absolute;
- width: 100%;
- text-align: center;
- font-size: 4rem;
- margin-top: -2rem;
- @extend %vertical-align;
- }
- text-align: center;
- }
- .widget-content {
- position: relative;
- min-height: 400px;
- padding: 0;
- }
- .widget-loader {
- position: absolute;
- text-align: center;
- top: 50%;
- left: 50%;
- width: 100%;
- transform: translate(-50%, -50%);
- .fa {
- font-size: 4rem;
- }
- }
- #updates {
- p {
- text-align: center;
- margin: 0;
- }
- .updates-chart {
- width: 50%;
- float: left;
- }
- .chart-wrapper {
- position: relative;
- }
- .backups-chart {
- position: relative;
- width: 50%;
- float: left;
- }
- .ct-chart {
- min-height: 157px;
- }
- .numeric {
- display: block;
- position: absolute;
- width: 100%;
- text-align: center;
- font-size: 1.5rem;
- line-height: 1;
- @extend %vertical-align;
- em {
- display: block;
- font-style: normal;
- font-size: 1rem;
- }
- }
- .admin-update-charts {
- @include clearfix;
- min-height: 191px;
- }
- .button {
- }
- }
- #popularity {
- .admin-statistics-chart {
- position: relative;
- }
- .ct-chart {
- min-height: 171px;
- }
- p {
- text-align: center;
- 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;
- }
- }
- }
- #news-feed {
- .date {
- float: right;
- z-index: 1;
- }
- li {
- a {
- display: block;
- white-space: nowrap;
- overflow: hidden;
- -ms-text-overflow: ellipsis;
- text-overflow: ellipsis;
- z-index: 0;
- &:before {
- font-family: FontAwesome;
- margin-right: 10px;
- content: "\f1ea";
- }
- }
- }
- }
- }
- .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%;
- max-width: 21rem;
- @include breakpoint(tablet-range) {
- width: 48%;
- }
- @include breakpoint(mobile-only) {
- width: 100%;
- }
- margin-bottom: 2rem;
- h4 {
- font-size: 1.2rem;
- line-height: 1.2;
- }
- }
- .user-details {
- text-align: left;
- img {
- border-radius: 100%;
- }
- h2 {
- margin: 0;
- font-size: 2.1rem !important;
- margin: 1rem 0 0 !important;
- line-height: 1.5;
- span {
- font-size: 1.2rem;
- }
- }
- h5 {
- font-size: 1.1rem;
- margin: 0;
- linep-height: 1.2;
- }
- .gravatar {
- font-size: 0.9rem;
- padding: 0;
- }
- @include breakpoint(mobile-only) {
- text-align: center;
- }
- }
- #footer {
- text-align: center;
- padding: 3rem 0 1rem;
- }
- // Chart overrides
- .ct-chart {
- .ct-series {
- .ct-bar {
- stroke-width: 20px;
- }
- }
- }
- #popularity .ct-chart {
- margin: 0 -10px -10px;
- .ct-chart-bar {
- padding: 6px 6px 6px 10px;
- }
- }
- #latest {
- .page-title, .page-route {
- overflow: auto;
- }
- }
- #overlay {
- position: fixed;
- width: 25%;
- height: 100%;
- z-index: 999999;
- left: 75%;
- top: 0;
- display: none;
- @include breakpoint(mobile-only) {
- display: none!important;
- }
- }
- // Fix tabs spacing in plugin / theme options
- .gpm-item-info + #blueprints .block-tabs {
- padding-top: 16px;
- }
- .plugins-notifications-container,
- .themes-notifications-container {
- margin-bottom: 2rem;
- }
- .package-dependencies-container {
- li {
- height: 35px;
- .button {
- height: 30px;
- float: right;
- margin-right: 10px;
- line-height: 20px;
- }
- }
- }
- .pointer-events-disabled {
- pointer-events: none;
- }
- // Direct install
- .direct-install-content {
- padding: 30px;
- .button {
- margin-top: 10px;
- margin-bottom: 50px;
- }
- }
- // Reinstall packages
- .updates-checked {
- .button-reinstall-package {
- display: inline-block!important;
- }
- &.has-updates {
- .button-reinstall-package {
- display: none!important;
- }
- }
- }
|