mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
8d501e1c24
* Fixes CustomFieldsetsController::fields() which I think is not used anywhere else and don't think ever worked as you can't call get() on a Collection. Have tested extensively and doesn't seem to affect anywhere else? * Adds default value functionality * Adds built assets * Fixes assignment to asset_model_id which should have been evaluation and alters route so it sits more in line with existing work * Updates built assets * Remove silly docker.env file; fix Dockerfile to preserve Oauth keys (#5377) * Added department to custom asset export Updates build assets * Adds translation support for 'add default values' checkbox label
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
/*
|
|
* Helpers: Spacing
|
|
* Universal minor spacing classes to help space things out without
|
|
* use-dedicated classes
|
|
* -----------------
|
|
*/
|
|
|
|
@props: margin m, padding p;
|
|
@spacers: xs 5px 10px,
|
|
sm 10px 20px,
|
|
md 20px 30px;
|
|
|
|
.loop-props(@prop-index) when (@prop-index > 0){
|
|
@prop: extract(@props, @prop-index);
|
|
@prop-name: extract(@prop, 1);
|
|
@abbrev: extract(@prop, 2);
|
|
|
|
.loop-sizes(@prop-name; @abbrev; length(@spacers));
|
|
|
|
.loop-props(@prop-index - 1);
|
|
}
|
|
|
|
.loop-props(length(@props)) !important;
|
|
|
|
.loop-sizes(@prop-name; @abbrev; @size-index) when (@size-index > 0){
|
|
@spacer: extract(@spacers, @size-index);
|
|
@size: extract(@spacer, 1);
|
|
@x: extract(@spacer, 2);
|
|
@y: extract(@spacer, 3);
|
|
|
|
.@{abbrev}-a-@{size} {
|
|
@{prop-name}: @y @x;
|
|
}
|
|
.@{abbrev}-t-@{size} {
|
|
@{prop-name}-top: @y;
|
|
}
|
|
.@{abbrev}-r-@{size} {
|
|
@{prop-name}-right: @x;
|
|
}
|
|
.@{abbrev}-b-@{size} {
|
|
@{prop-name}-bottom: @y;
|
|
}
|
|
.@{abbrev}-l-@{size} {
|
|
@{prop-name}-left: @x;
|
|
}
|
|
.@{abbrev}-x-@{size} {
|
|
@{prop-name}-right: @x;
|
|
@{prop-name}-left: @x;
|
|
}
|
|
.@{abbrev}-y-@{size} {
|
|
@{prop-name}-top: @y;
|
|
@{prop-name}-bottom: @y;
|
|
}
|
|
|
|
.loop-sizes(@prop-name; @abbrev; @size-index - 1);
|
|
}
|