codeclimate-styles 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de6a4dc0aeab3ae9328727ebcf4027c3f01e8ae5
4
- data.tar.gz: 7b853a286b7f82532bc918470a0297a68fc9b1ff
3
+ metadata.gz: 2a21849b6af04dab99f3d31ff4da51667ce27e7a
4
+ data.tar.gz: bd6ddf105ab571c0c8b3fded18dc4a2962a155d2
5
5
  SHA512:
6
- metadata.gz: 0a38e7fd409b96ee5ebc202598ab90fddf87f51d7a428dea8e3d6f66b0cd92f32d9c53bde681d03e86936230f9eece959a219a19441f2e9a7a0d7ad636338b83
7
- data.tar.gz: 8a4a5d260f6cc4023bd5f5dc5103ba2462351aac974a02ca111518b3983b971ee542aeb6070086c52a402d287c0f0d89ea4a94285024da4e4b97daea8649c276
6
+ metadata.gz: d05f9a460fed4ab47f2c2c00482db3b5b080df8a6ea4570927b933c36fa10465ff39d66f7df0593bb1355be1788ec2b42aa6a83d5ac9d0b6c5eac95b95e1d68a
7
+ data.tar.gz: 784e15bee03ec3ffad81f23e123d41f9f33be813bfa5310f4a73ecc10da28eed30b6416319239d518b0451e05cfff15b16802331dbb806df0528e034b6a58a7e
@@ -164,14 +164,14 @@ category: forms
164
164
  form.form
165
165
  .checkbox-group
166
166
  .checkbox
167
- input type="checkbox" id="checkbox1"
167
+ input(type="checkbox" id="checkbox1")
168
168
  label(for="checkbox1") Option 1
169
169
  .checkbox
170
- input type="checkbox" id="checkbox2"
170
+ input(type="checkbox" id="checkbox2")
171
171
  label(for="checkbox2") Option 2
172
172
  .checkbox
173
- input type="checkbox" id="checkbox3"
174
- label(for="checkbox3") Option 3
173
+ input(type="checkbox" id="checkbox3" disabled)
174
+ label(for="checkbox3") Option 3 (disabled)
175
175
  ```
176
176
  */
177
177
 
@@ -181,7 +181,7 @@ $checkbox-border-size: 2px;
181
181
  .checkbox-group {
182
182
  .checkbox {
183
183
  margin-bottom: 15px;
184
- margin-right: 15px;
184
+ margin-right: 20px;
185
185
  }
186
186
  }
187
187
 
@@ -234,8 +234,29 @@ $checkbox-border-size: 2px;
234
234
  mask-size: 70% auto;
235
235
  width: $checkbox-size;
236
236
  }
237
+
238
+ &:hover {
239
+ &::before {
240
+ border-color: $green-light;
241
+ }
242
+ }
243
+ }
244
+
245
+ input:disabled + label {
246
+ cursor: not-allowed;
247
+ opacity: .5;
248
+
249
+ &::before {
250
+ border: 2px solid $grayscale-slate;
251
+ }
237
252
  }
238
253
 
254
+ input:disabled:checked + label {
255
+ &::before {
256
+ background-color: $grayscale-slate;
257
+ border-color: $grayscale-slate;
258
+ }
259
+ }
239
260
  }
240
261
 
241
262
  /*doc
@@ -249,21 +270,21 @@ category: forms
249
270
  form.form
250
271
  .radio-button-group
251
272
  .radio-button
252
- input type="radio" id="radio1" name="radio-group-1"
273
+ input(type="radio" id="radio1" name="radio-group-1")
253
274
  label(for="radio1") Option 1
254
275
  .radio-button
255
- input type="radio" id="radio2" name="radio-group-1"
276
+ input(type="radio" id="radio2" name="radio-group-1")
256
277
  label(for="radio2") Option 2
257
278
  .radio-button
258
- input type="radio" id="radio3" name="radio-group-1"
259
- label(for="radio3") Option 3
279
+ input(type="radio" id="radio3" name="radio-group-1" disabled)
280
+ label(for="radio3") Option 3 (disabled)
260
281
  ```
261
282
  */
262
283
 
263
284
  .radio-button-group {
264
285
  .radio-button {
265
286
  margin-bottom: 15px;
266
- margin-right: 15px;
287
+ margin-right: 20px;
267
288
  }
268
289
  }
269
290
 
@@ -280,6 +301,7 @@ form.form
280
301
  cursor: pointer;
281
302
  display: flex;
282
303
  padding-left: 30px;
304
+ position: relative;
283
305
 
284
306
  &::before,
285
307
  &::after {
@@ -288,32 +310,57 @@ form.form
288
310
  height: 16px;
289
311
  left: 0;
290
312
  position: absolute;
313
+ top: 50%;
291
314
  transition: all .15s ease-in-out;
292
315
  width: 16px;
293
316
  }
294
317
 
295
318
  &::before {
296
319
  border: 2px solid $grayscale-aluminium;
320
+ margin-top: -10px;
297
321
  }
298
322
 
299
323
  &::after {
300
324
  background-color: $green;
301
325
  height: 12px;
302
326
  left: 4px;
327
+ margin-top: -6px;
303
328
  opacity: 0;
304
- top: 2px;
305
329
  transform: scale(.25);
306
330
  width: 12px;
307
331
  }
332
+
333
+ &:hover {
334
+ &::before {
335
+ border-color: $green-light;
336
+ }
337
+ }
308
338
  }
309
339
 
310
- input:checked + label::before {
311
- border: 2px solid lighten($green, .2);
340
+ input:checked + label {
341
+ &::before {
342
+ border: 2px solid lighten($green, .2);
343
+ }
344
+
345
+ &::after {
346
+ opacity: 1;
347
+ transform: scale(1);
348
+ }
312
349
  }
313
350
 
314
- input:checked + label::after {
315
- opacity: 1;
316
- transform: scale(1);
351
+ input:disabled + label {
352
+ cursor: not-allowed;
353
+ opacity: .5;
354
+
355
+ &::before {
356
+ border: 2px solid $grayscale-slate;
357
+ }
358
+ }
359
+
360
+ input:disabled:checked + label {
361
+ &::after {
362
+ background-color: $grayscale-slate;
363
+ }
317
364
  }
318
365
  }
319
366
 
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Styles
3
- VERSION = "0.7.0".freeze
3
+ VERSION = "0.7.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Foundational stylesheets for Code Climate properties
14
14
  email: