uniform-ui 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +12 -0
  5. data/Rakefile +34 -8
  6. data/index.html +587 -406
  7. data/preview/index.html.erb +423 -433
  8. data/preview/preview.scss +42 -0
  9. data/site/index.html +660 -0
  10. data/site/logo.png +0 -0
  11. data/site/preview.css +1 -0
  12. data/site/site/logo.png +0 -0
  13. data/site/site/preview.css +1 -0
  14. data/site/site/uniform.css +1 -0
  15. data/site/uniform.css +1 -0
  16. data/uniform.gemspec +3 -2
  17. data/vendor/assets/stylesheets/uniform/components/{buttons.css.scss → buttons.scss} +66 -33
  18. data/vendor/assets/stylesheets/uniform/components/card.scss +83 -0
  19. data/vendor/assets/stylesheets/uniform/components/form.scss +221 -0
  20. data/vendor/assets/stylesheets/uniform/components/grid.scss +83 -0
  21. data/vendor/assets/stylesheets/uniform/components/{inputs.css.scss → inputs.scss} +57 -29
  22. data/vendor/assets/stylesheets/uniform/components/lists.scss +62 -0
  23. data/vendor/assets/stylesheets/uniform/components/loaders.scss +62 -0
  24. data/vendor/assets/stylesheets/uniform/components/nav.scss +44 -0
  25. data/vendor/assets/stylesheets/uniform/components/row.scss +165 -0
  26. data/vendor/assets/stylesheets/uniform/components/table-container.scss +44 -0
  27. data/vendor/assets/stylesheets/uniform/components/table-form.scss +264 -0
  28. data/vendor/assets/stylesheets/uniform/components/tabs.scss +32 -0
  29. data/vendor/assets/stylesheets/uniform/components/tile.scss +32 -0
  30. data/vendor/assets/stylesheets/uniform/defaults.scss +30 -0
  31. data/vendor/assets/stylesheets/uniform/helpers.scss +128 -0
  32. data/vendor/assets/stylesheets/uniform/mixins/grid-framework.scss +142 -0
  33. data/vendor/assets/stylesheets/uniform/{mixins.css.scss → mixins.scss} +16 -32
  34. data/vendor/assets/stylesheets/uniform/variables.scss +54 -0
  35. data/vendor/assets/stylesheets/{uniform.css.scss → uniform.scss} +4 -1
  36. metadata +44 -13
  37. data/preview/preview.css +0 -1
  38. data/preview/preview.css.scss +0 -3
  39. data/preview/uniform.css +0 -0
  40. data/vendor/assets/stylesheets/uniform/components/loaders.css.scss +0 -149
  41. data/vendor/assets/stylesheets/uniform/helpers.css.scss +0 -31
  42. data/vendor/assets/stylesheets/uniform/variables.css.scss +0 -44
@@ -0,0 +1,221 @@
1
+ .uniformBigInput{
2
+ width:100%;
3
+ display:block;
4
+ padding: 10px 15px;
5
+ font-size:1.3em;
6
+ font-weight:300;
7
+ @include appearance(none);
8
+ outline: none;
9
+ box-shadow: none;
10
+ border:1px solid $gray-light;
11
+ &:focus{
12
+ border-color: $blue;
13
+ }
14
+ }
15
+ .uniform-form{
16
+ &.viking-dialog{
17
+ padding: 0;
18
+ }
19
+ .section{
20
+ background:white;
21
+ border:1px solid darken($background, 10);
22
+ display:block;
23
+ overflow:hidden; // prolly need to remove
24
+ margin-bottom:20px;
25
+ }
26
+ .section-head{
27
+ background:darken(white, 3);
28
+ overflow:hidden;
29
+ padding: 10px 15px;
30
+ border-bottom:1px solid darken($background, 10);
31
+ & > * {
32
+ margin: 0;
33
+ }
34
+ h1,h2,h3,h4,h5,h6{
35
+ margin: 0;
36
+ display:inline-block;
37
+ }
38
+ .nav-tabs{
39
+ border-bottom:none;
40
+ margin-bottom: -10px;
41
+ }
42
+ .action{
43
+ float:right;
44
+ color:$green;
45
+ text-decoration:none;
46
+ a{
47
+ text-decoration:none;
48
+ }
49
+ .fortycon{
50
+ font-size:1.2em;
51
+ vertical-align:middle;
52
+ }
53
+ }
54
+ }
55
+ .section-foot{
56
+ background:darken(white, 3);
57
+ border-top:1px solid darken($background, 10);
58
+ text-align:center;
59
+ padding: 10px 15px;
60
+ }
61
+ .row{
62
+ .form-group{
63
+ margin-top:10px;
64
+ margin-bottom:10px;
65
+ }
66
+ }
67
+ .checkbox-group{
68
+ label{
69
+ font-weight:normal;
70
+ display:block;
71
+ }
72
+ input{
73
+ margin-right:3px;
74
+ }
75
+ }
76
+ .show-more{
77
+ color:lighten($gray, 45);
78
+ font-size:0.8em;
79
+ margin-top:10px;
80
+ margin-bottom:10px;
81
+ padding:0 15px;
82
+ padding-top: 8px;
83
+ min-height:53px;
84
+ display:inline-block;
85
+ padding-left:25px;
86
+ cursor:pointer;
87
+ border:1px solid transparent;
88
+ text-decoration:none;
89
+ & > span{
90
+ font-size:1.2em;
91
+ display:block;
92
+ font-weight:bold;
93
+ margin-bottom:2px;
94
+ margin-left:-18px;
95
+ &:before{
96
+ font-family:$fortycons;
97
+ display:inline-block;
98
+ content: $fortycon-add;
99
+ margin-right:5px;
100
+ }
101
+ }
102
+ .indicator{
103
+ display:inline-block;
104
+ width:6px;
105
+ height:6px;
106
+ border-radius:50%;
107
+ margin:1px 3px;
108
+ border:1px solid lighten($gray, 45);
109
+ &.full{
110
+ background:lighten($gray, 45);
111
+ }
112
+ }
113
+ &:hover{
114
+ border-color:$blue;
115
+ color:$blue;
116
+ .indicator {
117
+ border-color:$blue;
118
+ &.full{
119
+ background:$blue;
120
+ }
121
+ }
122
+ }
123
+ }
124
+ .form-group{
125
+ margin-bottom:0;
126
+ .has-error > label,
127
+ & > label{
128
+ display:block;
129
+ }
130
+ .has-error > #{$text-inputs}, textarea,
131
+ & > #{$text-inputs}, textarea{
132
+ @include appearance(none);
133
+ outline: none;
134
+ box-shadow: none;
135
+ width:100%;
136
+ padding:5px;
137
+ border:1px solid $gray-light;
138
+ &:focus{
139
+ border-color: $blue;
140
+ }
141
+ }
142
+ .has-error > select,
143
+ & > select{
144
+ position:relative;
145
+ z-index:1;
146
+ @include appearance(none);
147
+ outline: 1px;
148
+ cursor:pointer;
149
+ text-indent: 1px;
150
+ text-overflow: ellipsis;
151
+ font-family:$helvetica;
152
+ border:1px solid $gray-light;
153
+ margin:0;
154
+ padding: 5px;
155
+ padding-right: 20px;
156
+ line-height:1.2;
157
+ min-height: 30px;
158
+ background: white;
159
+ border-radius:0;
160
+ background: url(asset_path('arrow_down_large.svg')) no-repeat;
161
+ background-size: 10px 10px;
162
+ background-position:right 5px center;
163
+ width: 100%;
164
+ &:focus{
165
+ border-color: $blue;
166
+ }
167
+ }
168
+ .inline-input{
169
+ width:100%;
170
+ select{
171
+ background:none;
172
+ }
173
+ &.active{
174
+ box-shadow:none;
175
+ border-color: $blue;
176
+ }
177
+ .add-on{
178
+ width: 30px;
179
+ border-right:none;
180
+ }
181
+ }
182
+ select.select2{
183
+ max-height:30px;
184
+ }
185
+ .select2{
186
+ width:100%;
187
+ .select2-selection{
188
+ border-radius:0;
189
+ border-color:$gray-light;
190
+ min-height:30px;
191
+ .select2-selection__arrow{
192
+ height: 30px;
193
+ }
194
+ }
195
+ .select2-selection--multiple{
196
+ line-height:1;
197
+ }
198
+ .select2-selection__choice{
199
+ margin-top:3px;
200
+ line-height:1.4;
201
+ }
202
+ .select2-selection--single{
203
+ height: 30px;
204
+ .select2-selection__rendered{
205
+ line-height:30px;
206
+ }
207
+ }
208
+ }
209
+ }
210
+ .has-error {
211
+ label{
212
+ color: $red !important;
213
+ }
214
+ #{$text-inputs}, textarea{
215
+ border-color:$red !important;
216
+ }
217
+ .select2 .select2-selection{
218
+ border-color:$red !important;
219
+ }
220
+ }
221
+ }
@@ -0,0 +1,83 @@
1
+ //
2
+ // Grid system
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Container widths
7
+ //
8
+ // Set the container width, and override it for fixed navbars in media queries.
9
+ .container {
10
+ @include container-fixed;
11
+
12
+ @include media ($min-sm) {
13
+ width: $container-sm;
14
+ }
15
+ @include media ($min-md) {
16
+ width: $container-md;
17
+ }
18
+ @include media ($min-lg) {
19
+ width: $container-lg;
20
+ }
21
+ }
22
+
23
+
24
+ // Fluid container
25
+ //
26
+ // Utilizes the mixin meant for fixed width containers, but without any defined
27
+ // width for fluid, full width layouts.
28
+
29
+ .container-fluid {
30
+ @include container-fixed;
31
+ }
32
+
33
+
34
+ // Row
35
+ //
36
+ // Rows contain and clear the floats of your columns.
37
+
38
+ .row {
39
+ @include make-row;
40
+ }
41
+
42
+
43
+ // Columns
44
+ //
45
+ // Common styles for small and large grid columns
46
+
47
+ @include make-grid-columns;
48
+
49
+
50
+ // Extra small grid
51
+ //
52
+ // Columns, offsets, pushes, and pulls for extra small devices like
53
+ // smartphones.
54
+
55
+ @include make-grid(xs);
56
+
57
+
58
+ // Small grid
59
+ //
60
+ // Columns, offsets, pushes, and pulls for the small device range, from phones
61
+ // to tablets.
62
+
63
+ @include media ($min-sm) {
64
+ @include make-grid(sm);
65
+ }
66
+
67
+
68
+ // Medium grid
69
+ //
70
+ // Columns, offsets, pushes, and pulls for the desktop device range.
71
+
72
+ @include media ($min-md) {
73
+ @include make-grid(md);
74
+ }
75
+
76
+
77
+ // Large grid
78
+ //
79
+ // Columns, offsets, pushes, and pulls for the large desktop device range.
80
+
81
+ @include media ($min-lg) {
82
+ @include make-grid(lg);
83
+ }
@@ -1,82 +1,110 @@
1
- @mixin select-custom(){
2
- display:inline-block;
3
- border-radius: 2px;
4
- border: 1px solid #bababa;
1
+ @mixin uniform-select {
5
2
  position:relative;
6
3
  select{
4
+ @include appearance(none);
7
5
  position:relative;
8
6
  z-index:1;
9
- @include appearance(none);
10
7
  outline: 1px;
11
8
  cursor:pointer;
12
9
  text-indent: 1px;
13
10
  text-overflow: ellipsis;
14
11
  font-family:$helvetica;
15
- border:none;
16
- margin:0;
17
- padding: 0.3em 1em;
18
- padding-right:2em;
12
+ border:1px solid lighten($gray, 20);
13
+ padding: 0.3em 0.5em;
14
+ padding-right:1.7em;
15
+ background: white;
16
+ border-radius:0;
19
17
  background:none;
20
18
  }
21
19
  &:after{
22
- color:$gray;
23
- font-size:1.3em;
24
- // TODO setup arrow icon
25
- // font-family:$fortycons;
26
- // content:$fortycon-arrow-down;
20
+ color:lighten($gray, 20);
21
+ font-size:1em;
22
+ font-family: $fortycons;
23
+ content:$fortycon-arrow-down-large;
27
24
  @include vertical-middle();
28
25
  right:0.3em;
29
26
  z-index:0;
30
27
  }
31
28
  &:focus{
32
- color: #000;
33
- box-shadow: 0 0 5px 1px $green-light;
34
- border-color: $green-dark;
29
+ border-color: $blue;
35
30
  }
36
31
  }
32
+ .uniform-select{
33
+ @include uniform-select;
34
+ }
35
+
37
36
  //----------------------------------------------------------------
38
37
  // inline-input
39
38
  //----------------------------------------------------------------
40
39
  .inline-input{
41
40
  display:table;
42
41
  background:white;
42
+ overflow:hidden;
43
43
  border:1px solid darken(white, 15);
44
44
  border-top-color:darken(white, 20);
45
+ &.block{
46
+ &>*{
47
+ width: 100%;
48
+ }
49
+ }
45
50
  &>*{
46
51
  display:table-cell;
47
52
  vertical-align:middle;
53
+ float:none;
54
+ &.top{
55
+ vertical-align:top;
56
+ }
48
57
  }
49
- input{
58
+
59
+ #{$text-inputs},
60
+ .textbox,
61
+ textarea {
62
+ @include appearance(none);
63
+ outline: none;
64
+ padding:10px;
50
65
  box-shadow: none;
51
66
  border:none;
52
- display:block;
67
+ width:100%;
68
+ }
69
+ #{$text-inputs},
70
+ textarea,
71
+ .textbox,
72
+ select{
73
+ &:disabled{
74
+ color:lighten($gray, 20);
75
+ font-style:italic;
76
+ }
53
77
  }
54
78
  select{
55
- @include select-custom;
56
- display:block;
79
+ width:100%;
57
80
  border:none;
58
81
  margin:0;
82
+ margin-top:1px;
83
+ height:37px;
84
+ line-height:37px;
85
+ background:none;
59
86
  }
60
87
  label{
61
88
  margin:0;
89
+ font-weight:bold;
62
90
  padding:5px;
91
+ width:100%;
92
+ font-size:0.8em;
63
93
  }
64
- .label, .add-on, .units{
94
+ .label,
95
+ .add-on,
96
+ .units{
65
97
  white-space:nowrap;
66
98
  width:auto;
67
99
  padding-left: 7px;
68
100
  padding-right: 7px;
69
- border-left:1px solid darken(white, 15);
70
- background:darken(white, 5);
71
101
  color:lighten(black, 50);
72
- font-weight:300;
73
- &.pre, &:first-child{
74
- border-left:none;
75
- border-right:1px solid darken(white, 15);
76
- }
77
102
  }
78
103
  &.active{
79
104
  box-shadow: 0 0 3px 1px $green;
80
105
  border-color:$green;
81
106
  }
107
+ &.error{
108
+ border-color:$red;
109
+ }
82
110
  }
@@ -0,0 +1,62 @@
1
+ li[data-step]{
2
+ list-style:none;
3
+ margin:0.5em 0;
4
+ position:relative;
5
+ &:before{
6
+ content: attr(data-step);
7
+ color:$green;
8
+ font-size:1em;
9
+ vertical-align:-2px;
10
+ border-radius:50%;
11
+ border:2px solid $green;
12
+ width:1.3em;
13
+ height:1.3em;
14
+ font-weight:normal;
15
+ line-height:1.1;
16
+ text-align:center;
17
+ position:absolute;
18
+ left:-1.5em;
19
+ }
20
+ }
21
+ li[data-number]{
22
+ list-style:none;
23
+ margin:0.5em 0;
24
+ position:relative;
25
+ &:before{
26
+ content: attr(data-number);
27
+ font-size:1em;
28
+ width:1.5em;
29
+ height:1.3em;
30
+ font-weight:bold;
31
+ line-height:1.3;
32
+ text-align:center;
33
+ position:absolute;
34
+ left:-1.5em;
35
+ }
36
+ }
37
+
38
+
39
+ ul.custom li,
40
+ ul.checks li,
41
+ li[data-fortycon],
42
+ li[data-icon]{
43
+ position:relative;
44
+ &:before{
45
+ content: "c";
46
+ font-size:1.2em;
47
+ position:absolute;
48
+ left:-1.5em;
49
+ line-height:1;
50
+ }
51
+ }
52
+ li[data-fortycon],
53
+ li[data-icon] {
54
+ &:before{
55
+ content: attr(data-fortycon);
56
+ }
57
+ }
58
+ ul.checks li {
59
+ &:before{
60
+ color: $green;
61
+ }
62
+ }
@@ -0,0 +1,62 @@
1
+ .uniform-loader{
2
+ display:inline-block;
3
+ .uniform-loader-container{
4
+ letter-spacing:-.05em;
5
+ white-space:nowrap;
6
+ span{
7
+ font-size:2em;
8
+ line-height:1em;
9
+ color:rgba(black, 1);
10
+ @include animation(uniform-loader 1s infinite linear);
11
+ @include animation-delay(.4s);
12
+ }
13
+ span:first-of-type{
14
+ @include animation-delay(.2s);
15
+ }
16
+ span:last-of-type{
17
+ @include animation-delay(.6s);
18
+ }
19
+ }
20
+ &.light{
21
+ .uniform-loader-container{
22
+ span{
23
+ color:rgba(white, 1);
24
+ @include animation(uniform-loader-light 1s infinite linear);
25
+ @include animation-delay(.4s);
26
+ }
27
+ span:first-of-type{
28
+ @include animation-delay(.2s);
29
+ }
30
+ span:last-of-type{
31
+ @include animation-delay(.6s);
32
+ }
33
+ }
34
+ }
35
+ &.cover{
36
+ display:block;
37
+ background:rgba(white, 0.5);
38
+ position:absolute;
39
+ top:0;
40
+ left:0;
41
+ width:100%;
42
+ height:100%;
43
+ z-index:999999999;
44
+ .uniform-loader-container{
45
+ position:absolute;
46
+ @include align-middle;
47
+ }
48
+ &.light{
49
+ background:rgba(black, .5);
50
+ }
51
+ }
52
+ }
53
+ @include keyframes (uniform-loader) {
54
+ 0%{ color:rgba(black, 1); }
55
+ 25%{ color:rgba(black, 0.2); }
56
+ 100%{ color:rgba(black, 0.2); }
57
+ }
58
+ @include keyframes (uniform-loader-light) {
59
+ 0%{ color:rgba(white, 1); }
60
+ 25%{ color:rgba(white, 0.2); }
61
+ 100%{ color:rgba(white, 0.2); }
62
+ }
@@ -0,0 +1,44 @@
1
+ .uniform-nav{
2
+ list-style: none;
3
+ margin: 0;
4
+ padding: 0;
5
+ ul {
6
+ list-style: none;
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+ li{
11
+ display:block;
12
+ & > *{
13
+ display:block;
14
+ padding: 10px 20px;
15
+ text-decoration:none;
16
+ &:hover{
17
+ color: black;
18
+ background:rgba($green-light, 0.3);
19
+ }
20
+ }
21
+ }
22
+
23
+ &.horizontal{
24
+
25
+ .uniform-nav-container{
26
+ display:table;
27
+ & > * {
28
+ display:table-cell;
29
+ vertical-align:middle;
30
+ }
31
+ }
32
+ .right{
33
+ text-align:right;
34
+ float:none;
35
+ }
36
+ }
37
+
38
+ &.main{
39
+ border-bottom: 1px solid $gray-light;
40
+ .uniform-nav-container{
41
+ width: 100%;
42
+ }
43
+ }
44
+ }