-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
hero.scss
108 lines (91 loc) · 1.67 KB
/
hero.scss
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
@use "sass/utilities/css-variables" as cv;
@use "sass/utilities/mixins" as mx;
.bd-hero {
--scale: 1;
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: calc(var(--scale) * 1.5rem);
padding: calc(var(--scale) * 3rem);
text-align: center;
&.is-docs {
align-items: center;
flex-direction: row;
justify-content: flex-start;
padding: 0;
text-align: left;
.bd-hero-body {
flex-basis: 20em;
flex-grow: 1;
}
.bd-hr {
margin-left: 0;
}
.bd-hero-prints {
justify-content: flex-start;
}
}
}
@media screen and (min-width: 1000px) {
.bd-hero.is-docs {
flex-wrap: nowrap;
.bd-hero-title {
max-width: 80%;
}
}
}
@media screen and (min-width: 1200px) {
.bd-hero.is-docs {
flex-wrap: nowrap;
}
}
.bd-hero-title {
color: hsl(
cv.getVar("text-h"),
cv.getVar("text-s"),
cv.getVar("text-title-l")
);
font-size: calc(var(--scale) * 3rem);
font-weight: cv.getVar("weight-extrabold");
line-height: 1.125;
word-break: break-word;
a {
color: var(--theme-color);
}
}
.bd-hero-subtitle {
color: cv.getVar("text-weak");
font-size: calc(var(--scale) * 1.25em);
}
.bd-hero-prints {
display: flex;
gap: 1em;
justify-content: center;
flex-wrap: wrap;
margin-top: 1em;
}
.bd-hero-print {
opacity: 0.5;
transition-duration: cv.getVar("duration");
transition-property: opacity;
&:hover {
opacity: 1;
}
}
@include mx.mobile {
.bd-hero {
--scale: 0.75;
}
}
.bd-carbon {
&,
& > div {
align-items: center;
display: flex;
justify-content: center;
}
> div {
height: 280px !important;
width: 400px !important;
}
}