forked from Heroic-Games-Launcher/heroic-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheroic.css
187 lines (157 loc) · 2.76 KB
/
heroic.css
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
:root {
--primary: #8e24aa;
}
/* Hero */
.hero h1,
.hero h2,
.hero h3 {
--font-weight: 800;
--typography-spacing-vertical: 1.2rem;
}
.hero h1 {
--font-size: 3rem;
}
.hero.center {
text-align: center;
}
/* Article */
article header h2,
article header h3,
article header h4 {
margin: 0;
}
/* Snippet */
code.snippet,
code.snippet.hljs {
padding: 1.6rem;
line-height: 1.6em;
}
footer {
display: flex;
justify-content: space-around;
}
/* Extra */
.icon {
margin-top: 7px;
position: relative;
top: 3px;
}
.spacer {
margin: 40px 0;
}
/* Grid */
.grid.center {
align-items: center;
justify-items: center;
grid-template-columns: 72% auto;
}
.cookieBanner {
width: 95vw;
max-width: 800px;
margin: auto;
background-color: var(--background);
border-radius: 10px;
position: fixed;
bottom: 16px;
left: 16px;
font-size: 15px;
}
nav.container-fluid div {
display: flex;
}
@media screen and (max-width: 900px) {
.cookieBanner > .grid {
align-items: center;
justify-items: center;
height: fit-content;
max-height: 100px;
grid-template-rows: 3fr 1fr;
padding: 16px 12px;
}
.cookieBanner > .grid .buttons {
display: flex;
justify-content: space-between;
width: 70%;
margin-top: 8px;
}
}
.feature {
background-color: var(--background);
margin-bottom: 72px;
}
.feature .description {
margin: auto 15px auto 8px;
}
footer {
margin-top: 100px;
padding: 50px;
font-weight: 700;
color: var(--secondary);
}
.smallText {
font-weight: 400;
font-size: 13px;
}
@media screen and (min-width: 900px) {
.cookieBanner > .grid {
grid-template-columns: 8fr 1fr;
align-items: center;
justify-content: center;
max-height: fit-content;
height: fit-content;
padding: 16px 24px;
}
.cookieBanner > .grid .buttons {
display: flex;
justify-content: space-between;
margin-top: 8px;
width: 212px;
}
.heroicPreview {
width: 1130px;
}
}
@media screen and (max-width: 991px) {
.grid.center {
grid-template-columns: auto;
}
.feature {
width: 96%;
padding: 0;
}
.feature .description {
margin: 15px;
}
}
.cookieBanner > .grid > .buttons button {
height: fit-content;
padding: 0;
width: 100px;
margin: 0;
font-size: 14px;
}
a {
font-weight: 700;
color: #0d101c;
}
/*changed the width 100% instead of a hardcoded value*/
@media screen and (max-width: 414px) {
.feature {
width: 100%;
margin-bottom: 42px;
}
.heroicPreview,
.feature img {
width: 100%;
}
}
@media only screen and (prefers-color-scheme: light) {
article > footer {
background-color: var(--card-border-color);
}
}
@media screen and (min-width: 992px) {
.grid {
grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
}
}