diff options
Diffstat (limited to 'client/src/sass/include/_mixins.scss')
-rw-r--r-- | client/src/sass/include/_mixins.scss | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index a07bd5d28..252cf2173 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -22,6 +22,14 @@ | |||
22 | } | 22 | } |
23 | } | 23 | } |
24 | 24 | ||
25 | @mixin peertube-textarea ($width, $height) { | ||
26 | @include peertube-input-text($width); | ||
27 | |||
28 | height: $height; | ||
29 | padding: 5px 15px; | ||
30 | font-size: 15px; | ||
31 | } | ||
32 | |||
25 | @mixin orange-button { | 33 | @mixin orange-button { |
26 | &, &:active, &:focus { | 34 | &, &:active, &:focus { |
27 | color: #fff; | 35 | color: #fff; |
@@ -101,6 +109,7 @@ | |||
101 | overflow: hidden; | 109 | overflow: hidden; |
102 | background: #fff; | 110 | background: #fff; |
103 | position: relative; | 111 | position: relative; |
112 | font-size: 15px; | ||
104 | 113 | ||
105 | &:after { | 114 | &:after { |
106 | top: 50%; | 115 | top: 50%; |
@@ -149,6 +158,44 @@ | |||
149 | } | 158 | } |
150 | } | 159 | } |
151 | 160 | ||
161 | // Thanks: https://codepen.io/triss90/pen/XNEdRe/ | ||
162 | @mixin peertube-radio-container { | ||
163 | input[type="radio"] { | ||
164 | display: none; | ||
165 | |||
166 | & + label { | ||
167 | font-weight: $font-regular; | ||
168 | cursor: pointer; | ||
169 | |||
170 | &:before { | ||
171 | position: relative; | ||
172 | top: -2px; | ||
173 | content: ''; | ||
174 | background: #fff; | ||
175 | border-radius: 100%; | ||
176 | border: 1px solid #000; | ||
177 | display: inline-block; | ||
178 | width: 15px; | ||
179 | height: 15px; | ||
180 | vertical-align: middle; | ||
181 | cursor: pointer; | ||
182 | text-align: center; | ||
183 | margin-right: 10px; | ||
184 | } | ||
185 | } | ||
186 | |||
187 | &:checked + label:before { | ||
188 | background-color: #000; | ||
189 | box-shadow: inset 0 0 0 4px #fff; | ||
190 | } | ||
191 | |||
192 | &:focus + label:before { | ||
193 | outline: none; | ||
194 | border-color: #000; | ||
195 | } | ||
196 | } | ||
197 | } | ||
198 | |||
152 | @mixin peertube-checkbox ($border-width) { | 199 | @mixin peertube-checkbox ($border-width) { |
153 | display: none; | 200 | display: none; |
154 | 201 | ||