Files
Grav-Admin-Plugin/themes/grav/scss/template/_admin.scss

900 lines
18 KiB
SCSS
Raw Normal View History

$topbar-height: 4.2rem;
$update-height: 3rem;
$sidebar-width-large: 240px;
2016-03-06 19:36:27 -07:00
$sidebar-width-small: $topbar-height;
$sidebar-padding: 2rem;
2016-03-07 16:57:51 -07:00
// Special cases
.sidebar-closed {
#admin-sidebar {
float: left;
visibility: visible;
opacity: 1;
width: $sidebar-width-small;
2016-03-07 16:57:51 -07:00
#grav-logo-small {
display: inline-block;
}
2016-03-06 19:36:27 -07:00
2016-03-07 16:57:51 -07:00
#grav-logo-large {
display: none;
}
2016-03-07 16:29:07 -07:00
2016-03-07 16:57:51 -07:00
#admin-user-details {
padding: 12px;
2016-03-07 16:29:07 -07:00
text-align: center;
}
2016-03-07 16:57:51 -07:00
.admin-user-names {
display: none;
}
2016-03-07 16:29:07 -07:00
2016-03-07 16:57:51 -07:00
.admin-logo {
.front-end {
display: none;
}
}
2016-03-07 16:29:07 -07:00
2016-03-07 16:57:51 -07:00
#admin-menu {
em {
display: none;
}
2016-03-07 16:57:51 -07:00
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";
}
}
}
2016-03-06 19:36:27 -07:00
}
2016-03-07 16:57:51 -07:00
#admin-main {
margin-left: $sidebar-width-small;
2016-03-06 19:36:27 -07:00
2016-03-07 16:57:51 -07:00
.content-padding {
left: $sidebar-width-small;
}
2015-08-26 09:46:08 -04:00
}
2016-03-07 16:57:51 -07:00
}
.sidebar-open {
#admin-sidebar {
z-index: 10001;
float: left;
visibility: visible;
opacity: 1;
width: $sidebar-width-large;
#grav-logo-small {
display: none;
}
#grav-logo-large {
display: inline-block;
}
#admin-user-details {
padding: $sidebar-padding;
text-align: left;
}
.admin-user-names {
display: block;
}
.admin-logo {
.front-end {
display: inline-block;
}
}
2016-03-07 16:09:44 -07:00
#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";
}
}
}
}
}
2016-03-07 16:57:51 -07:00
#admin-sidebar {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 100%;
max-height: 100vh;
opacity: 0;
//transition: opacity 0.2s 0s, visibility 0s 0.2s;
#open-handle {
display: block;
position: absolute;
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";
}
}
2016-03-07 16:57:51 -07:00
}
&.sidebar-is-visible {
opacity: 1;
visibility: visible;
//transition: opacity 0.2s 0s, visibility 0s 0s
}
2016-03-07 18:26:35 -07:00
@include breakpoint(mobile-only) {
z-index: 3;
}
2016-03-07 16:57:51 -07:00
@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;
2016-03-01 16:23:55 -07:00
text-align: center;
2016-03-01 18:19:52 -07:00
.admin-logo {
a {
display: inline-block;
vertical-align: middle;
width: 20%;
text-align: right;
padding-right: 1rem;
&:first-child {
width: 70%;
padding-right: 0;
2016-03-07 19:31:38 -07:00
@include breakpoint(mobile-only) {
width: 100%;
}
2016-03-01 18:19:52 -07:00
}
.fa {
display: block;
margin-top: -5px;
}
}
2016-03-06 19:36:27 -07:00
.front-end {
2016-03-07 19:31:38 -07:00
@include breakpoint(mobile-only) {
position: absolute;
right: 20px;
top: 20px;
font-size: 36px;
padding-right: 0;
}
2016-03-07 16:09:44 -07:00
@include breakpoint(mini-nav-range) {
2016-03-06 19:36:27 -07:00
display: none;
}
}
}
#grav-logo-small {
max-width: 100%;
height: 40px;
display: none;
margin: 13px 0 12px;
2016-03-06 20:16:39 -07:00
@include breakpoint(tablet-plus) {
2016-03-06 19:36:27 -07:00
display: inline-block;
}
@include breakpoint(large-desktop-plus) {
display: none;
}
2016-03-01 18:19:52 -07:00
}
2016-03-06 19:36:27 -07:00
#grav-logo-large {
2016-03-01 16:23:55 -07:00
max-width: 100%;
padding-left: 1.5rem;
2016-03-04 20:24:02 -07:00
height: 40px;
margin: 13px 0 12px;
2016-03-06 19:36:27 -07:00
2016-03-06 20:16:39 -07:00
@include breakpoint(tablet-plus) {
2016-03-06 19:36:27 -07:00
display: none;
}
@include breakpoint(large-desktop-plus) {
display: inline-block;
}
2016-03-01 16:23:55 -07:00
}
h3 {
text-transform: uppercase;
margin: 0;
@extend %vertical-align;
text-align: center;
font-size: 1.2rem;
2014-10-12 21:03:47 -06:00
i {
font-size: 1rem;
vertical-align: middle;
margin-top: -1px;
}
}
}
2015-10-19 11:46:27 +02:00
#admin-user-details, .admin-user-details {
padding: $sidebar-padding;
2014-10-12 14:06:47 -06:00
overflow: hidden;
2016-03-06 20:16:39 -07:00
text-align: left;
2016-03-07 16:09:44 -07:00
@include breakpoint(mini-nav-range) {
2016-03-06 19:36:27 -07:00
padding: 12px;
2016-03-06 20:16:39 -07:00
text-align: center;
}
img {
2014-10-12 14:06:47 -06:00
@include transition(all 0.5s ease);
border-radius: 100%;
float: left;
}
.admin-user-names {
2016-03-06 19:36:27 -07:00
margin-left: 60px;
margin-top: 5px;
2016-03-06 20:16:39 -07:00
display: block;
2016-03-07 16:09:44 -07:00
@include breakpoint(mini-nav-range) {
2016-03-06 19:36:27 -07:00
display: none;
2015-09-03 15:46:38 -04:00
}
h4, h5 {
margin: 0;
font-size: 1rem;
line-height: 1.3;
}
h5 {
font-size: 0.9rem;
}
}
}
#admin-menu {
display: block;
margin: 0;
padding: 0;
list-style: none;
2016-03-06 19:36:27 -07:00
em {
font-style: normal;
2016-03-07 16:09:44 -07:00
@include breakpoint(mini-nav-range) {
2016-03-06 19:36:27 -07:00
display: none;
}
}
li {
2014-12-19 14:33:44 -07:00
.badges {
float: right;
margin-right:1rem;
2014-12-19 14:33:44 -07:00
2016-03-07 16:09:44 -07:00
2014-12-19 14:33:44 -07:00
.badge {
display: inline-block;
margin-right: -5px;
}
.updates {
display: none;
2014-12-19 14:33:44 -07:00
}
2016-03-07 16:09:44 -07:00
.count {
@include breakpoint(mini-nav-range) {
display: none;
}
}
&.with-updates {
.count {
2014-12-19 15:24:40 -07:00
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.updates {
2014-12-19 15:24:40 -07:00
border-bottom-right-radius: 0;
border-top-right-radius: 0;
display: inline-block;
2016-03-07 16:09:44 -07:00
@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;
}
}
2014-12-19 14:33:44 -07:00
}
}
a {
@include transition(all 0.2s ease);
display: block;
padding-left: 25px;
padding-top: 0.7rem;
padding-bottom: 0.7rem;
2016-03-07 16:09:44 -07:00
position: relative;
2016-02-22 22:12:06 -07:00
.fa {
@include transition(all 0.2s ease);
margin-right: 8px;
}
&:hover {
2016-02-22 22:12:06 -07:00
.fa {
font-size: 1.2rem;
}
}
}
&.selected {
a {
padding-left: 16px;
}
}
}
}
#admin-main {
2016-03-06 20:16:39 -07:00
@include breakpoint(tablet-plus) {
2016-03-06 19:36:27 -07:00
margin-left: $sidebar-width-small;
}
@include breakpoint(large-desktop-plus) {
margin-left: $sidebar-width-large;
2015-08-26 09:46:08 -04:00
}
2014-09-12 17:52:09 -06:00
.hint:after, [data-hint]:after {
font-size: 0.9rem;
2016-02-05 10:28:34 -07:00
width: 300px;
line-height: inherit;
white-space: normal;
2014-09-12 17:52:09 -06:00
}
h1 {
margin: 0;
font-size: 1.5rem;
text-align: left;
letter-spacing: -1px;
2016-03-08 13:13:28 -07:00
line-height: 1.5;
}
.padding {
padding: $padding-default;
}
2016-03-07 19:31:38 -07:00
.lines-button {
display: none;
margin-left: $padding-default / 2;
@include breakpoint(mobile-only) {
display: inline-block;
}
}
.titlebar {
2014-10-07 17:08:49 -07:00
position: relative;
height: $topbar-height;
padding: 0 $padding-default;
2016-03-07 19:31:38 -07:00
2016-02-26 10:53:43 -07:00
box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.1);
z-index: 2;
2016-03-07 19:31:38 -07:00
@include breakpoint(mobile-only) {
padding: 0 ($padding-default / 2) 0 ($padding-default + 2);
2016-02-26 10:53:43 -07:00
}
h1 {
@extend %vertical-align;
2016-03-08 13:13:28 -07:00
display: block;
white-space: nowrap;
overflow: hidden;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
2016-03-07 19:31:38 -07:00
@include breakpoint(mobile-only) {
font-size: 18px;
i {
display: none;
}
}
}
.button-bar {
@extend %vertical-align;
padding: 0;
}
2015-08-03 18:52:28 -06:00
.preview {
font-size: 90%;
}
2015-08-19 12:52:18 -06:00
.button {
padding: 0.3rem 0.6rem;
2015-09-10 15:57:27 -06:00
2015-08-19 12:52:18 -06:00
i {
font-size: 13px;
}
2016-03-07 19:31:38 -07:00
@include breakpoint(mobile-only) {
font-size: 0;
padding: 0.5rem 0.5rem;
min-height: 36px;
i {
font-size: 20px;
margin-right: 0;
}
}
2015-08-19 12:52:18 -06:00
}
}
.admin-block .grav-update, .admin-block .alert {
2014-10-03 11:10:58 -06:00
margin-top: -2rem;
margin-bottom: 2rem;
}
.grav-update {
2014-10-03 13:54:51 -06:00
@include clearfix;
padding: 0 $padding-default;
2014-10-07 17:08:49 -07:00
margin-top: -$padding-default;
2016-03-08 14:12:28 -07:00
@include breakpoint(mobile-only) {
padding: 0 1rem;
}
2014-10-03 13:54:51 -06:00
&.plugins {
padding-right: 1rem;
}
.button {
2014-10-03 13:54:51 -06:00
float: right;
margin-top: 0.6rem;
margin-left: 1rem;
line-height: 1.5;
}
p {
line-height: $update-height;
margin: 0;
2016-03-08 14:12:28 -07:00
display: block;
white-space: nowrap;
overflow: hidden;
-ms-text-overflow: ellipsis;
text-overflow: ellipsis;
}
2016-02-22 22:12:06 -07:00
span[class="hint--left"]::after {
line-height: 1.5;
}
2016-02-22 22:12:06 -07:00
i {
padding-right: 0.5rem;
}
2014-10-07 17:08:49 -07:00
&.grav {
margin-top: 0;
@include transition (margin-top 0.15s ease-out);
2015-09-01 15:27:06 -04:00
2014-10-07 17:08:49 -07:00
}
}
2014-10-07 17:08:49 -07:00
.grav-update.grav + .content-padding {
top: $topbar-height + $update-height;
@include transition (top 0.15s ease-out);
}
.content-padding {
position: absolute;
top: $topbar-height;
bottom: 0;
2016-03-06 19:36:27 -07:00
left: 0;
right: 0;
overflow-y: auto;
padding: 2.5rem;
2015-08-26 09:46:08 -04:00
2016-03-07 19:31:38 -07:00
@include breakpoint(mobile-only) {
padding: $padding-default / 2;
}
2016-03-06 20:16:39 -07:00
@include breakpoint(tablet-plus) {
2016-03-06 19:36:27 -07:00
left: $sidebar-width-small;
}
@include breakpoint(large-desktop-plus) {
left: $sidebar-width-large;
2015-08-26 09:46:08 -04:00
}
}
.admin-block {
padding: 2rem 0;
h1 {
padding: 0 $padding-default 0.5rem;
margin: 0 0 1rem;
2015-10-19 11:46:27 +02:00
2015-09-05 14:02:14 -04:00
@include breakpoint(mobile-only){
2016-03-08 13:13:28 -07:00
padding: 0 1rem 0.5rem;
2015-09-05 14:02:14 -04:00
}
2015-07-31 15:05:27 -06:00
&.no_underline {
border-bottom: 0;
}
}
.button-bar {
2016-03-08 13:13:28 -07:00
margin: 0 $padding-default;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
2016-03-08 13:13:28 -07:00
margin: -1rem 0 1rem 0;
2015-08-26 09:46:08 -04:00
width: 100%;
2016-03-08 13:13:28 -07:00
padding: 0 1rem;
2015-08-26 09:46:08 -04:00
text-align: center;
.button {
width: 100%;
}
}
}
}
2014-10-03 11:10:58 -06:00
.flush-bottom {
&.button-bar {
margin: 1rem -2rem -1rem;
height: 70px;
2016-03-08 13:13:28 -07:00
padding: 1rem;
2014-10-03 11:10:58 -06:00
float: none;
2015-08-26 09:46:08 -04:00
2014-10-03 11:10:58 -06:00
.button {
@extend %vertical-align;
2016-03-08 13:13:28 -07:00
margin: 0;
2014-10-03 11:10:58 -06:00
}
}
}
.danger, .success {
2014-10-03 11:10:58 -06:00
position: relative;
&.button-bar {
margin: 2rem 0 -2rem;
height: 70px;
padding: 1rem;
float: none;
.button {
@extend %vertical-align;
}
}
}
}
#admin-dashboard {
@include clearfix;
.dashboard-item {
float: left;
width: 50%;
margin-bottom: 2.5rem;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
width: 100%;
}
> div {
padding: 1rem 2rem;
}
2014-10-03 11:10:58 -06:00
}
.dashboard-left {
padding-right: 1.25rem;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
padding-right: 0rem;
}
}
.dashboard-right {
padding-left: 1.25rem;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
padding-left: 0rem;
}
}
2016-03-04 13:43:52 -07:00
.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;
}
#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;
}
2016-03-04 13:43:52 -07:00
.ct-chart {
min-height: 157px;
}
.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;
}
}
.admin-update-charts {
@include clearfix;
min-height: 191px;
}
.button {
2016-03-08 13:13:28 -07:00
}
}
#popularity {
2016-03-04 13:43:52 -07:00
.admin-statistics-chart {
position: relative;
}
.ct-chart {
min-height: 171px;
}
p {
text-align: center;
margin: 0;
}
2016-03-04 13:43:52 -07:00
.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;
}
}
}
}
2014-10-03 15:40:58 -06:00
.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%;
}
margin-bottom: 2rem;
h4 {
font-size: 1.2rem;
line-height: 1.2;
}
}
2014-10-12 13:48:52 -06:00
.user-details {
2016-03-04 15:53:41 -07:00
text-align: left;
2014-10-12 13:48:52 -06:00
img {
border-radius: 100%;
2016-03-04 15:53:41 -07:00
margin-left: 1rem;
2014-10-12 13:48:52 -06:00
}
h2 {
margin: 0;
2016-03-04 15:53:41 -07:00
font-size: 2.1rem !important;
margin: 1rem 0 0 !important;
line-height: 1.5;
span {
font-size: 1.2rem;
}
2014-10-12 13:48:52 -06:00
}
h5 {
font-size: 1.1rem;
margin: 0;
2016-03-04 15:53:41 -07:00
linep-height: 1.2;
}
.gravatar {
font-size: 0.9rem;
padding: 0;
}
@include breakpoint(mobile-only) {
text-align: center;
2014-10-12 13:48:52 -06:00
}
}
#footer {
text-align: center;
padding: 3rem 0 1rem;
}
2014-09-16 18:08:33 -06:00
// Chart overrides
.ct-chart {
2015-07-24 17:31:29 -06:00
.ct-series {
.ct-bar {
2014-12-12 16:08:39 -07:00
stroke-width: 20px;
}
}
}
2014-12-12 16:08:39 -07:00
#popularity .ct-chart {
2015-07-24 17:31:29 -06:00
margin: 0 -10px -10px;
.ct-chart-bar {
padding: 10px;
}
2014-12-12 16:08:39 -07:00
}
#latest {
.page-title, .page-route {
2015-09-02 18:18:27 -06:00
overflow: auto;
}
}
#overlay {
position: fixed;
width: 25%;
height: 100%;
z-index: 999999;
left: 75%;
top: 0;
display: none;
}
// Fix tabs spacing in plugin / theme options
.gpm-item-info + #blueprints .block-tabs {
padding-top: 16px;
}