123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- .header-layout.active {
- $bgcolor: #101010;
- $color: #fff;
- $activeColor: #7f7f7f;
- .logo .icon-logo_b {
- color: $color;
- }
- .ctrl a {
- &.user {
- background-color: $color;
- color: $bgcolor
- }
- &.search i{
- color: $color
- }
- span {
- color: $bgcolor;
- }
- }
- .menu {
- .lang a{
- color: $activeColor;
- &.active {
- color: $color;
- }
- &::hover{
- color: $color;
- }
- }
- .list {
- // border-left: 1px solid $color;
- a {
- color: $color;
- &::after {
- border-top-color: $color !important;
- }
- &.active {
- color: $activeColor;
- &::after {
- border-top-color: $activeColor !important;
- }
- }
- }
- }
- }
- &::after {
- bottom: 0;
- }
- }
- .header-layout {
- $bgcolor: #fff;
- $color: #101010;
- $activeColor: #7f7f7f;
- $margin: 25px;
- $lrwidth: 340px;
- $ts: all .7s cubic-bezier(.77,0,.175,1);
- justify-content: space-between;
- background-color: $bgcolor;
- display: flex;
- .logo .icon-logo_b {
- transition: $ts;
- color: $color;
- }
- .ctrl a {
- &.user {
- background-color: $color;
- transition: $ts;
- color: $bgcolor
- }
- &.search i{
- color: $color;
- transition: $ts;
- }
- span {
- color: $bgcolor;
- transition: $ts;
- }
- }
- .menu {
- .lang a{
- transition: $ts;
- color: $activeColor;
- &:hover{
- color: $activeColor;
- }
- &.active {
- color: $color;
- }
- }
- .list {
- border-left: 1px solid $activeColor;
- transition: $ts;
- a {
- transition: $ts;
- color: $color;
- &::after {
- transition: $ts;
- border-top-color: $color !important;
- }
- &.active {
- color: $activeColor;
- &::after {
- transition: $ts;
- border-top-color: $activeColor !important;
- }
- }
- }
- }
- }
- &::after {
- transition: $ts;
- content: '';
- position: absolute;
- left: 0;
- right: 0;
- bottom: 100%;
- height: 100%;
- background-color: $color;
- z-index: 1
- }
- .logo-layout {
- flex: 0 1 340px;
- text-align: center;
-
- .logo {
- width: 150px;
- z-index: 2;
- position: relative;
- height: 100%;
- display: inline-block;
- i {
- position: absolute;
- left: 50%;
- top: 60%;
- transform: translateX(-50%) translateY(-50%);
- }
- .icon-logo_b {
- font-size: 110px;
- }
- .icon-logo_a {
- font-size: 40px;
- margin-left: -48px;
- margin-top: -6px;
- color: #1fe4dc;
- }
- }
- }
- .ctrl {
- z-index: 2;
- text-align: right;
- flex: 0 0 auto;
- a {
- display: inline-block;
- text-decoration: none;
- padding: 0 14px;
- height: 100%;
- i, span {
- display: inline-block;
- vertical-align: middle;
- }
- i {
- font-size: 24px;
- }
- span {
- font-size: 16px;
- margin-left: 4px;
- font-weight: bold;
- }
- }
- .search {
- position: relative;
- .hide, .open {
- transition: $ts
- }
- .open {
- opacity: 1;
- transform: scale(1);
- }
- .hide {
- position: absolute;
- opacity: 0;
- transform: scale(0);
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- font-size: 16px;
- }
- &.active {
- .open {
- opacity: 0;
- transform: scale(0);
- }
- .hide {
- opacity: 1;
- transform: scale(1) translateX(-50%) translateY(-50%);;
- }
- }
- }
- }
- .menu {
- z-index: 2;
- $lwidth: 260px;
- padding-left: $lwidth;
- position: relative;
- flex: 1;
- .lang {
- box-sizing: border-box;
- position: absolute;
- width: $lwidth;
- padding-left: 60px;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- a {
- display: inline-block;
- font-size: 16px;
- font-weight: bold;
- margin-left: 5px;
- &:hover{
- color: $activeColor;
- }
- }
- }
- .list {
- padding: 0 20px;
- a {
- display: inline-block;
- padding: $margin 20px $margin 0;
- margin-right: 50px;
- font-size: 16px;
- text-decoration: none;
- font-weight: bold;
- position: relative;
- &::after {
- display: none;
- content: '';
- border: 6px solid transparent;
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- }
- &:last-child {
- margin-right: 0;
- }
- }
- }
- }
- }
|