MeikanClient/sass/base.scss
2017-03-29 01:11:02 +02:00

238 lines
4.8 KiB
SCSS

@font-face
{
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
{
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';
*
{
box-sizing: border-box;
}
html,
body
{
font-family: 'Roboto', sans-serif;
height: 100%;
margin: 0;
}
body
{
&:after
{
position: absolute;
top: 65px;
left: 0;
width: 100%;
height: calc(100% - 65px);
content: '';
opacity: .05;
background: url('/static/img/bg.svg');
background-size: cover;
}
.material-icons
{
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
{
position: relative;
width: 1240px;
margin: 0 auto;
}
.menu
{
font-size: 0;
position: relative;
z-index: 2;
height: 65px;
margin: 0;
padding: 0;
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;
display: inline-block;
height: 100%;
padding: 0 30px;
transition: background .1s, color .1s;
vertical-align: middle;
text-decoration: none;
color: rgba(0,0,0,.52);
&:first-child
{
font-size: 30px;
font-variant: normal;
padding-left: 0;
color: #ff4081;
> i {
height: inherit;
line-height: inherit;
vertical-align: top;
font-size: 30px;
}
> span
{
margin-left: 10px;
}
}
&:not(:first-child):hover,
&:not(:first-child).open
{
color: #fff;
background: #ff4081;
}
}
}
.submenu
{
position: relative;
z-index: 1;
overflow: hidden;
width: 100%;
height: 0;
transition: height .5s;
background: #212121;
box-shadow: inset 0 3px 6px rgba(0,0,0,.23);
will-change: height;
&.open
{
height: 350px;
}
.container
{
height: 350px;
.group
{
position: absolute;
top: 0;
left: 0;
display: flex;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
&.open
{
opacity: 1;
}
.column
{
display: flex;
flex-direction: column;
margin: 20px 10px;
color: #fff;
flex: 1;
.groupTitle
{
line-height: 20px;
max-height: 20px;
}
> *
{
display: flex;
height: 100%;
}
ul
{
display: flex;
flex-direction: column;
margin: 20px 0 0 10px;
padding: 10px 20px;
list-style: none;
border-left: 2px rgba(255,255,255,.1) solid;
li
{
position: relative;
flex: 1;
.title
{
font-size: 16px;
display: block;
margin-bottom: 3px;
color: #ff80ab;
}
.info
{
font-size: .8em;
font-weight: light;
color: #aaa;
}
}
}
}
}
}
}
}