feat: Changes to flex and display

- Remove unused flex classes
- Nav module no longer dependend on common flex classes
- Add important to common display and opacity
This commit is contained in:
sthag 2025-06-21 13:35:26 +02:00
parent 2f63dbe2b6
commit 35b55de550
4 changed files with 29 additions and 42 deletions

View file

@ -299,39 +299,6 @@ div {}
} }
} }
.flex_wrap {
@extend .flex;
flex-wrap: wrap;
}
.flex_row {
@extend .flex;
flex-direction: column;
// align-items: flex-start;
justify-content: flex-start;
}
.flex_child {
flex: 0 1 auto;
}
.flex_child_one {
flex: 1;
}
.flex_child_end {
align-self: flex-end;
}
.flex_column_wrap {
@extend .flex_wrap;
.flex_column {
@extend .flex_child;
flex-grow: 1;
}
}
// Grid // Grid
.grid { .grid {
display: grid; display: grid;

View file

@ -21,15 +21,15 @@
} }
.di_none { .di_none {
display: none; display: none !important;
} }
.op_hide { .op_hide {
opacity: 0; opacity: 0 !important;
} }
.op_show { .op_show {
opacity: 1; opacity: 1 !important;
} }
.space_even_auto { .space_even_auto {
@ -178,11 +178,27 @@
%flex-inline { %flex-inline {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap;
align-items: flex-start; align-items: flex-start;
justify-content: flex-start; justify-content: flex-start;
gap: $space_half $space_basic; gap: $space_half $space_basic;
} }
%flex-column,
%flex-row {
display: flex;
flex-wrap: nowrap;
gap: $space_basic;
}
%flex-column {
flex-direction: column;
}
%flex-row {
flex-direction: row;
}
// Positioned elements // Positioned elements

View file

@ -99,12 +99,11 @@ nav {
margin: $space_basic 0; margin: $space_basic 0;
ul { ul {
@extend .flex; display: flex;
margin: 0 $space_large; margin: 0 $space_large;
li { li {
@extend .flex_child; flex: auto;
flex-grow: 1;
margin: 0; margin: 0;
text-align: center; text-align: center;

View file

@ -11,13 +11,15 @@
} }
} }
th, td { th,
td {
border: 0; border: 0;
} }
.cell_icon { .cell_icon {
width: 48px; width: 48px;
text-align: center; text-align: center;
img { img {
vertical-align: text-top; vertical-align: text-top;
} }
@ -29,9 +31,11 @@
&:hover { &:hover {
background-color: $foxtrot_color; background-color: $foxtrot_color;
a:first-child { a:first-child {
display: none; display: none;
} }
a:last-child { a:last-child {
display: block; display: block;
color: $color_highlight_basic; color: $color_highlight_basic;
@ -47,7 +51,8 @@
} }
} }
th:last-child, .cell_date { th:last-child,
.cell_date {
width: 16%; width: 16%;
text-align: center; text-align: center;
} }
@ -65,4 +70,4 @@
max-height: 44px; max-height: 44px;
} }
} }
} }