expressionui 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,65 @@
1
- a:visited
2
- //color: $link
3
-
4
1
  .btn
5
2
  +btn(#fff)
6
3
  &.highlight
7
4
  +btn($highlight)
8
5
  &.accent
9
6
  +btn($accent)
7
+ &.main
8
+ +btn($main)
9
+ &.contrast
10
+ +btn($contrast)
11
+ &.error
12
+ +btn($error)
13
+ &.success
14
+ +btn($success)
15
+ &.tip
16
+ +btn($tip)
17
+ &.info
18
+ +btn($info)
19
+ &.xsmall
20
+ font-size: 70%
21
+ &.icon
22
+ font-size: 100%
23
+ &.small
24
+ font-size: 85%
25
+ &.icon
26
+ font-size: 125%
27
+ &.large
28
+ font-size: 110%
29
+ &.icon
30
+ font-size: 175%
31
+ &.xlarge
32
+ font-size: 125%
33
+ &.icon
34
+ font-size: 250%
35
+
36
+ .text_tip
37
+ color: $tip
38
+ .text_error
39
+ color: $error
40
+ .text_info
41
+ color: $info
42
+ .text_success
43
+ color: $success
44
+
45
+ .flex_me
46
+ +flex_me
47
+
48
+ .collumns2
49
+ +column-count(2)
50
+ .collumns3
51
+ +column-count(3)
52
+ .collumns4
53
+ +column-count(4)
54
+
55
+ .perc25
56
+ width: 25%
57
+ .perc50
58
+ width: 50%
59
+ .perc75
60
+ width: 75%
61
+ .perc100
62
+ width: 100%
10
63
 
11
64
  .amp
12
65
  +amp
@@ -1,233 +1,290 @@
1
- $field_margin: $pad
1
+ $field_margin: $pad*1.5
2
2
  $form_border_color: tint(#B8B8B8, 50%)
3
3
  $label_color: #999999
4
- $focus_color: #6BABC1
4
+ $focus_color: $highlight
5
5
  $field_height: 35px
6
+ $checkbox: 18px
6
7
 
8
+
9
+
10
+ // CONSIDER STYLING ELEMENTS SEPARATE
11
+ // -------------------------
12
+
13
+
14
+
15
+ // MIXIN: Custom Select
16
+ // -------------------------
17
+
18
+
19
+ // MIXIN: Form Style
20
+ // -------------------------
7
21
  =form_text_input_color
8
- line-height: 40px
22
+ line-height: $field_height
9
23
  padding: 0 $pad/2
10
24
  +inline_block
11
25
  border: 1px solid $form_border_color
12
26
  +border-radius(4px)
13
- font-size: 22px
14
- color: black
27
+ font-size: ($font_size)+3px
28
+ color: tint(black, 10%)
15
29
  font-weight: 100
30
+ +placeholder
31
+ font-size: ($font_size)-(1px)
16
32
  &:focus
17
33
  outline: 0
18
34
  border: 1px solid $focus_color
19
- //+box-shadow(rgba($focus_color, 0.31) 0 0 4px, inset rgba(black, 0.10) 0 2px 3px 0)
20
35
 
21
- // GENERAL FORM ELEMETS STYLINGS
22
36
 
23
37
 
24
- // RADIO AND CHECKBOX (add a toggle to make it a toggle)
38
+ // Textarea
39
+ // -------------------------
40
+ textarea
41
+ +form_text_input_color
42
+ resize: none
43
+ line-height: $field_height
44
+ font-size: ($font_size)+3px !important
45
+ font-weight: 100 !important
46
+ height: $field_height*3
47
+ padding: $pad/2
48
+
49
+
50
+
51
+
52
+ // Selects
53
+ // -------------------------
54
+ select
55
+ $data_image: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNS4xLCBFeHBvcnQgU1ZHIEV4dGVuc2lvbiBieSBBYXJvbiBCZWFsbCAoaHR0cDovL2ZpcmV3b3Jrcy5hYmVhbGwuY29tKSAuIFZlcnNpb246IDAuNi4xICAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyBpZD0iVW50aXRsZWQtUGFnZSUyMDEiIHZpZXdCb3g9IjAgMCAxMCA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSIKCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiCgl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjEwcHgiIGhlaWdodD0iNnB4Igo+Cgk8ZyBpZD0iTGF5ZXIlMjAxIj4KCQk8cGF0aCBpZD0iYXJyb3clMjBkb3duJTIwY29weSIgZD0iTSAxLjEyNDEgMC4xMDI1IEMgMS41MjYyIDAuMTAyNSA4LjU4MDIgMC4xMDI1IDguODU3NSAwLjEwMjUgQyA5LjIxNjggMC4xMDI1IDkuNDg0NCAwLjM4NDQgOS4yNzQyIDAuNjYyNiBDIDkuMTA1NyAwLjg4NTQgNS43MDYgNS4zNDE1IDUuNDE1MyA1LjcyMjEgQyA1LjIyNDIgNS45NzE4IDQuNzY4NyA1Ljk2NzUgNC41Nzc1IDUuNzIyMSBDIDQuMzY0NCA1LjQ0ODEgMC45NDczIDAuOTc1MiAwLjcwOTkgMC42NTEgQyAwLjUzNTkgMC40MTM4IDAuNzI4MiAwLjEwMjUgMS4xMjQxIDAuMTAyNSBaIiBmaWxsPSIjNzE3MTcxIi8+Cgk8L2c+Cjwvc3ZnPg=="
56
+ -webkit-appearance: none
57
+ -moz-appearance: none
58
+ appearance: none
59
+ background: url($data_image) tint(#9ea7b2, 90%)
60
+ +text_color(tint(#9ea7b2, 90%), false)
61
+ border: 1px solid tint(#9ea7b2, 90%)
62
+ background-position: 95% 53%, 0 0
63
+ background-repeat: no-repeat, repeat
64
+ background-size: 8px 8px, auto auto
65
+ outline: 0
66
+ text-decoration: none
67
+ line-height: ($field_height)-($pad/2)
68
+ +font_stack
69
+ width: auto
70
+ +inline-block
71
+ padding: $pad/2 24px $pad/2 11px
72
+ font-size: 1em
73
+ +border-radius(2px)
74
+ cursor: pointer
75
+ &:hover, &:active
76
+ background: url($data_image) tint(#9ea7b2, 70%)
77
+ border: 1px solid tint(#9ea7b2, 70%)
78
+ border-top: 1px solid shade(#9ea7b2, 20%)
79
+ +text_color(tint(#9ea7b2, 70%), false)
80
+ background-position: 95% 53%, 0 0
81
+ background-repeat: no-repeat, repeat
82
+ background-size: 8px 8px, auto auto
83
+ +box-shadow(rgba(black, 0.2) 0 2px 0 inset)
84
+ +text_color(shade(#F5F5F5, 10%))
85
+
86
+
87
+
88
+
89
+ // Inputs
90
+ // -------------------------
25
91
  input
26
92
  &[type=checkbox], &[type=radio]
27
- -webkit-appearance: none
28
- -moz-appearance: none
29
- appearance: none
93
+ +appearance(none)
30
94
  +inline_block
31
95
  cursor: pointer
32
- &[type=radio]
33
- +border-radius(200px)
34
- +background-image(linear-gradient(white, #ccc))
96
+
97
+
98
+ // Checkbox
99
+ // -------------------------
35
100
  &[type=checkbox]
36
- +border-radius(3px)
37
- //+background-image(linear-gradient(#FEFCF8, #E7E3DA))
38
- background: #D7DCDE
39
- width: 25px
40
- height: 25px
101
+ +border-radius(2px)
102
+ background: rgba(black, 0.10)
103
+ width: $checkbox
104
+ height: $checkbox
105
+ border: 1px solid rgba(black, 0.15)
41
106
  position: relative
42
107
  +transition-property(all)
43
108
  +transition-duration(0.2s)
44
109
  +transition-timing-function(ease-in)
45
- &:hover
46
- background: shade(#D7DCDE, 5%)
110
+ cursor: pointer
111
+ +text_color(#2765A8)
47
112
  &:checked
48
- background: $accent
49
- +box-shadow(rgba(black, 0.20) 0 2px 0 0 inset)
50
- &:hover
51
- background: shade($accent, 5%)
113
+ +btn($accent)
114
+ text-transform: none
115
+ padding: 0
116
+ width: $checkbox
117
+ height: $checkbox
52
118
  &:after
53
119
  +icon_font
54
120
  content: "/"
55
- line-height: 27px
56
121
  width: 100%
122
+ height: 100%
57
123
  text-align: center
58
- font-size: 16px
59
- color: white
60
- //text-shadow: rgba(white, 0.40) 0 1px 0
61
- position: absolute
62
- margin-top: -0.1em
124
+ line-height: 1.3em
125
+ font-size: 1em
126
+ position: relative
127
+ top: 50%
128
+ display: block
129
+ margin-top: -($checkbox/2)
130
+
131
+
132
+ // Checkbox Toggle
133
+ // -------------------------
63
134
  &.toggle
64
135
  +border-radius(30px)
65
- +background-image(linear-gradient(#FEFCF8, #E2DDD3))
66
- width: 60px
67
- height: 27px
68
- border: 1px solid #BBB9B5
69
- +box-shadow(rgba(black, 0.20) 0 2px 4px 0 inset, rgba(white, 0.20) 0 1px 0 0)
136
+ width: $field_height*2
137
+ height: auto
70
138
  position: relative
139
+ border: 2px solid rgba(black, 0.10)
140
+ padding-right: (($field_height*2)-($field_height)/1.5)-(4px)
141
+ text-align: center
142
+ overflow: hidden
71
143
  &:before
72
144
  +icon_font
73
- content: "/ x"
74
- line-height: 29px
75
- width: 100%
145
+ content: "x /"
146
+ line-height: ($field_height)/1.5
147
+ width: 200%
76
148
  text-align: center
77
- font-size: 16px
78
- color: #85817E
79
- text-shadow: rgba(white, 0.40) 0 1px 0
80
- letter-spacing: 1px
149
+ font-size: $field_height/2
150
+ +text-shadow(none)
151
+ color: rgba(black, 0.30)
152
+ letter-spacing: 20px
81
153
  position: absolute
154
+ top: 0
155
+ left: 0
156
+ overflow: visible
157
+ height: ($field_height)/1.5
158
+ text-align: left
159
+ padding-left: $pad*3.5
160
+
82
161
  &:after
83
162
  +border-radius(300px)
84
163
  content: " "
85
- display: block
86
- position: absolute
87
- +background-image(linear-gradient(#FEFCF8, #E7E3DA))
88
- width: 25px
89
- height: 25px
90
- border: 1px solid #BBB9B5
91
- +box-shadow(white 0 1px 0 inset, rgba(black, 0.20) 0 2px 2px 0)
92
- +transition-property(all)
93
- +transition-duration(5.2s)
94
- +transition-timing-function(ease-in)
95
- top: -1px
96
- left: -1px
97
- right: initial
164
+ background: white
165
+ +inline_block
166
+ width: ($field_height)/1.5
167
+ height: ($field_height)/1.5
168
+ position: relative
169
+
98
170
  &:checked
99
- +background-image(linear-gradient(#F9FCF8, #C3DCAE))
171
+
172
+
173
+ background: $success
174
+ border: 2px solid $success
175
+ padding-left: (($field_height*2)-($field_height)/1.5)-(4px)
176
+ padding-right: 0
177
+ +box-shadow(none)
178
+
100
179
  &:before
101
- color: #739953
180
+ +text_color($success, false)
181
+ left: auto
182
+ right: 0
183
+ text-align: right
184
+ padding-left: 0
185
+ padding-right: $pad*1.5
186
+
187
+
102
188
  &:after
103
- right: -1px
104
- left: initial
105
- +transition-property(all)
106
- +transition-duration(5.2s)
107
- +transition-timing-function(ease-in)
189
+ margin: 0
190
+ top: auto
191
+ left: auto
192
+
193
+
108
194
 
109
- // Radio only
195
+
196
+ // Radios
197
+ // -------------------------
110
198
  &[type=radio]
111
199
  +border-radius(300px)
112
- +background-image(linear-gradient(#FEFCF8, #E7E3DA))
113
- width: 27px
114
- height: 27px
115
- border: 1px solid #BBB9B5
116
- +box-shadow(white 0 1px 0 inset, rgba(black, 0.20) 0 2px 2px 0)
200
+ width: $checkbox
201
+ height: $checkbox
202
+ border: 2px solid shade(white, 30%)
117
203
  position: relative
118
- +transition-property(all)
119
- +transition-duration(5.2s)
120
- +transition-timing-function(ease-in)
121
204
  &:after
122
- border: 1px solid #BBB9B5
205
+ background: $accent
123
206
  +border-radius(300px)
124
207
  content: " "
125
- display: block
126
- width: 11px
127
- height: 11px
128
- +background-image(linear-gradient(#E2DDD3, #E2DDD3))
208
+ display: none
209
+ width: ($checkbox)-(4px*2) // border - offset
210
+ height: ($checkbox)-(4px*2) // border - offset
129
211
  position: absolute
130
- top: 6px
131
- left: 6px
132
- +box-shadow(rgba(black, 0.20) 0 2px 4px 0 inset, rgba(white, 0.20) 0 1px 0 0)
212
+ top: 2px
213
+ left: 2px
133
214
  &:checked
134
215
  &:after
135
- border: 1px solid #466923
136
- +background-image(linear-gradient(#A6CC85, #4D722B))
137
- +box-shadow(rgba(white, 0.20) 0 1px 0 inset, rgba(white, 0.20) 0 1px 0 0)
216
+ display: block
217
+
138
218
 
139
219
 
140
- // TEXT
220
+ // Input Text
221
+ // -------------------------
141
222
  &[type="text"], &[type="password"]
142
223
  +form_text_input_color
143
224
 
144
225
 
145
- // TEXTAREA
146
226
 
147
- textarea
148
- +form_text_input_color
149
- resize: none
150
- line-height: 24px
151
- font-size: 22px !important
152
- font-weight: 100 !important
153
- height: $field_height*3
154
- padding: $pad/2
227
+ // NOTES:
155
228
 
229
+ // Need to style up placeholders
156
230
 
231
+ // Group does nothing but contain
157
232
 
158
- // select
159
233
 
160
- select
161
- -webkit-appearance: none
162
- -moz-appearance: none
163
- appearance: none
164
- +background-image( image-url('/assets/dropdown_arrow.svg'), linear_gradient(tint(#F5F5F5, 30%), shade(#F5F5F5, 10%)) )
165
- background-position: 95% 53%, 0 0
166
- background-repeat: no-repeat, repeat
167
- background-size: 8px 8px, auto auto
168
- border: 1px solid shade(#F5F5F5, 20%)
169
- border-top: 1px solid shade(#F5F5F5, 10%)
170
- border-bottom: 1px solid shade(#F5F5F5, 40%)
171
- outline: 0
172
- text-decoration: none
173
- line-height: 1em
174
- +font_stack
175
- width: auto
176
- +inline-block
177
- padding: 8px 24px 8px 11px
178
- font-size: 1em
179
- +border-radius(2px)
180
- +box-shadow(rgba(white, 0.15) 1px 1px 0 inset, rgba(white, 0.15) -1px -1px 0 0 inset, rgba(white, 0.1) 0 1px 0 0)
181
- +text_color(#F5F5F5)
182
- cursor: pointer
183
- &:hover, &:active
184
- +background-image( image-url('/assets/dropdown_arrow.svg'), linear_gradient(shade(#FFFFFF, 1%), shade(#F5F5F5, 8%)) )
185
- background-position: 95% 53%, 0 0
186
- background-repeat: no-repeat, repeat
187
- background-size: 8px 8px, auto auto
188
- +box-shadow(rgba(black, 0.6) 0 2px 4px inset, rgba(white, 0.1) 0 1px 0 0)
189
- +text_color(shade(#F5F5F5, 10%))
190
-
191
- // form fields
234
+ // Form Styling
235
+ // -------------------------
192
236
  .form
193
237
  .field
194
238
  display: block
195
239
  padding: 0
196
240
  position: relative
197
- margin-bottom: $pad
241
+ margin-bottom: $field_margin
198
242
  width: auto
199
243
  height: auto
200
244
  +group
201
- label, span.optional
245
+ label
202
246
  display: block
203
247
  color: $label_color
204
- font-size: 15px
205
- line-height: 20px
206
- span.optional
207
- position: absolute
208
- top: 2px
209
- right: 0
210
- input[type="text"], input[type="password"], textarea, select
248
+ font-size: $font_size
249
+ line-height: $font_size*2
250
+ cursor: pointer
251
+ &.inline
252
+ +inline_block
253
+ input[type="text"], input[type="textfield"], input[type="password"], textarea, select
211
254
  display: block
212
255
  width: 100%
213
- &.left
214
- margin: 10px 39px 3px 0
215
- &.right
216
- margin: 10px 0 3px 0
217
- &.full
218
- textarea
219
- width: 98%
220
- resize: none
221
- height: auto
222
- padding: 1%
223
- display: block
224
- line-height: 18px
256
+ input[type=checkbox], input[type=radio]
257
+ margin: $pad $pad 0 0
258
+ ~ span
259
+ font-size: ($font_size)+3px
260
+ color: tint(black, 50%)
261
+ line-height: $field_height
262
+ font-weight: 100
263
+ &:checked ~ span
264
+ color: $accent
265
+ span
266
+ font-size: ($font_size)+3px
267
+ color: tint(black, 50%)
268
+ line-height: $field_height
269
+ font-weight: 100
270
+ ~ input[type=checkbox], ~ input[type=radio]
271
+ margin: $pad/2
272
+ float: right
273
+
274
+ input[type=radio]
275
+ margin: ($pad)-2px $pad 0 0
276
+
277
+
278
+ // Outline Forms
279
+ // -------------------------
225
280
  &.outline
226
281
  +inline_block
227
282
  +btn(white)
228
283
  padding: 5px
229
284
  margin: 10px $pad*2 3px 0
285
+ text-align: left
230
286
  input[type=checkbox]
287
+ margin: 3px 0 0
231
288
  ~ span
232
289
  margin: 0 $pad/1.5 0 $pad
233
290
  line-height: 25px
@@ -236,7 +293,8 @@ select
236
293
  text-transform: none !important
237
294
  font-size: 25px
238
295
  position: relative
239
- //top: -0.1em
296
+ &:checked ~ span
297
+ color: $accent
240
298
  &:hover
241
299
  input[type=checkbox]
242
300
  background: tint(black, 40%)
@@ -246,60 +304,54 @@ select
246
304
  color: tint(black, 40%)
247
305
  &.icon
248
306
 
249
- &.inside
250
- .field
251
- margin: $pad 0
252
- padding: 2px 10px
253
- position: relative
254
- width: 291px
307
+ // Inside forms
308
+ // -------------------------
309
+ &.inside_left, &.inside_right
255
310
  +form_text_input_color
256
- &.check
257
- background: none
258
- +box-shadow(none)
259
- border: none
260
- padding: 0
261
- width: auto
262
- label
263
- line-height: 15px
264
- font-weight: normal
265
- color: white
266
- a
267
- color: #A6DFFD
268
- border-bottom: 1px dashed #A6DFFD
269
- &:hover
270
- color: white
271
- border-bottom: none
311
+ margin: 0 0 $field_margin
312
+ padding: 0
313
+ position: relative
314
+ width: auto
315
+ background: white
316
+ display: block
317
+ overflow: hidden
272
318
  label
273
- +inline_block
274
- font-size: 11px
275
- line-height: 21px
276
- font-weight: bold
277
- .req
278
- color: #F05A4F
279
- margin-right: 5px
280
- input[type="text"], input[type="password"]
281
- background: none
319
+ margin: 0
320
+ float: left
321
+ +form_text_input_color
282
322
  border: none
283
- height: 18px
284
- padding: 0 5px
285
- +inline_block
286
- line-height: 20px
287
- width: auto
288
- outline: none
289
- font-weight: bold
323
+ +inline_block
290
324
  +box-shadow(none)
291
- font-size: 11px
292
- &:focus
293
- outline: none
294
- .group
295
- margin: $pad 0
296
- &.nopad
297
- margin: 0
298
- .button
299
- margin: 0
325
+ text-indent: 0
326
+ +border-right-radius(0)
327
+ color: tint(black, 40%)
328
+ font-size: $font_size
329
+ font-weight: bold
330
+ &.icon
331
+ font-size: ($font_size)+8px
332
+ .full
333
+ overflow: hidden
334
+ input[type="text"], input[type="password"]
335
+ +form_text_input_color
336
+ text-indent: 0
337
+ width: 100%
338
+ display: block
339
+ border: 1px solid transparent
340
+ +border-left-radius(0)
341
+ &:focus
342
+ &.inside_right label
343
+ float: right
344
+
345
+ &.hover
346
+ // Add Hover for all text
347
+
348
+
349
+
350
+ // Split Forms
351
+ // -------------------------
352
+ .split
300
353
  .field
301
- margin: 0 !important
354
+ width: 48%
302
355
  float: left
303
- width: 294px
304
356
  & + .field
305
- float: right
357
+ float: right