hometown/app/assets/stylesheets/admin.scss

182 lines
3.0 KiB
SCSS
Raw Normal View History

2016-12-13 12:42:10 +00:00
.admin-wrapper {
display: flex;
justify-content: center;
2016-12-13 12:42:10 +00:00
height: 100%;
.sidebar-wrapper {
flex: 1;
height: 100%;
background: $color1;
display: flex;
justify-content: flex-end;
}
2016-12-13 12:42:10 +00:00
.sidebar {
width: 240px;
height: 100%;
padding: 20px 0;
2016-12-13 12:42:10 +00:00
.logo {
display: block;
margin: 40px auto;
width: 100px;
height: 100px;
}
ul {
list-style: none;
border-radius: 4px 0 0 4px;
overflow: hidden;
2016-12-13 12:42:10 +00:00
a {
display: block;
padding: 15px 25px;
color: rgba($color5, 0.7);
2016-12-13 12:42:10 +00:00
text-decoration: none;
transition: all 200ms linear;
border-radius: 4px 0 0 4px;
2016-12-13 12:42:10 +00:00
i.fa {
margin-right: 5px;
}
&:hover {
color: $color5;
background-color: darken($color1, 5%);
2016-12-13 12:42:10 +00:00
transition: all 100ms linear;
}
&.selected {
background: darken($color1, 2%);
border-radius: 4px 0 0 0;
}
}
ul {
background: darken($color1, 4%);
border-radius: 0 0 0 4px;
a {
border: 0;
2016-12-13 12:42:10 +00:00
&.selected {
color: $color5;
background-color: $color4;
border-bottom: 0;
border-radius: 0;
&:hover {
background-color: lighten($color4, 5%);
}
2016-12-13 12:42:10 +00:00
}
}
}
}
}
.content-wrapper {
flex: 2;
}
2016-12-13 12:42:10 +00:00
.content {
max-width: 700px;
padding: 20px 15px;
padding-top: 60px;
padding-left: 25px;
h2 {
color: $color2;
font-size: 24px;
line-height: 28px;
font-weight: 400;
margin-bottom: 40px;
}
p {
font-size: 14px;
line-height: 18px;
color: $color2;
margin-bottom: 20px;
strong {
color: $color5;
font-weight: 500;
}
}
}
.simple_form {
max-width: 400px;
2016-12-13 12:42:10 +00:00
}
2017-01-28 20:57:03 +00:00
@media screen and (max-width: 600px) {
display: block;
overflow-y: auto;
.sidebar-wrapper, .content-wrapper {
flex: 0 0 auto;
height: auto;
}
.sidebar {
width: 100%;
padding: 10px 0;
height: auto;
.logo {
margin: 20px auto;
}
}
.content {
padding-top: 20px;
}
}
2016-12-13 12:42:10 +00:00
}
.filters {
display: flex;
margin-bottom: 20px;
.filter-subset {
flex: 0 0 auto;
margin-right: 40px;
ul {
margin-top: 5px;
list-style: none;
li {
display: inline-block;
margin-right: 5px;
}
}
strong {
font-weight: 500;
text-transform: uppercase;
font-size: 12px;
}
a {
display: inline-block;
color: rgba($color5, 0.7);
2016-12-13 12:42:10 +00:00
text-decoration: none;
text-transform: uppercase;
font-size: 12px;
font-weight: 500;
border-bottom: 2px solid $color1;
2016-12-13 12:42:10 +00:00
&:hover {
color: $color5;
border-bottom: 2px solid lighten($color1, 5%);
2016-12-13 12:42:10 +00:00
}
&.selected {
color: $color4;
border-bottom: 2px solid $color4;
2016-12-13 12:42:10 +00:00
}
}
}
}