uniform-ui 0.6 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -0
  3. data/CNAME +1 -0
  4. data/Gemfile +0 -4
  5. data/Gemfile.lock +1 -11
  6. data/README.md +2 -3
  7. data/Rakefile +34 -24
  8. data/index.html +240 -1160
  9. data/preview/{_tables.html.erb → alerts.html.erb} +0 -0
  10. data/preview/buttons.html.erb +62 -0
  11. data/preview/cards.html.erb +23 -0
  12. data/preview/colors.html.erb +22 -0
  13. data/preview/{_tabs.html.erb → dropdown.html.erb} +0 -0
  14. data/preview/form.html.erb +233 -0
  15. data/preview/grid.html.erb +304 -0
  16. data/preview/helpers.html.erb +225 -0
  17. data/preview/index.html.erb +74 -50
  18. data/preview/{_tiles.html.erb → labels.html.erb} +0 -0
  19. data/preview/layout.html.erb +63 -0
  20. data/preview/loaders.html.erb +83 -0
  21. data/preview/modal.html.erb +1 -0
  22. data/preview/nav.html.erb +77 -0
  23. data/preview/preview.scss +39 -10
  24. data/preview/rows.html.erb +36 -0
  25. data/preview/select.html.erb +1 -0
  26. data/preview/tables.html.erb +1 -0
  27. data/preview/tabs.html.erb +17 -0
  28. data/preview/tiles.html.erb +1 -0
  29. data/preview/tooltip.erb +1 -0
  30. data/site/alerts.html +157 -0
  31. data/site/alerts.html copy +133 -0
  32. data/site/buttons.html +286 -0
  33. data/site/cards.html +177 -0
  34. data/site/colors.html +275 -0
  35. data/site/dropdown.html +157 -0
  36. data/site/dropdown.html copy +141 -0
  37. data/site/form.html +369 -0
  38. data/site/grid.html +716 -0
  39. data/site/helpers.html +1008 -0
  40. data/site/index.html +208 -617
  41. data/site/labels.html +157 -0
  42. data/site/layout.html +313 -0
  43. data/site/loaders.html +233 -0
  44. data/site/modal.html +157 -0
  45. data/site/nav.html +229 -0
  46. data/site/preview.css +1 -1
  47. data/site/preview.js +59 -0
  48. data/site/rows.html +190 -0
  49. data/site/select.html +157 -0
  50. data/site/tables.html +157 -0
  51. data/site/tabs.html +171 -0
  52. data/site/tiles.html +157 -0
  53. data/site/tiles.html copy +109 -0
  54. data/site/tooltip +157 -0
  55. data/site/uniform.css +1 -1
  56. data/uniform.gemspec +2 -8
  57. data/vendor/assets/stylesheets/uniform.scss +4 -4
  58. data/vendor/assets/stylesheets/uniform/base.scss +2 -0
  59. data/vendor/assets/stylesheets/uniform/components/alert.scss +27 -0
  60. data/vendor/assets/stylesheets/uniform/components/buttons.scss +135 -86
  61. data/vendor/assets/stylesheets/uniform/components/card.scss +69 -67
  62. data/vendor/assets/stylesheets/uniform/components/dropdown.scss +69 -0
  63. data/vendor/assets/stylesheets/uniform/components/form.scss +268 -85
  64. data/vendor/assets/stylesheets/uniform/components/grid.scss +214 -72
  65. data/vendor/assets/stylesheets/uniform/components/label.scss +63 -0
  66. data/vendor/assets/stylesheets/uniform/components/loaders.scss +38 -18
  67. data/vendor/assets/stylesheets/uniform/components/modal.scss +51 -0
  68. data/vendor/assets/stylesheets/uniform/components/nav.scss +171 -54
  69. data/vendor/assets/stylesheets/uniform/components/row.scss +69 -101
  70. data/vendor/assets/stylesheets/uniform/components/select.scss +98 -0
  71. data/vendor/assets/stylesheets/uniform/components/table.scss +83 -0
  72. data/vendor/assets/stylesheets/uniform/components/tabs.scss +39 -26
  73. data/vendor/assets/stylesheets/uniform/components/tile.scss +15 -27
  74. data/vendor/assets/stylesheets/uniform/components/tooltip.scss +46 -0
  75. data/vendor/assets/stylesheets/uniform/defaults.scss +85 -19
  76. data/vendor/assets/stylesheets/uniform/helpers.scss +82 -81
  77. data/vendor/assets/stylesheets/uniform/helpers/colors.scss +37 -0
  78. data/vendor/assets/stylesheets/uniform/helpers/margin.scss +44 -0
  79. data/vendor/assets/stylesheets/uniform/helpers/padding.scss +74 -0
  80. data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +31 -0
  81. data/vendor/assets/stylesheets/uniform/helpers/text.scss +121 -0
  82. data/vendor/assets/stylesheets/uniform/mixins.scss +25 -48
  83. data/vendor/assets/stylesheets/uniform/variables.scss +10 -28
  84. metadata +61 -85
  85. data/preview/_buttons.html.erb +0 -59
  86. data/preview/_cards.html.erb +0 -82
  87. data/preview/_colors.html.erb +0 -12
  88. data/preview/_forms.html.erb +0 -196
  89. data/preview/_grid.html.erb +0 -49
  90. data/preview/_helpers.html.erb +0 -158
  91. data/preview/_inputs.html.erb +0 -93
  92. data/preview/_installation.html.erb +0 -4
  93. data/preview/_lists.html.erb +0 -53
  94. data/preview/_loaders.html.erb +0 -72
  95. data/preview/_nav.html.erb +0 -46
  96. data/preview/_philosophy.html.erb +0 -33
  97. data/preview/_rows.html.erb +0 -35
  98. data/preview/_uniform.html.erb +0 -4
  99. data/site/site/logo.png +0 -0
  100. data/site/site/preview.css +0 -1
  101. data/site/site/uniform.css +0 -1
  102. data/vendor/assets/stylesheets/uniform/components/inputs.scss +0 -131
  103. data/vendor/assets/stylesheets/uniform/components/lists.scss +0 -62
  104. data/vendor/assets/stylesheets/uniform/components/table-container.scss +0 -44
  105. data/vendor/assets/stylesheets/uniform/components/table-form.scss +0 -159
  106. 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
- @include animation(uniform-loader 1s infinite linear);
11
- @include animation-delay(.4s);
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
- @include animation-delay(.2s);
15
+ animation-delay: 0s;
15
16
  }
16
17
  span:last-of-type{
17
- @include animation-delay(.6s);
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
- @include animation(uniform-loader-light 1s infinite linear);
25
- @include animation-delay(.4s);
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
- @include animation-delay(.2s);
30
+ animation-delay: 0s;
29
31
  }
30
32
  span:last-of-type{
31
- @include animation-delay(.6s);
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
- @include keyframes (uniform-loader) {
54
- 0%{ color:rgba(black, 1); }
55
- 25%{ color:rgba(black, 0.2); }
56
- 100%{ color:rgba(black, 0.2); }
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
- @include keyframes (uniform-loader-light) {
59
- 0%{ color:rgba(white, 1); }
60
- 25%{ color:rgba(white, 0.2); }
61
- 100%{ color:rgba(white, 0.2); }
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
- .uniform-nav{
2
- position:relative;
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
- z-index: 2;
7
- position: relative;
8
- .brand{
9
- padding:7px 0;
10
- margin-right:10px;
8
+ &.transparent{
9
+ background: none;
10
+ box-shadow: none;
11
11
  }
12
- .container {
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:bottom;
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:inline-block;
21
- vertical-align:bottom;
52
+ img{
53
+ display: block;
22
54
  }
23
- a{
24
- color: $gray;
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
- img{
27
- display: inline-block;
66
+ .uniformInputGroup{
67
+ color: $gray;
28
68
  }
29
- ul {
30
- margin: 0;
31
- padding: 0;
32
- list-style: none;
33
- & > li {
34
- display:inline-block;
35
- & > *{
36
- display:inline-block;
37
- text-decoration:none;
38
- padding: 16px 10px;
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: $blue;
80
+ color: $green-light;
81
+ }
82
+ &.active{
83
+ color: white;
84
+ background: darken($gray, 10);
43
85
  }
44
86
  }
45
87
  }
46
88
  }
47
- .uniform-nav-right {
48
- float: right;
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
- &.uniform-nav-subnav{
52
- z-index:1;
53
- ul {
54
- & > li {
55
- vertical-align:middle;
56
- & > *{
57
- padding-top: 6px;
58
- padding-bottom: 5px;
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
- display:block;
72
- padding: 10px 20px;
73
- &:hover{
74
- color: black;
75
- background:rgba($green-light, 0.3);
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
  }