This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/assets/less/yuuno/bem/header.less

115 lines
2.5 KiB
Text
Raw Normal View History

2016-11-08 19:56:37 +00:00
.header {
text-align: center;
background: linear-gradient(180deg, #C2AFFE, #CCBAFE);
box-shadow: 0 0 5px #8364A1;
&__logo {
background: none;
height: auto;
width: auto;
display: inline-block;
2016-11-13 23:29:31 +00:00
font: 100 70px/80px @cute-font;
2016-11-08 19:56:37 +00:00
color: #B06AC4;
2016-11-09 18:32:23 +00:00
text-decoration: none !important;
2016-11-08 19:56:37 +00:00
transition: color .2s, text-shadow .2s;
&:hover {
color: #C17BD5;
text-shadow: 0 0 .1em #C17BD5;
}
&:active {
color: #A059B3;
text-shadow: 0 0 .1em #A059B3;
}
@media (max-width: 768px) {
font-size: 50px;
line-height: 60px;
}
}
&__menu {
border-bottom: 2px solid #9475B2;
display: block;
&--left {
float: left;
}
&--right {
float: right;
}
&:after {
clear: both;
content: " ";
display: block;
height: 0;
visibility: hidden;
}
&-item {
margin: 0 7px -2px 6px;
display: inline-block;
border-bottom: 2px solid #8364A1;
text-align: center;
transition: background .3s, border-color .3s;
height: 30px;
width: 30px;
line-height: 30px;
vertical-align: middle;
font-size: 1.6em;
color: #75569B;
2016-11-09 18:32:23 +00:00
text-decoration: none !important;
2016-11-08 19:56:37 +00:00
background: linear-gradient(180deg, transparent 0%, transparent 50%, #8364A1 100%);
background-size: 100% 200%;
&:hover {
background-position: 0 50%;
}
&:active {
2016-11-09 18:32:23 +00:00
color: #75569B;
2016-11-08 19:56:37 +00:00
background-position: 0 100%;
}
&--avatar {
padding-left: 30px;
2016-11-09 18:32:23 +00:00
background-size: 100% 100%;
2016-11-08 19:56:37 +00:00
}
}
}
}
2016-11-09 18:32:23 +00:00
@media (max-width: 1064px) {
2016-11-08 19:56:37 +00:00
.header__menu {
border: 0;
padding: 10px 0 5px;
margin: 0 auto;
width: auto;
&-item {
border: 0;
height: 50px;
width: 50px;
line-height: 50px;
font-size: 2em;
display: inline-block;
&:hover {
background: transparent;
}
&:active {
background: #75569B;
2016-11-09 18:32:23 +00:00
color: #9475B2;
2016-11-08 19:56:37 +00:00
}
&--avatar {
padding-left: 50px;
}
}
}
}