Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 00feb24

Browse files
author
Kerry
authored
add spacing variables (#7456)
* add spacing variables Signed-off-by: Kerry Archibald <[email protected]> * eof Signed-off-by: Kerry Archibald <[email protected]>
1 parent f4a94f6 commit 00feb24

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

res/css/_components.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import "./_common.scss";
44
@import "./_font-sizes.scss";
55
@import "./_font-weights.scss";
6+
@import "./_spacing.scss";
67
@import "./structures/_AutoHideScrollbar.scss";
78
@import "./structures/_BackdropPanel.scss";
89
@import "./structures/_CompatibilityPage.scss";

res/css/_spacing.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2022 The Matrix.org Foundation C.I.C.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// 1rem :: 10px
18+
19+
$spacing-4: 4px;
20+
$spacing-8: 8px;
21+
$spacing-12: 12px;
22+
$spacing-16: 16px;
23+
$spacing-20: 20px;
24+
$spacing-24: 24px;
25+
$spacing-28: 28px;
26+
$spacing-32: 32px;
27+
$spacing-40: 40px;

0 commit comments

Comments
 (0)