diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-31 11:21:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-31 11:21:10 +0200 |
commit | d794137057fc5fcea10ddd29f82e79ee2412fea4 (patch) | |
tree | da37f7efd604687c243cb2cd2cad6af932dcab8a /client/src/sass/include/_variables.scss | |
parent | 218f730c7bceda5511d46f26191e7b1726c9ffd3 (diff) | |
download | PeerTube-d794137057fc5fcea10ddd29f82e79ee2412fea4.tar.gz PeerTube-d794137057fc5fcea10ddd29f82e79ee2412fea4.tar.zst PeerTube-d794137057fc5fcea10ddd29f82e79ee2412fea4.zip |
Refactor horizontal margins
Diffstat (limited to 'client/src/sass/include/_variables.scss')
-rw-r--r-- | client/src/sass/include/_variables.scss | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index 532eaf650..8c5e75864 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -34,7 +34,7 @@ $green: #39CC0B; | |||
34 | $grey-actor-name: #777272; | 34 | $grey-actor-name: #777272; |
35 | 35 | ||
36 | $expanded-horizontal-margins: 150px; | 36 | $expanded-horizontal-margins: 150px; |
37 | $not-expanded-horizontal-margins: 30px; | 37 | $not-expanded-horizontal-margins: 60px; |
38 | 38 | ||
39 | $button-height: 30px; | 39 | $button-height: 30px; |
40 | 40 | ||
@@ -122,11 +122,19 @@ $variables: ( | |||
122 | --supportButtonHeartColor: var(--supportButtonHeartColor), | 122 | --supportButtonHeartColor: var(--supportButtonHeartColor), |
123 | 123 | ||
124 | --embedForegroundColor: var(--embedForegroundColor), | 124 | --embedForegroundColor: var(--embedForegroundColor), |
125 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor) | 125 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor), |
126 | |||
127 | --horizontalMarginContent: var(--horizontalMarginContent), | ||
128 | --mainColWidth: var(--mainColWidth) | ||
126 | ); | 129 | ); |
127 | 130 | ||
131 | // SASS type check our CSS variables | ||
128 | @function pvar($variable) { | 132 | @function pvar($variable) { |
129 | @return map-get($variables, $variable); | 133 | @if map-has-key($variables, $variable) { |
134 | @return map-get($variables, $variable); | ||
135 | } @else { | ||
136 | @error "ERROR: Variable #{$variable} does not exist"; | ||
137 | } | ||
130 | } | 138 | } |
131 | 139 | ||
132 | /*** z-index groups ***/ | 140 | /*** z-index groups ***/ |