Compare commits

...

4 commits

Author SHA1 Message Date
91d136f1c3 style: Update file formatting 2026-02-15 10:51:59 +01:00
0e6aa4bb02 feat: Change specific styles for hr
Instead of repeating the element name to the class the declarations are now depended on the element itself.
2026-02-14 20:44:13 +01:00
e2902fa9cb feat: Create mixin for column classes 2026-02-14 20:41:07 +01:00
1529c16059 fix: Move code declaration to correct file 2026-02-14 20:40:21 +01:00
4 changed files with 39 additions and 51 deletions

View file

@ -14,7 +14,6 @@
// area // area
picture { picture {
} }

View file

@ -25,6 +25,17 @@
// div // div
@mixin columns($count: 5) {
@for $i from 1 through $count {
.column_#{$i} {
@extend p;
column-count: #{$i};
column-gap: if($i < 3, config.$space_small, config.$space_medium);
}
}
}
// Paragraph // Paragraph
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -32,32 +43,13 @@ p {
@extend %basic; @extend %basic;
margin-top: config.$space_basic; margin-top: config.$space_basic;
margin-bottom: config.$space_basic; margin-bottom: config.$space_basic;
code {
padding: config.$space_tiny config.$space_half;
font-size: 1em;
line-height: 1;
}
} }
.column_line { .column_line {
column-rule: config.$border_basic; column-rule: config.$border_basic;
} }
.column_2, @include columns();
.column_3 {
@extend p;
}
.column_2 {
column-count: 2;
column-gap: config.$space_small;
}
.column_3 {
column-count: 3;
column-gap: config.$space_medium;
}
// Address // Address
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -76,6 +68,19 @@ hr {
border-style: solid; border-style: solid;
border-color: config.$color_border_basic; border-color: config.$color_border_basic;
&.hidden {
border-color: transparent;
}
&.dotted {
border-style: dotted;
}
&.double {
height: 4px;
border-width: config.$width_border_basic 0;
}
&.vertical { &.vertical {
display: inline; display: inline;
margin: 0 config.$space_double; margin: 0 config.$space_double;
@ -83,22 +88,6 @@ hr {
} }
} }
.hr_hidden {
@extend hr;
border-color: transparent;
}
.hr_dotted {
@extend hr;
border-style: dotted;
}
.hr_double {
@extend hr;
height: 4px;
border-width: config.$width_border_basic 0;
}
// Preformat // Preformat
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
pre { pre {
@ -248,11 +237,13 @@ figcaption {
// Main content // Main content
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
main {} main {
}
// Div // Div
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
div {} div {
}
.div_info { .div_info {
padding: config.$space_double config.$indent_basic; padding: config.$space_double config.$indent_basic;
@ -315,13 +306,13 @@ div {}
display: grid; display: grid;
grid-gap: config.$space_basic; grid-gap: config.$space_basic;
&>input, & > input,
&>select, & > select,
&>textarea { & > textarea {
margin: 0; margin: 0;
} }
&>label { & > label {
margin: config.$width_border_io; margin: config.$width_border_io;
padding: config.$space_half; padding: config.$space_half;
} }

View file

@ -21,7 +21,6 @@
// legend // legend
// Form // Form
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
form { form {
@ -245,7 +244,6 @@ meter {
} }
// Interactive elements // Interactive elements
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// details // details
@ -253,7 +251,6 @@ meter {
// dialog // dialog
details { details {
} }
@ -267,7 +264,6 @@ dialog {
} }
// Scripting // Scripting
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// script // script
@ -276,7 +272,6 @@ dialog {
// canvas // canvas
canvas { canvas {
} }

View file

@ -39,7 +39,6 @@
// wbr // wbr
// Links // Links
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
a { a {
@ -204,6 +203,12 @@ code {
background-color: color.scale(config.$color_back_basic, $lightness: config.$color_diff_tiny); background-color: color.scale(config.$color_back_basic, $lightness: config.$color_diff_tiny);
} }
p code {
padding: config.$space_tiny config.$space_half;
font-size: 1em;
line-height: 1;
}
.code_solo { .code_solo {
@extend %basic_mono; @extend %basic_mono;
padding: config.$space_tiny config.$space_half; padding: config.$space_tiny config.$space_half;
@ -296,14 +301,12 @@ wbr {
} }
// Edits // Edits
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// ins // ins
// del // del
ins { ins {
} }