mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:52:45 +08:00
04a63cfaaa
This commit also: - removes [+ New Topic] behaviour from share, this feature has been duplicated in composer actions, months ago - introduces our new experimental spacing standard for css: eg: `s(2)` - introduces a new panel UI for modals
18 lines
280 B
SCSS
18 lines
280 B
SCSS
$base-space: 4px;
|
|
|
|
@function s(
|
|
$sizes: (
|
|
0
|
|
)
|
|
) {
|
|
$spaces: ();
|
|
@each $size in $sizes {
|
|
@if ($size == 0) {
|
|
// strip units from 0 values
|
|
@return $size / ($size * 0 + 1);
|
|
}
|
|
$spaces: append($spaces, ($size * $base-space));
|
|
}
|
|
@return $spaces;
|
|
}
|