demarches-normaliennes/app/assets/stylesheets/flex.scss

74 lines
828 B
SCSS
Raw Normal View History

2024-11-05 19:02:31 +01:00
@import 'constants';
2017-07-03 14:01:35 +02:00
.flex {
display: flex;
&.align-center {
align-items: center;
}
&.align-start {
align-items: flex-start;
}
&.align-end {
align-items: end;
}
&.align-baseline {
align-items: baseline;
}
2017-07-03 14:01:35 +02:00
&.justify-between {
justify-content: space-between;
}
2017-12-21 11:41:44 +01:00
&.justify-center {
justify-content: center;
}
&.justify-start {
justify-content: flex-start;
}
&.justify-end {
justify-content: flex-end;
}
&.wrap {
flex-wrap: wrap;
}
&.column {
flex-direction: column;
}
&.row-reverse {
flex-direction: row-reverse;
}
2023-04-24 15:13:21 +02:00
&.auto {
flex: auto;
}
}
.flex-grow {
flex-grow: 1;
2017-07-03 14:01:35 +02:00
}
.flex-no-shrink {
flex-shrink: 0;
}
.flex-gap-1 {
gap: $default-spacer;
}
.flex-gap-2 {
gap: 2 * $default-spacer;
}
.flex-1 {
flex: 1;
}