246 lines
4.0 KiB
SCSS
246 lines
4.0 KiB
SCSS
.header-wrap {
|
|
margin: 30px 0 0 0;
|
|
width: 1080px;
|
|
height: 130px;
|
|
background-color: rgba(73, 87, 184, 1);
|
|
background-image: url(../img/new-site/dot.svg);
|
|
box-shadow: 0px 10px 14px 0px rgba(79,90,166,0.35);
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
transform: translate3d(0, 0, 0);
|
|
transition: transform .6s ease, opacity .3s ease;
|
|
}
|
|
|
|
.header {
|
|
position: absolute;
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
z-index: 900;
|
|
top: 40px;
|
|
left: 0;
|
|
}
|
|
|
|
.header__inner {
|
|
width: 1012px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
a.logo {
|
|
display: flex;
|
|
width: 260px;
|
|
flex-wrap: nowrap; //default
|
|
justify-content: flex-start; //default
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.logo__icon {
|
|
height: 58px;
|
|
width: 58px;
|
|
background-image: url(../img/new-site/logo3.png);
|
|
background-size: 58px;
|
|
background-position: left;
|
|
}
|
|
|
|
.logo_text {
|
|
margin: 2px 0 0 8px;
|
|
}
|
|
|
|
.logo__title {
|
|
display: block;
|
|
font-family:$PostGroteskMedium;
|
|
font-size: 22px;
|
|
line-height: 25px;
|
|
color: $colorWhite;
|
|
}
|
|
|
|
.logo__description {
|
|
display: block;
|
|
font-size: 15px;
|
|
line-height: 25px;
|
|
color: $colorWhite;
|
|
opacity: .5
|
|
}
|
|
|
|
.nav a {
|
|
font-family:$PostGroteskMedium;
|
|
font-size: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 15px 15px;
|
|
}
|
|
|
|
.header .nav a {
|
|
color: $colorWhite;
|
|
}
|
|
|
|
.header .nav a.nav__item--blog::before {
|
|
content: "";
|
|
width: 16px;
|
|
height: 16px;
|
|
background-image: url(../img/new-site/icon_external.png);
|
|
background-size: 16px;
|
|
opacity: 0;
|
|
transform: translate3d(5px, 0, 0) rotate(5deg);
|
|
margin: 0 10px 0 0;
|
|
transition: transform .2s ease, opacity .2s ease;
|
|
}
|
|
|
|
.header .nav a.nav__item--blog:hover::before {
|
|
transform: translate3d(0, 0, 0) rotate(0deg);
|
|
opacity: .4;
|
|
}
|
|
|
|
.nav a:hover {
|
|
opacity: .9;
|
|
}
|
|
|
|
.shares {
|
|
width: 260px;
|
|
height: 50px;
|
|
}
|
|
|
|
.social-links {
|
|
display: flex;
|
|
justify-content: center
|
|
}
|
|
|
|
.shares .social-links {
|
|
justify-content:flex-end;
|
|
}
|
|
|
|
.social-links li.social-link {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
li.social-link a {
|
|
display: block;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background-color: #3F4A97;
|
|
background-repeat: no-repeat;
|
|
background-size: 20px;
|
|
background-position: center;
|
|
transition: transform .2s ease;
|
|
cursor: pointer;
|
|
box-shadow: 0 10px 10px 0 rgba(62,76,167,0.25);
|
|
}
|
|
|
|
.social-link.social-link--fb a {
|
|
background-color: #4675DF;
|
|
background-image: url(../img/new-site/icon_fb3.svg);
|
|
}
|
|
|
|
.social-link.social-link--tw a {
|
|
background-color: #4DB9FE;
|
|
background-image: url(../img/new-site/icon_tw.svg);
|
|
}
|
|
|
|
.social-link.social-link--sl a {
|
|
background-color: #E3306D;
|
|
background-image: url(../img/new-site/icon_sl.svg);
|
|
}
|
|
|
|
.social-link.social-link--gh a {
|
|
background-color: #535353;
|
|
background-image: url(../img/new-site/icon_gh.svg);
|
|
}
|
|
|
|
.social-link.social-link--rd a {
|
|
background-color: #FF4501;
|
|
background-image: url(../img/new-site/icon_rd.svg);
|
|
}
|
|
|
|
.social-link:hover a {
|
|
transform: scale(1.06)
|
|
}
|
|
|
|
@media (max-width: 1140px) {
|
|
|
|
.header {
|
|
top: 0;
|
|
}
|
|
|
|
.header__inner {
|
|
width: 100%;
|
|
margin: 40px;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-wrap {
|
|
margin: 0 0 0 0;
|
|
width: 100%;
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.nav {
|
|
display: none;
|
|
}
|
|
|
|
a.logo,
|
|
.shares {
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 840px) {
|
|
.header__inner {
|
|
margin: 30px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.header__inner {
|
|
margin: 20px 20px 20px 17px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.header-wrap {
|
|
height: 92px;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.logo__icon {
|
|
height: 48px;
|
|
width: 48px;
|
|
background-size: 48px;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
}
|
|
|
|
.logo__title {
|
|
font-size: 18px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.logo__description {
|
|
font-size: 14px;
|
|
line-height: 15px;
|
|
}
|
|
|
|
.logo__description span{
|
|
display: none;
|
|
}
|
|
|
|
.logo_text {
|
|
margin: 0px 0 0 4px;
|
|
}
|
|
|
|
.shares .social-links li.social-link {
|
|
margin: 0 0 0 7px;
|
|
}
|
|
|
|
.header .social-link.social-link--fb {
|
|
display: none;
|
|
}
|
|
}
|