codeclimate-styles 0.5.0 → 0.6.0

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: 04f9cf752bab5c008607196aa542295289fd6ecb
4
- data.tar.gz: fbf2bae840a66fab649c99cca972905959869c58
3
+ metadata.gz: 26355d70d8919d153223d2ee707184672ea50174
4
+ data.tar.gz: aa4c8e012df09882e52f5961fec97818f5ab0f4a
5
5
  SHA512:
6
- metadata.gz: eafab41382f4c1a7aec3652e746ca2ef6dd47c098bcbbdea98f74647004b53e8bcb9babf9b5e7e6d0b53aa00b64a3a7fc83c8e7292c357583c1d4e2b0a6a5109
7
- data.tar.gz: 69a90ecd88f3b2473e35cf96c4bd2b26723f045f380acd08d4b0160c004352a1f68469b4961ea92bf57eec874abd10f3f4d13ff22a4f86f344543e8f11d2dbb9
6
+ metadata.gz: e62104213a90e67016ee526d280adef22466768a25fd97c908423996da873b93497e2ee0a7155371055c1fbde3fa7fbd15370f8fa45d1a57a44d83ab3421c3fd
7
+ data.tar.gz: 66d33611e3d9bb55e8d2afeccac68fb90526726807eb57e45674380e27faff411587f88a87098b4fb5762cd0c53ac87684b3df0a70f8703f620bad7dd1f32f1a
@@ -66,41 +66,7 @@ form.form
66
66
  line-height: 20px;
67
67
  }
68
68
  }
69
- // scss-lint:enable SelectorFormat, QualifyingElement
70
69
 
71
- .form--search {
72
- &::before {
73
- @include ff-mask-image(image-url("cc/styles/icons/search_solid.svg"));
74
- background: $grayscale-slate;
75
- content: " ";
76
- height: 39px;
77
- left: 11px;
78
- mask-position: center;
79
- mask-repeat: no-repeat;
80
- mask-size: 100% auto;
81
- position: absolute;
82
- width: 15px;
83
-
84
- // Afer 01-05-2017 this can be removed & replaced with simply `mask-image`.
85
- @-moz-document url-prefix() {
86
- background-position: center 11px;
87
- }
88
- }
89
-
90
- // scss-lint:disable QualifyingElement
91
- input[type=search] {
92
- padding-left: 30px;
93
- width: 230px;
94
-
95
- &:focus,
96
- &:not(:placeholder-shown) {
97
- width: 320px;
98
- }
99
- }
100
- // scss-lint:enable QualifyingElement
101
- }
102
-
103
- // scss-lint:disable SelectorFormat, QualifyingElement
104
70
  // simple_form applies these classes to wrapper elements
105
71
  /*doc
106
72
  ---
@@ -110,7 +76,7 @@ category: forms
110
76
  ---
111
77
 
112
78
  ```slim_example
113
- input.input type="text" placeholder="Search for a repo..."
79
+ input.input type="text" placeholder="Placeholder text"
114
80
  ```
115
81
  */
116
82
 
@@ -142,6 +108,51 @@ textarea.input {
142
108
  }
143
109
  }
144
110
 
111
+ /*doc
112
+ ---
113
+ title: Search
114
+ name: search
115
+ category: forms
116
+ ---
117
+
118
+ ```slim_example
119
+ form.form--search
120
+ input.input type="search" id="search-field" placeholder="Search for a repo..."
121
+ ```
122
+ */
123
+
124
+ .form--search {
125
+ position: relative;
126
+
127
+ &::before {
128
+ @include ff-mask-image(image-url("cc/styles/icons/search_solid.svg"));
129
+ background: $grayscale-slate;
130
+ content: " ";
131
+ height: 39px;
132
+ left: 11px;
133
+ mask-position: center;
134
+ mask-repeat: no-repeat;
135
+ mask-size: 100% auto;
136
+ position: absolute;
137
+ width: 15px;
138
+
139
+ // Afer 01-05-2017 this can be removed & replaced with simply `mask-image`.
140
+ @-moz-document url-prefix() {
141
+ background-position: center 11px;
142
+ }
143
+ }
144
+
145
+ input[type=search] {
146
+ padding-left: 30px;
147
+ width: 230px;
148
+
149
+ &:focus,
150
+ &:not(:placeholder-shown) {
151
+ width: 320px;
152
+ }
153
+ }
154
+ }
155
+
145
156
  /*doc
146
157
  ---
147
158
  title: Checkbox
@@ -171,20 +182,10 @@ $checkbox-border-size: 2px;
171
182
  input:checked + label::before {
172
183
  background-color: $green;
173
184
  border-color: $green;
174
-
175
- // Afer 01-05-2017 this can be removed
176
- @-moz-document url-prefix() {
177
- background-color: $grayscale-aluminium;
178
- }
179
185
  }
180
186
 
181
187
  input:checked + label::after {
182
188
  background-color: $white;
183
-
184
- // Afer 01-05-2017 this can be removed
185
- @-moz-document url-prefix() {
186
- background: image-url("cc/styles/icons/checkmark.svg") 1px 3px no-repeat transparent;
187
- }
188
189
  }
189
190
 
190
191
  label {
@@ -242,6 +243,7 @@ $select-box-shadow-color: rgba(0, 0, 0, .06);
242
243
 
243
244
  select.select {
244
245
  -webkit-appearance: none;
246
+ -moz-appearance: none;
245
247
  background: $white;
246
248
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSI2cHgiIHZpZXdCb3g9IjAgMCAxMCA2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA0MC4yICgzMzgyNikgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+R3JvdXAgMjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSItIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWNhcD0icm91bmQiPgogICAgICAgIDxnIGlkPSJJc3N1ZXMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMjQxLjAwMDAwMCwgLTQzNi4wMDAwMDApIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iIzlCOUI5QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMjQyLjAwMDAwMCwgNDM3LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMy41MzU1MzM5MSwzLjUzNTUzMzkxIEwwLDAiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNCwzLjUzNTUzMzkxIEw3LjUzNTUzMzkxLDAiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==);
247
249
  background-position: right 10px center;
@@ -257,5 +259,104 @@ select.select {
257
259
  outline: none;
258
260
  padding: 10px 12px;
259
261
  width: 100%;
262
+
263
+ &::-moz-focus-inner {
264
+ border: 0;
265
+ }
266
+
267
+ &::-moz-focus-outer {
268
+ border: 0;
269
+ }
260
270
  }
271
+
272
+ /*doc
273
+ ---
274
+ title: Range Slider
275
+ name: slider
276
+ category: forms
277
+ ---
278
+
279
+ ```slim_example
280
+ input type="range" min="0" max="100" value="80" step="1"
281
+ ```
282
+ */
283
+
284
+ input[type=range] {
285
+ height: 20px;
286
+ width: 100%;
287
+ -webkit-appearance: none;
288
+
289
+ &:focus {
290
+ outline: none;
291
+ }
292
+
293
+ &::-moz-focus-outer {
294
+ border: 0;
295
+ }
296
+
297
+ &::-webkit-slider-thumb {
298
+ background-color: $green;
299
+ border-radius: 3px;
300
+ cursor: pointer;
301
+ height: 20px;
302
+ margin-top: -8px;
303
+ width: 20px;
304
+ -webkit-appearance: none;
305
+ }
306
+
307
+ &::-moz-range-thumb {
308
+ background-color: $green;
309
+ border: none;
310
+ border-radius: 3px;
311
+ cursor: pointer;
312
+ height: 20px;
313
+ width: 20px;
314
+ }
315
+
316
+ &::-ms-thumb {
317
+ background-color: $green;
318
+ border-radius: 3px;
319
+ cursor: pointer;
320
+ height: 20px;
321
+ width: 20px;
322
+ }
323
+
324
+ &::-webkit-slider-thumb {
325
+ margin-top: -8px;
326
+ -webkit-appearance: none;
327
+ }
328
+
329
+ &::-webkit-slider-runnable-track {
330
+ background-color: $box-border-color;
331
+ border-radius: 2px;
332
+ cursor: pointer;
333
+ height: 4px;
334
+ }
335
+
336
+ &::-moz-range-track {
337
+ background-color: $box-border-color;
338
+ border-radius: 2px;
339
+ cursor: pointer;
340
+ height: 4px;
341
+ }
342
+
343
+ &::-ms-track {
344
+ background: transparent;
345
+ border-color: transparent;
346
+ color: transparent;
347
+ cursor: pointer;
348
+ width: 100%;
349
+ }
350
+
351
+ &::-ms-fill-upper {
352
+ background-color: $box-border-color;
353
+ cursor: pointer;
354
+ }
355
+
356
+ &::-ms-fill-lower {
357
+ background-color: $box-border-color;
358
+ cursor: pointer;
359
+ }
360
+ }
361
+
261
362
  // scss-lint:enable SelectorFormat, QualifyingElement
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Styles
3
- VERSION = "0.5.0".freeze
3
+ VERSION = "0.6.0".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.5.0
4
+ version: 0.6.0
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-05-17 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Foundational stylesheets for Code Climate properties
14
14
  email: