Ghost/core/admin/assets/sass/layouts/dashboard.scss

606 lines
9.7 KiB
SCSS
Raw Normal View History

2013-05-11 20:44:25 +04:00
/*
* These are the styles used to control the look and feel of the widgetised
* dashboard of the Ghost admin system. The first screen you see on login.
*
*/
2013-05-29 16:04:14 +04:00
/* ==========================================================================
Widget Base
========================================================================== */
%widget, .widget {
width: $widget-base-width;
height: $widget-base-height;
float:left;
position:relative;
margin:0 15px 15px 0;
display: none;
background-color:#fff;
box-shadow: $shadow;
.widget-content {
@include box-sizing(border-box);
margin-bottom: 40px;
padding: 20px;
}
.widget-footer, .widget-header {
@include box-sizing(border-box);
width: 100%;
height: 40px;
font-size: 1.2em;
color: #cecbc7;
border-top: 1px solid #EDECE4;
.widget-title {
display: inline-block;
padding-top: 7px;
padding-left: 15px;
vertical-align: middle;
text-transform: uppercase;
}
}
.widget-settings-toggle {
@include box-sizing(border-box);
display: block;
height: 39px;
width: 46px;
float: right;
padding: 7px 14px;
border-left: 1px solid #EDECE4;
cursor: pointer;
@include icon($i-settings, 1em);
}
2013-05-11 20:44:25 +04:00
2013-05-29 16:04:14 +04:00
.widget-footer {
position: absolute;
bottom: 0;
}
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
/* ==========================================================================
Widget Sizes
========================================================================== */
.widget-1x2 {
height: $widget-base-height * 2;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-2x2 {
width: $widget-base-width * 2;
height: $widget-base-height * 2;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-2x1 {
width: $widget-base-width * 2;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
/* ==========================================================================
Widget Variations
========================================================================== */
%widget-number, .widget-number {
@extend %widget;
.widget-content {
.info {
margin-top: 30px;
.count {
display: block;
font-size: 5em;
line-height: 1em;
font-weight: 400;
color: #4a4a4a;
}
.sub {
font-size: 2em;
color: #9b9b9b;
mark {
background-color: transparent;
&.up {
color: $green;
}
&.down {
color: $red;
}
} // mark
} // .sub
} // .info
} // .widget-content
&.widget-2x2 {
.widget-content {
.info {
margin-top: 100px;
.count {
font-size: 9em;
}
.sub {
font-size: 2.5em;
}
} // .info
} // .widget-content
} // .widget-2x2
} // %widget-number, .widget-number
//For the settings panel
.widget-settings {
@extend %widget;
background-color: #2d3032;
.widget-header {
height: 40px;
border-top: none;
border-bottom: 1px solid #4a4a4a;
color: #7E878B;
}
.widget-content {
padding: 0;
}
label {
width:100%;
height: 40px;
display: block;
border-bottom: 1px solid #4a4a4a;
font-size: 1.2em;
}
.title {
@include box-sizing(border-box);
display: inline-block;
width: 100px;
height: 100%;
padding: 8px;
color: #E3EDF2;
text-transform: uppercase;
text-align: right;
}
input[type="text"] {
@include box-sizing(border-box);
height: 100%;
padding: 8px;
color: #E3EDF2;
text-transform: none;
background: none;
border: none;
border-left: 1px solid #4a4a4a;
}
.widget-footer, .widget-header {
border-color: #4a4a4a;
}
.widget-settings-toggle {
border-color: #4a4a4a;
&.close {
@include icon($i-x, 1em);
}
&.done {
background-color: #A0B95D;
color: #ffffff;
@include icon($i-check, 1em);
}
}
} // .widget-settings
.none {
margin-right:0;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
/* ==========================================================================
Individual Widgets
========================================================================== */
.widget-time {
@extend %widget;
.summary {
margin-bottom: 30px;
font-size: 1.4em;
color: #cecbc7;
.day {
float: left;
}
.weather {
float: right;
// TODO: icon for weather
}
}
time {
margin-top: 30px;
.clock {
display: block;
font-size: 5em;
line-height: 1em;
font-weight: 400;
color: #4a4a4a;
}
.date {
font-size: 2em;
color: #9b9b9b;
}
}
} // .widget-time
.widget-image {
@extend %widget;
.widget-content {
height: 100%;
background-image: url(../img/dash/Image@2x.png);
background-size: 100% 100%;
}
.widget-footer {
margin-top: -40px;
opacity: 0;
background: #ffffff;
@include transition(opacity 200ms linear);
}
&:hover {
.widget-footer {
opacity: 1;
}
}
} // .widget-image
.widget-stats {
@extend %widget-number;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-facebook {
@extend %widget-number;
.info {
.faces {
display: block;
width: 100%;
height: 30px;
margin-top: 25px;
background-image: url("../img/dash/Facebook_Images@2x.png");
background-size: 100% 100%;
}
}
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-gplus {
@extend %widget-number;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-twitter {
@extend %widget;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-campaignmonitor {
@extend %widget-number;
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
.widget-posts {
@extend %widget;
2013-05-11 20:44:25 +04:00
position: relative;
2013-05-29 16:04:14 +04:00
.chart {
@include box-sizing(border-box);
width: 250px;
height: 250px;
position: relative;
z-index: 1;
margin: 0 auto;
background: #242628;
border: #efefef 54px solid;
border-radius: 250px;
2013-05-11 20:44:25 +04:00
2013-05-29 16:04:14 +04:00
#poststats {
position: relative;
top:-54px;
left: -54px;
}
2013-05-11 20:44:25 +04:00
2013-05-29 16:04:14 +04:00
.data {
position: absolute;
top: 5px;
color: $midgrey;
font-size: 13px;
list-style: none;
.ready {
font-size: 18px;
vertical-align: -5%;
margin-right: 5px;
color: $green;
}
.pending {
font-size: 18px;
vertical-align: -5%;
margin-right: 5px;
color: #f9e15d;
}
2013-05-11 20:44:25 +04:00
2013-05-29 16:04:14 +04:00
.draft {
font-size: 18px;
vertical-align: -5%;
margin-right: 5px;
color: $red;
}
}
}
2013-05-11 20:44:25 +04:00
}
2013-05-29 16:04:14 +04:00
2013-05-11 20:44:25 +04:00
/*
2013-05-29 16:04:14 +04:00
.dashboard-controls {
2013-05-11 20:44:25 +04:00
@extend %box;
padding:0 15px;
2013-05-29 16:04:14 +04:00
.text {
2013-05-11 20:44:25 +04:00
padding:12px 0;
}
}
2013-05-29 16:04:14 +04:00
.controls-nav {
2013-05-11 20:44:25 +04:00
float:left;
margin-left:20px;
2013-05-29 16:04:14 +04:00
ul {
2013-05-11 20:44:25 +04:00
border-left: $lightgrey 1px solid;
2013-05-29 16:04:14 +04:00
li {
2013-05-11 20:44:25 +04:00
margin: 0;
border-right: 1px solid $lightgrey;
2013-05-29 16:04:14 +04:00
a {
2013-05-11 20:44:25 +04:00
padding: 12px 15px;
color: $grey;
2013-05-29 16:04:14 +04:00
span {
2013-05-11 20:44:25 +04:00
color: $darkgrey;
}
2013-05-29 16:04:14 +04:00
&:hover {
2013-05-11 20:44:25 +04:00
color: $darkgrey;
text-decoration: none;
}
}
}
}
}
2013-05-29 16:04:14 +04:00
.widget-stats {
span {
2013-05-11 20:44:25 +04:00
display: block;
font-size: 1.6em;
line-height: 1.2em;
color: $grey;
margin-bottom: 15px;
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
font-size: 1.2em;
}
}
2013-05-29 16:04:14 +04:00
span:first-child {
2013-05-11 20:44:25 +04:00
font-size: 5.4em;
line-height: 1.4em;
color: #000;
margin-bottom: 0;
}
}
2013-05-29 16:04:14 +04:00
@media only screen and (min-width: 1200px) {
.span4 .vert2 {
.widget-stats {
span {
2013-05-11 20:44:25 +04:00
font-size: 2.6em;
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
font-size: 1.2em;
}
}
2013-05-29 16:04:14 +04:00
span:first-child {
2013-05-11 20:44:25 +04:00
font-size: 12.4em;
}
}
}
}
// Time & Date Box
2013-05-29 16:04:14 +04:00
.time-date {
.time {
2013-05-11 20:44:25 +04:00
font-size: 7.4em;
line-height: 0.7em;
border-bottom: 1px solid $lightgrey;
2013-05-29 16:04:14 +04:00
span {
2013-05-11 20:44:25 +04:00
font-size: 0.2em;
color: $grey;
text-transform: uppercase;
font-style: normal;
}
2013-05-29 16:04:14 +04:00
@media only screen and (min-width: 1400px) {
span {
2013-05-11 20:44:25 +04:00
font-size: 0.3em;
}
}
}
2013-05-29 16:04:14 +04:00
.date {
2013-05-11 20:44:25 +04:00
font-size: 2.2em;
line-height: 1em;
font-weight: bold;
color: #000;
padding: 15px 0;
2013-05-29 16:04:14 +04:00
span {
2013-05-11 20:44:25 +04:00
font-size: 0.7em;
font-weight: normal;
display: block;
line-height: 1em;
color: $grey;
}
}
}
// Post Statuses Box
2013-05-29 16:04:14 +04:00
.post-statuses {
.status-levels {
2013-05-11 20:44:25 +04:00
width: 30%;
2013-05-29 16:04:14 +04:00
div {
2013-05-11 20:44:25 +04:00
text-indent: -9999px;
}
}
2013-05-29 16:04:14 +04:00
.status-text {
2013-05-11 20:44:25 +04:00
width: 70%;
text-transform: uppercase;
font-size: 1.2em;
color: $grey;
2013-05-29 16:04:14 +04:00
div {
2013-05-11 20:44:25 +04:00
background: none;
padding: 15px 0;
}
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
font-size: 1.6em;
width: 60px;
padding-right: 5px;
text-align: right;
display: inline-block;
}
}
2013-05-29 16:04:14 +04:00
.scheduled {
2013-05-11 20:44:25 +04:00
background: $green;
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
color: $green;
}
}
2013-05-29 16:04:14 +04:00
.pending {
2013-05-11 20:44:25 +04:00
background: #fcd039;
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
color: #fcd039;
}
}
2013-05-29 16:04:14 +04:00
.draft {
2013-05-11 20:44:25 +04:00
background: $red;
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
color: $red;
}
}
}
2013-05-29 16:04:14 +04:00
.todays-traffic {
ul {
li {
2013-05-11 20:44:25 +04:00
position: relative;
padding: 10px;
margin-bottom: 1px;
2013-05-29 16:04:14 +04:00
div {
2013-05-11 20:44:25 +04:00
position: relative;
z-index: 99;
}
}
2013-05-29 16:04:14 +04:00
li:before {
2013-05-11 20:44:25 +04:00
content: '';
position: absolute;
height: 34px;
top: 0;
left: 0;
z-index: 20;
}
2013-05-29 16:04:14 +04:00
li:nth-child(1):before {
2013-05-11 20:44:25 +04:00
background: $blue;
width: 80%;
}
2013-05-29 16:04:14 +04:00
li:nth-child(2):before {
2013-05-11 20:44:25 +04:00
background: lighten($blue, 3%);
width: 60%;
}
2013-05-29 16:04:14 +04:00
li:nth-child(3):before {
2013-05-11 20:44:25 +04:00
background: lighten($blue, 6%);
width: 40%;
}
2013-05-29 16:04:14 +04:00
li:nth-child(4):before {
2013-05-11 20:44:25 +04:00
background: lighten($blue, 10%);
width: 20%;
}
}
}
2013-05-29 16:04:14 +04:00
.table {
2013-05-11 20:44:25 +04:00
width: 100%;
display: block;
margin-bottom: 10px;
2013-05-29 16:04:14 +04:00
thead, tbody, tr {
2013-05-11 20:44:25 +04:00
display: block;
}
2013-05-29 16:04:14 +04:00
@media only screen and (min-width: 400px) {
thead {
2013-05-11 20:44:25 +04:00
display: none;
}
}
2013-05-29 16:04:14 +04:00
tbody {
tr {
2013-05-11 20:44:25 +04:00
background: $lightbrown;
margin-top: 5px;
display: block;
position: relative;
2013-05-29 16:04:14 +04:00
&:first-child {
2013-05-11 20:44:25 +04:00
margin-top: 0;
}
}
2013-05-29 16:04:14 +04:00
@media only screen and (min-width: 1200px) {
tr {
2013-05-11 20:44:25 +04:00
padding: 0 10px 0 40px;
margin-top: 15px;
}
}
2013-05-29 16:04:14 +04:00
td {
2013-05-11 20:44:25 +04:00
padding: 10px;
text-align: right;
color: $grey;
2013-05-29 16:04:14 +04:00
strong {
2013-05-11 20:44:25 +04:00
color: #000;
}
2013-05-29 16:04:14 +04:00
span {
2013-05-11 20:44:25 +04:00
display: none;
}
2013-05-29 16:04:14 +04:00
@media only screen and (min-width: 500px) {
span {
2013-05-11 20:44:25 +04:00
display: inline;
}
}
2013-05-29 16:04:14 +04:00
.callout {
2013-05-11 20:44:25 +04:00
color: $green;
}
2013-05-29 16:04:14 +04:00
&:first-child {
2013-05-11 20:44:25 +04:00
text-align: left;
}
}
}
2013-05-29 16:04:14 +04:00
.user-img {
2013-05-11 20:44:25 +04:00
position: absolute;
top: 0;
left: 0;
display: none;
}
2013-05-29 16:04:14 +04:00
@media only screen and (min-width: 1200px) {
.user-img {
2013-05-11 20:44:25 +04:00
display: block;
}
}
}
*/