1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
@use "../abstracts/functions" as fun;
@use "../abstracts/mixins" as mix;
.header {
background: fun.get-var(color-bg-secondary);
overflow-y: auto;
padding: fun.get-var(spacing-md)
clamp(#{fun.get-var(spacing-md)}, 3vw, #{fun.get-var(spacing-lg)});
scrollbar-color: fun.get-var(color-primary-light-opacity)
fun.get-var(color-bg-tertiary);
z-index: 5;
@include mix.media("screen") {
@include mix.dimensions("lg") {
box-shadow: 0 -1px 2px 0 fun.get-var(color-shadow);
}
}
}
.branding {
margin-bottom: clamp(
#{fun.get-var(spacing-sm)},
3vw,
#{fun.get-var(spacing-md)}
);
text-align: center;
&__title {
font-family: fun.get-var(font-family-secondary);
font-size: clamp(
#{fun.get-var(font-size-2xl)},
5vw,
#{fun.get-var(font-size-3xl)}
);
font-weight: 500;
margin: fun.get-var(spacing-xs) 0 fun.get-var(spacing-3xs);
}
&__link {
background: linear-gradient(
to top,
fun.get-var(color-primary-light) fun.convert-px(5),
transparent fun.convert-px(5)
)
center / 0 100% no-repeat;
text-decoration: none;
transition: all 0.5s ease-in-out 0s;
&:hover,
&:focus {
background-size: 100% 100%;
}
&:active {
background-size: 0 100%;
}
}
&__description {
font-family: fun.get-var(font-family-secondary);
font-size: clamp(
#{fun.get-var(font-size-md)},
3vw,
#{fun.get-var(font-size-lg)}
);
font-weight: 400;
letter-spacing: fun.convert-px(1);
margin: 0;
text-transform: uppercase;
}
}
.logo {
margin: auto;
position: relative;
width: max-content;
&__image {
backface-visibility: hidden;
border: fun.convert-px(3) solid fun.get-var(color-border-light);
border-radius: 50%;
box-shadow: 0 0 fun.convert-px(6) fun.convert-px(1)
fun.get-var(color-shadow-darker);
left: 0;
position: absolute;
top: 0;
width: 100%;
&--back {
transform: rotateY(180deg);
}
}
&__link {
display: block;
height: clamp(#{fun.convert-px(75)}, 15vmin, #{fun.convert-px(90)});
transform-style: preserve-3d;
transition: all 0.6s linear 0s;
width: clamp(#{fun.convert-px(75)}, 15vmin, #{fun.convert-px(90)});
&:hover,
&:focus {
outline: none;
transform: rotateY(180deg);
}
&:hover &,
&:focus & {
&__image {
&--front {
transform: none;
}
&--back {
transform: rotateY(180deg);
}
}
}
&:focus & {
&__image {
box-shadow: 0 0 fun.convert-px(6) fun.convert-px(1)
fun.get-var(color-shadow-dark),
0 0 0 fun.convert-px(5) fun.get-var(color-primary-light-opacity);
outline: none;
}
}
&:active & {
&__image {
box-shadow: 0 0 fun.convert-px(6) fun.convert-px(1)
fun.get-var(color-shadow-dark),
0 0 0 fun.convert-px(7) fun.get-var(color-primary-light-opacity);
}
}
}
&:hover & {
&__link {
transform: rotateY(180deg);
}
}
}
|