diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-20 17:49:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-20 17:49:58 +0100 |
commit | 5f0805d39b94eb2de1b73e0f43ac8685ae900994 (patch) | |
tree | cba6c3022caad5e424bd6639bbaaae92113b7b7f /client/src/sass/include | |
parent | cb9244de975909bac2922c4412fd948646ff3ba7 (diff) | |
download | PeerTube-5f0805d39b94eb2de1b73e0f43ac8685ae900994.tar.gz PeerTube-5f0805d39b94eb2de1b73e0f43ac8685ae900994.tar.zst PeerTube-5f0805d39b94eb2de1b73e0f43ac8685ae900994.zip |
Design modals
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_bootstrap.scss | 2 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 47 |
2 files changed, 48 insertions, 1 deletions
diff --git a/client/src/sass/include/_bootstrap.scss b/client/src/sass/include/_bootstrap.scss index 3857bb521..4f0e2893e 100644 --- a/client/src/sass/include/_bootstrap.scss +++ b/client/src/sass/include/_bootstrap.scss | |||
@@ -37,7 +37,7 @@ | |||
37 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/panels"; | 37 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/panels"; |
38 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/responsive-embed"; | 38 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/responsive-embed"; |
39 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/wells"; | 39 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/wells"; |
40 | @import "~bootstrap-sass/assets/stylesheets/bootstrap/close"; | 40 | //@import "~bootstrap-sass/assets/stylesheets/bootstrap/close"; |
41 | 41 | ||
42 | // Components w/ JavaScript | 42 | // Components w/ JavaScript |
43 | @import "~bootstrap-sass/assets/stylesheets/bootstrap/modals"; | 43 | @import "~bootstrap-sass/assets/stylesheets/bootstrap/modals"; |
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 | ||