Skip to content

Commit 5c46064

Browse files
committed
Borders in pixel
1 parent 629fece commit 5c46064

File tree

4 files changed

+37
-39
lines changed

4 files changed

+37
-39
lines changed

css/base.scss

+16-11
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,33 @@ $u-connect: #00cc00; // connectivity / net
2727
$u-on: color.adjust(green, $lightness: 10%);
2828
$u-off: red;
2929

30-
$u-border: 0.1em solid $u-border-color;
31-
$u-border-none: 0.1em solid transparent;
32-
$u-border-active: 0.1em solid $u-border-color-active;
30+
31+
$u-padding-text: 4px;
32+
$u-padding-block: calc(2*$u-padding-text);
33+
34+
$u-border-size: 1px;
35+
$u-border: $u-border-size solid $u-border-color;
36+
$u-border-none: $u-border-size solid transparent;
37+
$u-border-active: $u-border-size solid $u-border-color-active;
3338

3439
$u-navbar: $u-primary;
3540
$u-navbar-text: white;
3641

3742

38-
// ===== Sizes =====
43+
// ===== Content Box Sizes =====
3944

4045
$u-white-space: 1rem;
4146
$u-gutter: calc($u-white-space / 2);
4247
$u-gutter2: calc($u-white-space / 4);
4348

44-
$u-btn-radius: 0.2em;
49+
$u-btn-radius: calc($u-padding-block/2);
4550
$u-output-border: $u-border-none;
4651

4752

4853
// ===== global Layout =====
4954

5055
$u-card-border: none;
51-
$u-card-radius: 0.4rem;
56+
$u-card-radius: $u-padding-block;
5257

5358

5459
// ===== font =====
@@ -90,7 +95,7 @@ body {
9095

9196
@media (width > 800px) {
9297
body {
93-
padding: $u-white-space;
98+
padding: 2* $u-padding-text;
9499
}
95100
}
96101

@@ -214,14 +219,14 @@ pre>code {
214219
}
215220

216221
p>code {
217-
padding-left: 0.1em;
218-
padding-right: 0.1em;
222+
padding-left: 2*$u-padding-text;
223+
padding-right: $u-padding-text;
219224
}
220225

221226
pre>code {
222227
display: block;
223228
border-radius: $u-card-radius;
224-
padding: 0.1em;
229+
padding: $u-padding-text;
225230
}
226231

227232
// form elements
@@ -400,7 +405,7 @@ main {
400405
display: flex;
401406
flex-flow: row nowrap;
402407
margin-bottom: $u-gutter;
403-
padding: $u-gutter $u-white-space;
408+
padding: 2*$u-padding-text 4*$u-padding-text;
404409
background-color: $u-navbar;
405410
color: $u-navbar-text;
406411

css/iot.scss

+2-8
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $u-card-wide-width: calc(4 * $u-grid-width + 3 * $u-gutter);
7777
>.block {
7878
position: relative;
7979
flex: 1 1 auto;
80-
padding: $u-gutter $u-white-space;
80+
padding: $u-padding-block;
8181
min-height: 2rem;
8282

8383
&.header {
@@ -94,7 +94,6 @@ $u-card-wide-width: calc(4 * $u-grid-width + 3 * $u-gutter);
9494
}
9595

9696
&.footer {
97-
padding: $u-gutter $u-white-space;
9897
border-top: 1px solid rgb(0 0 0 / 12.5%);
9998
}
10099
}
@@ -164,7 +163,7 @@ button,
164163
min-width: 6.5ch;
165164

166165
// height: 1.4em;
167-
padding: 0.1em 0.2em;
166+
padding: calc($u-padding-text/2) $u-padding-text;
168167
border-radius: $u-btn-radius;
169168
border-color: $u-primary;
170169
background-color: $u-primary;
@@ -191,11 +190,6 @@ button,
191190
background-color: #777777;
192191
border-color: #777777;
193192
}
194-
195-
// + button,
196-
// + .button {
197-
// margin-left: $u-gutter;
198-
// }
199193
}
200194

201195
// standard input elements

iotstyle.css

+18-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iotstyle.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)