Skip to content

Commit 567bc64

Browse files
committed
Convert all em units to rem for consistent sizing
1 parent e555110 commit 567bc64

22 files changed

Lines changed: 104 additions & 103 deletions

src/lib/components/Chip.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
display: inline-flex;
5656
align-items: center;
5757
justify-content: center;
58-
gap: 0.35em;
58+
gap: 0.35rem;
5959
border-radius: var(--pg-border-radius-md);
6060
font-family: var(--pg-font-family);
6161
color: var(--pg-text);
@@ -97,8 +97,8 @@
9797
}
9898
9999
.chip-lg {
100-
padding: 0.2em 1em;
101-
font-size: 0.95em;
100+
padding: 0.2rem 1rem;
101+
font-size: 0.95rem;
102102
}
103103
104104
/* Variant: default (white background, light border) */

src/lib/components/HelpToggle.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
}
8181
8282
.help-section.bordered .help-content {
83-
margin: 0 1em 1rem 2.2rem;
83+
margin: 0 1rem 1rem 2.2rem;
8484
}
8585
8686
.help-text {

src/lib/components/LocaleSwitcher.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
height: auto;
8282
font-size: 16px;
8383
line-height: 1;
84-
margin: 1em 0;
84+
margin: 1rem 0;
8585
align-content: center;
8686
align-items: center;
8787
}

src/lib/components/ThemeSwitcher.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
height: auto;
100100
font-size: 16px;
101101
line-height: 1;
102-
margin: 1em 0;
102+
margin: 1rem 0;
103103
align-content: center;
104104
align-items: center;
105105
}

src/lib/components/fallback/Email.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
#sidebar {
107107
overflow: scroll;
108108
border-right: 1px solid;
109-
width: 20em;
109+
width: 20rem;
110110
}
111111
112112
#sb-th {
@@ -140,7 +140,7 @@
140140
}
141141
142142
#buttons {
143-
min-width: 6em;
143+
min-width: 6rem;
144144
}
145145
146146
#noemails {

src/lib/components/fallback/EmailView.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
display: flex;
111111
align-items: center;
112112
text-align: left;
113-
padding-left: 1em;
113+
padding-left: 1rem;
114114
115115
&:not(:last-child, .toolbar) {
116116
border-bottom: 2px solid var(--pg-text);
@@ -141,8 +141,8 @@
141141
all: unset;
142142
cursor: pointer;
143143
margin-left: auto;
144-
margin-right: 0.5em;
145-
margin-top: 0.5em;
144+
margin-right: 0.5rem;
145+
margin-top: 0.5rem;
146146
}
147147
}
148148
@@ -171,7 +171,7 @@
171171
all: unset;
172172
cursor: pointer;
173173
font-size: 14px;
174-
padding: 0.5em;
174+
padding: 0.5rem;
175175
width: 100%;
176176
height: 100%;
177177
}

src/lib/components/fallback/ListView.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
{/each}
5151
</ol>
5252
{:else}
53-
<div style="margin: auto 3em; text-align: center;">
53+
<div style="margin: auto 3rem; text-align: center;">
5454
<h4>
5555
{$_('fallback.list.nothing')}
5656
</h4>
@@ -78,9 +78,9 @@
7878
display: flex;
7979
flex-direction: column;
8080
justify-content: center;
81-
height: 4.5em;
81+
height: 4.5rem;
8282
border-bottom: 1px solid var(--pg-text);
83-
padding-left: 0.5em;
83+
padding-left: 0.5rem;
8484
8585
button {
8686
all: unset;
@@ -90,8 +90,8 @@
9090
9191
div {
9292
border-radius: 10px;
93-
margin: 1em 0.5em 1em 0em;
94-
padding-left: 0.25em;
93+
margin: 1rem 0.5rem 1rem 0rem;
94+
padding-left: 0.25rem;
9595
9696
&.selected,
9797
&:hover,

src/lib/components/fallback/Settings.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,20 @@
121121
{/if}
122122
<button
123123
on:click|preventDefault={() => (currMode = 'List')}
124-
style="float:right; margin-right: 1em"
124+
style="float:right; margin-right: 1rem"
125125
>{$_('fallback.settings.back')}</button
126126
>
127127
</div>
128128

129129
<style lang="scss">
130130
#settings-container {
131-
padding: 0 1em 1em 1em;
131+
padding: 0 1rem 1rem 1rem;
132132
width: 100%;
133133
}
134134
135135
#creds {
136136
border-collapse: collapse;
137-
margin-bottom: 0.5em;
137+
margin-bottom: 0.5rem;
138138
}
139139
140140
#creds td,

src/lib/components/filesharing/Error.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,28 @@
4646
.error-title {
4747
color: var(--pg-input-error);
4848
font-family: var(--pg-font-family);
49-
font-size: 1.5em;
49+
font-size: 1.5rem;
5050
font-weight: 700;
5151
margin: 0;
5252
}
5353
5454
.error-message {
5555
color: var(--pg-text);
5656
font-family: var(--pg-font-family);
57-
font-size: 1em;
57+
font-size: 1rem;
5858
line-height: 1.5;
5959
margin: 0;
6060
}
6161
6262
.error-btn {
63-
margin-top: 1em;
64-
padding: 0.75em 2em;
63+
margin-top: 1rem;
64+
padding: 0.75rem 2rem;
6565
background-color: var(--pg-text);
6666
color: var(--pg-general-background);
6767
border: none;
6868
border-radius: var(--pg-border-radius-sm);
6969
cursor: pointer;
70-
font-size: 1em;
70+
font-size: 1rem;
7171
font-family: var(--pg-font-family);
7272
font-weight: 600;
7373
transition: all 0.2s ease;

src/lib/components/filesharing/RecipientSelectionFields.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<style>
8282
.crypt-recipient {
8383
background-color: var(--pg-soft-background);
84-
padding: 1em;
84+
padding: 1rem;
8585
border-radius: var(--pg-border-radius-lg);
8686
border: 1px solid var(--pg-strong-background);
8787
/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); */
@@ -94,12 +94,12 @@
9494
}
9595
9696
.crypt-recipient:not(:last-child) {
97-
margin-bottom: 0.5em;
97+
margin-bottom: 0.5rem;
9898
}
9999
100100
.recipient-container {
101101
display: flex;
102-
gap: 0.75em;
102+
gap: 0.75rem;
103103
align-items: flex-start;
104104
}
105105
@@ -131,7 +131,7 @@
131131
}
132132
133133
.field-label {
134-
font-size: 0.8em;
134+
font-size: 0.8rem;
135135
font-weight: 800;
136136
color: var(--pg-text);
137137
font-family: var(--pg-font-family);
@@ -141,7 +141,7 @@
141141
.optionals-container {
142142
display: flex;
143143
flex-direction: column;
144-
gap: 0.5em;
145-
margin-top: 0.5em;
144+
gap: 0.5rem;
145+
margin-top: 0.5rem;
146146
}
147147
</style>

0 commit comments

Comments
 (0)