Skip to content

Commit 584ad36

Browse files
committed
extension: Dynamic setting generation
1 parent 107fcc4 commit 584ad36

File tree

3 files changed

+710
-509
lines changed

3 files changed

+710
-509
lines changed

web/packages/extension/assets/css/options.css

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,30 @@ hr {
2121
}
2222

2323
#reset-settings {
24-
margin: 0 auto;
24+
display: block;
25+
margin-left: auto;
26+
margin-right: auto;
2527
}
2628

2729
.option-title {
2830
border-bottom: 2px solid var(--ruffle-light-blue);
2931
padding-bottom: 8px;
30-
margin-block-end: 0;
32+
margin-block-end: 10px;
3133
font-size: 1.2em;
3234
color: var(--ruffle-orange);
3335
}
3436

3537
.option-description {
3638
opacity: 0.8;
37-
margin-block: 0.2em;
39+
margin-block: 15px;
40+
margin-left: 5px;
3841
}
3942

4043
/* Per-site settings */
4144

45+
.per-site {
46+
}
47+
4248
#per-site-list {
4349
display: flex;
4450
flex-direction: column;
@@ -59,7 +65,8 @@ hr {
5965
}
6066

6167
#site-entry-new {
62-
align-self: flex-start;
68+
display: block;
69+
margin: 10px 0 10px auto;
6370
}
6471

6572
/* Modal */
@@ -167,9 +174,7 @@ hr {
167174
/* Sections */
168175

169176
.settings-section > * {
170-
margin-bottom: 20px;
171177
padding-bottom: 15px;
172-
border-bottom: 2px solid var(--ruffle-light-blue);
173178
}
174179

175180
.settings-section > :last-child {
@@ -192,7 +197,6 @@ hr {
192197
grid-template-columns: 40px 1fr;
193198
align-items: start;
194199
gap: 15px;
195-
padding: 12px 0;
196200
border-bottom: 1px solid var(--ruffle-light-blue);
197201
}
198202

@@ -217,12 +221,18 @@ hr {
217221
gap: 5px;
218222
}
219223

220-
.settings-option-control label {
221-
font-weight: bold;
222-
}
223-
224224
.settings-option-control small {
225225
font-size: 0.8em;
226226
color: #ccc;
227227
opacity: 0.8;
228228
}
229+
230+
.settings-row {
231+
display: flex;
232+
justify-content: space-between;
233+
align-items: center;
234+
}
235+
236+
.settings-row label {
237+
font-weight: bold;
238+
}

0 commit comments

Comments
 (0)