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
@@ -1,123 +1,91 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
border-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
.uniformRow{
|
2
|
+
background: white;
|
3
|
+
padding: 0.5em;
|
4
|
+
padding-bottom: 1em;
|
5
|
+
border: 1px solid $gray-light;
|
6
|
+
margin: 0.5em 0;
|
7
|
+
text-decoration: none;
|
8
|
+
&.nest{
|
9
|
+
border-left: none;
|
10
|
+
border-right: none;
|
11
|
+
}
|
12
|
+
&[data-href]{
|
13
|
+
cursor: pointer;
|
14
|
+
}
|
11
15
|
&:hover{
|
12
|
-
background
|
16
|
+
background: lighten($blue, 50);
|
13
17
|
}
|
14
|
-
a
|
15
|
-
|
18
|
+
a{
|
19
|
+
text-decoration: none;
|
16
20
|
}
|
17
|
-
|
18
|
-
|
21
|
+
.title{
|
22
|
+
font-weight:bold;
|
19
23
|
}
|
20
|
-
.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
display:block;
|
25
|
-
padding: 8px 12px;
|
26
|
-
overflow:hidden;
|
27
|
-
& > .pad {
|
28
|
-
display:block;
|
29
|
-
padding:8px 0;
|
30
|
-
}
|
31
|
-
}
|
24
|
+
.subtle{
|
25
|
+
font-size: 0.9em;
|
26
|
+
color: lighten($gray, 20);
|
27
|
+
@include text-overflow;
|
32
28
|
}
|
33
|
-
|
34
|
-
|
29
|
+
img{
|
30
|
+
height: auto;
|
31
|
+
width: 100%;
|
35
32
|
display:block;
|
36
|
-
font-size:0.9em;
|
37
|
-
color:lighten($gray, 30);
|
38
|
-
display: block;
|
39
33
|
}
|
40
|
-
.
|
41
|
-
|
42
|
-
|
34
|
+
.avatar{
|
35
|
+
align-self: stretch;
|
36
|
+
background: darken($gray-light, 10);
|
43
37
|
position:relative;
|
44
|
-
color:darken($background, 30);
|
45
|
-
background-color:darken($background, 30);
|
46
|
-
float:left;
|
47
38
|
img{
|
48
|
-
|
49
|
-
|
50
|
-
|
39
|
+
position:absolute;
|
40
|
+
top:0;
|
41
|
+
left: 0;
|
42
|
+
width: 100%;
|
43
|
+
height: 100%;
|
44
|
+
object-fit: cover;
|
51
45
|
}
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
padding-top:0;
|
57
|
-
padding-bottom:8px;
|
58
|
-
}
|
46
|
+
.fortycon{
|
47
|
+
font-size: 100px;
|
48
|
+
color: white;
|
49
|
+
opacity: 0.7;
|
59
50
|
}
|
60
|
-
.
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
51
|
+
.avatar-text{
|
52
|
+
display:block;
|
53
|
+
@include vertical-middle;
|
54
|
+
left: 0;
|
55
|
+
width: 100%;
|
56
|
+
text-align:center;
|
66
57
|
}
|
67
58
|
}
|
68
|
-
|
69
|
-
|
70
|
-
.
|
71
|
-
|
72
|
-
|
73
|
-
line-height:1em;
|
74
|
-
font-size:0.85em;
|
75
|
-
padding:3px !important;
|
76
|
-
font-weight:normal;
|
77
|
-
border-bottom:2px solid $gray-light;
|
78
|
-
.sort-label{
|
79
|
-
text-align:right;
|
80
|
-
padding:7px 10px;
|
81
|
-
padding-bottom:3px;
|
82
|
-
text-transform:uppercase;
|
83
|
-
color:lighten($gray, 30);
|
84
|
-
vertical-align:bottom;
|
85
|
-
white-space:nowrap;
|
86
|
-
}
|
87
|
-
.col-label {
|
88
|
-
font-weight:bold;
|
89
|
-
text-transform:uppercase;
|
90
|
-
color:$gray;
|
91
|
-
}
|
92
|
-
.fortycon {
|
93
|
-
margin-top:-2px;
|
94
|
-
margin-right:2px;
|
95
|
-
color:darken($background, 20);
|
96
|
-
font-size:1.2em;
|
97
|
-
}
|
98
|
-
.details {
|
99
|
-
overflow:hidden;
|
100
|
-
& > div{
|
101
|
-
padding:0;
|
102
|
-
& > * {
|
103
|
-
text-decoration:none;
|
59
|
+
@include media($sm){
|
60
|
+
.avatar{
|
61
|
+
margin-bottom: 0.5em;
|
62
|
+
.avatar-container{
|
63
|
+
padding-top: 50%;
|
104
64
|
display:block;
|
105
|
-
padding:7px 6px;
|
106
|
-
white-space:nowrap;
|
107
|
-
border-radius:3px;
|
108
65
|
}
|
109
|
-
|
110
|
-
|
66
|
+
}
|
67
|
+
.name{
|
68
|
+
margin-bottom: 0.5em;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
@include media($md){
|
72
|
+
margin: 0;
|
73
|
+
margin-bottom: -1px;
|
74
|
+
padding: 0;
|
75
|
+
& > * {
|
76
|
+
padding-top: 0.5em;
|
77
|
+
padding-bottom: 0.5em;
|
78
|
+
&.no-gutter{
|
79
|
+
padding: 0;
|
111
80
|
}
|
112
81
|
}
|
113
|
-
|
114
|
-
background:none !important;
|
82
|
+
.avatar{
|
115
83
|
.fortycon{
|
116
|
-
|
84
|
+
padding: 0;
|
85
|
+
font-size: 36px;
|
117
86
|
}
|
118
|
-
|
119
|
-
|
120
|
-
background:darken(white, 10);
|
87
|
+
.avatar-text{
|
88
|
+
padding: 0;
|
121
89
|
}
|
122
90
|
}
|
123
91
|
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
select.uniformSelect{
|
2
|
+
display:none;
|
3
|
+
}
|
4
|
+
|
5
|
+
.uniformSelect-edit{
|
6
|
+
@include text-overflow;
|
7
|
+
position:relative;
|
8
|
+
&:after{
|
9
|
+
color:$gray;
|
10
|
+
font-size:1.3em;
|
11
|
+
content:\25bc;
|
12
|
+
@include vertical-middle();
|
13
|
+
right:0.3em;
|
14
|
+
z-index:0;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.uniformSelect-options{
|
19
|
+
@include text-overflow;
|
20
|
+
position: absolute;
|
21
|
+
background: white;
|
22
|
+
z-index: 9999;
|
23
|
+
box-shadow: 0 0 3px 2px rgba(black, 0.2);
|
24
|
+
clip-path: inset(0px -10px -10px -10px);
|
25
|
+
button{
|
26
|
+
appearance: none;
|
27
|
+
outline: none;
|
28
|
+
border: none;
|
29
|
+
background: none;
|
30
|
+
width: 100%;
|
31
|
+
padding: 0.5em;
|
32
|
+
&:hover{
|
33
|
+
background: lighten($blue, 45);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.uniformSelect-options-actions{
|
38
|
+
border-top: 1px solid $gray-light;
|
39
|
+
border-bottom: 1px solid $gray-light;
|
40
|
+
background: $background;
|
41
|
+
padding: 0.5em;
|
42
|
+
}
|
43
|
+
.uniformSelect-show-all {
|
44
|
+
color: $blue;
|
45
|
+
background: none;
|
46
|
+
&:hover{
|
47
|
+
background: none;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
.uniformSelect-done{
|
51
|
+
border-radius: 0.25em;
|
52
|
+
border: 1px solid $gray-light;
|
53
|
+
background: white;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
.uniformSelect-option{
|
57
|
+
position:relative;
|
58
|
+
padding-right: 2.5em !important;
|
59
|
+
cursor: pointer;
|
60
|
+
&.active{
|
61
|
+
box-shadow:none;
|
62
|
+
color: $green-dark;
|
63
|
+
&:after{
|
64
|
+
color: $green;
|
65
|
+
position: absolute;
|
66
|
+
content: \2714;
|
67
|
+
top: 0.2em;
|
68
|
+
right: 0.2em;
|
69
|
+
font-size: 1.5em;
|
70
|
+
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
@include media($sm){
|
76
|
+
.uniformSelect-options{
|
77
|
+
top: 0 !important;
|
78
|
+
left: 0 !important;
|
79
|
+
min-height: 100vh;
|
80
|
+
width: 100%;
|
81
|
+
padding: 1em;
|
82
|
+
button{
|
83
|
+
margin-bottom: 0.5em;
|
84
|
+
border: 1px solid lighten($gray, 40);
|
85
|
+
&.uniformSelect-done{
|
86
|
+
margin-bottom: 0;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
.uniformSelect-options-actions{
|
90
|
+
margin: 0 -1em;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
body.uniformModal-hideBody{
|
94
|
+
& > *:not(.uniformSelect-options) {
|
95
|
+
position: fixed;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
.table{
|
2
|
+
display:table;
|
3
|
+
width:100%;
|
4
|
+
& > *,
|
5
|
+
.row > *{
|
6
|
+
display:table-cell;
|
7
|
+
float:none;
|
8
|
+
&.top{
|
9
|
+
vertical-align:top;
|
10
|
+
}
|
11
|
+
&.middle > *{
|
12
|
+
vertical-align:middle;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
.row{
|
16
|
+
display:table-row;
|
17
|
+
}
|
18
|
+
|
19
|
+
@include apply-media-sizes('&.break'){
|
20
|
+
& > *,
|
21
|
+
.row > *{
|
22
|
+
display:block;
|
23
|
+
float:inherit;
|
24
|
+
}
|
25
|
+
.row{
|
26
|
+
display:block;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.uniformTable{
|
32
|
+
width:100%;
|
33
|
+
.row > *,
|
34
|
+
tr td,
|
35
|
+
th {
|
36
|
+
padding: 0.5em;
|
37
|
+
border-bottom: 1px solid $gray-light;
|
38
|
+
}
|
39
|
+
|
40
|
+
.head > *,
|
41
|
+
thead th{
|
42
|
+
color: lighten($gray, 20);
|
43
|
+
border-bottom: 1px solid darken($gray-light, 20) !important;
|
44
|
+
}
|
45
|
+
|
46
|
+
.head.dark > *,
|
47
|
+
thead.dark th{
|
48
|
+
background: lighten($background, 2);
|
49
|
+
}
|
50
|
+
|
51
|
+
tr.middle > td,
|
52
|
+
td.middle,
|
53
|
+
&.middle > *,
|
54
|
+
.middle{
|
55
|
+
vertical-align:middle;
|
56
|
+
}
|
57
|
+
|
58
|
+
tr.top > td,
|
59
|
+
td.top,
|
60
|
+
&.top > *,
|
61
|
+
.top{
|
62
|
+
vertical-align:top;
|
63
|
+
}
|
64
|
+
|
65
|
+
&.hover{
|
66
|
+
tr:hover td{
|
67
|
+
background: lighten($blue, 50);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.row:last-of-type,
|
72
|
+
tr:last-of-type{
|
73
|
+
td, th{
|
74
|
+
border-bottom: none;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
&.invert{
|
78
|
+
.row > *,
|
79
|
+
td, th{
|
80
|
+
border-bottom-color: lighten($gray, 10);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -1,32 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
margin-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
.uniformTabs{
|
2
|
+
border-bottom: 1px solid darken($background, 10);
|
3
|
+
white-space: nowrap;
|
4
|
+
a{
|
5
|
+
display:inline-block;
|
6
|
+
margin-bottom: -1px;
|
7
|
+
padding: 0.5em 1em;
|
8
|
+
border-bottom: 2px solid transparent;
|
9
|
+
color: $gray;
|
10
|
+
text-decoration: none;
|
11
|
+
cursor: pointer;
|
12
|
+
&:hover{
|
13
|
+
color: $blue;
|
14
|
+
.uniformLabel.fill{
|
15
|
+
background: $blue ;
|
15
16
|
}
|
16
17
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
&.active{
|
19
|
+
border-color: $green-dark;
|
20
|
+
color: $green-dark;
|
21
|
+
.uniformLabel.fill{
|
22
|
+
background: $green-dark ;
|
23
|
+
}
|
22
24
|
}
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
25
|
+
}
|
26
|
+
&.center{
|
27
|
+
text-align:center;
|
28
|
+
}
|
29
|
+
&.border-fix{
|
30
|
+
margin-bottom: -1px;
|
31
|
+
}
|
32
|
+
&.invert{
|
33
|
+
border-bottom-color: rgba($background, 0.4);
|
34
|
+
a{
|
35
|
+
color: white;
|
36
|
+
&:hover{
|
37
|
+
color: $blue-light;
|
38
|
+
}
|
39
|
+
&.active{
|
40
|
+
color: $green-light;
|
41
|
+
border-color: $green-light;
|
42
|
+
}
|
30
43
|
}
|
31
44
|
}
|
32
45
|
}
|
@@ -1,32 +1,20 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
margin
|
5
|
-
margin-bottom:
|
6
|
-
|
1
|
+
.uniformTile{
|
2
|
+
// TODO remove extension of row
|
3
|
+
@extend .uniformRow;
|
4
|
+
margin: 0;
|
5
|
+
margin-bottom: -1px;
|
6
|
+
margin-right: -1px;
|
7
|
+
|
8
|
+
padding: 1em !important;
|
9
|
+
|
7
10
|
.avatar{
|
8
|
-
|
9
|
-
width:100%;
|
10
|
-
height:auto;
|
11
|
-
}
|
11
|
+
padding: 0;
|
12
12
|
}
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
.avatar-container{
|
14
|
+
display:block;
|
15
|
+
padding-top: 66%;
|
16
16
|
}
|
17
|
-
|
18
|
-
|
19
|
-
font-size:12px;
|
20
|
-
padding-top:10px;
|
21
|
-
padding-bottom:10px;
|
22
|
-
.name{
|
23
|
-
font-size:16px;
|
24
|
-
margin-bottom:5px;
|
25
|
-
}
|
26
|
-
.company{
|
27
|
-
font-weight:bold;
|
28
|
-
}
|
29
|
-
.category{
|
30
|
-
}
|
17
|
+
&.pad-more{
|
18
|
+
padding: 2em !important;
|
31
19
|
}
|
32
20
|
}
|