uniform-ui 0.5.1 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/index.html +900 -389
  3. data/preview/_buttons.html.erb +59 -0
  4. data/preview/_cards.html.erb +82 -0
  5. data/preview/_colors.html.erb +12 -0
  6. data/preview/_forms.html.erb +196 -0
  7. data/preview/_grid.html.erb +49 -0
  8. data/preview/_helpers.html.erb +158 -0
  9. data/preview/_inputs.html.erb +93 -0
  10. data/preview/_installation.html.erb +4 -0
  11. data/preview/_lists.html.erb +53 -0
  12. data/preview/_loaders.html.erb +72 -0
  13. data/preview/_nav.html.erb +46 -0
  14. data/preview/_philosophy.html.erb +33 -0
  15. data/preview/_rows.html.erb +35 -0
  16. data/preview/_tables.html.erb +1 -0
  17. data/preview/_tabs.html.erb +1 -0
  18. data/preview/_tiles.html.erb +1 -0
  19. data/preview/_uniform.html.erb +4 -0
  20. data/preview/index.html.erb +39 -473
  21. data/preview/preview.scss +5 -0
  22. data/site/index.html +23 -23
  23. data/site/preview.css +1 -1
  24. data/site/site/uniform.css +1 -1
  25. data/site/uniform.css +1 -1
  26. data/uniform.gemspec +1 -1
  27. data/vendor/assets/stylesheets/uniform/components/buttons.scss +9 -9
  28. data/vendor/assets/stylesheets/uniform/components/card.scss +1 -1
  29. data/vendor/assets/stylesheets/uniform/components/form.scss +16 -130
  30. data/vendor/assets/stylesheets/uniform/components/inputs.scss +21 -0
  31. data/vendor/assets/stylesheets/uniform/components/lists.scss +52 -52
  32. data/vendor/assets/stylesheets/uniform/components/nav.scss +65 -29
  33. data/vendor/assets/stylesheets/uniform/components/row.scss +20 -61
  34. data/vendor/assets/stylesheets/uniform/components/table-form.scss +141 -246
  35. data/vendor/assets/stylesheets/uniform/components/tabs.scss +1 -1
  36. data/vendor/assets/stylesheets/uniform/components/tile.scss +1 -1
  37. data/vendor/assets/stylesheets/uniform/helpers.scss +1 -6
  38. data/vendor/assets/stylesheets/uniform/mixins.scss +38 -0
  39. metadata +20 -3
@@ -1,5 +1,5 @@
1
1
  // override for .nav-tab
2
- .uniformTabs{
2
+ .uniform-tabs{
3
3
  border:none;
4
4
  & > li {
5
5
  margin-left:10px;
@@ -1,4 +1,4 @@
1
- .uniformTile{
1
+ .uniform-tile{
2
2
  border:1px solid darken($background, 15);
3
3
  border-radius:3px;
4
4
  margin-top:20px;
@@ -36,7 +36,7 @@ vr {
36
36
  .text-right{
37
37
  text-align: right;
38
38
  }
39
- .center{
39
+ .text-center{
40
40
  text-align: center;
41
41
  }
42
42
  .clear{
@@ -92,11 +92,6 @@ h1, h2, h3, h4, h5, h6{
92
92
  }
93
93
  }
94
94
 
95
- .green{ color:$green;}
96
- .green-light{ color:$green-light;}
97
- .blue{ color:$blue;}
98
- .blue-light{ color:$blue-light;}
99
-
100
95
  p.large{
101
96
  font-size:1.5em;
102
97
  font-weight:300;
@@ -59,4 +59,42 @@
59
59
  -webkit-backface-visibility: hidden; // Some weird safari bug involving hovering on li or a
60
60
  -webkit-transform: translate3d(0, 0, 0); // Some weird safari bug involving hovering on li or a
61
61
  -webkit-font-smoothing: antialiased;
62
+ }
63
+
64
+ // Borrowed from Neat.io
65
+ @mixin media($query: $feature $value $columns, $total-columns: $grid-columns) {
66
+ @if length($query) == 1 {
67
+ @media screen and ($default-feature: nth($query, 1)) {
68
+ $default-grid-columns: $grid-columns;
69
+ $grid-columns: $total-columns !global;
70
+ @content;
71
+ $grid-columns: $default-grid-columns !global;
72
+ }
73
+ } @else {
74
+ $loop-to: length($query);
75
+ $media-query: "screen and ";
76
+ $default-grid-columns: $grid-columns;
77
+ $grid-columns: $total-columns !global;
78
+
79
+ @if is-not(is-even(length($query))) {
80
+ $grid-columns: nth($query, $loop-to) !global;
81
+ $loop-to: $loop-to - 1;
82
+ }
83
+
84
+ $i: 1;
85
+ @while $i <= $loop-to {
86
+ $media-query: $media-query + "(" + nth($query, $i) + ": " + nth($query, $i + 1) + ") ";
87
+
88
+ @if ($i + 1) != $loop-to {
89
+ $media-query: $media-query + "and ";
90
+ }
91
+
92
+ $i: $i + 2;
93
+ }
94
+
95
+ @media #{$media-query} {
96
+ @content;
97
+ $grid-columns: $default-grid-columns !global;
98
+ }
99
+ }
62
100
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniform-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Ehmke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-29 00:00:00.000000000 Z
11
+ date: 2017-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -98,6 +98,23 @@ files:
98
98
  - lib/uniform/rails/engine.rb
99
99
  - lib/uniform/ui.rb
100
100
  - preview.css
101
+ - preview/_buttons.html.erb
102
+ - preview/_cards.html.erb
103
+ - preview/_colors.html.erb
104
+ - preview/_forms.html.erb
105
+ - preview/_grid.html.erb
106
+ - preview/_helpers.html.erb
107
+ - preview/_inputs.html.erb
108
+ - preview/_installation.html.erb
109
+ - preview/_lists.html.erb
110
+ - preview/_loaders.html.erb
111
+ - preview/_nav.html.erb
112
+ - preview/_philosophy.html.erb
113
+ - preview/_rows.html.erb
114
+ - preview/_tables.html.erb
115
+ - preview/_tabs.html.erb
116
+ - preview/_tiles.html.erb
117
+ - preview/_uniform.html.erb
101
118
  - preview/index.html.erb
102
119
  - preview/preview.scss
103
120
  - site/index.html
@@ -147,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
164
  version: 1.3.6
148
165
  requirements: []
149
166
  rubyforge_project:
150
- rubygems_version: 2.6.4
167
+ rubygems_version: 2.6.8
151
168
  signing_key:
152
169
  specification_version: 4
153
170
  summary: Sass UI