MeikanClient/sass/base.scss

218 lines
5.1 KiB
SCSS
Raw Normal View History

@font-face {
2017-03-29 01:06:21 +02:00
font-family: 'Roboto';
font-weight: 400;
font-style: normal;
src: local('Roboto'), local('Roboto-Regular'), url(/static/fonts/roboto.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
2017-03-29 01:06:21 +02:00
font-family: 'Material Icons';
font-weight: 400;
font-style: normal;
src: local('Material Icons'), local('MaterialIcons-Regular'), url(/static/fonts/material-icons.woff2) format('woff2');
}
@import 'variables';
* {
2017-03-29 01:06:21 +02:00
box-sizing: border-box;
}
html,
body {
2017-03-29 01:06:21 +02:00
font-family: 'Roboto', sans-serif;
height: 100%;
margin: 0;
}
body {
&:after {
position: fixed;
top: 0;
2017-03-29 01:06:21 +02:00
left: 0;
z-index: -1;
2017-03-29 01:06:21 +02:00
width: 100%;
height: 100%;
2017-03-29 01:06:21 +02:00
content: '';
opacity: .05;
background: url('/static/img/bg.svg');
background-size: cover;
}
.material-icons {
2017-03-29 01:06:21 +02:00
font-family: 'Material Icons';
font-size: 24px;
font-weight: normal;
font-style: normal;
line-height: 1;
display: inline-block;
white-space: nowrap;
letter-spacing: normal;
text-transform: none;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
.container {
2017-03-29 01:06:21 +02:00
position: relative;
width: 1240px;
margin: 0 auto;
}
.menu {
font-size: 0;
position: relative;
z-index: 2;
2017-03-29 01:06:21 +02:00
height: 65px;
margin: 0;
padding: 0;
2017-03-29 01:06:21 +02:00
background: #fff;
box-shadow: 0 3px 6px rgba(0,0,0,.23), 0 3px 6px rgba(0,0,0,.16);
a {
font-size: 22px;
font-variant: small-caps;
line-height: 65px;
2017-03-29 01:06:21 +02:00
display: inline-block;
2017-03-29 01:06:21 +02:00
height: 100%;
padding: 0 30px;
2017-03-29 01:06:21 +02:00
transition: background .1s, color .1s;
vertical-align: middle;
text-decoration: none;
2017-03-29 01:06:21 +02:00
color: rgba(0,0,0,.52);
&:first-child {
font-size: 30px;
font-variant: normal;
2017-03-29 01:06:21 +02:00
padding-left: 0;
2017-03-29 01:06:21 +02:00
color: $pink;
> i {
font-size: 30px;
line-height: inherit;
2017-03-29 01:06:21 +02:00
height: inherit;
vertical-align: top;
}
> span {
margin-left: 10px;
}
2017-03-29 01:06:21 +02:00
}
&:not(:first-child):hover,
&:not(:first-child).open {
color: #fff;
background: $pink;
2017-03-29 01:06:21 +02:00
}
}
}
.submenu {
position: absolute;
z-index: 1;
top: 65px;
2017-03-29 01:06:21 +02:00
overflow: hidden;
2017-03-29 01:06:21 +02:00
width: 100%;
height: 0;
2017-03-29 01:06:21 +02:00
transition: height .5s;
2017-03-29 01:06:21 +02:00
background: #212121;
box-shadow: inset 0 3px 6px rgba(0,0,0,.23);
2017-03-29 01:06:21 +02:00
will-change: height;
&.open {
height: 350px;
}
.container {
height: 350px;
.group {
position: absolute;
top: 0;
left: 0;
2017-03-29 01:06:21 +02:00
display: flex;
width: 100%;
height: 100%;
2017-03-29 01:06:21 +02:00
pointer-events: none;
2017-03-29 01:06:21 +02:00
opacity: 0;
&.open {
opacity: 1;
2017-03-29 01:06:21 +02:00
}
.column {
2017-03-29 01:06:21 +02:00
display: flex;
flex-direction: column;
margin: 20px 10px;
2017-03-29 01:06:21 +02:00
color: #fff;
2017-03-29 01:06:21 +02:00
flex: 1;
.groupTitle {
line-height: 20px;
2017-03-29 01:06:21 +02:00
max-height: 20px;
}
> * {
display: flex;
2017-03-29 01:06:21 +02:00
height: 100%;
}
ul {
display: flex;
flex-direction: column;
2017-03-29 01:06:21 +02:00
margin: 20px 0 0 10px;
padding: 10px 20px;
2017-03-29 01:06:21 +02:00
list-style: none;
border-left: 2px rgba(255,255,255,.1) solid;
li {
position: relative;
2017-03-29 01:06:21 +02:00
flex: 1;
.title {
font-size: 16px;
display: block;
margin-bottom: 3px;
color: #ff80ab;
}
.info {
font-size: .8em;
font-weight: light;
color: #aaa;
}
2017-03-29 01:06:21 +02:00
}
}
}
}
}
}
}