uniform-ui 1.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/assets/config/manifest.js +1 -0
- data/lib/assets/javascripts/uniform/checkbox.js +31 -0
- data/lib/assets/javascripts/uniform/component.js +42 -0
- data/lib/assets/javascripts/uniform/dom-helpers.js +136 -0
- data/lib/assets/javascripts/uniform/dropdown.js +149 -0
- data/lib/assets/javascripts/uniform/floating-label.js +54 -0
- data/lib/assets/javascripts/uniform/icons.js +16 -0
- data/lib/assets/javascripts/uniform/modal.js +103 -0
- data/lib/assets/javascripts/uniform/resizer.js +43 -0
- data/lib/assets/javascripts/uniform/select.js +235 -0
- data/lib/assets/javascripts/uniform/tooltip.js +120 -0
- data/lib/assets/javascripts/uniform-es5.js +1 -0
- data/lib/assets/javascripts/uniform-jquery.js +124 -0
- data/lib/assets/javascripts/uniform.js +17 -0
- data/lib/assets/stylesheets/uniform/base.scss +3 -0
- data/lib/assets/stylesheets/uniform/components/alert.scss +72 -0
- data/lib/assets/stylesheets/uniform/components/buttons.scss +219 -0
- data/{vendor → lib}/assets/stylesheets/uniform/components/card.scss +33 -25
- data/lib/assets/stylesheets/uniform/components/container.scss +19 -0
- data/{vendor → lib}/assets/stylesheets/uniform/components/dropdown.scss +8 -4
- data/lib/assets/stylesheets/uniform/components/form/checkbox-collection.scss +103 -0
- data/lib/assets/stylesheets/uniform/components/form/checkbox.scss +58 -0
- data/lib/assets/stylesheets/uniform/components/form/floating-label.scss +64 -0
- data/lib/assets/stylesheets/uniform/components/form/input-group.scss +56 -0
- data/lib/assets/stylesheets/uniform/components/form.scss +143 -0
- data/lib/assets/stylesheets/uniform/components/grid.scss +158 -0
- data/lib/assets/stylesheets/uniform/components/label.scss +26 -0
- data/lib/assets/stylesheets/uniform/components/loaders.scss +80 -0
- data/{vendor → lib}/assets/stylesheets/uniform/components/modal.scss +26 -4
- data/lib/assets/stylesheets/uniform/components/nav.scss +124 -0
- data/lib/assets/stylesheets/uniform/components/row.scss +69 -0
- data/lib/assets/stylesheets/uniform/components/select.scss +122 -0
- data/lib/assets/stylesheets/uniform/components/table.scss +127 -0
- data/lib/assets/stylesheets/uniform/components/thumb.scss +41 -0
- data/lib/assets/stylesheets/uniform/components/tooltip.scss +63 -0
- data/lib/assets/stylesheets/uniform/components.scss +11 -0
- data/{vendor → lib}/assets/stylesheets/uniform/defaults.scss +7 -4
- data/lib/assets/stylesheets/uniform/functions.scss +31 -0
- data/lib/assets/stylesheets/uniform/helpers/border.scss +19 -0
- data/lib/assets/stylesheets/uniform/helpers/colors.scss +23 -0
- data/lib/assets/stylesheets/uniform/helpers/margin.scss +27 -0
- data/lib/assets/stylesheets/uniform/helpers/padding.scss +9 -0
- data/lib/assets/stylesheets/uniform/helpers/position.scss +13 -0
- data/lib/assets/stylesheets/uniform/helpers/sizes.scss +38 -0
- data/{vendor → lib}/assets/stylesheets/uniform/helpers/text.scss +86 -73
- data/lib/assets/stylesheets/uniform/helpers.scss +127 -0
- data/lib/assets/stylesheets/uniform/mixins.scss +116 -0
- data/lib/assets/stylesheets/uniform/print/grid.scss +50 -0
- data/lib/assets/stylesheets/uniform/variables.scss +72 -0
- data/lib/assets/stylesheets/uniform-print.scss +1 -0
- data/lib/assets/stylesheets/uniform.scss +11 -0
- data/lib/uniform/version.rb +3 -0
- data/lib/uniform.rb +15 -0
- metadata +87 -95
- data/.gitignore +0 -2
- data/CHANGELOG.md +0 -27
- data/CNAME +0 -1
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -40
- data/LICENSE +0 -22
- data/README.md +0 -35
- data/Rakefile +0 -74
- data/index.html +0 -251
- data/lib/uniform/rails/engine.rb +0 -8
- data/lib/uniform/rails.rb +0 -6
- data/lib/uniform/ui.rb +0 -1
- data/preview/alerts.html.erb +0 -1
- data/preview/buttons.html.erb +0 -62
- data/preview/cards.html.erb +0 -23
- data/preview/colors.html.erb +0 -22
- data/preview/dropdown.html.erb +0 -1
- data/preview/form.html.erb +0 -233
- data/preview/grid.html.erb +0 -304
- data/preview/helpers.html.erb +0 -225
- data/preview/index.html.erb +0 -77
- data/preview/labels.html.erb +0 -1
- data/preview/layout.html.erb +0 -63
- data/preview/loaders.html.erb +0 -83
- data/preview/modal.html.erb +0 -1
- data/preview/nav.html.erb +0 -77
- data/preview/preview.scss +0 -76
- data/preview/rows.html.erb +0 -36
- data/preview/select.html.erb +0 -1
- data/preview/tables.html.erb +0 -1
- data/preview/tabs.html.erb +0 -17
- data/preview/tiles.html.erb +0 -1
- data/preview/tooltip.erb +0 -1
- data/preview.css +0 -0
- data/site/alerts.html +0 -157
- data/site/alerts.html copy +0 -133
- data/site/buttons.html +0 -286
- data/site/cards.html +0 -177
- data/site/colors.html +0 -275
- data/site/dropdown.html +0 -157
- data/site/dropdown.html copy +0 -141
- data/site/form.html +0 -369
- data/site/grid.html +0 -716
- data/site/helpers.html +0 -1008
- data/site/index.html +0 -251
- data/site/labels.html +0 -157
- data/site/layout.html +0 -313
- data/site/loaders.html +0 -233
- data/site/logo.png +0 -0
- data/site/modal.html +0 -157
- data/site/nav.html +0 -229
- data/site/preview.css +0 -1
- data/site/preview.js +0 -59
- data/site/rows.html +0 -190
- data/site/select.html +0 -157
- data/site/tables.html +0 -157
- data/site/tabs.html +0 -171
- data/site/tiles.html +0 -157
- data/site/tiles.html copy +0 -109
- data/site/tooltip +0 -157
- data/site/uniform.css +0 -1
- data/uniform.gemspec +0 -22
- data/vendor/assets/stylesheets/uniform/base.scss +0 -2
- data/vendor/assets/stylesheets/uniform/components/alert.scss +0 -27
- data/vendor/assets/stylesheets/uniform/components/buttons.scss +0 -212
- data/vendor/assets/stylesheets/uniform/components/form.scss +0 -290
- data/vendor/assets/stylesheets/uniform/components/grid.scss +0 -225
- data/vendor/assets/stylesheets/uniform/components/label.scss +0 -63
- data/vendor/assets/stylesheets/uniform/components/loaders.scss +0 -82
- data/vendor/assets/stylesheets/uniform/components/nav.scss +0 -197
- data/vendor/assets/stylesheets/uniform/components/row.scss +0 -92
- data/vendor/assets/stylesheets/uniform/components/select.scss +0 -98
- data/vendor/assets/stylesheets/uniform/components/table.scss +0 -83
- data/vendor/assets/stylesheets/uniform/components/tabs.scss +0 -45
- data/vendor/assets/stylesheets/uniform/components/tile.scss +0 -20
- data/vendor/assets/stylesheets/uniform/components/tooltip.scss +0 -46
- data/vendor/assets/stylesheets/uniform/helpers/colors.scss +0 -37
- data/vendor/assets/stylesheets/uniform/helpers/margin.scss +0 -44
- data/vendor/assets/stylesheets/uniform/helpers/padding.scss +0 -74
- data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +0 -31
- data/vendor/assets/stylesheets/uniform/helpers.scss +0 -124
- data/vendor/assets/stylesheets/uniform/mixins.scss +0 -77
- data/vendor/assets/stylesheets/uniform/variables.scss +0 -36
- data/vendor/assets/stylesheets/uniform.scss +0 -9
@@ -1,52 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
font-size: 0.8em;
|
9
|
-
}
|
10
|
-
@include apply-media-sizes('.text-large'){
|
11
|
-
font-size: 1.2em;
|
1
|
+
//----------------------------------------------------------------
|
2
|
+
// Size
|
3
|
+
//----------------------------------------------------------------
|
4
|
+
|
5
|
+
@include sizes('.text', 'font-size');
|
6
|
+
@for $i from 1 through 20 {
|
7
|
+
.text-#{str-replace(str-replace('' + $i * 0.2, '.', '_'), '_0', '')}-em { font-size: #{$i * 0.2 +"em"}; }
|
12
8
|
}
|
13
9
|
.text-1rem{
|
14
10
|
font-size: 1rem;
|
15
11
|
}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
font-size: 90%;
|
24
|
-
opacity: 0.8;
|
25
|
-
}
|
26
|
-
.text-subtle-more{
|
27
|
-
font-size: 80%;
|
28
|
-
opacity: 0.6;
|
29
|
-
}
|
30
|
-
.text-muted{
|
31
|
-
opacity: 0.8;
|
32
|
-
}
|
33
|
-
.text-muted-more{
|
34
|
-
opacity: 0.6;
|
35
|
-
}
|
36
|
-
@include apply-media-sizes('.text-left'){
|
37
|
-
text-align: left !important;
|
38
|
-
}
|
39
|
-
@include apply-media-sizes('.text-right'){
|
40
|
-
text-align: right;
|
41
|
-
}
|
42
|
-
@include apply-media-sizes('.text-center'){
|
43
|
-
text-align: center;
|
44
|
-
}
|
45
|
-
.text-justify{
|
46
|
-
text-align: justify;
|
12
|
+
|
13
|
+
//----------------------------------------------------------------
|
14
|
+
// Modifiers
|
15
|
+
//----------------------------------------------------------------
|
16
|
+
|
17
|
+
.text-mono{
|
18
|
+
font-family: monospace, monospace;
|
47
19
|
}
|
48
|
-
.text-
|
49
|
-
|
20
|
+
.text-caps{
|
21
|
+
text-transform: uppercase;
|
50
22
|
}
|
51
23
|
.text-bold{
|
52
24
|
font-weight: 700;
|
@@ -60,47 +32,42 @@
|
|
60
32
|
.text-normal{
|
61
33
|
font-weight: normal !important;
|
62
34
|
}
|
63
|
-
.text-middle{
|
64
|
-
vertical-align:middle;
|
65
|
-
}
|
66
|
-
.text-top{
|
67
|
-
vertical-align:top;
|
68
|
-
}
|
69
|
-
.text-tight{
|
70
|
-
line-height:1.3;
|
71
|
-
}
|
72
|
-
.required{
|
73
|
-
color:$red;
|
74
|
-
}
|
75
|
-
.warn:hover{
|
76
|
-
color:$red;
|
77
|
-
}
|
78
|
-
p.large{
|
79
|
-
font-size:1.5em;
|
80
|
-
font-weight:300;
|
81
|
-
}
|
82
35
|
.text-italic{
|
83
36
|
font-style: italic;
|
84
37
|
}
|
85
|
-
.text-no-wrap{
|
86
|
-
white-space: nowrap;
|
87
|
-
overflow:hidden;
|
88
|
-
}
|
89
38
|
.text-no-decoration{
|
90
39
|
text-decoration: none;
|
91
40
|
a{
|
92
41
|
text-decoration: none;
|
93
42
|
}
|
94
43
|
}
|
95
|
-
|
96
|
-
|
44
|
+
|
45
|
+
//----------------------------------------------------------------
|
46
|
+
// Styles
|
47
|
+
//----------------------------------------------------------------
|
48
|
+
.text-subtle{
|
49
|
+
font-size: 90%;
|
50
|
+
opacity: 0.8;
|
51
|
+
}
|
52
|
+
.text-subtle-more{
|
53
|
+
font-size: 80%;
|
54
|
+
opacity: 0.6;
|
97
55
|
}
|
98
56
|
|
99
|
-
.text-
|
100
|
-
|
101
|
-
|
102
|
-
|
57
|
+
.text-muted{
|
58
|
+
opacity: 0.8;
|
59
|
+
}
|
60
|
+
.text-muted-less{
|
61
|
+
opacity: 0.85;
|
103
62
|
}
|
63
|
+
.text-muted-more{
|
64
|
+
opacity: 0.6;
|
65
|
+
}
|
66
|
+
p.large{
|
67
|
+
font-size:1.5em;
|
68
|
+
font-weight:300;
|
69
|
+
}
|
70
|
+
|
104
71
|
blockquote.quote{
|
105
72
|
font-style: italic;
|
106
73
|
border:none;
|
@@ -118,4 +85,50 @@ blockquote.quote{
|
|
118
85
|
color: rgba(black, 0.1);
|
119
86
|
content: "“";
|
120
87
|
}
|
88
|
+
}
|
89
|
+
|
90
|
+
//----------------------------------------------------------------
|
91
|
+
// Positioning
|
92
|
+
//----------------------------------------------------------------
|
93
|
+
|
94
|
+
@include size-rules('.text-left'){
|
95
|
+
text-align: left !important;
|
96
|
+
}
|
97
|
+
@include size-rules('.text-right'){
|
98
|
+
text-align: right;
|
99
|
+
}
|
100
|
+
@include size-rules('.text-center'){
|
101
|
+
text-align: center;
|
102
|
+
}
|
103
|
+
.text-middle{
|
104
|
+
vertical-align:middle;
|
105
|
+
}
|
106
|
+
.text-top{
|
107
|
+
vertical-align:top;
|
108
|
+
}
|
109
|
+
.text-tight{
|
110
|
+
line-height:1.3;
|
111
|
+
}
|
112
|
+
.text-height-1{
|
113
|
+
line-height: 1;
|
114
|
+
}
|
115
|
+
@include size-rules('.text-col-2'){
|
116
|
+
column-count: 2;
|
117
|
+
column-gap: 5em;
|
118
|
+
}
|
119
|
+
|
120
|
+
//----------------------------------------------------------------
|
121
|
+
// Breaking
|
122
|
+
//----------------------------------------------------------------
|
123
|
+
.text-break{
|
124
|
+
word-break: break-all;
|
125
|
+
}
|
126
|
+
.text-justify{
|
127
|
+
text-align: justify;
|
128
|
+
}
|
129
|
+
.text-overflow{
|
130
|
+
@include text-overflow;
|
131
|
+
}
|
132
|
+
.text-nowrap{
|
133
|
+
white-space: nowrap;
|
121
134
|
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
//----------------------------------------------------------------
|
2
|
+
// Overflow
|
3
|
+
//----------------------------------------------------------------
|
4
|
+
.overflow-hidden{
|
5
|
+
overflow: hidden;
|
6
|
+
}
|
7
|
+
.overflow-hidden{
|
8
|
+
overflow:hidden;
|
9
|
+
}
|
10
|
+
.overflow-y{
|
11
|
+
overflow-y: auto;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
//----------------------------------------------------------------
|
16
|
+
// Rounded
|
17
|
+
//----------------------------------------------------------------
|
18
|
+
.round{
|
19
|
+
border-radius:50%;
|
20
|
+
}
|
21
|
+
.rounded{
|
22
|
+
border-radius: 0.25em;
|
23
|
+
&.clip{
|
24
|
+
overflow:hidden;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.rounded-top{
|
29
|
+
border-top-right-radius: 0.25em;
|
30
|
+
border-top-left-radius: 0.25em;
|
31
|
+
}
|
32
|
+
.rounded-bottom{
|
33
|
+
border-bottom-right-radius: 0.25em;
|
34
|
+
border-bottom-left-radius: 0.25em;
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
//----------------------------------------------------------------
|
39
|
+
// Raw
|
40
|
+
//----------------------------------------------------------------
|
41
|
+
ul.raw{
|
42
|
+
margin: 0;
|
43
|
+
padding: 0;
|
44
|
+
list-style:none;
|
45
|
+
}
|
46
|
+
button.raw{
|
47
|
+
outline: none;
|
48
|
+
appearance: none;
|
49
|
+
border: none;
|
50
|
+
background:none;
|
51
|
+
padding: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
//----------------------------------------------------------------
|
55
|
+
// Cursors
|
56
|
+
//----------------------------------------------------------------
|
57
|
+
[data-href],
|
58
|
+
.cursor-pointer{
|
59
|
+
cursor: pointer !important;
|
60
|
+
}
|
61
|
+
.cursor-help{
|
62
|
+
cursor: help;
|
63
|
+
}
|
64
|
+
.cursor-handle{
|
65
|
+
cursor: grab;
|
66
|
+
}
|
67
|
+
|
68
|
+
//----------------------------------------------------------------
|
69
|
+
// Layout
|
70
|
+
//----------------------------------------------------------------
|
71
|
+
@include size-rules('.float-right'){
|
72
|
+
float:right;
|
73
|
+
&.margin{
|
74
|
+
margin: 0 0 1rem 1rem;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
@include size-rules('.float-left'){
|
78
|
+
float: left;
|
79
|
+
&.margin{
|
80
|
+
margin: 0 1rem 1rem 0;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
@include size-rules('.show'){
|
84
|
+
display:inherit !important;
|
85
|
+
&.block{
|
86
|
+
display:block !important;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
@include size-rules('.block') {
|
90
|
+
display: block !important;
|
91
|
+
}
|
92
|
+
@include size-rules('.inline-block') {
|
93
|
+
display:inline-block !important;
|
94
|
+
}
|
95
|
+
@include size-rules('.hide'){
|
96
|
+
display:none !important;
|
97
|
+
}
|
98
|
+
.bleed-fix{
|
99
|
+
position:static;
|
100
|
+
overflow:hidden;
|
101
|
+
}
|
102
|
+
.clear{
|
103
|
+
clear:both;
|
104
|
+
}
|
105
|
+
|
106
|
+
//----------------------------------------------------------------
|
107
|
+
// Transitions
|
108
|
+
//----------------------------------------------------------------
|
109
|
+
.transition-all{
|
110
|
+
transition: all 0.2s;
|
111
|
+
}
|
112
|
+
|
113
|
+
//----------------------------------------------------------------
|
114
|
+
// Misc
|
115
|
+
//----------------------------------------------------------------
|
116
|
+
.honeypot{
|
117
|
+
position:absolute !important;
|
118
|
+
left:-999999px !important;
|
119
|
+
width:1px !important;
|
120
|
+
display:block !important;
|
121
|
+
}
|
122
|
+
img.disabled{
|
123
|
+
@include grayscale(1, 0.3)
|
124
|
+
}
|
125
|
+
table.fixed{
|
126
|
+
table-layout: fixed;
|
127
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
|
2
|
+
@mixin text-overflow($inherit:false){
|
3
|
+
@if $inherit {
|
4
|
+
text-overflow: inherit;
|
5
|
+
white-space: inherit;
|
6
|
+
overflow: inherit;
|
7
|
+
} @else {
|
8
|
+
text-overflow: ellipsis;
|
9
|
+
white-space: nowrap;
|
10
|
+
overflow: hidden;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@mixin grayscale($gray: 0.7, $opacity: 1){
|
14
|
+
opacity: $opacity;
|
15
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(grayscale=$gray)";
|
16
|
+
filter:url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cfilter%20id%3D%22desaturate%22%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22/%3E%3C/filter%3E%3C/svg%3E#desaturate);
|
17
|
+
filter: gray($gray);
|
18
|
+
-webkit-filter: grayscale($gray * 100%);
|
19
|
+
@if $gray == 0 {
|
20
|
+
filter: none;
|
21
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)";
|
22
|
+
-webkit-filter: grayscale(0);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
//----------------------------------------------------------------
|
27
|
+
// Position
|
28
|
+
//----------------------------------------------------------------
|
29
|
+
@mixin position-v-center(){
|
30
|
+
position:absolute;
|
31
|
+
top:50%;
|
32
|
+
transform: translateY(-50%);
|
33
|
+
}
|
34
|
+
@mixin position-h-center(){
|
35
|
+
position:absolute;
|
36
|
+
left:50%;
|
37
|
+
transform: translateX(-50%);
|
38
|
+
}
|
39
|
+
@mixin position-center(){
|
40
|
+
position:absolute;
|
41
|
+
left:50%;
|
42
|
+
top:50%;
|
43
|
+
transform: translate(-50%, -50%);
|
44
|
+
}
|
45
|
+
@mixin position-fill() {
|
46
|
+
position: absolute;
|
47
|
+
top: 0;
|
48
|
+
bottom: 0;
|
49
|
+
left: 0;
|
50
|
+
right: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
//----------------------------------------------------------------
|
55
|
+
// Sizes Media Queries
|
56
|
+
//----------------------------------------------------------------
|
57
|
+
@mixin media($query) {
|
58
|
+
@media only screen and (#{$query}){
|
59
|
+
@content;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
@mixin size-rule($breakpoint) {
|
64
|
+
@include media(map-get($breakpoints, $breakpoint)){
|
65
|
+
@content
|
66
|
+
}
|
67
|
+
.#{$breakpoint}-size{
|
68
|
+
@content
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
@mixin size-rules($selector){
|
73
|
+
#{$selector}{
|
74
|
+
@content
|
75
|
+
}
|
76
|
+
@each $key, $value in $breakpoints {
|
77
|
+
@include media($value){
|
78
|
+
#{$selector}-#{$key}{
|
79
|
+
@content
|
80
|
+
}
|
81
|
+
}
|
82
|
+
.#{$key}-size #{$selector}-#{$key}{
|
83
|
+
@content
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
@mixin sizes($selector, $attributes){
|
89
|
+
@each $attribute in $attributes {
|
90
|
+
@include size-rules("#{$selector}"){
|
91
|
+
#{$attribute}: map-get($sizes, 'base');
|
92
|
+
}
|
93
|
+
@each $key, $value in $sizes {
|
94
|
+
@include size-rules("#{$selector}-#{$key}"){
|
95
|
+
#{$attribute}: $value;
|
96
|
+
@content
|
97
|
+
}
|
98
|
+
}
|
99
|
+
@include size-rules("#{$selector}-none"){
|
100
|
+
#{$attribute}: 0 !important;
|
101
|
+
@content
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
@mixin colors($selector, $attributes){
|
107
|
+
@each $attribute in $attributes {
|
108
|
+
@each $key, $value in $colors {
|
109
|
+
@include size-rules("#{$selector}-#{$key}"){
|
110
|
+
#{$attribute}: $value;
|
111
|
+
@content
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.grid{
|
2
|
+
display: table;
|
3
|
+
width :100%;
|
4
|
+
|
5
|
+
&.grid-center {
|
6
|
+
.col,
|
7
|
+
[class*="col-"]{
|
8
|
+
vertical-align:center;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
&.grid-top{
|
12
|
+
.col,
|
13
|
+
[class*="col-"]{
|
14
|
+
vertical-align:top;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
&.grid-bottom {
|
18
|
+
.col,
|
19
|
+
[class*="col-"]{
|
20
|
+
vertical-align:bottom;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.row{
|
25
|
+
display: table-row;
|
26
|
+
}
|
27
|
+
.col,
|
28
|
+
[class*="col-"]{
|
29
|
+
display: table-cell;
|
30
|
+
position: static;
|
31
|
+
vertical-align:top;
|
32
|
+
&.col-center {vertical-align: center;}
|
33
|
+
&.col-top {vertical-align: top;}
|
34
|
+
&.col-bottom {vertical-align: bottom;}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.col-fill{
|
39
|
+
}
|
40
|
+
@for $i from 1 through $grid-columns {
|
41
|
+
.col-#{$i} {
|
42
|
+
width: #{($i / $grid-columns * 100) + "%"};
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
@for $i from 1 through 100 {
|
47
|
+
.col-#{$i * 5}-px { width: #{$i * 5 + "px"}; }
|
48
|
+
.col-#{$i}-p { width: #{$i + "%"}; }
|
49
|
+
}
|
50
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
//----------------------------------------------------------------
|
2
|
+
// Text
|
3
|
+
//----------------------------------------------------------------
|
4
|
+
$text-inputs: "input:not([type=search]):not([type=submit]):not([type=checkbox]):not([type=radio])";
|
5
|
+
$system-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
6
|
+
|
7
|
+
|
8
|
+
//----------------------------------------------------------------
|
9
|
+
// Colors
|
10
|
+
//----------------------------------------------------------------
|
11
|
+
$colors: (
|
12
|
+
'background': #f2f2f2,
|
13
|
+
'gray': #505153,
|
14
|
+
'gray-light': #cccccc,
|
15
|
+
'gray-dark': #373839,
|
16
|
+
'gray-background': rgb(238, 238, 238),
|
17
|
+
'green': #97C848,
|
18
|
+
'green-light': #BBFF00,
|
19
|
+
'green-dark': #709239,
|
20
|
+
'blue': #0994E2,
|
21
|
+
'blue-bright': #1fa9ff,
|
22
|
+
'blue-light': #A7CDF2,
|
23
|
+
'blue-dark': #167DBA,
|
24
|
+
'red': #E1563E,
|
25
|
+
'red-light': #E5766C,
|
26
|
+
'red-dark': #971710,
|
27
|
+
'red-bright': #ffab9b,
|
28
|
+
'yellow': #D7E542,
|
29
|
+
'yellow-dark': #BBC02C,
|
30
|
+
'yellow-light': #E9F75A,
|
31
|
+
'black': #000000,
|
32
|
+
'white': #FFFFFF,
|
33
|
+
'muted': #969696
|
34
|
+
);
|
35
|
+
|
36
|
+
|
37
|
+
//----------------------------------------------------------------
|
38
|
+
// Breakpoints
|
39
|
+
//----------------------------------------------------------------
|
40
|
+
// 720, 1080, 1440
|
41
|
+
$breakpoints: (
|
42
|
+
sm: "max-width: 719px",
|
43
|
+
md: "min-width: 720px",
|
44
|
+
lg: "min-width: 1080px",
|
45
|
+
xl: "min-width: 1440px"
|
46
|
+
);
|
47
|
+
|
48
|
+
|
49
|
+
//----------------------------------------------------------------
|
50
|
+
// Sizes
|
51
|
+
//----------------------------------------------------------------
|
52
|
+
$sizes: (
|
53
|
+
quarter: 0.25em,
|
54
|
+
half: 0.5em,
|
55
|
+
smaller: 0.8em,
|
56
|
+
small: 0.9em,
|
57
|
+
base: 1em,
|
58
|
+
large: 1.2em,
|
59
|
+
larger: 1.4em,
|
60
|
+
2x: 2em,
|
61
|
+
4x: 4em,
|
62
|
+
8x: 8em
|
63
|
+
);
|
64
|
+
|
65
|
+
|
66
|
+
//----------------------------------------------------------------
|
67
|
+
// Grid
|
68
|
+
//----------------------------------------------------------------
|
69
|
+
$grid-columns: 12;
|
70
|
+
$grid-gutter: 1em;
|
71
|
+
|
72
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'uniform/print/*';
|
data/lib/uniform.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
if defined?(::Rails)
|
2
|
+
class UniformUi
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
|
5
|
+
if Sprockets::VERSION.start_with?('4')
|
6
|
+
Engine.config.assets.precompile += %w(uniform/manifest.js)
|
7
|
+
end
|
8
|
+
|
9
|
+
end
|
10
|
+
end
|
11
|
+
else
|
12
|
+
module UniformUi
|
13
|
+
ASSET_PATH = File.expand_path("../lib/assets", __dir__)
|
14
|
+
end
|
15
|
+
end
|