Skip to content

Commit 786e635

Browse files
committed
Change to em's
1 parent 4e46a41 commit 786e635

File tree

9 files changed

+42
-36
lines changed

9 files changed

+42
-36
lines changed

src/components/Modal.svelte

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,27 @@
88

99
<style>
1010
/* === TARGET BY ELEMENT TO ALLOW CUSTOM OVERRIDES TO HAVE ADEQUATE SPECIFICITY ===*/
11-
1211
/* .bn-onboard-modal */
1312
aside {
1413
display: flex;
1514
justify-content: center;
1615
align-items: center;
1716
position: absolute;
18-
z-index: 10;
17+
font-size: 16px;
18+
z-index: 99999999;
1919
top: 0;
2020
left: 0;
2121
width: 100vw;
2222
height: 100vh;
2323
background: rgba(0, 0, 0, 0.3);
2424
}
2525
26+
@media screen and (max-width: 420px) {
27+
aside {
28+
font-size: 14px;
29+
}
30+
}
31+
2632
/* .bn-onboard-modal-content */
2733
section {
2834
display: block;
@@ -31,20 +37,20 @@
3137
border-radius: 10px;
3238
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);
3339
font-family: "Helvetica Neue";
34-
padding: 1.33rem;
40+
padding: 1.33em;
3541
position: relative;
3642
overflow: hidden;
37-
max-width: 36rem;
43+
max-width: 36em;
3844
color: #4a4a4a;
3945
}
4046
4147
/* .bn-onboard-modal-content-close */
4248
div {
43-
height: 0.66rem;
49+
height: 0.66em;
4450
position: absolute;
45-
padding: 0.8rem;
46-
top: 1.33rem;
47-
right: 1.33rem;
51+
padding: 0.8em;
52+
top: 1.33em;
53+
right: 1.33em;
4854
border-radius: 5px;
4955
transition: background 200ms ease-in-out;
5056
display: flex;

src/components/ModalHeader.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
header {
1010
display: flex;
1111
align-items: center;
12-
margin-bottom: 0.66rem;
12+
margin-bottom: 0.66em;
1313
}
1414
1515
/* .bn-onboard-modal-content-header-icon */
1616
div {
1717
display: flex;
1818
justify-content: center;
1919
align-items: center;
20-
padding: 0.6rem;
20+
padding: 0.6em;
2121
border-radius: 30px;
2222
background: #eeeeee;
2323
}
@@ -26,8 +26,8 @@
2626
h3 {
2727
font-family: "Helvetica Neue";
2828
font-weight: bold;
29-
font-size: 1.33rem;
30-
margin: 0 0 0 0.5rem;
29+
font-size: 1.33em;
30+
margin: 0 0 0 0.5em;
3131
}
3232
</style>
3333

src/components/Wallets.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
flex-flow: row wrap;
1717
align-items: center;
1818
list-style-type: none;
19-
margin: 1rem 0 0.66rem 0;
19+
margin: 1em 0 0.66em 0;
20+
max-height: 66vh;
21+
overflow-y: scroll;
2022
padding: 0;
2123
font-family: "Helvetica Neue";
2224
line-height: 1.15;

src/elements/Button.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<style>
88
button {
99
background: inherit;
10-
font-size: 0.889rem;
10+
font-size: 0.889em;
1111
border: 1px solid #4a90e2;
1212
border-radius: 40px;
13-
padding: 0.55rem 1.4rem;
14-
margin-top: 0.33rem;
13+
padding: 0.55em 1.4em;
14+
margin-top: 0.33em;
1515
cursor: pointer;
1616
color: #4a90e2;
1717
font-family: "Helvetica Neue";

src/elements/IconButton.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
display: flex;
1414
align-items: center;
1515
border: none;
16-
margin: 0.33rem 0;
16+
margin: 0.33em 0;
1717
background: inherit;
18-
width: 18rem;
19-
padding: 0.625rem 1.25rem;
18+
width: 18em;
19+
padding: 0.625em 1.25em;
2020
transition: box-shadow 150ms ease-in-out, background 200ms ease-in-out;
2121
border-radius: 40px;
2222
cursor: pointer;
@@ -49,9 +49,8 @@
4949
}
5050
5151
span {
52-
margin-left: 0.66rem;
52+
margin-left: 0.66em;
5353
font-weight: bold;
54-
font-size: 1rem;
5554
text-align: left;
5655
}
5756

src/elements/IconDisplay.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,20 @@
1313
margin: 0;
1414
background: inherit;
1515
padding: 0;
16-
width: 18rem;
16+
width: 18em;
1717
border-radius: 40px;
1818
color: inherit;
1919
}
2020
2121
img {
2222
width: auto;
23-
height: 3rem;
23+
height: 3em;
2424
}
2525
2626
span {
27-
margin-left: 0.66rem;
27+
margin-left: 0.66em;
2828
font-weight: bold;
2929
opacity: 0.7;
30-
font-size: 1rem;
3130
text-align: left;
3231
}
3332
</style>

src/elements/Spinner.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
.bn-onboard-loading {
33
display: inline-block;
44
position: relative;
5-
width: 2rem;
6-
height: 2rem;
5+
width: 2em;
6+
height: 2em;
77
}
88
.bn-onboard-loading div {
99
box-sizing: border-box;
1010
display: block;
1111
position: absolute;
12-
width: 2rem;
13-
height: 2rem;
12+
width: 2em;
13+
height: 2em;
1414
border: 3px solid #4a90e2;
1515
border-radius: 50%;
1616
animation: bn-onboard-loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;

src/views/WalletReady.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,18 @@
195195
<style>
196196
/* .bn-onboard-prepare-description */
197197
p {
198-
font-size: 0.889rem;
198+
font-size: 0.889em;
199199
font-family: "Helvetica Neue";
200200
margin: 1em 0;
201201
}
202202
203203
/* .bn-onboard-prepare-error */
204204
span {
205205
color: #e2504a;
206-
font-size: 0.889rem;
206+
font-size: 0.889em;
207207
display: block;
208-
margin-bottom: 0.75rem;
209-
padding: 0.5rem;
208+
margin-bottom: 0.75em;
209+
padding: 0.5em;
210210
border: 1px solid #e2504a;
211211
border-radius: 5px;
212212
}

src/views/WalletSelect.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@
161161
<style>
162162
/* .bn-onboard-select-description, .bn-onboard-select-wallet-definition */
163163
p {
164-
font-size: 0.889rem;
165-
margin: 1rem 0 0 0;
164+
font-size: 0.889em;
165+
margin: 1em 0 0 0;
166166
font-family: "Helvetica Neue";
167167
}
168168
@@ -175,7 +175,7 @@
175175
/* .bn-onboard-select-wallet-info */
176176
div span {
177177
color: #4a90e2;
178-
margin-top: 0.66rem;
178+
margin-top: 0.66em;
179179
cursor: pointer;
180180
}
181181
</style>

0 commit comments

Comments
 (0)