You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

506 lines
9.6 KiB

@import "_fonts";
@import "_mixins";
11 years ago
11 years ago
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
11 years ago
body, html {
11 years ago
font-size: 14px;
11 years ago
line-height: 1.5;
font-family: OpenSans, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
11 years ago
font-weight: 300;
height: 100%;
11 years ago
margin: 0;
padding: 0;
11 years ago
background: $menu_color;
11 years ago
overflow: hidden;
}
body {
@include flexbox();
flex-flow: row nowrap;
}
a {
text-decoration: none;
10 years ago
cursor: pointer;
11 years ago
}
11 years ago
input, textarea, select {
font-size: 1em;
font-weight: 300;
11 years ago
padding: $padding/6 $padding/4;
11 years ago
background: $background_color;
border: 1px solid #f2f2f2;
11 years ago
}
11 years ago
.button {
color: $primary_color;
font-weight: 300;
padding: $padding/4;
cursor: pointer;
border: 1px solid $primary_color;
border-radius: $border_radius;
margin: 0 $padding/4;
&:hover {
background: $primary_color;
color: $background_color;
}
}
11 years ago
/* Header */
11 years ago
.header {
11 years ago
width: $header_width;
min-width: $header_width;
position: relative;
11 years ago
a {
color: #FFF;
letter-spacing: 1px;
}
.navigation {
.logo {
11 years ago
background: $primary_color;
11 years ago
display: block;
text-align: center;
11 years ago
position: relative;
11 years ago
11 years ago
font-family: Lobster, serif;
11 years ago
color: #FFF;
font-size: 38px;
11 years ago
line-height: $header_height;
height: $header_height;
11 years ago
11 years ago
span {
position: absolute;
11 years ago
display: block;
11 years ago
height: 100%;
left: 50%;
@include transition(all 200ms $cubic);
@include translateX(-50%);
&:nth-child(even){
@include translateX(45%);
opacity: 0;
}
11 years ago
}
11 years ago
&:hover {
span{
@include translateX(-153%);
opacity: 0;
&:nth-child(even){
@include translateX(-50%);
opacity: 1;
}
}
11 years ago
}
}
11 years ago
11 years ago
ul {
padding: 0;
margin: 0;
li a {
11 years ago
padding: $padding/2 $padding;
11 years ago
display: block;
}
}
}
11 years ago
.menu, .search_form, .notification_menu {
position: absolute;
11 years ago
z-index: 200;
11 years ago
bottom: $padding / 3;
width: 44px;
height: 44px;
> a {
display: inline-block;
height: 100%;
width: 100%;
text-align: center;
line-height: 44px;
}
}
.notification_menu {
left: 50%;
@include translateX(-50%);
.button:before {
font-size: 20px;
top: -2px;
}
11 years ago
.wrapper {
width: 320px;
}
11 years ago
ul {
min-height: 60px;
max-height: 300px;
overflow: auto;
&:empty:after {
content: 'No notifications (yet)';
width: 100%;
position: absolute;
11 years ago
line-height: 60px;
11 years ago
font-size: 15px;
font-style: italic;
opacity: .4;
11 years ago
left: $padding * 2;
11 years ago
}
&:empty:before {
content: '\e808';
font-family: "icons";
11 years ago
height: 100%;
line-height: 60px;
margin-left: $padding;
text-align: center;
opacity: .4;
11 years ago
}
}
}
.menu {
left: $padding / 3;
.button:before {
font-size: 20px;
top: -2px;
}
}
.search_form {
right: $padding / 3;
}
.more_menu {
.wrapper {
bottom: 0;
left: 44px;
right: auto;
11 years ago
padding-left: 4px;
11 years ago
}
}
11 years ago
}
11 years ago
/* Content */
11 years ago
.content {
@include flex(1 auto);
11 years ago
background: $background_color;
11 years ago
border-radius: $border_radius 0 0 $border_radius;
11 years ago
overflow: hidden;
h1, h2, h3 {
padding: 0;
margin: 0;
}
11 years ago
.pages {
height: 100%;
11 years ago
width: 100%;
11 years ago
overflow: hidden;
position: relative;
11 years ago
}
.footer {
position: fixed;
bottom: 0;
11 years ago
height: $padding;
11 years ago
width: 100%;
11 years ago
}
}
11 years ago
/* Page */
11 years ago
.page {
11 years ago
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
11 years ago
display: none;
11 years ago
padding: $padding 0;
11 years ago
overflow: auto;
11 years ago
11 years ago
&.active {
display: block;
}
11 years ago
.navigation {
@include flexbox();
position: fixed;
top: 0;
11 years ago
height: $header_height;
left: $header_width;
11 years ago
right: 0;
background: $background_color;
11 years ago
border-radius: $border_radius 0 0 0;
11 years ago
z-index: 100;
ul {
@include flex(1 auto);
list-style: none;
li {
display: inline-block;
a {
font-size: 24px;
11 years ago
line-height: $header_height;
11 years ago
padding: $padding;
color: rgba(0,0,0,.5);
}
}
11 years ago
.active a {
color: #000;
}
11 years ago
}
}
11 years ago
}
11 years ago
/* Page levels */
@for $i from 1 through 4 {
.level_#{$i} {
z-index: #{$i * 10};
}
11 years ago
}
11 years ago
/* Menu basis */
.more_menu {
position: relative;
line-height: 1em;
.button {
font-size: 24px;
cursor: pointer;
display: inline-block;
&:before {
position: relative;
}
}
.wrapper {
display: none;
position: absolute;
right: 0;
11 years ago
background: $primary_color;
11 years ago
z-index: 5000;
11 years ago
box-shadow: 0 0 15px 2px rgba(0,0,0,.15);
border-radius: $border_radius 0 0 $border_radius;
11 years ago
&:before {
@include transform(rotate(45deg) translateY(-60%));
content: '';
display: block;
position: absolute;
11 years ago
background: $primary_color;
height: 10px;
width: 10px;
left: -9px;
bottom: 11px;
11 years ago
z-index: 1;
opacity: 0;
11 years ago
border-radius: 2px;
// border: 8px solid $primary_color;
// border-color: transparent $primary_color transparent transparent;
11 years ago
}
ul {
11 years ago
@include transform(translateZ(0));
background: $background_color;
11 years ago
position: relative;
z-index: 2;
overflow: hidden;
11 years ago
border-radius: $border_radius 0 0 $border_radius;
11 years ago
}
11 years ago
ul li {
11 years ago
display: block;
line-height: 1em;
a {
display: block;
color: $text_color;
padding: $padding/4 $padding/2;
11 years ago
font-size: 1em;
line-height: 22px;
11 years ago
white-space: nowrap;
11 years ago
}
&:first-child a {
padding-top: $padding/2;
}
&:last-child a {
padding-bottom: $padding/2;
}
}
}
&.show {
.wrapper {
display: block;
&:before {
opacity: 1;
}
}
}
11 years ago
}
11 years ago
11 years ago
/* Messages */
.messages {
position: fixed;
right: 0;
bottom: 0;
width: 320px;
z-index: 20;
overflow: hidden;
font-size: 14px;
font-weight: bold;
padding: 5px;
.message {
overflow: hidden;
transition: all .6s cubic-bezier(0.9,0,0.1,1);
width: 100%;
position: relative;
max-height: 0;
font-size: 1.1em;
font-weight: normal;
transform: scale(0);
background: $primary_color;
margin-bottom: 4px;
border-radius: $border_radius;
box-shadow: 0 0 15px 2px rgba(0,0,0,.15);
.inner {
padding: 15px 30px 15px 20px;
background: $background_color;
margin-bottom: 4px;
border-radius: $border_radius;
}
&.sticky {
background-color: $primary_color;
}
&.show {
max-height: 100px;
transform: scale(1);
}
&.hide {
max-height: 0;
padding: 0 20px;
margin: 0;
transform: scale(0);
}
}
11 years ago
11 years ago
.close {
position: absolute;
padding: 10px 8px;
top: 0;
right: 0;
color: #FFF;
}
}
/* Mask */
11 years ago
.mask{
11 years ago
background: rgba(0,0,0, .8);
11 years ago
z-index: 100;
text-align: center;
11 years ago
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
11 years ago
$spinner_size: 22px;
.spinner {
position: absolute;
top: 50%;
left: 50%;
width: $spinner_size;
height: $spinner_size;
display: block;
background: white;
margin-top: -($spinner_size/2);
margin-left: -($spinner_size/2);
outline: 1px solid transparent;
11 years ago
@include animation(rotating 2.5s $cubic infinite normal);
11 years ago
}
}
@keyframes rotating {
0% {
11 years ago
@include transform(rotate(0deg) scale(1.6));
border-radius: 1px;
11 years ago
}
11 years ago
48% {
11 years ago
@include transform(rotate(360deg) scale(1));
border-radius: 50%;
}
11 years ago
52% {}
11 years ago
100% {
11 years ago
@include transform(rotate(720deg) scale(1.6));
border-radius: 1px;
}
}
.table {
.head {
font-weight: bold;
}
.item {
@include flexbox();
border-bottom: 1px solid rgba(0,0,0,.2);
&:last-child {
border-bottom: none;
}
span {
padding: 1px 2px;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
11 years ago
}
}