codeclimate-styles 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -0
- data/assets/images/cc/styles/icons/add_collaborator_linear.svg +1 -0
- data/assets/images/cc/styles/icons/add_collaborator_solid.svg +1 -0
- data/assets/images/cc/styles/icons/add_linear.svg +1 -0
- data/assets/images/cc/styles/icons/add_solid.svg +1 -0
- data/assets/images/cc/styles/icons/alert_solid.svg +1 -0
- data/assets/images/cc/styles/icons/arrow_linear.svg +1 -0
- data/assets/images/cc/styles/icons/arrow_solid.svg +1 -0
- data/assets/images/cc/styles/icons/badge_linear.svg +1 -0
- data/assets/images/cc/styles/icons/badge_solid.svg +1 -0
- data/assets/images/cc/styles/icons/branch_solid.svg +1 -0
- data/assets/images/cc/styles/icons/checkmark.svg +1 -0
- data/assets/images/cc/styles/icons/code_badge.svg +1 -0
- data/assets/images/cc/styles/icons/docs_linear.svg +1 -0
- data/assets/images/cc/styles/icons/docs_solid.svg +1 -0
- data/assets/images/cc/styles/icons/error.svg +1 -0
- data/assets/images/cc/styles/icons/eye_disabled.svg +1 -0
- data/assets/images/cc/styles/icons/eye_enabled.svg +1 -0
- data/assets/images/cc/styles/icons/file_linear.svg +1 -0
- data/assets/images/cc/styles/icons/files_linear.svg +1 -0
- data/assets/images/cc/styles/icons/files_solid.svg +1 -0
- data/assets/images/cc/styles/icons/folder_linear.svg +1 -0
- data/assets/images/cc/styles/icons/folder_solid.svg +1 -0
- data/assets/images/cc/styles/icons/hourglass_badge.svg +1 -0
- data/assets/images/cc/styles/icons/info_linear.svg +1 -0
- data/assets/images/cc/styles/icons/info_solid.svg +1 -0
- data/assets/images/cc/styles/icons/link_arrow.svg +1 -0
- data/assets/images/cc/styles/icons/lock_linear.svg +1 -0
- data/assets/images/cc/styles/icons/lock_solid.svg +1 -0
- data/assets/images/cc/styles/icons/logout_linear.svg +1 -0
- data/assets/images/cc/styles/icons/new_alert.svg +1 -0
- data/assets/images/cc/styles/icons/nubbin_arrow.svg +1 -0
- data/assets/images/cc/styles/icons/post_entry.svg +1 -0
- data/assets/images/cc/styles/icons/post_entry_unread.svg +1 -0
- data/assets/images/cc/styles/icons/search_linear.svg +1 -0
- data/assets/images/cc/styles/icons/search_solid.svg +1 -0
- data/assets/images/cc/styles/icons/settings_linear.svg +1 -0
- data/assets/images/cc/styles/icons/settings_solid.svg +1 -0
- data/assets/images/cc/styles/icons/small_dismiss_x.svg +1 -0
- data/assets/images/cc/styles/icons/star_linear.svg +1 -0
- data/assets/images/cc/styles/icons/star_solid.svg +1 -0
- data/assets/images/cc/styles/icons/sucess.svg +1 -0
- data/assets/images/cc/styles/icons/sync.svg +1 -0
- data/assets/images/cc/styles/icons/ticket_linear.svg +1 -0
- data/assets/images/cc/styles/icons/trial_icon.svg +1 -0
- data/assets/images/cc/styles/icons/user_settings_linear.svg +1 -0
- data/assets/images/cc/styles/logo/ff_logo_white.svg +1 -0
- data/assets/images/cc/styles/logo/logo.svg +1 -0
- data/assets/images/cc/styles/logo/logo_with_wordmark.svg +1 -0
- data/assets/javascripts/cc/styles/grid_overlay.js +151 -0
- data/assets/stylesheets/cc/_styles.scss +5 -0
- data/assets/stylesheets/cc/styles/_colors.scss +75 -0
- data/assets/stylesheets/cc/styles/_mixins.scss +2 -0
- data/assets/stylesheets/cc/styles/_modules.scss +9 -0
- data/assets/stylesheets/cc/styles/mixins/_ff_mask_image.scss +9 -0
- data/assets/stylesheets/cc/styles/mixins/_transitions.scss +7 -0
- data/assets/stylesheets/cc/styles/modules/_buttons.scss +186 -0
- data/assets/stylesheets/cc/styles/modules/_code.scss +221 -0
- data/assets/stylesheets/cc/styles/modules/_forms.scss +246 -0
- data/assets/stylesheets/cc/styles/modules/_layout.scss +237 -0
- data/assets/stylesheets/cc/styles/modules/_lists.scss +178 -0
- data/assets/stylesheets/cc/styles/modules/_misc.scss +820 -0
- data/assets/stylesheets/cc/styles/modules/_tabs.scss +80 -0
- data/assets/stylesheets/cc/styles/modules/_typography.scss +220 -0
- data/assets/stylesheets/cc/styles/modules/_util.scss +27 -0
- data/assets/stylesheets/vendor/reset.scss +2 -0
- data/codeclimate-styles.gemspec +18 -0
- data/lib/cc/styles/engine.rb +18 -0
- data/lib/cc/styles/version.rb +5 -0
- data/lib/cc/styles.rb +13 -0
- data/lib/codeclimate-styles.rb +3 -0
- metadata +116 -0
@@ -0,0 +1,186 @@
|
|
1
|
+
/*doc
|
2
|
+
---
|
3
|
+
title: Button
|
4
|
+
name: button
|
5
|
+
category: buttons
|
6
|
+
---
|
7
|
+
|
8
|
+
Buttons can be `a`, `button`, or `input` tags.
|
9
|
+
|
10
|
+
- `:hover` - Slighly elevates and thicker shadow on hover.
|
11
|
+
- `:active` - Depressed and darker green on active state.
|
12
|
+
- `:disabled` - Becomes monochromatic on disabled state.
|
13
|
+
- `.btn--primary` - Indicates button is primary action.
|
14
|
+
|
15
|
+
```slim_example
|
16
|
+
button.btn Submit
|
17
|
+
button.btn.btn--disabled Submit
|
18
|
+
button.btn.btn--primary Submit
|
19
|
+
button.btn.btn--primary.btn--disabled Submit
|
20
|
+
```
|
21
|
+
*/
|
22
|
+
|
23
|
+
/*doc
|
24
|
+
---
|
25
|
+
title: Large button
|
26
|
+
name: large-button
|
27
|
+
category: buttons
|
28
|
+
---
|
29
|
+
|
30
|
+
Large buttons should be used sparigingly, e.g. for "hero" CTAs.
|
31
|
+
|
32
|
+
```slim_example
|
33
|
+
button.btn.btn--large Submit
|
34
|
+
button.btn.btn--large.btn--primary Submit
|
35
|
+
```
|
36
|
+
*/
|
37
|
+
|
38
|
+
.btn {
|
39
|
+
background-color: $white;
|
40
|
+
border: 1px solid $box-border-color;
|
41
|
+
border-radius: 4px;
|
42
|
+
box-shadow: 0 1px 3px $box-shadow-color;
|
43
|
+
color: $grayscale-smoke;
|
44
|
+
cursor: pointer;
|
45
|
+
display: inline-block;
|
46
|
+
font-size: 16px;
|
47
|
+
line-height: 1;
|
48
|
+
outline: none;
|
49
|
+
padding: 6px 22px;
|
50
|
+
transform: translateY(0);
|
51
|
+
transition: box-shadow .25s ease, background-color .25s ease, transform .25s ease;
|
52
|
+
|
53
|
+
&:hover,
|
54
|
+
&:focus {
|
55
|
+
border-color: $green-dark;
|
56
|
+
box-shadow: 0 5px 7px $box-shadow-color;
|
57
|
+
color: $green-dark;
|
58
|
+
transform: translateY(-2px);
|
59
|
+
}
|
60
|
+
|
61
|
+
&:active {
|
62
|
+
border-color: $green-dark;
|
63
|
+
box-shadow: 0 1px 3px $box-shadow-color;
|
64
|
+
transform: translateY(0);
|
65
|
+
}
|
66
|
+
|
67
|
+
&:disabled,
|
68
|
+
&.btn--disabled {
|
69
|
+
background-color: $grayscale-pearl;
|
70
|
+
box-shadow: 0 1px 3px $box-shadow-color-disabled;
|
71
|
+
color: $grayscale-slate;
|
72
|
+
cursor: auto;
|
73
|
+
transform: translateY(0);
|
74
|
+
|
75
|
+
&:hover,
|
76
|
+
&:focus,
|
77
|
+
&:active,
|
78
|
+
&.btn--disabled {
|
79
|
+
border-color: $box-border-color;
|
80
|
+
color: $grayscale-slate;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
&.btn--primary {
|
85
|
+
background-color: $green;
|
86
|
+
border: 1px solid $green;
|
87
|
+
color: $white;
|
88
|
+
|
89
|
+
&:active {
|
90
|
+
background-color: $green-dark;
|
91
|
+
border: 1px solid $green-dark;
|
92
|
+
}
|
93
|
+
|
94
|
+
&:disabled,
|
95
|
+
&.btn--disabled {
|
96
|
+
background-color: lighten($green, 20%);
|
97
|
+
border: 1px solid lighten($green, 20%);
|
98
|
+
color: $grayscale-pearl;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
&.btn--large {
|
103
|
+
font-family: $sans-serif-semibold;
|
104
|
+
font-size: 18px;
|
105
|
+
padding: 15px 30px;
|
106
|
+
}
|
107
|
+
|
108
|
+
&.btn--octicon {
|
109
|
+
line-height: 100%;
|
110
|
+
|
111
|
+
.octicon {
|
112
|
+
margin-right: .4rem;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
}
|
117
|
+
|
118
|
+
/*doc
|
119
|
+
---
|
120
|
+
title: Add Button
|
121
|
+
name: add-button
|
122
|
+
category: buttons
|
123
|
+
---
|
124
|
+
|
125
|
+
- `:hover` - Normal green on hover state.
|
126
|
+
- `:active` - Darker green on active state.
|
127
|
+
- `:disabled` - Less opaque in disabled state.
|
128
|
+
|
129
|
+
```slim_example
|
130
|
+
button.add-btn Submit
|
131
|
+
```
|
132
|
+
*/
|
133
|
+
|
134
|
+
$add-btn-background-color: #d8d8d8;
|
135
|
+
$add-btn-disabled-background-color: #e9e9e9;
|
136
|
+
|
137
|
+
.add-btn {
|
138
|
+
background-color: $add-btn-background-color;
|
139
|
+
border: 0;
|
140
|
+
border-radius: 13px;
|
141
|
+
cursor: pointer;
|
142
|
+
height: 25px;
|
143
|
+
margin: 0;
|
144
|
+
outline: none;
|
145
|
+
padding: 0;
|
146
|
+
position: relative;
|
147
|
+
text-indent: -99999px;
|
148
|
+
transition: background-color .25s ease;
|
149
|
+
white-space: nowrap;
|
150
|
+
width: 25px;
|
151
|
+
|
152
|
+
&:hover {
|
153
|
+
background-color: $green;
|
154
|
+
}
|
155
|
+
|
156
|
+
&::before,
|
157
|
+
&::after {
|
158
|
+
background-color: $white;
|
159
|
+
content: "";
|
160
|
+
position: absolute;
|
161
|
+
}
|
162
|
+
|
163
|
+
&::before {
|
164
|
+
height: 10px;
|
165
|
+
left: 12px;
|
166
|
+
top: 7px;
|
167
|
+
width: 1px;
|
168
|
+
}
|
169
|
+
|
170
|
+
&::after {
|
171
|
+
height: 1px;
|
172
|
+
left: 7px;
|
173
|
+
top: 12px;
|
174
|
+
width: 10px;
|
175
|
+
}
|
176
|
+
|
177
|
+
&:active {
|
178
|
+
background-color: $green-dark;
|
179
|
+
}
|
180
|
+
|
181
|
+
&:disabled,
|
182
|
+
&.disabled {
|
183
|
+
background-color: $add-btn-disabled-background-color;
|
184
|
+
cursor: auto;
|
185
|
+
}
|
186
|
+
}
|
@@ -0,0 +1,221 @@
|
|
1
|
+
// scss-lint:disable all
|
2
|
+
|
3
|
+
/*doc
|
4
|
+
---
|
5
|
+
title: Pre
|
6
|
+
name: pre
|
7
|
+
category: typography
|
8
|
+
---
|
9
|
+
|
10
|
+
```slim_example
|
11
|
+
pre Hello
|
12
|
+
```
|
13
|
+
*/
|
14
|
+
|
15
|
+
pre {
|
16
|
+
font-size: 13px;
|
17
|
+
line-height: 16px;
|
18
|
+
border-radius: 3px;
|
19
|
+
overflow: hidden;
|
20
|
+
font-family: $monospace;
|
21
|
+
}
|
22
|
+
|
23
|
+
/*doc
|
24
|
+
---
|
25
|
+
title: Code
|
26
|
+
name: code
|
27
|
+
category: typography
|
28
|
+
---
|
29
|
+
|
30
|
+
```slim_example
|
31
|
+
div wfleming wants to merge <code>foo</code> into <code>master</code>
|
32
|
+
```
|
33
|
+
*/
|
34
|
+
|
35
|
+
code {
|
36
|
+
background: $grayscale-pearl;
|
37
|
+
color: $grayscale-console;
|
38
|
+
|
39
|
+
.token.comment,
|
40
|
+
.token.prolog,
|
41
|
+
.token.doctype,
|
42
|
+
.token.cdata {
|
43
|
+
color: slategray;
|
44
|
+
}
|
45
|
+
|
46
|
+
.token.punctuation {
|
47
|
+
color: #999;
|
48
|
+
}
|
49
|
+
|
50
|
+
.namespace {
|
51
|
+
opacity: .7;
|
52
|
+
}
|
53
|
+
|
54
|
+
.token.property,
|
55
|
+
.token.tag,
|
56
|
+
.token.boolean,
|
57
|
+
.token.number,
|
58
|
+
.token.constant,
|
59
|
+
.token.symbol,
|
60
|
+
.token.deleted {
|
61
|
+
color: #905;
|
62
|
+
}
|
63
|
+
|
64
|
+
.token.selector,
|
65
|
+
.token.attr-name,
|
66
|
+
.token.string,
|
67
|
+
.token.char,
|
68
|
+
.token.builtin,
|
69
|
+
.token.inserted {
|
70
|
+
color: #690;
|
71
|
+
}
|
72
|
+
|
73
|
+
.token.operator,
|
74
|
+
.token.entity,
|
75
|
+
.token.url,
|
76
|
+
.language-css .token.string,
|
77
|
+
.style .token.string {
|
78
|
+
color: #a67f59;
|
79
|
+
background: hsla(0, 0%, 100%, .5);
|
80
|
+
}
|
81
|
+
|
82
|
+
.token.atrule,
|
83
|
+
.token.attr-value,
|
84
|
+
.token.keyword {
|
85
|
+
color: #07a;
|
86
|
+
}
|
87
|
+
|
88
|
+
.token.function {
|
89
|
+
color: #DD4A68;
|
90
|
+
}
|
91
|
+
|
92
|
+
.token.regex,
|
93
|
+
.token.important,
|
94
|
+
.token.variable {
|
95
|
+
color: #e90;
|
96
|
+
}
|
97
|
+
|
98
|
+
.token.important,
|
99
|
+
.token.bold {
|
100
|
+
font-weight: bold;
|
101
|
+
}
|
102
|
+
.token.italic {
|
103
|
+
font-style: italic;
|
104
|
+
}
|
105
|
+
|
106
|
+
.token.entity {
|
107
|
+
cursor: help;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
:not(pre) > code {
|
112
|
+
font-size: 90%;
|
113
|
+
border-radius: 4px;
|
114
|
+
padding: 2px 4px;
|
115
|
+
font-family: $monospace;
|
116
|
+
}
|
117
|
+
|
118
|
+
pre > code {
|
119
|
+
display: block;
|
120
|
+
padding: 12px;
|
121
|
+
}
|
122
|
+
|
123
|
+
$line-number-width: 57px;
|
124
|
+
$annotation-background-color: rgb(255, 227, 160);
|
125
|
+
$annotation-before-border-color: rgb(227, 196, 121);
|
126
|
+
$covered-background-color: rgba(#85e485, 0.2);
|
127
|
+
$not-covered-background-color: rgba(#ff4e1f, 0.2);
|
128
|
+
|
129
|
+
pre > code[class*="language-"] {
|
130
|
+
padding: 0;
|
131
|
+
border: 1px solid $box-border-color;
|
132
|
+
background: $white;
|
133
|
+
overflow: hidden;
|
134
|
+
|
135
|
+
> div {
|
136
|
+
position: relative;
|
137
|
+
padding: 4px 13px 4px 70px;
|
138
|
+
|
139
|
+
&::before {
|
140
|
+
box-sizing: border-box;
|
141
|
+
content: attr(data-line-number);
|
142
|
+
color: $grayscale-storm;
|
143
|
+
position: absolute;
|
144
|
+
top: 0;
|
145
|
+
left: 0;
|
146
|
+
bottom: 0;
|
147
|
+
width: $line-number-width;
|
148
|
+
text-align: right;
|
149
|
+
padding: 4px 13px;
|
150
|
+
border-right: 1px solid $box-border-color;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
> .annotation {
|
155
|
+
display: none;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
.prism-toggle pre {
|
160
|
+
border-top-left-radius: 0;
|
161
|
+
border-top-right-radius: 0;
|
162
|
+
}
|
163
|
+
|
164
|
+
.prism-toggle__checkboxes {
|
165
|
+
background: $grayscale-pearl;
|
166
|
+
padding: 18px 24px;
|
167
|
+
border: 1px solid $box-border-color;
|
168
|
+
border-bottom: 0;
|
169
|
+
border-top-left-radius: 3px;
|
170
|
+
border-top-right-radius: 3px;
|
171
|
+
|
172
|
+
.checkbox {
|
173
|
+
color: $grayscale-storm;
|
174
|
+
font-size: 14px;
|
175
|
+
font-family: $sans-serif-semibold;
|
176
|
+
margin-right: 24px;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
:not(.prism-toggle) > pre > code > .annotation,
|
181
|
+
.prism-toggle--show-annotations > pre > code > .annotation {
|
182
|
+
background: $annotation-background-color;
|
183
|
+
font-family: $sans-serif-semibold;
|
184
|
+
color: $grayscale-console;
|
185
|
+
font-size: 14px;
|
186
|
+
line-height: 1.3em;
|
187
|
+
padding-top: 12px;
|
188
|
+
padding-bottom: 12px;
|
189
|
+
display: block;
|
190
|
+
|
191
|
+
&::before {
|
192
|
+
background-color: $annotation-background-color;
|
193
|
+
background-image: image-url("cc/styles/icons/alert_solid.svg");
|
194
|
+
background-repeat: no-repeat;
|
195
|
+
background-position: ($line-number-width - 28px) center;
|
196
|
+
background-size: 15px auto;
|
197
|
+
border-right-color: $annotation-before-border-color;
|
198
|
+
}
|
199
|
+
|
200
|
+
&::after {
|
201
|
+
content: "";
|
202
|
+
position: absolute;
|
203
|
+
width: 0;
|
204
|
+
height: 0;
|
205
|
+
bottom: -10px;
|
206
|
+
left: 0;
|
207
|
+
border-bottom: 10px solid transparent;
|
208
|
+
border-left: 10px solid $annotation-background-color;
|
209
|
+
z-index: 1;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
:not(.prism-toggle) > pre > code > .covered,
|
214
|
+
.prism-toggle--show-coverage > pre > code > .covered {
|
215
|
+
background: $covered-background-color;
|
216
|
+
}
|
217
|
+
|
218
|
+
:not(.prism-toggle) > pre > code > .not-covered,
|
219
|
+
.prism-toggle--show-coverage > pre > code > .not-covered {
|
220
|
+
background: $not-covered-background-color;
|
221
|
+
}
|
@@ -0,0 +1,246 @@
|
|
1
|
+
/*doc
|
2
|
+
---
|
3
|
+
title: Forms
|
4
|
+
name: form elements
|
5
|
+
category: forms
|
6
|
+
---
|
7
|
+
|
8
|
+
```slim_example
|
9
|
+
form.form
|
10
|
+
.control-group
|
11
|
+
label for="field" Field Name
|
12
|
+
.controls
|
13
|
+
input.input type="text" id="field"
|
14
|
+
p.help-block Explain what the field means
|
15
|
+
.control-group.error
|
16
|
+
label for="other_field" Other field
|
17
|
+
.controls
|
18
|
+
input.input type="text" id="other_field"
|
19
|
+
span.help-inline inline errors and the like
|
20
|
+
p.help-block Explain what the other field means
|
21
|
+
```
|
22
|
+
*/
|
23
|
+
|
24
|
+
// scss-lint:disable SelectorFormat, QualifyingElement
|
25
|
+
// classes here are straight from simple_form, not under our control
|
26
|
+
.form {
|
27
|
+
abbr[title=required] {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
label {
|
32
|
+
display: inline-block;
|
33
|
+
font-size: 75%;
|
34
|
+
letter-spacing: .05rem;
|
35
|
+
margin-bottom: .3rem;
|
36
|
+
text-transform: uppercase;
|
37
|
+
}
|
38
|
+
|
39
|
+
.control-group {
|
40
|
+
margin: .8rem 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
.error input {
|
44
|
+
border: 1px solid $velvet-dark;
|
45
|
+
}
|
46
|
+
|
47
|
+
.help-inline {
|
48
|
+
margin-left: .5rem;
|
49
|
+
}
|
50
|
+
|
51
|
+
.help-block {
|
52
|
+
margin-top: .3rem;
|
53
|
+
}
|
54
|
+
|
55
|
+
.help-block,
|
56
|
+
.help-inline {
|
57
|
+
color: $grayscale-storm;
|
58
|
+
font-size: 75%;
|
59
|
+
line-height: 15px;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
// scss-lint:enable SelectorFormat, QualifyingElement
|
63
|
+
|
64
|
+
.form--search {
|
65
|
+
&::before {
|
66
|
+
@include ff-mask-image(image-url("cc/styles/icons/search_solid.svg"));
|
67
|
+
background: $grayscale-slate;
|
68
|
+
content: " ";
|
69
|
+
height: 39px;
|
70
|
+
left: 11px;
|
71
|
+
mask-position: center;
|
72
|
+
mask-repeat: no-repeat;
|
73
|
+
mask-size: 100% auto;
|
74
|
+
position: absolute;
|
75
|
+
width: 15px;
|
76
|
+
|
77
|
+
// Afer 01-05-2017 this can be removed & replaced with simply `mask-image`.
|
78
|
+
@-moz-document url-prefix() {
|
79
|
+
background-position: center 11px;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
// scss-lint:disable QualifyingElement
|
84
|
+
input[type=search] {
|
85
|
+
padding-left: 30px;
|
86
|
+
width: 230px;
|
87
|
+
|
88
|
+
&:focus,
|
89
|
+
&:not(:placeholder-shown) {
|
90
|
+
width: 320px;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
// scss-lint:enable QualifyingElement
|
94
|
+
}
|
95
|
+
|
96
|
+
// scss-lint:disable SelectorFormat, QualifyingElement
|
97
|
+
// simple_form applies these classes to wrapper elements
|
98
|
+
/*doc
|
99
|
+
---
|
100
|
+
title: Input
|
101
|
+
name: input
|
102
|
+
category: forms
|
103
|
+
---
|
104
|
+
|
105
|
+
```slim_example
|
106
|
+
input.input type="text" placeholder="Search for a repo..."
|
107
|
+
```
|
108
|
+
*/
|
109
|
+
|
110
|
+
input.input,
|
111
|
+
textarea.input {
|
112
|
+
-webkit-appearance: none;
|
113
|
+
background-color: $white;
|
114
|
+
border: 1px solid $box-border-color;
|
115
|
+
border-radius: 6px;
|
116
|
+
color: $grayscale-console;
|
117
|
+
display: inline-block;
|
118
|
+
font-size: 14px;
|
119
|
+
line-height: 1;
|
120
|
+
outline: none;
|
121
|
+
padding: 11px 14px 9px;
|
122
|
+
transition: background-color .25s ease, border-color .25s ease;
|
123
|
+
|
124
|
+
&:focus {
|
125
|
+
border-color: $green;
|
126
|
+
box-shadow: inset 0 1px 3px darken($grayscale-pearl, 3%);
|
127
|
+
}
|
128
|
+
|
129
|
+
&:disabled {
|
130
|
+
opacity: .5;
|
131
|
+
}
|
132
|
+
|
133
|
+
&::-webkit-search-cancel-button {
|
134
|
+
display: none;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
/*doc
|
139
|
+
---
|
140
|
+
title: Checkbox
|
141
|
+
name: checkbox
|
142
|
+
category: forms
|
143
|
+
---
|
144
|
+
|
145
|
+
```slim_example
|
146
|
+
.checkbox
|
147
|
+
input type="checkbox" id="issues"
|
148
|
+
label(for="issues") Issues
|
149
|
+
```
|
150
|
+
*/
|
151
|
+
|
152
|
+
$checkbox-size: 15px;
|
153
|
+
|
154
|
+
.checkbox {
|
155
|
+
display: inline-block;
|
156
|
+
position: relative;
|
157
|
+
|
158
|
+
input {
|
159
|
+
display: none;
|
160
|
+
}
|
161
|
+
|
162
|
+
input:checked + label::before {
|
163
|
+
background-color: $green;
|
164
|
+
|
165
|
+
// Afer 01-05-2017 this can be removed
|
166
|
+
@-moz-document url-prefix() {
|
167
|
+
background-color: $grayscale-aluminium;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
input:checked + label::after {
|
172
|
+
background-color: $white;
|
173
|
+
|
174
|
+
// Afer 01-05-2017 this can be removed
|
175
|
+
@-moz-document url-prefix() {
|
176
|
+
background: image-url("cc/styles/icons/checkmark.svg") 1px 3px no-repeat transparent;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
label {
|
181
|
+
cursor: pointer;
|
182
|
+
padding-left: $checkbox-size + 10px;
|
183
|
+
user-select: none;
|
184
|
+
|
185
|
+
&::before,
|
186
|
+
&::after {
|
187
|
+
content: "";
|
188
|
+
height: $checkbox-size;
|
189
|
+
left: 0;
|
190
|
+
margin-top: -($checkbox-size / 2);
|
191
|
+
position: absolute;
|
192
|
+
top: 50%;
|
193
|
+
width: $checkbox-size;
|
194
|
+
}
|
195
|
+
|
196
|
+
&::before {
|
197
|
+
background: $grayscale-aluminium;
|
198
|
+
border-radius: 2px;
|
199
|
+
}
|
200
|
+
|
201
|
+
&::after {
|
202
|
+
background-color: transparent;
|
203
|
+
mask-image: image-url("cc/styles/icons/checkmark.svg");
|
204
|
+
mask-position: center;
|
205
|
+
mask-repeat: no-repeat;
|
206
|
+
mask-size: 50% auto;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
}
|
211
|
+
|
212
|
+
/*doc
|
213
|
+
---
|
214
|
+
title: Select
|
215
|
+
name: select
|
216
|
+
category: forms
|
217
|
+
---
|
218
|
+
|
219
|
+
```slim_example
|
220
|
+
select.select
|
221
|
+
option selected=true Complexity
|
222
|
+
option Duplication
|
223
|
+
```
|
224
|
+
*/
|
225
|
+
|
226
|
+
$select-border-color: #e6e6e6;
|
227
|
+
$select-box-shadow-color: rgba(0, 0, 0, .06);
|
228
|
+
|
229
|
+
select.select {
|
230
|
+
-webkit-appearance: none;
|
231
|
+
background: $white;
|
232
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSI2cHgiIHZpZXdCb3g9IjAgMCAxMCA2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPCEtLSBHZW5lcmF0b3I6IFNrZXRjaCA0MC4yICgzMzgyNikgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+R3JvdXAgMjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxkZWZzPjwvZGVmcz4KICAgIDxnIGlkPSItIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWNhcD0icm91bmQiPgogICAgICAgIDxnIGlkPSJJc3N1ZXMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMjQxLjAwMDAwMCwgLTQzNi4wMDAwMDApIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iIzlCOUI5QiI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMjQyLjAwMDAwMCwgNDM3LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Ikdyb3VwIj4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMy41MzU1MzM5MSwzLjUzNTUzMzkxIEwwLDAiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8cGF0aCBkPSJNNCwzLjUzNTUzMzkxIEw3LjUzNTUzMzkxLDAiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==);
|
233
|
+
background-position: right 10px center;
|
234
|
+
background-repeat: no-repeat;
|
235
|
+
background-size: 12px auto;
|
236
|
+
border: 1px solid $select-border-color;
|
237
|
+
box-shadow: 0 1px 3px $select-box-shadow-color;
|
238
|
+
color: $grayscale-deep;
|
239
|
+
cursor: pointer;
|
240
|
+
font-size: 12px;
|
241
|
+
line-height: 1;
|
242
|
+
outline: none;
|
243
|
+
padding: 10px 12px;
|
244
|
+
width: 100%;
|
245
|
+
}
|
246
|
+
// scss-lint:enable SelectorFormat, QualifyingElement
|