85a588541b
wip(dossier_created_hook): add tile to administrateurs/procedure#show in order to crud dossier_created_hook refactor(css.utilities): remove merge helpers.scss within utils.scss (same purpose). use scss each for spacer modifiers refactor(dossiers/_merci.html): extract partial _merci so we can re-use it in preview of dossier_created_hook. feat(wip): current progress
99 lines
1.4 KiB
SCSS
99 lines
1.4 KiB
SCSS
@import "colors";
|
|
@import "constants";
|
|
|
|
// floats
|
|
.pull-left {
|
|
float: left;
|
|
}
|
|
|
|
.pull-right {
|
|
float: right;
|
|
}
|
|
|
|
.clearfix {
|
|
clear: both;
|
|
}
|
|
|
|
|
|
// text
|
|
.text-center,
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.text-sm {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.text-lg {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.numbers-delimiter {
|
|
display: inline-block;
|
|
width: 5px;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin: 60px 0;
|
|
}
|
|
|
|
.empty-text-details {
|
|
margin-bottom: 60px;
|
|
text-align: center;
|
|
|
|
.empty-text + & {
|
|
margin-top: -50px;
|
|
}
|
|
}
|
|
|
|
// display
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
// sizing
|
|
.width-100 {
|
|
width: 100%;
|
|
}
|
|
|
|
// who known
|
|
.highlighted {
|
|
background: $orange-bg;
|
|
color: $black;
|
|
}
|
|
|
|
// generate spacer utility like bootstrap my-2 -> margin-left/right: 2 * $default-spacer
|
|
// using $direction.key as css modifier, $direction.values to set css properties
|
|
// scale it using $steps
|
|
$directions: (
|
|
"t": ("margin-top"),
|
|
"r": ("margin-right"),
|
|
"b": ("margin-bottom"),
|
|
"l": ("margin-left"),
|
|
"x": ("margin-left", "margin-right"),
|
|
"y": ("margin-top", "margin-bottom"),
|
|
"": ("margin")
|
|
);
|
|
$steps: (0, 1, 2, 3, 4, 5, 6, 7, 8);
|
|
|
|
@each $modifier, $properties in $directions {
|
|
@each $step in $steps {
|
|
@each $property in $properties {
|
|
.m#{$modifier}-#{$step} {
|
|
#{$property}: $step * $default-spacer;
|
|
}
|
|
}
|
|
}
|
|
}
|