Skip to content

Commit 38eaf47

Browse files
Global CSS cleanup (#1672)
* Global CSS cleanup * Uncomment normalize.css
1 parent d620232 commit 38eaf47

File tree

9 files changed

+71
-200
lines changed

9 files changed

+71
-200
lines changed

content/docs/chat_basics/_index.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ any point in time, even if you started with Element.
4545
Go to [app.element.io](https://app.element.io), and click on "Create Account".
4646
You should land on the following page.
4747

48-
![](element-io-sign-up.png)
48+
{{
49+
figure(
50+
img="element-io-sign-up.png",
51+
caption="Sign up page of app.element.io")
52+
}}
4953

5054
For simplicity you can connect with a Google, Facebook, Apple, GitHub or GitLab
5155
account if you have any of these. They will be notified that you're using your
@@ -65,7 +69,10 @@ Check your inbox, and click the link to verify your email address. The link will
6569
bring you to the homepage of Element, the Matrix web application to participate
6670
to Matrix conversations.
6771

68-
![](element-landing-page.png)
72+
{{ figure(
73+
img="element-landing-page.png"
74+
caption="Landing page of Element after login")
75+
}}
6976

7077
You now have an account, and are using the web version of Element. We recommend
7178
you to [download the desktop version of Element](https://element.io/get-started#download),

sass/_base.scss

+37-120
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1+
:root {
2+
--page-max-width: 55rem;
3+
--navbar-height: 5.937rem;
4+
5+
--color-text: #333;
6+
--color-link: #0098d4;
7+
8+
--page-header-height: 15rem;
9+
10+
--borders-color: #ddd;
11+
}
12+
113
* {
214
box-sizing: border-box;
315
}
416

517
html {
6-
height: 100%;
7-
font-size: 100%;
8-
918
scroll-snap-type: y proximity;
1019
scroll-padding-top: 1.875rem; // obtained by fine tuning
1120
scroll-behavior: smooth;
1221
}
1322

1423
body {
15-
font-size: 100%;
16-
display: flex;
17-
justify-content: space-between;
18-
flex-direction: column;
19-
height: 100%;
2024
margin: 0;
21-
min-height: 100%;
25+
min-height: 100svh;
2226
background-color: #fff;
23-
color: #333;
27+
color: var(--color-text);
2428

2529
font-family: "Helvetica Neue",
2630
"Helvetica",
@@ -36,29 +40,16 @@ body {
3640
/* Emojis*/
3741
"Segoe UI Symbol";
3842

39-
font-weight: 400;
4043
line-height: 1.75;
4144
}
4245

4346
main {
44-
padding-top: 95px;
45-
}
46-
47-
img {
48-
max-width: 100%;
49-
vertical-align: middle;
50-
display: inline-block;
51-
height: auto;
47+
padding-top: var(--navbar-height);
5248
}
5349

5450
a {
55-
color: #0098d4;
51+
color: var(--color-link);
5652
text-decoration: none;
57-
58-
&:active,
59-
&:hover {
60-
outline: 0;
61-
}
6253
}
6354

6455
ul,
@@ -83,51 +74,23 @@ ol:last-child {
8374

8475
.content {
8576
width: 100%;
86-
max-width: 850px;
77+
max-width: var(--page-max-width);
8778

88-
margin: 10px auto;
79+
margin: .625rem auto;
8980
padding: 0 1.5rem;
9081

9182
img {
9283
max-height: 40rem;
9384
}
9485

9586
@media (max-width: 767px) {
96-
padding-left: 14px;
97-
padding-right: 14px;
87+
padding-left: 1rem;
88+
padding-right: 1rem;
9889
}
9990
}
10091

101-
.content.dark {
102-
background-color: #f4f4f4;
103-
}
104-
105-
.w-button {
106-
display: inline-block;
107-
padding: 9px 15px;
108-
background-color: #3898EC;
109-
color: white;
110-
border: 0;
111-
line-height: inherit;
112-
text-decoration: none;
113-
cursor: pointer;
114-
border-radius: 0;
115-
}
116-
117-
.w-button.button-dark {
118-
margin-top: 10px;
119-
margin-bottom: 10px;
120-
padding: 10px 30px;
121-
border-radius: 20px;
122-
background-color: #000;
123-
color: #fff;
124-
}
125-
126-
.w-button.button-dark:hover {
127-
background-color: #0098d4;
128-
}
129-
13092
.site-footer {
93+
position: relative;
13194
z-index: 1;
13295
background-color: #000;
13396
width: 100%;
@@ -178,49 +141,6 @@ ol:last-child {
178141
}
179142
}
180143

181-
.grid {
182-
display: flex;
183-
flex-wrap: wrap;
184-
justify-content: flex-start;
185-
width: 100%;
186-
187-
.grid-container-third {
188-
padding: 10px;
189-
width: 33%;
190-
191-
@media (max-width: 767px) {
192-
width: 100%;
193-
}
194-
}
195-
196-
.grid-container {
197-
padding: 10px;
198-
width: 50%;
199-
200-
@media (max-width: 767px) {
201-
width: 100%;
202-
}
203-
}
204-
205-
.grid-container-full {
206-
padding: 10px;
207-
width: 100%;
208-
}
209-
210-
.block {
211-
p {
212-
text-align: center;
213-
}
214-
215-
padding: 20px;
216-
display: flex;
217-
height: 100%;
218-
flex-direction: column;
219-
justify-content: flex-start;
220-
align-items: center;
221-
}
222-
}
223-
224144
pre {
225145
padding: 1rem;
226146
overflow: auto;
@@ -254,13 +174,22 @@ pre table {
254174

255175
/* The black block on pages at the top. */
256176
.page-header {
257-
width: 100%;
258-
height: 23.5rem;
177+
display: flex;
178+
flex-direction: column;
179+
justify-content: center;
180+
padding-inline: 5.625rem;
181+
@media (max-width: 767px) {
182+
padding-inline: 2rem;
183+
}
184+
padding-bottom: calc(var(--navbar-height)/2);
185+
186+
min-height: var(--page-header-height);
259187
background-color: #000000;
260188
overflow: hidden;
261189

262190
background-image: url(/assets/page-header-bg.svg);
263-
background-size: 100% 100%;
191+
background-size: 90% 100%;
192+
background-position: bottom right;
264193
background-repeat: no-repeat;
265194

266195
@media (max-width: 767px) {
@@ -269,25 +198,17 @@ pre table {
269198
}
270199

271200
.hero-block {
272-
273-
@media (max-width: 767px) {
274-
margin: 60px 32px 70px;
275-
}
276-
277-
margin: 89px 80px;
278-
279201
h1 {
280202
font-style: normal;
281203
font-weight: 700;
282-
font-size: 3.125rem;
204+
font-size: 2.8rem;
283205
line-height: 120%;
284206
color: #FFFFFF;
285207
}
286208

287209
p {
288210
font-style: normal;
289-
font-weight: 400;
290-
font-size: 1.5rem;
211+
font-size: 1.4rem;
291212
line-height: 120%;
292213

293214
display: flex;
@@ -314,7 +235,7 @@ pre table {
314235
background-repeat: no-repeat;
315236
padding: 1rem;
316237

317-
max-width: 45%;
238+
max-width: 23rem;
318239

319240
.wrapper {
320241
display: flex;
@@ -343,12 +264,8 @@ pre table {
343264
background-size: 100% 100%;
344265
width: 3rem;
345266
height: 3rem;
346-
margin: auto auto auto .5rem;
267+
margin: auto 0 auto .5rem;
347268
transform: rotate(-90deg);
348269
filter: invert(1);
349270
}
350271
}
351-
352-
h1, h2, h3, h4 {
353-
font-weight: 700;
354-
}

sass/_clients.scss

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
section {
2-
display: flex;
3-
flex-direction: column;
4-
align-items: center;
5-
}
6-
71
.clients_page {
8-
padding-top: 5.625rem;
9-
@media (max-width: 767px) {
10-
padding: 5.625rem 32px 0 32px;
11-
}
2+
padding-top: 3rem;
3+
padding-inline: 2rem;
124

135
h2 {
146
text-align: center;
@@ -32,12 +24,8 @@ section {
3224
flex-direction: row;
3325
justify-content: center;
3426
flex-wrap: wrap;
35-
gap: 3.125rem;
27+
gap: 2rem;
3628

37-
padding: 0 180px;
38-
@media (max-width: 767px) {
39-
padding: 0 0;
40-
}
4129
margin-bottom: 5rem;
4230
}
4331

0 commit comments

Comments
 (0)