Skip to content

Commit 556dcd0

Browse files
committed
Make welcome content more readable
1 parent 123878b commit 556dcd0

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

webextension/css/welcome.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,21 @@ header {
3030
text-align: center;
3131
}
3232

33+
main, .bottom {
34+
max-inline-size: min(60ch, 100%);
35+
margin-inline: auto;
36+
padding-inline: 16px;
37+
}
38+
3339
main {
34-
margin: 2em 15vw 10vh 15vw;
40+
margin-block: 2em 10vh;
3541
padding-bottom: 5em;
3642
}
3743

3844
.bottom-container {
3945
position: fixed;
4046
margin: 0;
41-
padding: 0.5em 15vw 0.5em 15vw;
47+
padding-block: 0.5em;
4248
bottom: 0;
4349
left: 0;
4450
right: 0;

webextension/welcome.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
55
<meta content="utf-8" http-equiv="encoding">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
67
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
78
<link rel="stylesheet" type="text/css" href="css/common.css">
89
<link rel="stylesheet" type="text/css" href="css/welcome.css">
@@ -71,12 +72,14 @@ <h4>
7172
</main>
7273

7374
<div class="bottom-container">
74-
<button type="submit" name="accept-terms" id="accept-btn" class="btn btn-auto btn-blue">
75-
<span>Accept and Enable</span>
76-
</button>
77-
<button type="submit" name="decline-terms" id="decline-btn" class="btn btn-auto btn-dark-gray">
78-
<span>Cancel</span>
79-
</button>
75+
<div class="bottom">
76+
<button type="submit" name="accept-terms" id="accept-btn" class="btn btn-auto btn-blue">
77+
<span>Accept and Enable</span>
78+
</button>
79+
<button type="submit" name="decline-terms" id="decline-btn" class="btn btn-auto btn-dark-gray">
80+
<span>Cancel</span>
81+
</button>
82+
</div>
8083
</div>
8184

8285
</div>

0 commit comments

Comments
 (0)