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

680 lines
14 KiB
SCSS
Raw Normal View History

$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;
2014-10-12 21:03:47 -06:00
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
display: none;
2015-09-01 17:14:06 -04:00
width: 75%;
z-index: 999999;
2015-08-26 09:46:08 -04:00
}
2014-10-12 21:03:47 -06:00
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;
2014-10-12 21:03:47 -06:00
i {
font-size: 1rem;
vertical-align: middle;
margin-top: -1px;
}
}
}
#admin-user-details {
padding: $sidebar-padding;
border-bottom: 1px solid $darker-accent-bg;
2014-10-12 14:06:47 -06:00
overflow: hidden;
img {
2014-10-12 14:06:47 -06:00
@include transition(all 0.5s ease);
border-radius: 100%;
float: left;
2015-09-03 15:46:38 -04:00
@include breakpoint(tablet-range){
float: none;
}
}
2014-10-12 14:06:47 -06:00
&:hover img {
box-shadow: 0px 0px 0 50px lighten($accent-bg,3%);
}
.admin-user-names {
margin-left: 45px;
2015-09-03 15:46:38 -04:00
@include breakpoint(tablet-range){
margin-left: 0;
}
h4, h5 {
2014-10-12 14:06:47 -06:00
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;
2014-12-19 14:33:44 -07:00
.badges {
float: right;
margin-right:1rem;
2014-12-19 14:33:44 -07:00
.badge {
display: inline-block;
margin-right: -5px;
color: shade($accent-fg,10%);
}
.count {
2014-12-19 15:24:40 -07:00
background-color: lighten($accent-bg, 10%);
2014-12-19 14:33:44 -07:00
}
.updates {
background-color: $tertiary-accent-bg;
display: none;
2014-12-19 14:33:44 -07:00
}
&.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;
}
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;
color: lighten($accent-bg,65%);
2015-09-03 15:46:38 -04:00
@include breakpoint(tablet-range){
padding-left: 20px;
}
i {
@include transition(all 0.2s ease);
color: lighten($accent-bg,55%);
margin-right: 8px;
2015-09-03 15:46:38 -04:00
@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;
2015-09-03 15:46:38 -04:00
@include breakpoint(tablet-range){
padding-left: 11px;
}
i {
color: lighten($accent-bg,70%);
}
}
}
}
}
#admin-main {
margin-left: $sidebar-width;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
width: 100%;
margin-left: 0;
}
2014-09-12 17:52:09 -06:00
.hint:after, [data-hint]:after {
font-size: 0.9rem;
width: 400px;
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;
}
.titlebar {
2014-10-07 17:08:49 -07:00
position: relative;
height: $topbar-height;
padding: 0 $padding-default;
h1 {
@extend %vertical-align;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only){
2015-09-04 15:02:51 -04:00
> i:first-child:before {
2015-08-26 09:46:08 -04:00
content: "\f0c9";
}
2015-09-10 15:57:27 -06:00
@include transform(inherit);
top: 5px;
font-size: 1.2rem;
2015-08-26 09:46:08 -04:00
}
}
.button-bar {
@extend %vertical-align;
padding: 0;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
2015-09-10 15:57:27 -06:00
@include transform(inherit);
top: inherit;
bottom: 5px;
position: absolute;
right: 1rem;
2015-08-26 09:46:08 -04:00
}
}
2015-08-03 18:52:28 -06:00
.preview {
color: $secondary-accent-fg;
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
@include breakpoint(mobile-only) {
padding: 0.2rem 0.5rem;
font-size: 0.9rem;
}
2015-08-19 12:52:18 -06:00
i {
font-size: 13px;
}
}
}
.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;
background: $info-bg;
2014-10-03 11:10:58 -06:00
color: $info-fg;
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;
@include button-color(shade($info-bg, 20%));
}
p {
line-height: $update-height;
margin: 0;
}
i {
padding-right: 0.5rem;
}
.less {
2014-10-03 11:10:58 -06:00
color: rgba($info-fg,0.75);
}
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
@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;
}
}
}
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);
@include breakpoint(mobile-only){
2015-09-01 15:27:06 -04:00
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;
2015-08-26 09:46:08 -04:00
@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%);
2015-09-05 14:02:14 -04:00
@include breakpoint(mobile-only){
padding: 0 0 0.5rem;
margin: 0 0 1rem !important;
text-indent: $padding-default;
2015-09-05 14:02:14 -04:00
}
2015-07-31 15:05:27 -06:00
&.no_underline {
border-bottom: 0;
}
}
.button-bar {
margin-right: $padding-default;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
width: 100%;
margin: -.5rem 0 1rem 0;
text-align: center;
.button {
width: 100%;
}
}
}
}
2014-10-03 11:10:58 -06:00
.flush-bottom {
&.button-bar {
margin: 1rem -2rem -1rem;
height: 70px;
padding: 0 1rem;
float: none;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only){
height: auto;
padding: 2rem 1rem 0rem 1rem;
}
2014-10-03 11:10:58 -06:00
.button {
@extend %vertical-align;
2015-08-26 09:46:08 -04:00
@include breakpoint(mobile-only) {
margin-left: 0 !important;
margin-bottom: .5rem;
width: 100%;
}
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;
}
background: darken($content-bg, 2%);
}
}
.danger {
&.button-bar {
.button {
@include button-color($secondary-link);
}
}
}
}
2014-10-03 11:10:58 -06:00
#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;
}
}
#updates {
p {
text-align: center;
2015-10-05 16:40:26 -06:00
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;
2015-09-03 15:46:38 -04:00
@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%));
}
}
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%;
}
2014-10-03 16:50:55 -06:00
border: 1px solid darken($content-bg, 5%);
2014-10-03 15:40:58 -06:00
background: $white;
margin-bottom: 2rem;
h4 {
font-size: 1.2rem;
line-height: 1.2;
}
}
2014-10-12 13:48:52 -06:00
.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;
}
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;
}
&.ct-series-a {
.ct-bar {
stroke: rgba($white, 0.85) !important;
}
2015-07-22 14:30:53 -06:00
.ct-slice-donut {
stroke: $white !important;
}
}
&.ct-series-b {
2015-07-22 14:30:53 -06:00
.ct-slice-donut {
stroke: rgba($white, 0.2) !important;
}
}
}
}
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;
}
2014-09-16 18:08:33 -06:00
.last-modified {
padding-left: 10px;
}
}
#overlay {
position: fixed;
width: 25%;
height: 100%;
z-index: 999999;
left: 75%;
top: 0;
display: none;
}