Skip to content

Commit 45bde04

Browse files
committed
Improve Matrix tutorial img sizes and spacing #126
Change <img> tags to markdown format in community.md
1 parent f86634e commit 45bde04

File tree

2 files changed

+48
-9
lines changed

2 files changed

+48
-9
lines changed

content/_sass/partials/_helpers.scss

+42
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
text-decoration: none;
1010
}
1111

12+
.box-shadow-grey {
13+
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.41);
14+
}
15+
1216
.black-text {
1317
color: $black;
1418
}
@@ -21,6 +25,15 @@
2125
font-weight: normal;
2226
}
2327

28+
.mb-10 {
29+
margin-bottom: 10px;
30+
}
31+
32+
.mbt-12 {
33+
margin-bottom: 12px;
34+
margin-top: 12px;
35+
}
36+
2437
.mb-12 {
2538
margin-bottom: 12px;
2639
}
@@ -29,6 +42,35 @@
2942
margin-top: 12px;
3043
}
3144

45+
.mbt-16 {
46+
margin-bottom: 16px;
47+
margin-top: 16px;
48+
}
49+
50+
.mb-16 {
51+
margin-bottom: 16px;
52+
}
53+
54+
.mt-16 {
55+
margin-top: 16px;
56+
}
57+
58+
.ml-2em {
59+
margin-left: 2em;
60+
}
61+
3262
.w-480 {
3363
width: 480px;
3464
}
65+
66+
.d-block {
67+
display: block;
68+
}
69+
70+
.matrix-tutorial-img {
71+
display: block;
72+
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.41);
73+
margin: 16px 0;
74+
max-width: 480px;
75+
}
76+

content/community.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,18 @@ If you haven’t used Matrix before then follow these instructions:
3838

3939
1. Go to <https://matrix.to/#/#cwl:matrix.org>
4040
2. Choose the “Element” App if you don’t have a Matrix client already.
41-
42-
<img src="/assets/img/matrix-element-app.png" class="mb-12 mt-12 w-480" alt="screenshot of Matrix app chooser dialog." />
41+
![screenshot of Matrix app chooser dialog.](/assets/img/matrix-element-app.png){:.matrix-tutorial-img}
4342

4443
3. You can download the native Element app for your operating system if you want, but choosing to “Continue in your browser” is fine.
44+
![screenshot of 'Continue in your Browser' button](/assets/img/continue-in-your-browser.png){:.mt-16 .mb-10}
4545

46-
<img src="/assets/img/continue-in-your-browser.png" class="mb-12 mt-12" alt="screenshot of 'Continue in your Browser' button" />
47-
48-
4. From the Element native app, or browser session choose "Join" <img src="/assets/img/join.png" alt="screenshot of 'Join' button" />
49-
5. And then choose “Create Account” <img src="/assets/img/create-account.png" alt="screenshot of 'Create Account' button" > using your own Google, GitHub, or GitLab, account.
46+
4. From the Element native app, or browser session choose "Join" ![screenshot of 'Join' button](/assets/img/join.png)
5047

51-
<img src="/assets/img/continue-with-icons.png" class="mb-12 mt-12 w-480" alt="screenshot of third party login chooser dialog" />
48+
5. And then choose “Create Account” ![screenshot of 'Create Account' button](/assets/img/create-account.png) using your own Google, GitHub, or GitLab, account.
49+
![screenshot of third party login chooser dialog](/assets/img/continue-with-icons.png){:.matrix-tutorial-img}
5250

5351
6. Now that you’re signed in, join the “CWL Conference” room.
54-
55-
<img src="/assets/img/cwl-conference-suggested-rooms.png" class="mb-12 mt-12" alt="screenshot of 'CWL Conference' under 'Suggested Rooms' in the CWL Matrix Space." />
52+
![screenshot of 'CWL Conference' under 'Suggested Rooms' in the CWL Matrix Space.](/assets/img/cwl-conference-suggested-rooms.png){:.matrix-tutorial-img}
5653

5754
## Code of Conduct
5855

0 commit comments

Comments
 (0)