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,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
- blockquote{
8
- border-left-color:lighten($green, 20);
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
- mark{
11
- background:lighten($green-light, 30);
43
+
44
+ dd{
45
+ margin-left: 0;
46
+ margin-bottom: 0.5em;
12
47
  }
13
- code{
14
- border-radius: 4px;
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
- pre{
22
- display:block;
23
- background: darken(white, 10);
24
- border:1px solid darken(white, 13);
25
- padding: 15px 10px;
26
- overflow:auto;
27
- xmp{
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
- // Vertical Rule
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
- .hide,
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
- .text-right{
37
- text-align: right;
38
- }
39
- .text-center{
40
- text-align: center;
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
- .no-gutter{
50
- padding-left:0;
51
- padding-right:0;
75
+ .clear{
76
+ clear:both;
52
77
  }
53
- .no-pad{
54
- padding-left:0;
55
- padding-right:0;
78
+ @include apply-media-sizes('.block') {
79
+ display: block;
56
80
  }
57
- .less-pad{
58
- padding-left:5px;
59
- padding-right:5px;
81
+ @include apply-media-sizes('.inline-block') {
82
+ display:inline-block !important;
60
83
  }
61
- .pad{
62
- padding:10px;
84
+ .align-middle{
85
+ @include align-middle;
63
86
  }
64
87
 
65
- //----------------------------------------------------------------
66
- // Text
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
- h1, h2, h3, h4, h5, h6{
86
- &.no-margin{
87
- margin: 0;
88
- margin-top:10px;
89
- }
90
- &.no-margin-top{
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
- p.large{
96
- font-size:1.5em;
97
- font-weight:300;
98
- margin-bottom:20px;
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
- .nowrap{
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
- @include generate-color('green');
118
- @include generate-color('blue');
119
- @include generate-color('red');
120
- @include generate-color('gray');
121
- @include generate-color('yellow');
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
+ }