activeadmin_blaze_theme 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/.gitignore +3 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +55 -0
- data/Rakefile +2 -0
- data/activeadmin_blaze_theme.gemspec +20 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +14 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +41 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +59 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +36 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +60 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +20 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +49 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +77 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +69 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +200 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +38 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +27 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +163 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +138 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +31 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +60 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +126 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +26 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +51 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +114 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +88 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +57 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +74 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tooltips.scss +96 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +39 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +94 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +13 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +6 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +8 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +83 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +45 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +22 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +10 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +29 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +89 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +5 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +6 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +10 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +112 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +864 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +73 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.alignment.scss +24 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +125 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +31 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +88 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.forms.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.grid.responsive.scss +124 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.grid.scss +62 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.images.scss +5 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.media.scss +36 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +55 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.panels.scss +27 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +7 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.alignment.scss +22 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +101 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +19 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +365 -0
- data/lib/activeadmin_blaze_theme/version.rb +3 -0
- data/lib/activeadmin_blaze_theme.rb +8 -0
- data/screenshot1.jpg +0 -0
- data/screenshot2.jpg +0 -0
- metadata +116 -0
@@ -0,0 +1,200 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
@import "mixins/components.lists";
|
3
|
+
|
4
|
+
.c-card {
|
5
|
+
@include list--unstyled;
|
6
|
+
display: block;
|
7
|
+
border-radius: $card-border-radius;
|
8
|
+
background-color: $card-background-color;
|
9
|
+
box-shadow: $card-box-shadow;
|
10
|
+
overflow: hidden;
|
11
|
+
|
12
|
+
> .o-image:not(:first-child) {
|
13
|
+
padding: $spacing-medium 0 0;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.c-card + .c-card {
|
18
|
+
margin: $card-margin;
|
19
|
+
}
|
20
|
+
|
21
|
+
.c-card__header {
|
22
|
+
padding: $spacing-small $spacing-small 0;
|
23
|
+
|
24
|
+
.c-heading {
|
25
|
+
padding: 0;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
.c-card__item,
|
30
|
+
.c-card__body,
|
31
|
+
.c-card__footer {
|
32
|
+
padding: $spacing-small;
|
33
|
+
}
|
34
|
+
|
35
|
+
.c-card__item + .c-card__footer--block {
|
36
|
+
padding: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
.c-card__footer--block {
|
40
|
+
padding: $spacing-small 0 0;
|
41
|
+
|
42
|
+
.c-input-group .c-button:first-child {
|
43
|
+
border-top-left-radius: 0;
|
44
|
+
border-bottom-left-radius: 0;
|
45
|
+
}
|
46
|
+
|
47
|
+
.c-input-group .c-button:last-child {
|
48
|
+
border-top-right-radius: 0;
|
49
|
+
border-bottom-right-radius: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.c-card__item:not(:last-child) {
|
54
|
+
border-bottom: $card-item-border-bottom;
|
55
|
+
}
|
56
|
+
|
57
|
+
.c-card--accordion {
|
58
|
+
label.c-card__item {
|
59
|
+
display: block;
|
60
|
+
position: relative;
|
61
|
+
width: 100%;
|
62
|
+
padding-left: $spacing-xlarge;
|
63
|
+
cursor: pointer;
|
64
|
+
|
65
|
+
&:before {
|
66
|
+
position: absolute;
|
67
|
+
left: .75em;
|
68
|
+
content: "+";
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
> input {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
|
76
|
+
> input + .c-card__item + .c-card__item {
|
77
|
+
display: none;
|
78
|
+
}
|
79
|
+
|
80
|
+
> input:checked + .c-card__item + .c-card__item {
|
81
|
+
display: block;
|
82
|
+
}
|
83
|
+
|
84
|
+
> input:checked + .c-card__item:before {
|
85
|
+
transform: rotate(45deg);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.c-card--menu {
|
90
|
+
display: block;
|
91
|
+
width: $card-width;
|
92
|
+
max-height: $card-max-height;
|
93
|
+
margin: $card-margin;
|
94
|
+
z-index: $card-z-index;
|
95
|
+
overflow-y: auto;
|
96
|
+
overflow-x: hidden;
|
97
|
+
-webkit-overflow-scrolling: touch;
|
98
|
+
}
|
99
|
+
|
100
|
+
.c-card--grouped {
|
101
|
+
.c-card__item {
|
102
|
+
&:not(:last-child) {
|
103
|
+
border-bottom: 0;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.c-card__divider {
|
109
|
+
height: $card-item-border-width;
|
110
|
+
background-color: $card-item-divider-background-color;
|
111
|
+
overflow: hidden;
|
112
|
+
}
|
113
|
+
|
114
|
+
.c-card__item--divider {
|
115
|
+
background-color: $card-item-divider-background-color;
|
116
|
+
color: $card-item-divider-color;
|
117
|
+
font-weight: $card-item-divider-font-weight;
|
118
|
+
}
|
119
|
+
|
120
|
+
.c-card__item--brand {
|
121
|
+
background-color: $card-item-brand-background-color;
|
122
|
+
color: $card-item-brand-color;
|
123
|
+
}
|
124
|
+
|
125
|
+
.c-card__item--info {
|
126
|
+
background-color: $card-item-info-background-color;
|
127
|
+
color: $card-item-info-color;
|
128
|
+
}
|
129
|
+
|
130
|
+
.c-card__item--warning {
|
131
|
+
background-color: $card-item-warning-background-color;
|
132
|
+
color: $card-item-warning-color;
|
133
|
+
}
|
134
|
+
|
135
|
+
.c-card__item--success {
|
136
|
+
background-color: $card-item-success-background-color;
|
137
|
+
color: $card-item-success-color;
|
138
|
+
}
|
139
|
+
|
140
|
+
.c-card__item--error {
|
141
|
+
background-color: $card-item-error-background-color;
|
142
|
+
color: $card-item-error-color;
|
143
|
+
}
|
144
|
+
|
145
|
+
.c-card__item--disabled {
|
146
|
+
cursor: not-allowed;
|
147
|
+
opacity: $card-item-disabled-opacity;
|
148
|
+
}
|
149
|
+
|
150
|
+
.c-card--menu .c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover,
|
151
|
+
.c-card--accordion label.c-card__item:not(.c-card__item--disabled):not(.c-card__item--divider):hover {
|
152
|
+
background-color: $card-item-hover-background-color;
|
153
|
+
cursor: pointer;
|
154
|
+
|
155
|
+
&.c-card__item--brand {
|
156
|
+
background-color: $card-item-brand-hover-background-color;
|
157
|
+
}
|
158
|
+
|
159
|
+
&.c-card__item--info {
|
160
|
+
background-color: $card-item-info-hover-background-color;
|
161
|
+
}
|
162
|
+
|
163
|
+
&.c-card__item--warning {
|
164
|
+
background-color: $card-item-warning-hover-background-color;
|
165
|
+
}
|
166
|
+
|
167
|
+
&.c-card__item--success {
|
168
|
+
background-color: $card-item-success-hover-background-color;
|
169
|
+
}
|
170
|
+
|
171
|
+
&.c-card__item--error {
|
172
|
+
background-color: $card-item-error-hover-background-color;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
.c-card__item--active,
|
177
|
+
.c-card--accordion > input:checked + .c-card__item {
|
178
|
+
background-color: $card-item-active-background-color;
|
179
|
+
font-weight: $card-item-active-font-weight;
|
180
|
+
|
181
|
+
&.c-card__item--brand {
|
182
|
+
background-color: $card-item-brand-active-background-color;
|
183
|
+
}
|
184
|
+
|
185
|
+
&.c-card__item--info {
|
186
|
+
background-color: $card-item-info-active-background-color;
|
187
|
+
}
|
188
|
+
|
189
|
+
&.c-card__item--warning {
|
190
|
+
background-color: $card-item-warning-active-background-color;
|
191
|
+
}
|
192
|
+
|
193
|
+
&.c-card__item--success {
|
194
|
+
background-color: $card-item-success-active-background-color;
|
195
|
+
}
|
196
|
+
|
197
|
+
&.c-card__item--error {
|
198
|
+
background-color: $card-item-error-active-background-color;
|
199
|
+
}
|
200
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
.c-heading,
|
4
|
+
.c-heading__sub {
|
5
|
+
margin: $heading-margin;
|
6
|
+
padding: $heading-padding;
|
7
|
+
font-weight: $heading-font-weight;
|
8
|
+
}
|
9
|
+
|
10
|
+
.c-heading__sub {
|
11
|
+
padding: $heading-subheading-padding;
|
12
|
+
font-size: $heading-subheading-font-size;
|
13
|
+
opacity: $heading-subheading-opacity;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1.c-heading {
|
17
|
+
font-size: $text-font-size-super;
|
18
|
+
}
|
19
|
+
|
20
|
+
h2.c-heading {
|
21
|
+
font-size: $text-font-size-xlarge;
|
22
|
+
}
|
23
|
+
|
24
|
+
h3.c-heading {
|
25
|
+
font-size: $text-font-size-large;
|
26
|
+
}
|
27
|
+
|
28
|
+
h4.c-heading {
|
29
|
+
font-size: $text-font-size-medium;
|
30
|
+
}
|
31
|
+
|
32
|
+
h5.c-heading {
|
33
|
+
font-size: $text-font-size-small;
|
34
|
+
}
|
35
|
+
|
36
|
+
h6.c-heading {
|
37
|
+
font-size: $text-font-size-xsmall;
|
38
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
.c-hint {
|
4
|
+
position: absolute;
|
5
|
+
padding: $hint-padding;
|
6
|
+
transform: scale(.8);
|
7
|
+
transform-origin: top left;
|
8
|
+
color: $hint-color;
|
9
|
+
font-size: $hint-font-size;
|
10
|
+
opacity: 0;
|
11
|
+
pointer-events: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
.c-hint--static,
|
15
|
+
.c-field:focus ~ .c-hint,
|
16
|
+
.c-label__field:focus ~ .c-hint {
|
17
|
+
transform: scale(.9);
|
18
|
+
opacity: 1;
|
19
|
+
}
|
20
|
+
|
21
|
+
.c-hint--success {
|
22
|
+
color: $hint-success-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
.c-hint--error {
|
26
|
+
color: $hint-error-color;
|
27
|
+
}
|
@@ -0,0 +1,163 @@
|
|
1
|
+
@import "mixins/objects.grid";
|
2
|
+
@import "mixins/components.inputs";
|
3
|
+
|
4
|
+
// INPUT GROUP
|
5
|
+
.c-input-group {
|
6
|
+
@include grid;
|
7
|
+
|
8
|
+
.c-button {
|
9
|
+
border-radius: 0;
|
10
|
+
|
11
|
+
&:not(:first-child) {
|
12
|
+
border-left-width: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
&:first-child {
|
16
|
+
border-top-left-radius: $border-radius;
|
17
|
+
border-bottom-left-radius: $border-radius;
|
18
|
+
}
|
19
|
+
|
20
|
+
&:last-child {
|
21
|
+
border-top-right-radius: $border-radius;
|
22
|
+
border-bottom-right-radius: $border-radius;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.o-field {
|
27
|
+
@include grid__cell--fit;
|
28
|
+
|
29
|
+
.c-field {
|
30
|
+
border-radius: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
&:not(:first-child) .c-field {
|
34
|
+
border-left-width: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
&:first-child .c-field {
|
38
|
+
border-top-left-radius: $border-radius;
|
39
|
+
border-bottom-left-radius: $border-radius;
|
40
|
+
}
|
41
|
+
|
42
|
+
&:last-child .c-field {
|
43
|
+
border-top-right-radius: $border-radius;
|
44
|
+
border-bottom-right-radius: $border-radius;
|
45
|
+
}
|
46
|
+
|
47
|
+
&--fixed {
|
48
|
+
@include grid__cell--width-fixed;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.c-input-group--rounded {
|
54
|
+
.c-button {
|
55
|
+
&:first-child {
|
56
|
+
border-top-left-radius: $border-radius-rounded;
|
57
|
+
border-bottom-left-radius: $border-radius-rounded;
|
58
|
+
}
|
59
|
+
|
60
|
+
&:last-child {
|
61
|
+
border-top-right-radius: $border-radius-rounded;
|
62
|
+
border-bottom-right-radius: $border-radius-rounded;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
.o-field {
|
67
|
+
&:first-child .c-field {
|
68
|
+
border-top-left-radius: $border-radius-rounded;
|
69
|
+
border-bottom-left-radius: $border-radius-rounded;
|
70
|
+
}
|
71
|
+
|
72
|
+
&:last-child .c-field {
|
73
|
+
border-top-right-radius: $border-radius-rounded;
|
74
|
+
border-bottom-right-radius: $border-radius-rounded;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.c-input-group--rounded-left {
|
80
|
+
.c-button {
|
81
|
+
&:first-child {
|
82
|
+
border-top-left-radius: $border-radius-rounded;
|
83
|
+
border-bottom-left-radius: $border-radius-rounded;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
.o-field {
|
88
|
+
&:first-child .c-field {
|
89
|
+
border-top-left-radius: $border-radius-rounded;
|
90
|
+
border-bottom-left-radius: $border-radius-rounded;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
.c-input-group--rounded-right {
|
96
|
+
.c-button {
|
97
|
+
&:last-child {
|
98
|
+
border-top-right-radius: $border-radius-rounded;
|
99
|
+
border-bottom-right-radius: $border-radius-rounded;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.o-field {
|
104
|
+
&:last-child .c-field {
|
105
|
+
border-top-right-radius: $border-radius-rounded;
|
106
|
+
border-bottom-right-radius: $border-radius-rounded;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
.c-input-group--stacked {
|
112
|
+
@include grid;
|
113
|
+
@include grid--wrap;
|
114
|
+
|
115
|
+
.o-field:not(:first-child) .c-field {
|
116
|
+
border-left-width: $field-border-width;
|
117
|
+
}
|
118
|
+
|
119
|
+
.c-button:not(:first-child) {
|
120
|
+
border-left-width: $button-border-width;
|
121
|
+
}
|
122
|
+
|
123
|
+
.o-field,
|
124
|
+
.c-button {
|
125
|
+
@include grid__cell--full;
|
126
|
+
}
|
127
|
+
|
128
|
+
.c-button {
|
129
|
+
&:not(:first-child) {
|
130
|
+
border-top: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
&:not(:first-child):not(:last-child) {
|
134
|
+
border-radius: 0;
|
135
|
+
}
|
136
|
+
|
137
|
+
&:first-child {
|
138
|
+
border-radius: $field-border-radius $field-border-radius 0 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
&:last-child {
|
142
|
+
border-radius: 0 0 $field-border-radius $field-border-radius;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
.o-field {
|
147
|
+
&:not(:first-child) .c-field {
|
148
|
+
border-top: 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
&:not(:first-child):not(:last-child) .c-field {
|
152
|
+
border-radius: 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
&:first-child .c-field {
|
156
|
+
border-radius: $field-border-radius $field-border-radius 0 0;
|
157
|
+
}
|
158
|
+
|
159
|
+
&:last-child .c-field {
|
160
|
+
border-radius: 0 0 $field-border-radius $field-border-radius;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
@import "mixins/components.inputs";
|
2
|
+
|
3
|
+
.o-field {
|
4
|
+
position: relative;
|
5
|
+
|
6
|
+
.c-field--success ~ .c-icon {
|
7
|
+
color: $field-success-border-color;
|
8
|
+
}
|
9
|
+
|
10
|
+
.c-field--error ~ .c-icon {
|
11
|
+
color: $field-error-border-color;
|
12
|
+
}
|
13
|
+
|
14
|
+
.c-field:disabled ~ .c-icon {
|
15
|
+
color: $field-disabled-border-color;
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-icon {
|
19
|
+
position: absolute;
|
20
|
+
top: 50%;
|
21
|
+
transform: translateY(-50%);
|
22
|
+
color: $field-border-color;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.o-field--icon-right {
|
27
|
+
.c-field + .c-icon {
|
28
|
+
right: $field-padding;
|
29
|
+
}
|
30
|
+
|
31
|
+
.c-field {
|
32
|
+
padding-right: $field-padding * 4;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.o-field--icon-left {
|
37
|
+
.c-icon:first-child {
|
38
|
+
left: $field-padding;
|
39
|
+
}
|
40
|
+
|
41
|
+
.c-field {
|
42
|
+
padding-left: $field-padding * 4;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.c-fieldset,
|
47
|
+
.c-fieldset.c-list {
|
48
|
+
display: block;
|
49
|
+
width: $fieldset-width;
|
50
|
+
margin: $fieldset-margin;
|
51
|
+
padding: $fieldset-padding;
|
52
|
+
border: $fieldset-border;
|
53
|
+
}
|
54
|
+
|
55
|
+
.c-fieldset__legend {
|
56
|
+
@include label;
|
57
|
+
padding: $legend-padding;
|
58
|
+
}
|
59
|
+
|
60
|
+
// LABELS
|
61
|
+
.c-label {
|
62
|
+
@include label;
|
63
|
+
}
|
64
|
+
|
65
|
+
// TEXT FIELDS
|
66
|
+
.c-field {
|
67
|
+
display: block;
|
68
|
+
width: 100%;
|
69
|
+
margin: $field-margin;
|
70
|
+
padding: $field-padding;
|
71
|
+
border: $field-border;
|
72
|
+
border-radius: $field-border-radius;
|
73
|
+
outline: 0;
|
74
|
+
background-color: $field-background-color;
|
75
|
+
font-family: inherit;
|
76
|
+
font-size: $field-font-size;
|
77
|
+
font-weight: $field-font-weight;
|
78
|
+
resize: vertical;
|
79
|
+
appearance: none;
|
80
|
+
|
81
|
+
&:focus {
|
82
|
+
border-color: $field-focus-border-color;
|
83
|
+
box-shadow: $field-focus-box-shadow;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
// SELECTS, CHECKBOXES AND RADIOS
|
88
|
+
select.c-field {
|
89
|
+
cursor: pointer;
|
90
|
+
}
|
91
|
+
|
92
|
+
// SELECTS
|
93
|
+
select.c-field:not([multiple]) {
|
94
|
+
padding-right: 1em;
|
95
|
+
background: url("data:image/png;base64,R0lGODlhDwAUAIABAAAAAP///yH5BAEAAAEALAAAAAAPABQAAAIXjI+py+0Po5wH2HsXzmw//lHiSJZmUAAAOw==") no-repeat 99% 50%;
|
96
|
+
}
|
97
|
+
|
98
|
+
// CHECKBOXES and RADIOs
|
99
|
+
.c-field input {
|
100
|
+
margin-right: $checkbox-margin;
|
101
|
+
outline: 0;
|
102
|
+
font-size: $checkbox-font-size;
|
103
|
+
}
|
104
|
+
|
105
|
+
.c-field--label {
|
106
|
+
margin: $label-field-margin;
|
107
|
+
}
|
108
|
+
|
109
|
+
.c-field--error {
|
110
|
+
border-color: $field-error-border-color;
|
111
|
+
color: $field-error-color;
|
112
|
+
}
|
113
|
+
|
114
|
+
.c-field--success {
|
115
|
+
border-color: $field-success-border-color;
|
116
|
+
color: $field-success-color;
|
117
|
+
}
|
118
|
+
|
119
|
+
.c-field--choice {
|
120
|
+
border: $checkbox-border;
|
121
|
+
border-radius: 0;
|
122
|
+
background-color: $checkbox-background-color;
|
123
|
+
}
|
124
|
+
|
125
|
+
.c-fieldset--disabled .c-field,
|
126
|
+
.c-fieldset:disabled .c-field,
|
127
|
+
.c-field--disabled,
|
128
|
+
.c-field:disabled {
|
129
|
+
@include field--disabled;
|
130
|
+
|
131
|
+
&.c-field--choice {
|
132
|
+
background-color: $checkbox-background-color;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.c-field input:disabled {
|
137
|
+
@include disabled;
|
138
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@import "mixins/components.links";
|
2
|
+
|
3
|
+
.c-link {
|
4
|
+
@include link--color;
|
5
|
+
text-decoration: $link-text-decoration;
|
6
|
+
cursor: pointer;
|
7
|
+
|
8
|
+
&:hover {
|
9
|
+
text-decoration: $link-hover-text-decoration;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.c-link--brand {
|
14
|
+
@include link--color($link-brand-color);
|
15
|
+
}
|
16
|
+
|
17
|
+
.c-link--info {
|
18
|
+
@include link--color($link-info-color);
|
19
|
+
}
|
20
|
+
|
21
|
+
.c-link--warning {
|
22
|
+
@include link--color($link-warning-color);
|
23
|
+
}
|
24
|
+
|
25
|
+
.c-link--success {
|
26
|
+
@include link--color($link-success-color);
|
27
|
+
}
|
28
|
+
|
29
|
+
.c-link--error {
|
30
|
+
@include link--color($link-error-color);
|
31
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@import "mixins/components.lists";
|
2
|
+
|
3
|
+
.c-list {
|
4
|
+
display: block;
|
5
|
+
margin: $list-margin;
|
6
|
+
padding: $list-padding;
|
7
|
+
list-style-position: outside;
|
8
|
+
}
|
9
|
+
|
10
|
+
.c-list .c-list {
|
11
|
+
padding: $list-nested-padding;
|
12
|
+
}
|
13
|
+
|
14
|
+
.c-list__item {
|
15
|
+
padding: $list-item-padding;
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-list__item--unstyled {
|
19
|
+
list-style: $list-item-unstyled-list-style;
|
20
|
+
}
|
21
|
+
|
22
|
+
.c-list--unstyled {
|
23
|
+
@include list--unstyled;
|
24
|
+
}
|
25
|
+
|
26
|
+
.c-list--ordered {
|
27
|
+
@include list--unstyled;
|
28
|
+
counter-reset: ordered;
|
29
|
+
|
30
|
+
.c-list__item {
|
31
|
+
&:before {
|
32
|
+
padding: $list-ordered-item-padding;
|
33
|
+
content: counters(ordered, ".") " ";
|
34
|
+
counter-increment: ordered;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.c-list--inline {
|
40
|
+
@include list--inline;
|
41
|
+
|
42
|
+
.c-list--inline {
|
43
|
+
@include list--inline;
|
44
|
+
}
|
45
|
+
|
46
|
+
.c-list__item {
|
47
|
+
display: inline-block;
|
48
|
+
width: auto;
|
49
|
+
padding-right: $list-inline-item-padding-right;
|
50
|
+
}
|
51
|
+
|
52
|
+
&:not(.c-list--unstyled) {
|
53
|
+
.c-list__item {
|
54
|
+
&:before {
|
55
|
+
padding: $list-inline-item-bullet-padding;
|
56
|
+
content: $list-inline-item-bullet-content;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|