uniform-ui 1.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +5 -5
  2. data/lib/assets/config/manifest.js +1 -0
  3. data/lib/assets/javascripts/uniform/checkbox.js +31 -0
  4. data/lib/assets/javascripts/uniform/component.js +42 -0
  5. data/lib/assets/javascripts/uniform/dom-helpers.js +136 -0
  6. data/lib/assets/javascripts/uniform/dropdown.js +149 -0
  7. data/lib/assets/javascripts/uniform/floating-label.js +54 -0
  8. data/lib/assets/javascripts/uniform/icons.js +16 -0
  9. data/lib/assets/javascripts/uniform/modal.js +103 -0
  10. data/lib/assets/javascripts/uniform/resizer.js +43 -0
  11. data/lib/assets/javascripts/uniform/select.js +235 -0
  12. data/lib/assets/javascripts/uniform/tooltip.js +120 -0
  13. data/lib/assets/javascripts/uniform-es5.js +1 -0
  14. data/lib/assets/javascripts/uniform-jquery.js +124 -0
  15. data/lib/assets/javascripts/uniform.js +17 -0
  16. data/lib/assets/stylesheets/uniform/base.scss +3 -0
  17. data/lib/assets/stylesheets/uniform/components/alert.scss +72 -0
  18. data/lib/assets/stylesheets/uniform/components/buttons.scss +219 -0
  19. data/{vendor → lib}/assets/stylesheets/uniform/components/card.scss +33 -25
  20. data/lib/assets/stylesheets/uniform/components/container.scss +19 -0
  21. data/{vendor → lib}/assets/stylesheets/uniform/components/dropdown.scss +8 -4
  22. data/lib/assets/stylesheets/uniform/components/form/checkbox-collection.scss +103 -0
  23. data/lib/assets/stylesheets/uniform/components/form/checkbox.scss +58 -0
  24. data/lib/assets/stylesheets/uniform/components/form/floating-label.scss +64 -0
  25. data/lib/assets/stylesheets/uniform/components/form/input-group.scss +56 -0
  26. data/lib/assets/stylesheets/uniform/components/form.scss +143 -0
  27. data/lib/assets/stylesheets/uniform/components/grid.scss +158 -0
  28. data/lib/assets/stylesheets/uniform/components/label.scss +26 -0
  29. data/lib/assets/stylesheets/uniform/components/loaders.scss +80 -0
  30. data/{vendor → lib}/assets/stylesheets/uniform/components/modal.scss +26 -4
  31. data/lib/assets/stylesheets/uniform/components/nav.scss +124 -0
  32. data/lib/assets/stylesheets/uniform/components/row.scss +69 -0
  33. data/lib/assets/stylesheets/uniform/components/select.scss +122 -0
  34. data/lib/assets/stylesheets/uniform/components/table.scss +127 -0
  35. data/lib/assets/stylesheets/uniform/components/thumb.scss +41 -0
  36. data/lib/assets/stylesheets/uniform/components/tooltip.scss +63 -0
  37. data/lib/assets/stylesheets/uniform/components.scss +11 -0
  38. data/{vendor → lib}/assets/stylesheets/uniform/defaults.scss +7 -4
  39. data/lib/assets/stylesheets/uniform/functions.scss +31 -0
  40. data/lib/assets/stylesheets/uniform/helpers/border.scss +19 -0
  41. data/lib/assets/stylesheets/uniform/helpers/colors.scss +23 -0
  42. data/lib/assets/stylesheets/uniform/helpers/margin.scss +27 -0
  43. data/lib/assets/stylesheets/uniform/helpers/padding.scss +9 -0
  44. data/lib/assets/stylesheets/uniform/helpers/position.scss +13 -0
  45. data/lib/assets/stylesheets/uniform/helpers/sizes.scss +38 -0
  46. data/{vendor → lib}/assets/stylesheets/uniform/helpers/text.scss +86 -73
  47. data/lib/assets/stylesheets/uniform/helpers.scss +127 -0
  48. data/lib/assets/stylesheets/uniform/mixins.scss +116 -0
  49. data/lib/assets/stylesheets/uniform/print/grid.scss +50 -0
  50. data/lib/assets/stylesheets/uniform/variables.scss +72 -0
  51. data/lib/assets/stylesheets/uniform-print.scss +1 -0
  52. data/lib/assets/stylesheets/uniform.scss +11 -0
  53. data/lib/uniform/version.rb +3 -0
  54. data/lib/uniform.rb +15 -0
  55. metadata +87 -95
  56. data/.gitignore +0 -2
  57. data/CHANGELOG.md +0 -27
  58. data/CNAME +0 -1
  59. data/Gemfile +0 -8
  60. data/Gemfile.lock +0 -40
  61. data/LICENSE +0 -22
  62. data/README.md +0 -35
  63. data/Rakefile +0 -74
  64. data/index.html +0 -251
  65. data/lib/uniform/rails/engine.rb +0 -8
  66. data/lib/uniform/rails.rb +0 -6
  67. data/lib/uniform/ui.rb +0 -1
  68. data/preview/alerts.html.erb +0 -1
  69. data/preview/buttons.html.erb +0 -62
  70. data/preview/cards.html.erb +0 -23
  71. data/preview/colors.html.erb +0 -22
  72. data/preview/dropdown.html.erb +0 -1
  73. data/preview/form.html.erb +0 -233
  74. data/preview/grid.html.erb +0 -304
  75. data/preview/helpers.html.erb +0 -225
  76. data/preview/index.html.erb +0 -77
  77. data/preview/labels.html.erb +0 -1
  78. data/preview/layout.html.erb +0 -63
  79. data/preview/loaders.html.erb +0 -83
  80. data/preview/modal.html.erb +0 -1
  81. data/preview/nav.html.erb +0 -77
  82. data/preview/preview.scss +0 -76
  83. data/preview/rows.html.erb +0 -36
  84. data/preview/select.html.erb +0 -1
  85. data/preview/tables.html.erb +0 -1
  86. data/preview/tabs.html.erb +0 -17
  87. data/preview/tiles.html.erb +0 -1
  88. data/preview/tooltip.erb +0 -1
  89. data/preview.css +0 -0
  90. data/site/alerts.html +0 -157
  91. data/site/alerts.html copy +0 -133
  92. data/site/buttons.html +0 -286
  93. data/site/cards.html +0 -177
  94. data/site/colors.html +0 -275
  95. data/site/dropdown.html +0 -157
  96. data/site/dropdown.html copy +0 -141
  97. data/site/form.html +0 -369
  98. data/site/grid.html +0 -716
  99. data/site/helpers.html +0 -1008
  100. data/site/index.html +0 -251
  101. data/site/labels.html +0 -157
  102. data/site/layout.html +0 -313
  103. data/site/loaders.html +0 -233
  104. data/site/logo.png +0 -0
  105. data/site/modal.html +0 -157
  106. data/site/nav.html +0 -229
  107. data/site/preview.css +0 -1
  108. data/site/preview.js +0 -59
  109. data/site/rows.html +0 -190
  110. data/site/select.html +0 -157
  111. data/site/tables.html +0 -157
  112. data/site/tabs.html +0 -171
  113. data/site/tiles.html +0 -157
  114. data/site/tiles.html copy +0 -109
  115. data/site/tooltip +0 -157
  116. data/site/uniform.css +0 -1
  117. data/uniform.gemspec +0 -22
  118. data/vendor/assets/stylesheets/uniform/base.scss +0 -2
  119. data/vendor/assets/stylesheets/uniform/components/alert.scss +0 -27
  120. data/vendor/assets/stylesheets/uniform/components/buttons.scss +0 -212
  121. data/vendor/assets/stylesheets/uniform/components/form.scss +0 -290
  122. data/vendor/assets/stylesheets/uniform/components/grid.scss +0 -225
  123. data/vendor/assets/stylesheets/uniform/components/label.scss +0 -63
  124. data/vendor/assets/stylesheets/uniform/components/loaders.scss +0 -82
  125. data/vendor/assets/stylesheets/uniform/components/nav.scss +0 -197
  126. data/vendor/assets/stylesheets/uniform/components/row.scss +0 -92
  127. data/vendor/assets/stylesheets/uniform/components/select.scss +0 -98
  128. data/vendor/assets/stylesheets/uniform/components/table.scss +0 -83
  129. data/vendor/assets/stylesheets/uniform/components/tabs.scss +0 -45
  130. data/vendor/assets/stylesheets/uniform/components/tile.scss +0 -20
  131. data/vendor/assets/stylesheets/uniform/components/tooltip.scss +0 -46
  132. data/vendor/assets/stylesheets/uniform/helpers/colors.scss +0 -37
  133. data/vendor/assets/stylesheets/uniform/helpers/margin.scss +0 -44
  134. data/vendor/assets/stylesheets/uniform/helpers/padding.scss +0 -74
  135. data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +0 -31
  136. data/vendor/assets/stylesheets/uniform/helpers.scss +0 -124
  137. data/vendor/assets/stylesheets/uniform/mixins.scss +0 -77
  138. data/vendor/assets/stylesheets/uniform/variables.scss +0 -36
  139. data/vendor/assets/stylesheets/uniform.scss +0 -9
@@ -0,0 +1,143 @@
1
+ //----------------------------------------------------------------
2
+ // UniformInput
3
+ //----------------------------------------------------------------
4
+ @mixin uniformInput(){
5
+ font-family: $system-font;
6
+ border:1px solid lighten(color('gray'), 40);
7
+ padding: 0.5em;
8
+ line-height: 1.3;
9
+ outline: none;
10
+ appearance: none;
11
+ transition: box-shadow 0.1s ease-in;
12
+ &:focus{
13
+ box-shadow: inset 0 -2px 0 color('green');
14
+ }
15
+ &.-block{
16
+ width: 100%;
17
+ max-width: 100%;
18
+ }
19
+ &.pad-2x{
20
+ padding: 1em;
21
+ }
22
+ &.-invert{
23
+ border-color: color('gray');
24
+ border-radius: 0.25em;
25
+ }
26
+ }
27
+ .uniformInput,
28
+ .uniformForm #{$text-inputs},
29
+ .uniformForm textarea{
30
+ @include uniformInput;
31
+ }
32
+
33
+ select.uniformInput{
34
+ color: color('gray');
35
+ background: white url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNy4xNjdweCIgaGVpZ2h0PSIyOHB4IiB2aWV3Qm94PSIwIDAgMjcuMTY3IDI4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNy4xNjcgMjgiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnIGlkPSJpY29tb29uLWlnbm9yZSI+PC9nPjxwYXRoIGZpbGw9IiM1MDUxNTMiIGQ9Ik0xNiwxMWMwLDAuMjcxLTAuMSwwLjUwNS0wLjI5NywwLjcwM2wtNyw3QzguNTA1LDE4LjksOC4yNzEsMTksOCwxOXMtMC41MDUtMC4xLTAuNzAzLTAuMjk3bC03LTdDMC4wOTksMTEuNTA1LDAsMTEuMjcxLDAsMTFzMC4wOTktMC41MDUsMC4yOTctMC43MDNDMC40OTUsMTAuMDk5LDAuNzI5LDEwLDEsMTBoMTRjMC4yNzEsMCwwLjUwNSwwLjA5OSwwLjcwMywwLjI5N0MxNS45LDEwLjQ5NSwxNiwxMC43MjksMTYsMTF6Ii8+PC9zdmc+);
36
+ background-position: center right;
37
+ background-repeat: no-repeat;
38
+ background-size: auto 40%;
39
+ position: relative;
40
+ border-radius: 0;
41
+ padding-right: 1.5em !important;
42
+ }
43
+ button.uniformInput{
44
+ background: white;
45
+ @include text-overflow;
46
+ }
47
+
48
+
49
+ //----------------------------------------------------------------
50
+ // UniformForm
51
+ //----------------------------------------------------------------
52
+ .uniformForm{
53
+ .form-group{
54
+ position: relative;
55
+ margin-bottom: 0.9em;
56
+ label{
57
+ font-weight:bold;
58
+ display:block;
59
+ }
60
+ &.collapse{
61
+ margin-bottom: 0;
62
+ }
63
+ &:last-of-type{
64
+ margin-bottom: 0;
65
+ }
66
+ }
67
+
68
+ .uniformInput,
69
+ #{$text-inputs},
70
+ textarea{
71
+ display:block;
72
+ width: 100%;
73
+ max-width: 100%;
74
+ }
75
+
76
+ &.-invert{
77
+ #{$text-inputs},
78
+ textarea,
79
+ .uniformFloatingLabel{
80
+ border-color: color('gray');
81
+ border-radius: 0.25em;
82
+ }
83
+ [data-uniform-error]{
84
+ color: color('red-bright');
85
+ }
86
+ .uniformInputGroup{
87
+ overflow: hidden;
88
+ border-color: color('gray');
89
+ border-radius: 0.25em;
90
+ }
91
+ }
92
+ }
93
+
94
+ [data-uniform-error]{
95
+ position: relative;
96
+ color: color('red');
97
+ .uniformInputGroup{
98
+ border-color: color('red') !important;
99
+ }
100
+ input{
101
+ border-color: color('red') !important;
102
+ }
103
+ &::after{
104
+ content: attr(data-uniform-error);
105
+ color: color('red');
106
+ position: absolute;
107
+ bottom: -7px;
108
+ left: 1em;
109
+ border: 1px solid color('red');
110
+ background: white;
111
+ font-size:11px;
112
+ line-height: 14px;
113
+ @include text-overflow;
114
+ padding: 0 0.5em;
115
+ max-width: 100%;
116
+ }
117
+ }
118
+
119
+ @include size-rules('.uniformForm.-table'){
120
+ display: table;
121
+ width: 100%;
122
+ .form-group{
123
+ display: table-row;
124
+ & > * {
125
+ display: table-cell;
126
+ &.fill{
127
+ width: 100%;
128
+ }
129
+ }
130
+ & > label,
131
+ & > div,
132
+ & > span {
133
+ padding-bottom: 1em;
134
+ padding-right: 0.5em;
135
+ &:last-child{
136
+ padding-right: 0;
137
+ }
138
+ }
139
+ }
140
+ }
141
+
142
+
143
+ @import './form/*';
@@ -0,0 +1,158 @@
1
+ //----------------------------------------------------------------
2
+ // Grid
3
+ //----------------------------------------------------------------
4
+
5
+ @include size-rules('.grid'){
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+
9
+ & > *{
10
+ position: relative;
11
+ padding-left: $grid-gutter/2;
12
+ padding-right: $grid-gutter/2;
13
+ }
14
+
15
+ &.grid-nowrap {flex-wrap:nowrap;}
16
+ &.grid-gutter-2x {
17
+ & > * {
18
+ padding-left: $grid-gutter;
19
+ padding-right: $grid-gutter;
20
+ }
21
+ }
22
+ }
23
+ @include size-rule('md'){
24
+ .grid,
25
+ .grid-md,
26
+ .grid-lg,
27
+ .grid-xl{
28
+ & > * {
29
+ padding-left:$grid-gutter;
30
+ padding-right: $grid-gutter;
31
+ }
32
+ }
33
+
34
+ .grid.grid-gutter-2x {
35
+ & > * {
36
+ padding-left:$grid-gutter * 2;
37
+ padding-right: $grid-gutter * 2;
38
+ }
39
+ }
40
+ }
41
+
42
+ .grid-h-left {justify-content: flex-start;}
43
+ .grid-h-center {justify-content: center;}
44
+ .grid-h-right {justify-content: flex-end;}
45
+ .grid-h-around {justify-content: space-around;}
46
+ .grid-h-between {justify-content: space-between;}
47
+
48
+ .grid-v-top {align-content: flex-start;}
49
+ .grid-v-center {align-content: center;}
50
+ .grid-v-bottom {align-content: flex-end;}
51
+ .grid-v-around {align-content: space-around;}
52
+ .grid-v-between {align-content: space-between;}
53
+ .grid-v-stretch {align-content: stretch;}
54
+
55
+ .grid-center {align-items: center;}
56
+ .grid-top {align-items: flex-start;}
57
+ .grid-bottom {align-items: flex-end;}
58
+ .grid-stretch {align-items: stretch;}
59
+
60
+ .grid-vertical{
61
+ flex-direction: column;
62
+ & > *{
63
+ padding-left: 0;
64
+ padding-right: 0;
65
+ padding-top: $grid-gutter;
66
+ padding-bottom: $grid-gutter;
67
+ }
68
+ &.grid-gutter-none{
69
+ & > * {
70
+ padding-top: 0;
71
+ padding-bottom: 0;
72
+ }
73
+ }
74
+ }
75
+
76
+ .grid-gutter-none{
77
+ & > * {
78
+ padding-left: 0 !important;
79
+ padding-right: 0 !important;
80
+ }
81
+ }
82
+
83
+ .grid-nest{
84
+ margin-left: -$grid-gutter;
85
+ margin-right: -$grid-gutter;
86
+ &.grid-gutter-2x{
87
+ margin-left: -$grid-gutter*2;
88
+ margin-right: -$grid-gutter*2;
89
+ }
90
+ }
91
+ .grid-nest-half{
92
+ margin-left: -0.5em;
93
+ margin-right: -0.5em;
94
+ }
95
+ @include size-rule('sm'){
96
+ .grid-nest{
97
+ margin-left: -$grid-gutter/2;
98
+ margin-right: -$grid-gutter/2;
99
+ &.grid-gutter-2x{
100
+ margin-left: -$grid-gutter;
101
+ margin-right: -$grid-gutter;
102
+ }
103
+ }
104
+ }
105
+
106
+ // fix for IE https://codepen.io/anon/pen/gxNraR
107
+ .grid-min-height-fix{
108
+ width: 100%;
109
+ display: flex;
110
+ flex-direction: row;
111
+ .grid{
112
+ width: 100%;
113
+ }
114
+ }
115
+
116
+ //----------------------------------------------------------------
117
+ // Columns
118
+ //----------------------------------------------------------------
119
+ .col-center {align-self: center;}
120
+ .col-top {align-self: flex-start;}
121
+ .col-bottom {align-self: flex-end;}
122
+ .col-stretch {align-self: stretch;}
123
+ @include size-rules(".col"){
124
+ flex: 0 1 auto;
125
+ }
126
+ @include size-rules(".col-fill"){
127
+ flex: 1 1 auto;
128
+ }
129
+ @include size-rules(".col-gutter-none"){
130
+ padding-left: 0 !important; // TODO remove !important
131
+ padding-right: 0 !important; // TODO remove !important
132
+ }
133
+ @for $i from 0 through $grid-columns {
134
+ @include size-rules(".col-#{$i}"){
135
+ flex: 0 0 #{($i / $grid-columns * 100) + "%"};
136
+ max-width: #{($i / $grid-columns * 100) + "%"};
137
+ }
138
+ @include size-rules(".col-offset-#{$i}"){
139
+ margin-left: #{($i / $grid-columns * 100) + "%"};
140
+ }
141
+ @include size-rules(".col-push-#{$i}"){
142
+ position:relative;
143
+ left: #{($i / $grid-columns * 100) + "%"};
144
+ }
145
+ @include size-rules(".col-pull-#{$i}"){
146
+ position:relative;
147
+ right: #{($i / $grid-columns * 100) + "%"};
148
+ }
149
+ @include size-rules(".col-fill-#{$i}"){
150
+ flex: #{$i};
151
+ }
152
+ @include size-rules(".col-grow-#{$i}"){
153
+ flex-grow: #{$i};
154
+ }
155
+ @include size-rules(".col-shrink-#{$i}"){
156
+ flex-shrink: #{$i};
157
+ }
158
+ }
@@ -0,0 +1,26 @@
1
+ .uniformLabel{
2
+ display:inline-block;
3
+ vertical-align:baseline;
4
+ padding: 0.0714em 0.357em 0.0714em;
5
+ border: 0.1em solid color('gray');
6
+ color: color('gray');
7
+ border-radius: 0.3em;
8
+ line-height: 1.2;
9
+ &.-fill{
10
+ border: none;
11
+ background: lighten(color('gray'), 20);
12
+ color: white;
13
+ padding: 0.1714em 0.457em 0.1714em;
14
+ }
15
+ &.-round{
16
+ border-radius: 1em;
17
+ }
18
+ &.pad-more{
19
+ padding: 0.0714em 0.5em;
20
+ }
21
+ }
22
+
23
+ @include colors('.uniformLabel.', ('border-color' 'color'));
24
+ @include colors('.uniformLabel.-fill.', 'background-color'){
25
+ color: white;
26
+ };
@@ -0,0 +1,80 @@
1
+ .uniformLoader{
2
+ line-height:1em;
3
+ display:inline-block;
4
+ white-space:nowrap;
5
+ letter-spacing:-.05em;
6
+ span{
7
+ color:rgba(black, 1);
8
+ text-shadow:-1px -1px 0 rgba(#FFFFFF, .2);
9
+ animation: uniformLoader-light 1s infinite linear;
10
+ animation-delay: 0.2s;
11
+ }
12
+ span:first-of-type{
13
+ animation-delay: 0s;
14
+ }
15
+ span:last-of-type{
16
+ animation-delay: 0.4s;
17
+ }
18
+ .uniformLoader-container{
19
+ white-space:nowrap;
20
+ }
21
+ &.-light{
22
+ span{
23
+ color:rgba(white, 1);
24
+ text-shadow:-1px -1px 0 rgba(black, .2);
25
+ animation: uniformLoader 1s infinite linear;
26
+ animation-delay: 0.2s;
27
+ }
28
+ span:first-of-type{
29
+ animation-delay: 0s;
30
+ }
31
+ span:last-of-type{
32
+ animation-delay: 0.4s;
33
+ }
34
+ }
35
+ &.-cover{
36
+ display:block;
37
+ background:rgba(white, 0.5);
38
+ position:absolute;
39
+ top:0;
40
+ left:0;
41
+ width:100%;
42
+ height:100%;
43
+ z-index:999999999;
44
+ .uniformLoader-container{
45
+ position:absolute;
46
+ @include position-center;
47
+ }
48
+ &.light{
49
+ background:rgba(black, .5);
50
+ }
51
+ }
52
+ &.-top{
53
+ .uniformLoader-container{
54
+ top: 20px;
55
+ }
56
+ }
57
+ }
58
+ @keyframes uniformLoader {
59
+ 0% {
60
+ color: rgba(255, 255, 255, 0);
61
+ }
62
+ 25% {
63
+ color: white;
64
+ }
65
+ 100% {
66
+ color: white;
67
+ }
68
+ }
69
+
70
+ @keyframes uniformLoader-light {
71
+ 0% {
72
+ color: black;
73
+ }
74
+ 25% {
75
+ color: rgba(0, 0, 0, 0.2);
76
+ }
77
+ 100% {
78
+ color: rgba(0, 0, 0, 0.2);
79
+ }
80
+ }
@@ -6,6 +6,7 @@
6
6
  right: 0;
7
7
  opacity: 0.6;
8
8
  background: black;
9
+ z-index: 1;
9
10
  }
10
11
  .uniformModal{
11
12
  position: absolute;
@@ -13,6 +14,7 @@
13
14
  width: 100%;
14
15
  text-align:center;
15
16
  padding: 2em;
17
+ z-index: 9999;
16
18
  }
17
19
 
18
20
  .uniformModal-container{
@@ -23,7 +25,8 @@
23
25
  background: white;
24
26
  border-radius: 0.25em;
25
27
  max-width: 90%;
26
- &.fill{
28
+ z-index: 2;
29
+ &.-fill{
27
30
  width: 90%;
28
31
  }
29
32
  }
@@ -38,14 +41,33 @@
38
41
  opacity: 0.5;
39
42
  line-height:1;
40
43
  cursor: pointer;
44
+ height: 2rem;
45
+ width: 2rem;
41
46
  &:hover{
42
47
  opacity: 1;
43
48
  }
49
+ &:after,
50
+ &:before{
51
+ content: "";
52
+ width: 1px;
53
+ height: 1.5rem;
54
+ transform-origin: 50% 50%;
55
+ transform: rotate(-45deg);
56
+ background: white;
57
+ position:absolute;
58
+ left: 50%;
59
+ top: 15%;
60
+ }
61
+ &:before{
62
+ transform: rotate(45deg);
63
+ }
44
64
  }
45
65
 
46
66
  .uniformModal-blur{
67
+ top: 0;
68
+ left: 0;
69
+ height: 100vh;
70
+ width: 100vw;
71
+ position:fixed;
47
72
  filter: blur(4px);
48
- }
49
- body.uniformModal-active{
50
- background: $gray-dark;
51
73
  }
@@ -0,0 +1,124 @@
1
+ @mixin uniformNav-vertical(){
2
+ flex-direction: column;
3
+ align-items: stretch;
4
+ & > * {
5
+ padding: 0.5em 0.5em;
6
+ }
7
+ & > a{
8
+ border: none !important; // TODO remove !important
9
+ padding-bottom: 0.5em !important; // TODO remove !important
10
+ &:hover{
11
+ color: color('blue');
12
+ background: rgba(black, 0.05);
13
+ }
14
+ &.active{
15
+ color: white;
16
+ background: color('green');
17
+ }
18
+ }
19
+ }
20
+
21
+ .uniformNav{
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ align-items: stretch;
25
+ align-content: space-stretch;
26
+
27
+ &.-nowrap{
28
+ flex-wrap: nowrap;
29
+ }
30
+
31
+ & > * {
32
+ flex: 0 0 auto;
33
+ display: flex;
34
+ align-items: center;
35
+ padding: 0 1em;
36
+ border-style: solid none;
37
+ border-color: transparent;
38
+ border-top-width: 2px;
39
+ border-bottom-width: 2px;
40
+ &.col-fill{
41
+ flex: 1 1 auto;
42
+ }
43
+ }
44
+ & > a{
45
+ text-decoration: none;
46
+ &:hover{
47
+ color: color('blue');
48
+ border-bottom-color: color('blue');
49
+ }
50
+ &.active{
51
+ color: color('green-dark');
52
+ border-bottom-color: color('green-dark');
53
+ }
54
+ }
55
+ &.-pad{
56
+ & > * {
57
+ padding-top: 0.25em;
58
+ padding-bottom: 0.25em;
59
+ }
60
+ }
61
+ &.-pad-more{
62
+ & > * {
63
+ padding-top: 0.5em;
64
+ padding-bottom: 0.5em;
65
+ }
66
+ }
67
+
68
+ &.-vertical{
69
+ @include uniformNav-vertical();
70
+ }
71
+ }
72
+
73
+ .uniformMainNav{
74
+ position: relative;
75
+ background: white;
76
+ box-shadow:0 1px 0 0 rgba(black, 0.15);
77
+ color: color('gray');
78
+ .uniformNav{
79
+ & > * {
80
+ padding-top: 0.25em;
81
+ padding-bottom: 0.25em;
82
+ }
83
+ }
84
+
85
+ &.bg-none{
86
+ background: none;
87
+ }
88
+
89
+ &.border-bottom-none,
90
+ &.border-none{
91
+ box-shadow: none;
92
+ }
93
+
94
+ &.-vertical{
95
+ box-shadow: none;
96
+ .uniformNav{
97
+ @include uniformNav-vertical();
98
+ }
99
+ }
100
+
101
+ &.-invert{
102
+ box-shadow:0 1px 0 0 rgba(white, 0.15);
103
+ background: none;
104
+ color: rgba(white, 0.7);
105
+ .uniformNav{
106
+ & > a {
107
+ color: rgba(white, 0.7);
108
+ &:hover{
109
+ color: white;
110
+ border-bottom-color: color('blue-bright');
111
+ }
112
+ &.active{
113
+ color: white;
114
+ background: rgba(black, 0.1);
115
+ border-bottom-color: color('green-light');
116
+ }
117
+ }
118
+ }
119
+ &.border-bottom-none,
120
+ &.border-none{
121
+ box-shadow: none;
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,69 @@
1
+ .uniformRow{
2
+ background: white;
3
+ margin: 0.5em 0;
4
+ text-decoration:none;
5
+ color: color('gray');
6
+ border: 1px solid color('gray-light');
7
+ &.border-none{
8
+ margin-bottom: 0;
9
+ border: none;
10
+ border-top: 1px solid color('gray-light');
11
+ &:first-of-type{
12
+ border-top:none;
13
+ }
14
+ }
15
+ &:hover{
16
+ background: lighten(color('blue'), 50);
17
+ }
18
+ a{
19
+ color: color('gray');
20
+ text-decoration: none;
21
+ }
22
+ .uniformRow-body{
23
+ display: flex;
24
+ min-width: 0;
25
+ & > * {
26
+ padding: 0 1em;
27
+ }
28
+ }
29
+ }
30
+
31
+
32
+ @include size-rule('sm') {
33
+ .uniformRow{
34
+ display: block;
35
+ margin: 0.5em 0;
36
+ .uniformThumb{
37
+ padding-top:50%;
38
+ width: 100%;
39
+ max-width: 100%;
40
+ }
41
+ .uniformRow-body{
42
+ flex-wrap: wrap;
43
+ & > * {
44
+ width: 100%;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ @include size-rule('md') {
50
+ .uniformRow{
51
+ margin: 0;
52
+ margin-bottom: -1px;
53
+ flex-wrap: nowrap;
54
+ display: flex;
55
+ align-self: center;
56
+ .uniformThumb{
57
+ align-self: stretch;
58
+ }
59
+
60
+ .uniformRow-body{
61
+ flex-wrap: nowrap;
62
+ align-self: center;
63
+ padding: 0.5em 0;
64
+ & > * {
65
+ padding: 0 1em;
66
+ }
67
+ }
68
+ }
69
+ }