Cleans admin.scss

This commit is contained in:
Alberto Garcia Cabeza
2016-06-01 18:10:14 +02:00
parent 5bd7bbee4f
commit 9e31eeefad

View File

@@ -24,6 +24,7 @@ body.admin {
} }
form { form {
.button { .button {
margin-top: 0; margin-top: 0;
} }
@@ -38,23 +39,34 @@ body.admin {
table { table {
th {
text-align: left;
}
tr { tr {
background: #f4f4f4;
&:nth-child(odd) {
background: white; background: white;
} border: 1px solid $border;
&:nth-child(even) { &:hover {
background: #f0f0f0; background: #f3f6f7;
} }
} }
td.small { input[type="submit"] ~ a, a ~ a {
font-size: $small-font-size; margin-left: $line-height/2;
margin-right: $line-height/2;
} }
} }
hr {
max-width: none;
}
.menu.simple li.active {
border-bottom: 2px solid $admin-color;
color: $admin-color;
}
#proposals { #proposals {
width: 100% !important; width: 100% !important;
} }
@@ -95,13 +107,30 @@ body.admin {
padding: $line-height !important; padding: $line-height !important;
} }
@include breakpoint(medium) {
tr {
.on-hover {
display: none;
}
&:hover .on-hover {
display: inline;
}
}
}
// 02. Sidebar // 02. Sidebar
// ----------- // -----------
.admin-sidebar { .admin-sidebar {
border-bottom: 1px solid $border;
border-right: 1px solid $border; border-right: 1px solid $border;
@include breakpoint(medium) {
padding-bottom: $line-height*3;
}
ul { ul {
list-style-type: none; list-style-type: none;
margin-bottom: 0; margin-bottom: 0;
@@ -154,45 +183,6 @@ body.admin {
// 03. List elements // 03. List elements
// ----------------- // -----------------
.admin-list {
list-style-type: none;
margin: 0;
margin-bottom: rem-calc(48);
form {
clear: both;
.checkbox {
font-size: $small-font-size;
}
}
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 { .delete {
border-bottom: 1px dotted #CF2A0E; border-bottom: 1px dotted #CF2A0E;
color: $delete; color: $delete;
@@ -234,14 +224,9 @@ body.admin {
font-style: italic; font-style: italic;
} }
.level {
font-size: rem-calc(12);
}
.official { .official {
background-color: #e7e7e7; background-color: #e7e7e7;
border-radius: rem-calc(3); border-radius: rem-calc(3);
font-size: rem-calc(12);
font-weight: normal; font-weight: normal;
padding: rem-calc(6) rem-calc(12); padding: rem-calc(6) rem-calc(12);
} }
@@ -257,13 +242,10 @@ body.admin {
.moderation-description { .moderation-description {
max-height: rem-calc(65); max-height: rem-calc(65);
overflow: hidden; overflow: hidden;
max-width: rem-calc(590); max-width: rem-calc(700);
&:hover { &:hover {
cursor: text;
max-height: rem-calc(1000); max-height: rem-calc(1000);
outline: 3px solid #ffbf47;
padding: rem-calc(12);
transition: max-height 0.9s; transition: max-height 0.9s;
-moz-transition: max-height 0.9s; -moz-transition: max-height 0.9s;
-webkit-transition: max-height 0.9s; -webkit-transition: max-height 0.9s;
@@ -332,8 +314,8 @@ body.admin {
border-radius: rem-calc(3); border-radius: rem-calc(3);
font-size: rem-calc(16); font-size: rem-calc(16);
font-weight: normal; font-weight: normal;
margin-bottom: rem-calc(12); margin: $line-height;
padding: rem-calc(6) rem-calc(12); padding: $line-height/2;
strong { strong {
font-size: rem-calc(18); font-size: rem-calc(18);