Creates SCSS for admin

This commit is contained in:
Alberto Garcia Cabeza
2015-08-17 21:30:07 +02:00
parent 43ee2144c1
commit 0df1524f0d
2 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,153 @@
// Table of Contents
//
// 01. Global styles
// 02. Sidebar
// 03. List elements
//
// 01. Global styles
// - - - - - - - - - - - - - - - - - - - - - - - - -
body.admin {
background: white;
h2 {
font-size: rem-calc(24);
font-weight: bold;
}
form {
.button {
margin-top: 0;
}
}
.button.secondary {
margin-right: rem-calc(12);
}
.button.create {
background: #EFD90C;
color: $text;
&:hover {
background: #BDAB09;
}
}
.admin-content {
margin-top: rem-calc(24);
}
.is-featured {
margin-top: rem-calc(36);
}
}
// 02. Sidebar
// - - - - - - - - - - - - - - - - - - - - - - - - -
.admin-sidebar {
margin-left: rem-calc(-15);
margin-top: rem-calc(-48);
ul {
list-style-type: none;
margin-left: 0;
padding: 0;
[class^="icon-"] {
display: inline-block;
font-size: rem-calc(24);
padding-right: rem-calc(24);
padding-top: rem-calc(4);
}
li {
background: #2E343F;
border-bottom: 1px solid #292f39;
border-top: 1px solid #353c49;
margin: 0;
outline: 0;
&:first-child {
background: #2B3139;
color: rgba(255,255,255,0.3);
padding: rem-calc(24) rem-calc(12);
text-transform: uppercase;
}
&.active{
background: #373D47;
a:not(.button) {
color: white;
}
}
}
li a:not(.button) {
color: rgba(255,255,255,0.3);
line-height: rem-calc(48);
padding-left: rem-calc(12);
vertical-align: top;
&:hover {
color: white;
}
}
}
}
// 03. List elements
// - - - - - - - - - - - - - - - - - - - - - - - - -
.admin-list {
list-style-type: none;
margin: 0;
form {
clear: both;
.checkbox {
font-size: rem-calc(12);
}
}
li {
border-bottom: 1px solid #E7E9EC;
font-size: rem-calc(14);
min-height: rem-calc(72);
padding: rem-calc(12);
&:first-child {
border-top: 1px solid #E7E9EC;
}
&:nth-child(odd) {
background: #F0F2F6;
}
}
.tag {
float: left;
font-size: rem-calc(18);
padding: 0;
}
.button {
margin: 0;
}
}
.delete {
border-bottom: 1px dotted #CF2A0E;
color: #F04124;
font-size: rem-calc(11);
margin-right: rem-calc(12);
&:hover, &:active, &:focus {
border: 0;
color: #cf2a0e;
}
}

View File

@@ -6,5 +6,6 @@
@import "fonts";
@import "icons";
@import "variables";
@import "admin";
@import "participacion";
@import "debates";