Skip to content

Commit 91e0c6d

Browse files
committed
[design] improve theme preset controls
1 parent ae8d4c9 commit 91e0c6d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

‎src/css/theme.css‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@
33
flex-direction: column;
44
justify-content: center;
55
overflow: hidden;
6-
max-width:6em;
6+
max-width:var(--theme-preset-preview-size);
77
}
88

99
.theme-preset-button .button-text{
10-
margin-top:1em;
11-
margin-bottom:1em;
10+
margin-top:1.25em;
11+
margin-bottom:1.25em;
1212
margin-left:0;
13-
font-size:0.75em;
1413
}
1514

1615
.theme-preset-button:after{
1716
content: none;
1817
}
1918

2019
.theme-preset-preview{
21-
width:6em;
22-
height:6em;
20+
width:var(--theme-preset-preview-size);
21+
height:var(--theme-preset-preview-size);
2322
position: relative;
2423
}
2524

‎src/css/variables.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
--theme-preset-background-hotpepper-03:25,25,25;
6767
--theme-preset-background-hotpepper-04:25,25,25;
6868
--theme-preset-accent-hotpepper:25,25,25;
69+
--theme-preset-preview-size:6em;
6970
/* header */
7071
--header-area-width:100%;
7172
--header-shade-color:var(--theme-color-01);

‎src/index.html‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13181318
<spanclass="theme-preset-background-04 theme-preset-background-nighttab-04"></span>
13191319
<spanclass="theme-preset-accent theme-preset-accent-nighttab"></span>
13201320
</div>
1321-
<spanclass="button-text">nightTab</span>
1321+
<spanclass="button-text small">nightTab</span>
13221322
</button>
13231323
</div>
13241324
<divclass="button-wrap form-inline">
@@ -1330,7 +1330,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13301330
<spanclass="theme-preset-background-04 theme-preset-background-midnightblue-04"></span>
13311331
<spanclass="theme-preset-accent theme-preset-accent-midnightblue"></span>
13321332
</div>
1333-
<spanclass="button-text">Midnight Blue</span>
1333+
<spanclass="button-text small">Midnight Blue</span>
13341334
</button>
13351335
</div>
13361336
<divclass="button-wrap form-inline">
@@ -1342,7 +1342,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13421342
<spanclass="theme-preset-background-04 theme-preset-background-bluegum-04"></span>
13431343
<spanclass="theme-preset-accent theme-preset-accent-bluegum"></span>
13441344
</div>
1345-
<spanclass="button-text">Blue Gum</span>
1345+
<spanclass="button-text small">Blue Gum</span>
13461346
</button>
13471347
</div>
13481348
<divclass="button-wrap form-inline">
@@ -1354,7 +1354,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13541354
<spanclass="theme-preset-background-04 theme-preset-background-sharpmint-04"></span>
13551355
<spanclass="theme-preset-accent theme-preset-accent-sharpmint"></span>
13561356
</div>
1357-
<spanclass="button-text">Sharp Mint</span>
1357+
<spanclass="button-text small">Sharp Mint</span>
13581358
</button>
13591359
</div>
13601360
<divclass="button-wrap form-inline">
@@ -1366,7 +1366,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13661366
<spanclass="theme-preset-background-04 theme-preset-background-snowblue-04"></span>
13671367
<spanclass="theme-preset-accent theme-preset-accent-snowblue"></span>
13681368
</div>
1369-
<spanclass="button-text">Snow Blue</span>
1369+
<spanclass="button-text small">Snow Blue</span>
13701370
</button>
13711371
</div>
13721372
<divclass="button-wrap form-inline">
@@ -1378,7 +1378,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13781378
<spanclass="theme-preset-background-04 theme-preset-background-coralgreen-04"></span>
13791379
<spanclass="theme-preset-accent theme-preset-accent-coralgreen"></span>
13801380
</div>
1381-
<spanclass="button-text">Coral Green</span>
1381+
<spanclass="button-text small">Coral Green</span>
13821382
</button>
13831383
</div>
13841384
<divclass="button-wrap form-inline">
@@ -1390,7 +1390,7 @@ <h1 class="menu-item-header-text">Presets</h1>
13901390
<spanclass="theme-preset-background-04 theme-preset-background-purplegem-04"></span>
13911391
<spanclass="theme-preset-accent theme-preset-accent-purplegem"></span>
13921392
</div>
1393-
<spanclass="button-text">Purple Gem</span>
1393+
<spanclass="button-text small">Purple Gem</span>
13941394
</button>
13951395
</div>
13961396
<divclass="button-wrap form-inline">
@@ -1402,7 +1402,7 @@ <h1 class="menu-item-header-text">Presets</h1>
14021402
<spanclass="theme-preset-background-04 theme-preset-background-hotpepper-04"></span>
14031403
<spanclass="theme-preset-accent theme-preset-accent-hotpepper"></span>
14041404
</div>
1405-
<spanclass="button-text">Hot Pepper</span>
1405+
<spanclass="button-text small">Hot Pepper</span>
14061406
</button>
14071407
</div>
14081408
</div>

0 commit comments

Comments
(0)