Skip to content

Commit

Permalink
Borders in pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
mathertel committed Mar 20, 2024
1 parent 629fece commit 5c46064
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 39 deletions.
27 changes: 16 additions & 11 deletions css/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,33 @@ $u-connect: #00cc00; // connectivity / net
$u-on: color.adjust(green, $lightness: 10%);
$u-off: red;

$u-border: 0.1em solid $u-border-color;
$u-border-none: 0.1em solid transparent;
$u-border-active: 0.1em solid $u-border-color-active;

$u-padding-text: 4px;
$u-padding-block: calc(2*$u-padding-text);

$u-border-size: 1px;
$u-border: $u-border-size solid $u-border-color;
$u-border-none: $u-border-size solid transparent;
$u-border-active: $u-border-size solid $u-border-color-active;

$u-navbar: $u-primary;
$u-navbar-text: white;


// ===== Sizes =====
// ===== Content Box Sizes =====

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

$u-btn-radius: 0.2em;
$u-btn-radius: calc($u-padding-block/2);
$u-output-border: $u-border-none;


// ===== global Layout =====

$u-card-border: none;
$u-card-radius: 0.4rem;
$u-card-radius: $u-padding-block;


// ===== font =====
Expand Down Expand Up @@ -90,7 +95,7 @@ body {

@media (width > 800px) {
body {
padding: $u-white-space;
padding: 2* $u-padding-text;
}
}

Expand Down Expand Up @@ -214,14 +219,14 @@ pre>code {
}

p>code {
padding-left: 0.1em;
padding-right: 0.1em;
padding-left: 2*$u-padding-text;
padding-right: $u-padding-text;
}

pre>code {
display: block;
border-radius: $u-card-radius;
padding: 0.1em;
padding: $u-padding-text;
}

// form elements
Expand Down Expand Up @@ -400,7 +405,7 @@ main {
display: flex;
flex-flow: row nowrap;
margin-bottom: $u-gutter;
padding: $u-gutter $u-white-space;
padding: 2*$u-padding-text 4*$u-padding-text;
background-color: $u-navbar;
color: $u-navbar-text;

Expand Down
10 changes: 2 additions & 8 deletions css/iot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $u-card-wide-width: calc(4 * $u-grid-width + 3 * $u-gutter);
>.block {
position: relative;
flex: 1 1 auto;
padding: $u-gutter $u-white-space;
padding: $u-padding-block;
min-height: 2rem;

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

&.footer {
padding: $u-gutter $u-white-space;
border-top: 1px solid rgb(0 0 0 / 12.5%);
}
}
Expand Down Expand Up @@ -164,7 +163,7 @@ button,
min-width: 6.5ch;

// height: 1.4em;
padding: 0.1em 0.2em;
padding: calc($u-padding-text/2) $u-padding-text;
border-radius: $u-btn-radius;
border-color: $u-primary;
background-color: $u-primary;
Expand All @@ -191,11 +190,6 @@ button,
background-color: #777777;
border-color: #777777;
}

// + button,
// + .button {
// margin-left: $u-gutter;
// }
}

// standard input elements
Expand Down
37 changes: 18 additions & 19 deletions iotstyle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion iotstyle.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c46064

Please sign in to comment.