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
@@ -1,123 +1,91 @@
1
- .uniform-row{
2
- line-height:1.3;
3
- font-size: 13px;
4
- border:1px solid $gray-light;
5
- border-bottom:none;
6
- min-height: 49px; // two text lines with padding
7
- position:relative;
8
- overflow:hidden;
9
- display:block;
10
- color: $gray;
1
+ .uniformRow{
2
+ background: white;
3
+ padding: 0.5em;
4
+ padding-bottom: 1em;
5
+ border: 1px solid $gray-light;
6
+ margin: 0.5em 0;
7
+ text-decoration: none;
8
+ &.nest{
9
+ border-left: none;
10
+ border-right: none;
11
+ }
12
+ &[data-href]{
13
+ cursor: pointer;
14
+ }
11
15
  &:hover{
12
- background-color: lighten($blue-light, 15);
16
+ background: lighten($blue, 50);
13
17
  }
14
- a:visited{
15
- color:#6738e4;
18
+ a{
19
+ text-decoration: none;
16
20
  }
17
- &:last-of-type{
18
- border-bottom:1px solid $gray-light;
21
+ .title{
22
+ font-weight:bold;
19
23
  }
20
- .uniform-row-container{
21
- overflow:hidden;
22
- display: block;
23
- & > *{
24
- display:block;
25
- padding: 8px 12px;
26
- overflow:hidden;
27
- & > .pad {
28
- display:block;
29
- padding:8px 0;
30
- }
31
- }
24
+ .subtle{
25
+ font-size: 0.9em;
26
+ color: lighten($gray, 20);
27
+ @include text-overflow;
32
28
  }
33
- .uniform-row-secondary{
34
- font-weight:normal;
29
+ img{
30
+ height: auto;
31
+ width: 100%;
35
32
  display:block;
36
- font-size:0.9em;
37
- color:lighten($gray, 30);
38
- display: block;
39
33
  }
40
- .uniform-row-avatar{
41
- vertical-align:top;
42
- text-align:center;
34
+ .avatar{
35
+ align-self: stretch;
36
+ background: darken($gray-light, 10);
43
37
  position:relative;
44
- color:darken($background, 30);
45
- background-color:darken($background, 30);
46
- float:left;
47
38
  img{
48
- min-width:70px;
49
- background-color: $gray;
50
- display: block;
39
+ position:absolute;
40
+ top:0;
41
+ left: 0;
42
+ width: 100%;
43
+ height: 100%;
44
+ object-fit: cover;
51
45
  }
52
- }
53
- @include media($xs){
54
- .uniform-row-container{
55
- & > div > a {
56
- padding-top:0;
57
- padding-bottom:8px;
58
- }
46
+ .fortycon{
47
+ font-size: 100px;
48
+ color: white;
49
+ opacity: 0.7;
59
50
  }
60
- .uniform-row-avatar{
61
- width:33%;
62
- img {
63
- width: 100%;
64
- height: auto;
65
- }
51
+ .avatar-text{
52
+ display:block;
53
+ @include vertical-middle;
54
+ left: 0;
55
+ width: 100%;
56
+ text-align:center;
66
57
  }
67
58
  }
68
- }
69
-
70
- .uniform-row-header{
71
- position:relative;
72
- overflow:visible !important;
73
- line-height:1em;
74
- font-size:0.85em;
75
- padding:3px !important;
76
- font-weight:normal;
77
- border-bottom:2px solid $gray-light;
78
- .sort-label{
79
- text-align:right;
80
- padding:7px 10px;
81
- padding-bottom:3px;
82
- text-transform:uppercase;
83
- color:lighten($gray, 30);
84
- vertical-align:bottom;
85
- white-space:nowrap;
86
- }
87
- .col-label {
88
- font-weight:bold;
89
- text-transform:uppercase;
90
- color:$gray;
91
- }
92
- .fortycon {
93
- margin-top:-2px;
94
- margin-right:2px;
95
- color:darken($background, 20);
96
- font-size:1.2em;
97
- }
98
- .details {
99
- overflow:hidden;
100
- & > div{
101
- padding:0;
102
- & > * {
103
- text-decoration:none;
59
+ @include media($sm){
60
+ .avatar{
61
+ margin-bottom: 0.5em;
62
+ .avatar-container{
63
+ padding-top: 50%;
104
64
  display:block;
105
- padding:7px 6px;
106
- white-space:nowrap;
107
- border-radius:3px;
108
65
  }
109
- & > a:hover {
110
- background:lighten($blue-light, 10);
66
+ }
67
+ .name{
68
+ margin-bottom: 0.5em;
69
+ }
70
+ }
71
+ @include media($md){
72
+ margin: 0;
73
+ margin-bottom: -1px;
74
+ padding: 0;
75
+ & > * {
76
+ padding-top: 0.5em;
77
+ padding-bottom: 0.5em;
78
+ &.no-gutter{
79
+ padding: 0;
111
80
  }
112
81
  }
113
- & > .active {
114
- background:none !important;
82
+ .avatar{
115
83
  .fortycon{
116
- color:black;
84
+ padding: 0;
85
+ font-size: 36px;
117
86
  }
118
- & > * {
119
- color:black;
120
- background:darken(white, 10);
87
+ .avatar-text{
88
+ padding: 0;
121
89
  }
122
90
  }
123
91
  }
@@ -0,0 +1,98 @@
1
+ select.uniformSelect{
2
+ display:none;
3
+ }
4
+
5
+ .uniformSelect-edit{
6
+ @include text-overflow;
7
+ position:relative;
8
+ &:after{
9
+ color:$gray;
10
+ font-size:1.3em;
11
+ content:\25bc;
12
+ @include vertical-middle();
13
+ right:0.3em;
14
+ z-index:0;
15
+ }
16
+ }
17
+
18
+ .uniformSelect-options{
19
+ @include text-overflow;
20
+ position: absolute;
21
+ background: white;
22
+ z-index: 9999;
23
+ box-shadow: 0 0 3px 2px rgba(black, 0.2);
24
+ clip-path: inset(0px -10px -10px -10px);
25
+ button{
26
+ appearance: none;
27
+ outline: none;
28
+ border: none;
29
+ background: none;
30
+ width: 100%;
31
+ padding: 0.5em;
32
+ &:hover{
33
+ background: lighten($blue, 45);
34
+ }
35
+ }
36
+
37
+ .uniformSelect-options-actions{
38
+ border-top: 1px solid $gray-light;
39
+ border-bottom: 1px solid $gray-light;
40
+ background: $background;
41
+ padding: 0.5em;
42
+ }
43
+ .uniformSelect-show-all {
44
+ color: $blue;
45
+ background: none;
46
+ &:hover{
47
+ background: none;
48
+ }
49
+ }
50
+ .uniformSelect-done{
51
+ border-radius: 0.25em;
52
+ border: 1px solid $gray-light;
53
+ background: white;
54
+ }
55
+ }
56
+ .uniformSelect-option{
57
+ position:relative;
58
+ padding-right: 2.5em !important;
59
+ cursor: pointer;
60
+ &.active{
61
+ box-shadow:none;
62
+ color: $green-dark;
63
+ &:after{
64
+ color: $green;
65
+ position: absolute;
66
+ content: \2714;
67
+ top: 0.2em;
68
+ right: 0.2em;
69
+ font-size: 1.5em;
70
+
71
+ }
72
+ }
73
+ }
74
+
75
+ @include media($sm){
76
+ .uniformSelect-options{
77
+ top: 0 !important;
78
+ left: 0 !important;
79
+ min-height: 100vh;
80
+ width: 100%;
81
+ padding: 1em;
82
+ button{
83
+ margin-bottom: 0.5em;
84
+ border: 1px solid lighten($gray, 40);
85
+ &.uniformSelect-done{
86
+ margin-bottom: 0;
87
+ }
88
+ }
89
+ .uniformSelect-options-actions{
90
+ margin: 0 -1em;
91
+ }
92
+ }
93
+ body.uniformModal-hideBody{
94
+ & > *:not(.uniformSelect-options) {
95
+ position: fixed;
96
+ }
97
+ }
98
+ }
@@ -0,0 +1,83 @@
1
+ .table{
2
+ display:table;
3
+ width:100%;
4
+ & > *,
5
+ .row > *{
6
+ display:table-cell;
7
+ float:none;
8
+ &.top{
9
+ vertical-align:top;
10
+ }
11
+ &.middle > *{
12
+ vertical-align:middle;
13
+ }
14
+ }
15
+ .row{
16
+ display:table-row;
17
+ }
18
+
19
+ @include apply-media-sizes('&.break'){
20
+ & > *,
21
+ .row > *{
22
+ display:block;
23
+ float:inherit;
24
+ }
25
+ .row{
26
+ display:block;
27
+ }
28
+ }
29
+ }
30
+
31
+ .uniformTable{
32
+ width:100%;
33
+ .row > *,
34
+ tr td,
35
+ th {
36
+ padding: 0.5em;
37
+ border-bottom: 1px solid $gray-light;
38
+ }
39
+
40
+ .head > *,
41
+ thead th{
42
+ color: lighten($gray, 20);
43
+ border-bottom: 1px solid darken($gray-light, 20) !important;
44
+ }
45
+
46
+ .head.dark > *,
47
+ thead.dark th{
48
+ background: lighten($background, 2);
49
+ }
50
+
51
+ tr.middle > td,
52
+ td.middle,
53
+ &.middle > *,
54
+ .middle{
55
+ vertical-align:middle;
56
+ }
57
+
58
+ tr.top > td,
59
+ td.top,
60
+ &.top > *,
61
+ .top{
62
+ vertical-align:top;
63
+ }
64
+
65
+ &.hover{
66
+ tr:hover td{
67
+ background: lighten($blue, 50);
68
+ }
69
+ }
70
+
71
+ .row:last-of-type,
72
+ tr:last-of-type{
73
+ td, th{
74
+ border-bottom: none;
75
+ }
76
+ }
77
+ &.invert{
78
+ .row > *,
79
+ td, th{
80
+ border-bottom-color: lighten($gray, 10);
81
+ }
82
+ }
83
+ }
@@ -1,32 +1,45 @@
1
- // override for .nav-tab
2
- .uniform-tabs{
3
- border:none;
4
- & > li {
5
- margin-left:10px;
6
- margin-right:10px;
7
- & > a{
8
- border:none;
9
- padding-left:0;
10
- padding-right:0;
11
- border-bottom: 3px solid transparent;
12
- color: lighten($gray, 20);
13
- &:hover{
14
- background:none;
1
+ .uniformTabs{
2
+ border-bottom: 1px solid darken($background, 10);
3
+ white-space: nowrap;
4
+ a{
5
+ display:inline-block;
6
+ margin-bottom: -1px;
7
+ padding: 0.5em 1em;
8
+ border-bottom: 2px solid transparent;
9
+ color: $gray;
10
+ text-decoration: none;
11
+ cursor: pointer;
12
+ &:hover{
13
+ color: $blue;
14
+ .uniformLabel.fill{
15
+ background: $blue ;
15
16
  }
16
17
  }
17
- &:first-of-type{
18
- margin-left:0;
19
- }
20
- &:last-of-type{
21
- margin-right:0;
18
+ &.active{
19
+ border-color: $green-dark;
20
+ color: $green-dark;
21
+ .uniformLabel.fill{
22
+ background: $green-dark ;
23
+ }
22
24
  }
23
- &.active > a,
24
- &.active > a:hover,
25
- &.active > a:focus{
26
- color:$green-dark;
27
- border:none;
28
- background:none;
29
- border-bottom: 3px solid $green;
25
+ }
26
+ &.center{
27
+ text-align:center;
28
+ }
29
+ &.border-fix{
30
+ margin-bottom: -1px;
31
+ }
32
+ &.invert{
33
+ border-bottom-color: rgba($background, 0.4);
34
+ a{
35
+ color: white;
36
+ &:hover{
37
+ color: $blue-light;
38
+ }
39
+ &.active{
40
+ color: $green-light;
41
+ border-color: $green-light;
42
+ }
30
43
  }
31
44
  }
32
45
  }
@@ -1,32 +1,20 @@
1
- .uniform-tile{
2
- border:1px solid darken($background, 15);
3
- border-radius:3px;
4
- margin-top:20px;
5
- margin-bottom:20px;
6
- overflow:hidden;
1
+ .uniformTile{
2
+ // TODO remove extension of row
3
+ @extend .uniformRow;
4
+ margin: 0;
5
+ margin-bottom: -1px;
6
+ margin-right: -1px;
7
+
8
+ padding: 1em !important;
9
+
7
10
  .avatar{
8
- img{
9
- width:100%;
10
- height:auto;
11
- }
11
+ padding: 0;
12
12
  }
13
- a{
14
- color:$gray;
15
- text-decoration:none;
13
+ .avatar-container{
14
+ display:block;
15
+ padding-top: 66%;
16
16
  }
17
- .title{
18
- vertical-align:middle;
19
- font-size:12px;
20
- padding-top:10px;
21
- padding-bottom:10px;
22
- .name{
23
- font-size:16px;
24
- margin-bottom:5px;
25
- }
26
- .company{
27
- font-weight:bold;
28
- }
29
- .category{
30
- }
17
+ &.pad-more{
18
+ padding: 2em !important;
31
19
  }
32
20
  }