uniform-ui 0.6 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/CNAME +1 -0
- data/Gemfile +0 -4
- data/Gemfile.lock +1 -11
- data/README.md +2 -3
- data/Rakefile +34 -24
- data/index.html +240 -1160
- data/preview/{_tables.html.erb → alerts.html.erb} +0 -0
- data/preview/buttons.html.erb +62 -0
- data/preview/cards.html.erb +23 -0
- data/preview/colors.html.erb +22 -0
- data/preview/{_tabs.html.erb → dropdown.html.erb} +0 -0
- data/preview/form.html.erb +233 -0
- data/preview/grid.html.erb +304 -0
- data/preview/helpers.html.erb +225 -0
- data/preview/index.html.erb +74 -50
- data/preview/{_tiles.html.erb → labels.html.erb} +0 -0
- data/preview/layout.html.erb +63 -0
- data/preview/loaders.html.erb +83 -0
- data/preview/modal.html.erb +1 -0
- data/preview/nav.html.erb +77 -0
- data/preview/preview.scss +39 -10
- data/preview/rows.html.erb +36 -0
- data/preview/select.html.erb +1 -0
- data/preview/tables.html.erb +1 -0
- data/preview/tabs.html.erb +17 -0
- data/preview/tiles.html.erb +1 -0
- data/preview/tooltip.erb +1 -0
- data/site/alerts.html +157 -0
- data/site/alerts.html copy +133 -0
- data/site/buttons.html +286 -0
- data/site/cards.html +177 -0
- data/site/colors.html +275 -0
- data/site/dropdown.html +157 -0
- data/site/dropdown.html copy +141 -0
- data/site/form.html +369 -0
- data/site/grid.html +716 -0
- data/site/helpers.html +1008 -0
- data/site/index.html +208 -617
- data/site/labels.html +157 -0
- data/site/layout.html +313 -0
- data/site/loaders.html +233 -0
- data/site/modal.html +157 -0
- data/site/nav.html +229 -0
- data/site/preview.css +1 -1
- data/site/preview.js +59 -0
- data/site/rows.html +190 -0
- data/site/select.html +157 -0
- data/site/tables.html +157 -0
- data/site/tabs.html +171 -0
- data/site/tiles.html +157 -0
- data/site/tiles.html copy +109 -0
- data/site/tooltip +157 -0
- data/site/uniform.css +1 -1
- data/uniform.gemspec +2 -8
- data/vendor/assets/stylesheets/uniform.scss +4 -4
- data/vendor/assets/stylesheets/uniform/base.scss +2 -0
- data/vendor/assets/stylesheets/uniform/components/alert.scss +27 -0
- data/vendor/assets/stylesheets/uniform/components/buttons.scss +135 -86
- data/vendor/assets/stylesheets/uniform/components/card.scss +69 -67
- data/vendor/assets/stylesheets/uniform/components/dropdown.scss +69 -0
- data/vendor/assets/stylesheets/uniform/components/form.scss +268 -85
- data/vendor/assets/stylesheets/uniform/components/grid.scss +214 -72
- data/vendor/assets/stylesheets/uniform/components/label.scss +63 -0
- data/vendor/assets/stylesheets/uniform/components/loaders.scss +38 -18
- data/vendor/assets/stylesheets/uniform/components/modal.scss +51 -0
- data/vendor/assets/stylesheets/uniform/components/nav.scss +171 -54
- data/vendor/assets/stylesheets/uniform/components/row.scss +69 -101
- data/vendor/assets/stylesheets/uniform/components/select.scss +98 -0
- data/vendor/assets/stylesheets/uniform/components/table.scss +83 -0
- data/vendor/assets/stylesheets/uniform/components/tabs.scss +39 -26
- data/vendor/assets/stylesheets/uniform/components/tile.scss +15 -27
- data/vendor/assets/stylesheets/uniform/components/tooltip.scss +46 -0
- data/vendor/assets/stylesheets/uniform/defaults.scss +85 -19
- data/vendor/assets/stylesheets/uniform/helpers.scss +82 -81
- data/vendor/assets/stylesheets/uniform/helpers/colors.scss +37 -0
- data/vendor/assets/stylesheets/uniform/helpers/margin.scss +44 -0
- data/vendor/assets/stylesheets/uniform/helpers/padding.scss +74 -0
- data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +31 -0
- data/vendor/assets/stylesheets/uniform/helpers/text.scss +121 -0
- data/vendor/assets/stylesheets/uniform/mixins.scss +25 -48
- data/vendor/assets/stylesheets/uniform/variables.scss +10 -28
- metadata +61 -85
- data/preview/_buttons.html.erb +0 -59
- data/preview/_cards.html.erb +0 -82
- data/preview/_colors.html.erb +0 -12
- data/preview/_forms.html.erb +0 -196
- data/preview/_grid.html.erb +0 -49
- data/preview/_helpers.html.erb +0 -158
- data/preview/_inputs.html.erb +0 -93
- data/preview/_installation.html.erb +0 -4
- data/preview/_lists.html.erb +0 -53
- data/preview/_loaders.html.erb +0 -72
- data/preview/_nav.html.erb +0 -46
- data/preview/_philosophy.html.erb +0 -33
- data/preview/_rows.html.erb +0 -35
- data/preview/_uniform.html.erb +0 -4
- data/site/site/logo.png +0 -0
- data/site/site/preview.css +0 -1
- data/site/site/uniform.css +0 -1
- data/vendor/assets/stylesheets/uniform/components/inputs.scss +0 -131
- data/vendor/assets/stylesheets/uniform/components/lists.scss +0 -62
- data/vendor/assets/stylesheets/uniform/components/table-container.scss +0 -44
- data/vendor/assets/stylesheets/uniform/components/table-form.scss +0 -159
- data/vendor/assets/stylesheets/uniform/mixins/grid-framework.scss +0 -142
@@ -0,0 +1,63 @@
|
|
1
|
+
.uniformLabel{
|
2
|
+
display:inline-block;
|
3
|
+
vertical-align:baseline;
|
4
|
+
font-size: 0.8em;
|
5
|
+
padding: 0.0714em 0.357em 0.0714em;
|
6
|
+
border: 0.1em solid $gray;
|
7
|
+
color: $gray;
|
8
|
+
border-radius: 0.3em;
|
9
|
+
&.fill{
|
10
|
+
border: none;
|
11
|
+
background: lighten($gray, 20);
|
12
|
+
color: white;
|
13
|
+
}
|
14
|
+
&.pad-more{
|
15
|
+
padding: 0.0714em 0.5em;
|
16
|
+
}
|
17
|
+
// TODO remove spire specific statuses
|
18
|
+
&.deleted,
|
19
|
+
&.red{
|
20
|
+
border-color: $red;
|
21
|
+
color: $red;
|
22
|
+
&.fill{
|
23
|
+
background: $red;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
&.approved,
|
28
|
+
&.accepted,
|
29
|
+
&.active,
|
30
|
+
&.green{
|
31
|
+
border-color: $green-dark;
|
32
|
+
color: $green-dark;
|
33
|
+
&.fill{
|
34
|
+
background: $green-dark;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&.missed,
|
39
|
+
&.expired,
|
40
|
+
&.leased,
|
41
|
+
&.yellow,
|
42
|
+
&.initiated,
|
43
|
+
&.nurturing{
|
44
|
+
border-color: $yellow-dark;
|
45
|
+
color: $yellow-dark;
|
46
|
+
&.fill{
|
47
|
+
background: $yellow-dark;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
&.muted,
|
51
|
+
&.closed{
|
52
|
+
border-color: lighten($gray, 30);
|
53
|
+
color: lighten($gray, 30);
|
54
|
+
}
|
55
|
+
|
56
|
+
&.blue{
|
57
|
+
border-color: $blue;
|
58
|
+
color: $blue;
|
59
|
+
&.fill{
|
60
|
+
background: $blue;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
@@ -1,34 +1,36 @@
|
|
1
1
|
.uniform-loader{
|
2
|
+
font-size:2em;
|
3
|
+
line-height:1em;
|
2
4
|
display:inline-block;
|
3
5
|
.uniform-loader-container{
|
4
6
|
letter-spacing:-.05em;
|
5
7
|
white-space:nowrap;
|
6
8
|
span{
|
7
|
-
font-size:2em;
|
8
|
-
line-height:1em;
|
9
9
|
color:rgba(black, 1);
|
10
|
-
|
11
|
-
|
10
|
+
text-shadow:-1px -1px 0 rgba(#FFFFFF, .2);
|
11
|
+
animation: uniform-loader-light 1s infinite linear;
|
12
|
+
animation-delay: 0.2s;
|
12
13
|
}
|
13
14
|
span:first-of-type{
|
14
|
-
|
15
|
+
animation-delay: 0s;
|
15
16
|
}
|
16
17
|
span:last-of-type{
|
17
|
-
|
18
|
+
animation-delay: 0.4s;
|
18
19
|
}
|
19
20
|
}
|
20
21
|
&.light{
|
21
22
|
.uniform-loader-container{
|
22
23
|
span{
|
23
24
|
color:rgba(white, 1);
|
24
|
-
|
25
|
-
|
25
|
+
text-shadow:-1px -1px 0 rgba(black, .2);
|
26
|
+
animation: uniform-loader 1s infinite linear;
|
27
|
+
animation-delay: 0.2s;
|
26
28
|
}
|
27
29
|
span:first-of-type{
|
28
|
-
|
30
|
+
animation-delay: 0s;
|
29
31
|
}
|
30
32
|
span:last-of-type{
|
31
|
-
|
33
|
+
animation-delay: 0.4s;
|
32
34
|
}
|
33
35
|
}
|
34
36
|
}
|
@@ -49,14 +51,32 @@
|
|
49
51
|
background:rgba(black, .5);
|
50
52
|
}
|
51
53
|
}
|
54
|
+
&.top{
|
55
|
+
.uniform-loader-container{
|
56
|
+
top: 20px;
|
57
|
+
}
|
58
|
+
}
|
52
59
|
}
|
53
|
-
@
|
54
|
-
|
55
|
-
|
56
|
-
|
60
|
+
@keyframes uniform-loader {
|
61
|
+
0% {
|
62
|
+
color: rgba(255, 255, 255, 0);
|
63
|
+
}
|
64
|
+
25% {
|
65
|
+
color: white;
|
66
|
+
}
|
67
|
+
100% {
|
68
|
+
color: white;
|
69
|
+
}
|
57
70
|
}
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
71
|
+
|
72
|
+
@keyframes uniform-loader-light {
|
73
|
+
0% {
|
74
|
+
color: black;
|
75
|
+
}
|
76
|
+
25% {
|
77
|
+
color: rgba(0, 0, 0, 0.2);
|
78
|
+
}
|
79
|
+
100% {
|
80
|
+
color: rgba(0, 0, 0, 0.2);
|
81
|
+
}
|
62
82
|
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
.uniformModal-overlay{
|
2
|
+
position:fixed;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
bottom: 0;
|
6
|
+
right: 0;
|
7
|
+
opacity: 0.6;
|
8
|
+
background: black;
|
9
|
+
}
|
10
|
+
.uniformModal{
|
11
|
+
position: absolute;
|
12
|
+
top: 0;
|
13
|
+
width: 100%;
|
14
|
+
text-align:center;
|
15
|
+
padding: 2em;
|
16
|
+
}
|
17
|
+
|
18
|
+
.uniformModal-container{
|
19
|
+
display:inline-block;
|
20
|
+
text-align:left;
|
21
|
+
position:relative;
|
22
|
+
margin: auto;
|
23
|
+
background: white;
|
24
|
+
border-radius: 0.25em;
|
25
|
+
max-width: 90%;
|
26
|
+
&.fill{
|
27
|
+
width: 90%;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.uniformModal-close{
|
32
|
+
position: absolute;
|
33
|
+
padding: 0.3em;
|
34
|
+
top: -2rem;
|
35
|
+
right: -2rem;
|
36
|
+
font-size:1.5em;
|
37
|
+
color: white;
|
38
|
+
opacity: 0.5;
|
39
|
+
line-height:1;
|
40
|
+
cursor: pointer;
|
41
|
+
&:hover{
|
42
|
+
opacity: 1;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.uniformModal-blur{
|
47
|
+
filter: blur(4px);
|
48
|
+
}
|
49
|
+
body.uniformModal-active{
|
50
|
+
background: $gray-dark;
|
51
|
+
}
|
@@ -1,80 +1,197 @@
|
|
1
|
-
.
|
2
|
-
|
1
|
+
.uniformNav{
|
2
|
+
z-index: 3;
|
3
|
+
position: relative;
|
3
4
|
background: white;
|
4
5
|
box-shadow:0 1px 0 0 rgba(black, 0.15);
|
6
|
+
line-height: 1;
|
5
7
|
color: $gray;
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
padding:7px 0;
|
10
|
-
margin-right:10px;
|
8
|
+
&.transparent{
|
9
|
+
background: none;
|
10
|
+
box-shadow: none;
|
11
11
|
}
|
12
|
-
.
|
13
|
-
|
12
|
+
.col{
|
13
|
+
a{
|
14
|
+
&:first-child:last-child{
|
15
|
+
display:block;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
.nav{
|
20
|
+
& > a,
|
21
|
+
& > * > a,
|
22
|
+
.text{
|
14
23
|
display:inline-block;
|
15
|
-
vertical-align:
|
24
|
+
vertical-align:middle;
|
25
|
+
padding: 1.3em 1em;
|
26
|
+
color: $gray;
|
27
|
+
text-decoration:none;
|
28
|
+
.un-pad{
|
29
|
+
margin: -0.7em 0;
|
30
|
+
}
|
31
|
+
&:hover{
|
32
|
+
color: $blue;
|
33
|
+
}
|
34
|
+
&.uniformDropdown{
|
35
|
+
.fortycon.arrow_down_large{
|
36
|
+
transition: all 0.2s;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
&.active.uniformDropdown{
|
40
|
+
.fortycon.arrow_down_large{
|
41
|
+
transform: rotate(180deg);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
&.active{
|
45
|
+
color: $green-dark;
|
46
|
+
border-bottom: 2px solid $green-dark;
|
47
|
+
padding-bottom: calc(1.3em - 2px);
|
48
|
+
}
|
16
49
|
}
|
17
50
|
|
18
51
|
}
|
19
|
-
|
20
|
-
display:
|
21
|
-
vertical-align:bottom;
|
52
|
+
img{
|
53
|
+
display: block;
|
22
54
|
}
|
23
|
-
|
24
|
-
|
55
|
+
|
56
|
+
.uniformNav-subnav,
|
57
|
+
&.uniformNav-subnav{
|
58
|
+
.nav{
|
59
|
+
& > a,
|
60
|
+
& > * > a,
|
61
|
+
.text{
|
62
|
+
padding: 0.5em 0.5em;
|
63
|
+
}
|
64
|
+
}
|
25
65
|
}
|
26
|
-
|
27
|
-
|
66
|
+
.uniformInputGroup{
|
67
|
+
color: $gray;
|
28
68
|
}
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
& >
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
padding-top:17px;
|
40
|
-
background:none;
|
69
|
+
&.invert{
|
70
|
+
box-shadow:none;
|
71
|
+
background: none;
|
72
|
+
color: $gray-light;
|
73
|
+
.nav{
|
74
|
+
& > a,
|
75
|
+
& > div > a,
|
76
|
+
.text{
|
77
|
+
background: none;
|
78
|
+
color: $gray-light;
|
41
79
|
&:hover{
|
42
|
-
color: $
|
80
|
+
color: $green-light;
|
81
|
+
}
|
82
|
+
&.active{
|
83
|
+
color: white;
|
84
|
+
background: darken($gray, 10);
|
43
85
|
}
|
44
86
|
}
|
45
87
|
}
|
46
88
|
}
|
47
|
-
.
|
48
|
-
|
89
|
+
.mobile-nav{
|
90
|
+
display:none;
|
91
|
+
button{
|
92
|
+
outline:none;
|
93
|
+
border:none;
|
94
|
+
background:none;
|
95
|
+
padding: 0.5em 0.5em;
|
96
|
+
}
|
97
|
+
img{
|
98
|
+
display: inline-block;
|
99
|
+
vertical-align:middle;
|
100
|
+
}
|
101
|
+
.fortycon{
|
102
|
+
vertical-align:middle;
|
103
|
+
}
|
49
104
|
}
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
& >
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
105
|
+
@include media($sm){
|
106
|
+
font-size: 1.2rem;
|
107
|
+
.nav{
|
108
|
+
& > a,
|
109
|
+
& > * > a,
|
110
|
+
.text{
|
111
|
+
padding-top:0.6em;
|
112
|
+
padding-bottom: 0.6em;
|
113
|
+
|
114
|
+
&.active{
|
115
|
+
color: $green;
|
116
|
+
box-shadow: inset 2px 0 0 $green;
|
59
117
|
}
|
60
118
|
}
|
61
119
|
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
.uniform-nav.vertical{
|
66
|
-
ul {
|
67
|
-
width: 100%;
|
68
|
-
li {
|
120
|
+
.mobile-nav{
|
121
|
+
position:relative;
|
69
122
|
display:block;
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
123
|
+
z-index: 2;
|
124
|
+
}
|
125
|
+
.non-mobile-nav{
|
126
|
+
z-index: 1;
|
127
|
+
position:fixed;
|
128
|
+
top: -100vh;
|
129
|
+
left: 0;
|
130
|
+
padding-top: 60px;
|
131
|
+
width: 100%;
|
132
|
+
height: 100vh;
|
133
|
+
background: white;
|
134
|
+
transition: top 0.2s;
|
135
|
+
overflow-y: auto;
|
136
|
+
.nav{
|
137
|
+
margin-bottom: 1em;
|
138
|
+
}
|
139
|
+
.uniformNav-subnav{
|
140
|
+
padding-top: 1em;
|
141
|
+
}
|
142
|
+
&.non-mobile-nav-left{
|
143
|
+
left: -100vw;
|
144
|
+
transition: left 0.2s;
|
145
|
+
width: auto;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
button .fortycon{
|
149
|
+
transition: all 0.2s;
|
150
|
+
}
|
151
|
+
&.active{
|
152
|
+
.non-mobile-nav{
|
153
|
+
top: 0;
|
154
|
+
&.non-mobile-nav-left{
|
155
|
+
left: 0;
|
156
|
+
box-shadow: 0 0 10px rgba(black, 0.2);
|
76
157
|
}
|
77
158
|
}
|
159
|
+
|
160
|
+
button .fortycon{
|
161
|
+
transform: rotate(180deg);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
.uniformNav-subnav{
|
166
|
+
font-size:1rem;
|
167
|
+
box-shadow:0 -1px 0 0 rgba(black, 0.15);
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
.uniformNav.vertical{
|
172
|
+
box-shadow: none;
|
173
|
+
.title{
|
174
|
+
font-weight: bold;
|
175
|
+
}
|
176
|
+
a{
|
177
|
+
display:block;
|
178
|
+
padding: 0.9em 1em;
|
179
|
+
margin: 0.1em 0;
|
180
|
+
&:hover{
|
181
|
+
color: black;
|
182
|
+
background:rgba($gray, 0.1);
|
183
|
+
}
|
184
|
+
&.active{
|
185
|
+
background: $green;
|
186
|
+
color: white;
|
187
|
+
border:none;
|
188
|
+
padding: 0.9em 1em;
|
189
|
+
}
|
190
|
+
&:first-of-type{
|
191
|
+
margin-top:0;
|
192
|
+
}
|
193
|
+
&:last-of-type{
|
194
|
+
margin-bottom: 0;
|
78
195
|
}
|
79
196
|
}
|
80
197
|
}
|