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,46 @@
|
|
1
|
+
.uniformTooltip{
|
2
|
+
position:relative;
|
3
|
+
.uniformTooltip-popup{
|
4
|
+
position: absolute;
|
5
|
+
background: white;
|
6
|
+
transition: opacity 0.2s, bottom 0.2s;
|
7
|
+
border: 1px solid $gray-light;
|
8
|
+
padding: 0.5em;
|
9
|
+
opacity: 0;
|
10
|
+
bottom: 0;
|
11
|
+
left: -1.5em;
|
12
|
+
margin: 0.5em;
|
13
|
+
z-index: -1;
|
14
|
+
color: $gray;
|
15
|
+
font-size:0.8em;
|
16
|
+
border-radius: 0.25em;
|
17
|
+
max-width: 30vw;
|
18
|
+
p:last-child{
|
19
|
+
margin-bottom: 0;
|
20
|
+
}
|
21
|
+
&.active{
|
22
|
+
z-index: 2;
|
23
|
+
bottom: 100%;
|
24
|
+
opacity: 1;
|
25
|
+
}
|
26
|
+
.uniformTooltip-pointer{
|
27
|
+
position:absolute;
|
28
|
+
top: 100%;
|
29
|
+
left: 1em;
|
30
|
+
width: 1em;
|
31
|
+
height: 1em;
|
32
|
+
overflow: hidden;
|
33
|
+
&:after{
|
34
|
+
content: "";
|
35
|
+
position: absolute;
|
36
|
+
width: 100%;
|
37
|
+
height: 100%;
|
38
|
+
background: white;
|
39
|
+
transform: rotate(-45deg);
|
40
|
+
top: -85%;
|
41
|
+
left: 0;
|
42
|
+
border: 1px solid $gray-light;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -1,30 +1,96 @@
|
|
1
|
+
html{
|
2
|
+
font-size: 14px;
|
3
|
+
}
|
4
|
+
body{
|
5
|
+
font-size: 1rem;
|
6
|
+
}
|
7
|
+
*{
|
8
|
+
box-sizing: border-box;
|
9
|
+
}
|
1
10
|
a{
|
2
11
|
color:$blue;
|
3
12
|
&:hover{
|
4
13
|
color:$blue-dark;
|
5
14
|
}
|
15
|
+
&:visited{
|
16
|
+
color: #6738e4;
|
17
|
+
}
|
6
18
|
}
|
7
|
-
|
8
|
-
|
19
|
+
h1,
|
20
|
+
h2,
|
21
|
+
h3,
|
22
|
+
h4,
|
23
|
+
h5,
|
24
|
+
h6,
|
25
|
+
p,
|
26
|
+
ul,
|
27
|
+
ol,
|
28
|
+
dl,
|
29
|
+
pre{
|
30
|
+
margin: 0;
|
31
|
+
margin-bottom: 1em; // might want to do rem
|
32
|
+
}
|
33
|
+
|
34
|
+
ul,
|
35
|
+
ol,
|
36
|
+
dl{
|
37
|
+
ul,
|
38
|
+
ol,
|
39
|
+
dl{
|
40
|
+
margin-bottom: 0;
|
41
|
+
}
|
9
42
|
}
|
10
|
-
|
11
|
-
|
43
|
+
|
44
|
+
dd{
|
45
|
+
margin-left: 0;
|
46
|
+
margin-bottom: 0.5em;
|
12
47
|
}
|
13
|
-
|
14
|
-
|
15
|
-
padding: 2px 4px;
|
16
|
-
font-size:90%;
|
17
|
-
background:lighten($green-light, 35);
|
18
|
-
color:$green-dark;
|
19
|
-
font-weight:normal;
|
48
|
+
dt{
|
49
|
+
font-weight: bold;
|
20
50
|
}
|
21
|
-
|
22
|
-
|
23
|
-
background:
|
24
|
-
border:
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
margin: 0;
|
51
|
+
|
52
|
+
table{
|
53
|
+
background-color: transparent;
|
54
|
+
border-collapse: collapse;
|
55
|
+
td, th{
|
56
|
+
display: table-cell;
|
57
|
+
text-align: left;
|
29
58
|
}
|
59
|
+
}
|
60
|
+
|
61
|
+
fieldset{
|
62
|
+
margin: 0;
|
63
|
+
padding: 0;
|
64
|
+
border: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
textarea{
|
68
|
+
resize: vertical;
|
69
|
+
}
|
70
|
+
|
71
|
+
input,
|
72
|
+
select,
|
73
|
+
textarea,
|
74
|
+
button{
|
75
|
+
margin: 0;
|
76
|
+
line-height: inherit;
|
77
|
+
}
|
78
|
+
|
79
|
+
#{$text-inputs},
|
80
|
+
textarea{
|
81
|
+
border:1px solid lighten($gray, 40);
|
82
|
+
}
|
83
|
+
|
84
|
+
[hidden] {
|
85
|
+
display: none !important;
|
86
|
+
}
|
87
|
+
|
88
|
+
time{
|
89
|
+
@include text-overflow;
|
90
|
+
}
|
91
|
+
|
92
|
+
button{
|
93
|
+
font-family: $system-font;
|
94
|
+
color: $gray;
|
95
|
+
cursor: pointer;
|
30
96
|
}
|
@@ -1,18 +1,31 @@
|
|
1
|
-
|
2
|
-
vr {
|
3
|
-
height:30px;
|
4
|
-
border-left:1px solid $gray-light;
|
5
|
-
margin:0 10px;
|
1
|
+
.square-icon{
|
6
2
|
display: inline-block;
|
3
|
+
height: 1em;
|
4
|
+
width: 1em;
|
5
|
+
border: 1px solid $gray;
|
6
|
+
border-radius: 0.1em;
|
7
7
|
vertical-align:middle;
|
8
|
+
&.gray-light{
|
9
|
+
border-color: lighten($gray, 40);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
.hidden{
|
13
|
+
display:none !important;
|
8
14
|
}
|
9
|
-
.rounded,
|
10
15
|
.round{
|
11
16
|
border-radius:50%;
|
12
17
|
}
|
18
|
+
.rounded{
|
19
|
+
border-radius: 0.25em;
|
20
|
+
}
|
21
|
+
[data-href],
|
13
22
|
.pointer{
|
14
23
|
cursor: pointer !important;
|
15
24
|
}
|
25
|
+
.cursor-help{
|
26
|
+
cursor: help;
|
27
|
+
}
|
28
|
+
|
16
29
|
.handle{
|
17
30
|
cursor: hand;
|
18
31
|
}
|
@@ -22,102 +35,90 @@ vr {
|
|
22
35
|
width:1px !important;
|
23
36
|
display:block !important;
|
24
37
|
}
|
38
|
+
@include apply-media-sizes('.border'){
|
39
|
+
border: 1px solid $gray-light;
|
40
|
+
}
|
41
|
+
@each $direction in 'top' 'right' 'bottom' 'left' {
|
42
|
+
@include apply-media-sizes('.border-#{$direction}'){
|
43
|
+
border-#{$direction}: 1px solid $gray-light;
|
44
|
+
}
|
45
|
+
@include apply-media-sizes('.border-dark-#{$direction}'){
|
46
|
+
border-#{$direction}: 1px solid darken($gray-light, 20);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
img.disabled{
|
50
|
+
@include grayscale(1, 0.3)
|
51
|
+
}
|
52
|
+
table.fixed{
|
53
|
+
table-layout: fixed;
|
54
|
+
}
|
25
55
|
|
26
56
|
//----------------------------------------------------------------
|
27
57
|
// Layout
|
28
58
|
//----------------------------------------------------------------
|
29
|
-
.
|
30
|
-
.hidden{
|
31
|
-
display:none;
|
32
|
-
}
|
33
|
-
.right{
|
59
|
+
@include apply-media-sizes('.float-right'){
|
34
60
|
float:right;
|
61
|
+
&.margin{
|
62
|
+
margin: 0 0 1rem 1rem;
|
63
|
+
}
|
35
64
|
}
|
36
|
-
.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
}
|
42
|
-
.clear{
|
43
|
-
clear:both;
|
65
|
+
.float-left{
|
66
|
+
float: left;
|
67
|
+
&.margin{
|
68
|
+
margin: 0 1rem 1rem 0;
|
69
|
+
}
|
44
70
|
}
|
45
71
|
.bleed-fix{
|
46
72
|
position:static;
|
47
73
|
overflow:hidden;
|
48
74
|
}
|
49
|
-
.
|
50
|
-
|
51
|
-
padding-right:0;
|
75
|
+
.clear{
|
76
|
+
clear:both;
|
52
77
|
}
|
53
|
-
.
|
54
|
-
|
55
|
-
padding-right:0;
|
78
|
+
@include apply-media-sizes('.block') {
|
79
|
+
display: block;
|
56
80
|
}
|
57
|
-
.
|
58
|
-
|
59
|
-
padding-right:5px;
|
81
|
+
@include apply-media-sizes('.inline-block') {
|
82
|
+
display:inline-block !important;
|
60
83
|
}
|
61
|
-
.
|
62
|
-
|
84
|
+
.align-middle{
|
85
|
+
@include align-middle;
|
63
86
|
}
|
64
87
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
.text-overflow{
|
69
|
-
@include text-overflow;
|
70
|
-
}
|
71
|
-
.strong,
|
72
|
-
strong,
|
73
|
-
.bold{ font-weight: 700;}
|
74
|
-
.light,
|
75
|
-
.text-light{ font-weight: 300;}
|
76
|
-
.text-normal{ font-weight: normal;}
|
77
|
-
.italic{ font-style:italic;}
|
78
|
-
.required{ color:$red;}
|
79
|
-
.warn{
|
80
|
-
color:lighten($gray, 20);
|
81
|
-
&:hover{
|
82
|
-
color:$red;
|
83
|
-
}
|
88
|
+
|
89
|
+
.relative{
|
90
|
+
position:relative;
|
84
91
|
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
margin-top:0;
|
92
|
-
}
|
92
|
+
|
93
|
+
|
94
|
+
ul.raw{
|
95
|
+
margin: 0;
|
96
|
+
padding: 0;
|
97
|
+
list-style:none;
|
93
98
|
}
|
94
99
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
100
|
+
|
101
|
+
.text-col-2{
|
102
|
+
column-count: 2;
|
103
|
+
column-gap: 5em;
|
104
|
+
}
|
105
|
+
button.raw{
|
106
|
+
outline: none;
|
107
|
+
appearance: none;
|
108
|
+
border: none;
|
109
|
+
background:none;
|
99
110
|
}
|
100
|
-
.
|
101
|
-
white-space: nowrap;
|
111
|
+
.overflow-hidden{
|
102
112
|
overflow:hidden;
|
103
113
|
}
|
104
|
-
|
105
|
-
|
106
|
-
// Colors
|
107
|
-
//----------------------------------------------------------------
|
108
|
-
@mixin generate-color($class){
|
109
|
-
.#{$class} { color: global-variable($class);}
|
110
|
-
.#{$class}-light { color: global-variable("#{$class}-light");}
|
111
|
-
.#{$class}-dark { color: global-variable("#{$class}-light");}
|
112
|
-
.#{$class}-bg { background-color: global-variable($class);}
|
113
|
-
.#{$class}-light-bg { background-color: global-variable("#{$class}-light");}
|
114
|
-
.#{$class}-dark-bg { background-color: global-variable("#{$class}-dark");}
|
114
|
+
.overflow-y{
|
115
|
+
overflow-y: auto;
|
115
116
|
}
|
116
117
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
118
|
+
img.block{
|
119
|
+
display:block;
|
120
|
+
width: 100%;
|
121
|
+
}
|
122
|
+
.height-auto{
|
123
|
+
height: auto;
|
124
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
@mixin generate-color($class, $color){
|
2
|
+
.text-#{$class} { color: $color !important;}
|
3
|
+
.a-hover-#{$class} a:hover { color: $color !important;}
|
4
|
+
.bg-#{$class} { background-color: $color !important;}
|
5
|
+
.uniformLabel-#{$class}{ border-color: $color !important;}
|
6
|
+
.a-#{$class} a {
|
7
|
+
color: $color;
|
8
|
+
&:hover{
|
9
|
+
color: lighten($color, 20);
|
10
|
+
}
|
11
|
+
&:visited{
|
12
|
+
color: $color;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@include generate-color('green', $green);
|
18
|
+
@include generate-color('green-light', $green-light);
|
19
|
+
@include generate-color('green-dark', $green-dark);
|
20
|
+
@include generate-color('blue', $blue);
|
21
|
+
@include generate-color('blue-light', $blue-light);
|
22
|
+
@include generate-color('blue-dark', $blue-dark);
|
23
|
+
@include generate-color('red', $red);
|
24
|
+
@include generate-color('red-light', $red-light);
|
25
|
+
@include generate-color('red-dark', $red-dark);
|
26
|
+
@include generate-color('gray', $gray);
|
27
|
+
@include generate-color('gray-light', $gray-light);
|
28
|
+
@include generate-color('gray-dark', $gray-dark);
|
29
|
+
@include generate-color('yellow', $yellow);
|
30
|
+
@include generate-color('yellow-light', $yellow-light);
|
31
|
+
@include generate-color('yellow-dark', $yellow-dark);
|
32
|
+
@include generate-color('background', $background);
|
33
|
+
@include generate-color('background-light', lighten($background, 2));
|
34
|
+
@include generate-color('background-dark', darken($background, 5));
|
35
|
+
|
36
|
+
@include generate-color('white', #FFFFFF);
|
37
|
+
@include generate-color('muted', lighten($gray, 30));
|
@@ -0,0 +1,44 @@
|
|
1
|
+
.margin{
|
2
|
+
margin-top: 1em;
|
3
|
+
margin-bottom: 1em;
|
4
|
+
}
|
5
|
+
.margin-h{
|
6
|
+
margin-left: 1em;
|
7
|
+
margin-right: 1em;
|
8
|
+
}
|
9
|
+
.margin-more{
|
10
|
+
margin-top: 2em !important;
|
11
|
+
margin-bottom: 2em !important;
|
12
|
+
}
|
13
|
+
.margin-super{
|
14
|
+
margin-top: 4em !important;
|
15
|
+
margin-bottom: 4em !important;
|
16
|
+
}
|
17
|
+
@include apply-media-sizes('.margin-less'){
|
18
|
+
margin-top: 0.5em;
|
19
|
+
margin-bottom: 0.5em;
|
20
|
+
}
|
21
|
+
.margin-tiny{
|
22
|
+
margin-top: 0.25em;
|
23
|
+
margin-bottom: 0.25em;
|
24
|
+
}
|
25
|
+
.margin-none{
|
26
|
+
margin: 0 !important;
|
27
|
+
}
|
28
|
+
@each $direction in 'top' 'right' 'bottom' 'left' {
|
29
|
+
.margin-#{$direction}-none{
|
30
|
+
margin-#{$direction}: 0 !important;
|
31
|
+
}
|
32
|
+
.margin-#{$direction}-tiny{
|
33
|
+
margin-#{$direction}: 0.25em !important;
|
34
|
+
}
|
35
|
+
.margin-#{$direction}-less{
|
36
|
+
margin-#{$direction}: 0.5em !important;
|
37
|
+
}
|
38
|
+
@include apply-media-sizes('.margin-#{$direction}'){
|
39
|
+
margin-#{$direction}: 1em !important;
|
40
|
+
}
|
41
|
+
@include apply-media-sizes('.margin-#{$direction}-more'){
|
42
|
+
margin-#{$direction}: 2em !important;
|
43
|
+
}
|
44
|
+
}
|