shift-ui-kit 0.0.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/assets/fonts/din_next_light.woff +0 -0
  3. data/assets/fonts/din_next_light.woff2 +0 -0
  4. data/assets/fonts/din_next_light_italic.woff +0 -0
  5. data/assets/fonts/din_next_light_italic.woff2 +0 -0
  6. data/assets/fonts/din_next_medium.woff +0 -0
  7. data/assets/fonts/din_next_medium.woff2 +0 -0
  8. data/assets/fonts/din_next_regular.woff +0 -0
  9. data/assets/fonts/din_next_regular.woff2 +0 -0
  10. data/assets/images/accept-icon.svg +8 -0
  11. data/assets/images/app-loading.svg +25 -0
  12. data/assets/images/checkbox--determinate-checked.svg +4 -0
  13. data/assets/images/checkbox--indeterminate-checked.svg +4 -0
  14. data/assets/images/dropdown-arrow.svg +12 -0
  15. data/assets/images/forgotten-password-icon.svg +12 -0
  16. data/assets/images/global-search-form-icon.svg +11 -0
  17. data/assets/images/icons/close.svg +10 -0
  18. data/assets/images/icons/plus.svg +10 -0
  19. data/assets/images/logo.svg +9 -0
  20. data/assets/images/section-heading-icons/access-keys.svg +6 -0
  21. data/assets/images/section-heading-icons/account-settings.svg +7 -0
  22. data/assets/images/section-heading-icons/action-accept.svg +6 -0
  23. data/assets/images/section-heading-icons/action-archive.svg +10 -0
  24. data/assets/images/section-heading-icons/action-cancel.svg +6 -0
  25. data/assets/images/section-heading-icons/action-create.svg +6 -0
  26. data/assets/images/section-heading-icons/action-delete.svg +6 -0
  27. data/assets/images/section-heading-icons/action-edit.svg +7 -0
  28. data/assets/images/section-heading-icons/action-merchandise.svg +3 -0
  29. data/assets/images/section-heading-icons/assets.svg +8 -0
  30. data/assets/images/section-heading-icons/attributes.svg +12 -0
  31. data/assets/images/section-heading-icons/carts.svg +9 -0
  32. data/assets/images/section-heading-icons/category-trees.svg +7 -0
  33. data/assets/images/section-heading-icons/customer-segments.svg +8 -0
  34. data/assets/images/section-heading-icons/customers.svg +9 -0
  35. data/assets/images/section-heading-icons/environment-configurations.svg +7 -0
  36. data/assets/images/section-heading-icons/environments.svg +8 -0
  37. data/assets/images/section-heading-icons/menus.svg +8 -0
  38. data/assets/images/section-heading-icons/payment-gateways.svg +7 -0
  39. data/assets/images/section-heading-icons/products.svg +7 -0
  40. data/assets/images/section-heading-icons/promotions.svg +10 -0
  41. data/assets/images/section-heading-icons/retail-stores.svg +12 -0
  42. data/assets/images/section-heading-icons/roles.svg +9 -0
  43. data/assets/images/section-heading-icons/search.svg +7 -0
  44. data/assets/images/section-heading-icons/shipping-methods.svg +10 -0
  45. data/assets/images/section-heading-icons/static-pages.svg +7 -0
  46. data/assets/images/section-heading-icons/tax-codes.svg +11 -0
  47. data/assets/images/section-heading-icons/taxonomies.svg +7 -0
  48. data/assets/images/section-heading-icons/template-definitions.svg +6 -0
  49. data/assets/images/section-heading-icons/user-profile.svg +8 -0
  50. data/assets/images/section-heading-icons/users.svg +7 -0
  51. data/assets/images/section-heading-icons/variants.svg +7 -0
  52. data/assets/itcss/1-settings/_breakpoints.scss +1 -0
  53. data/assets/itcss/1-settings/_colors.scss +16 -0
  54. data/assets/itcss/1-settings/_index.scss +9 -0
  55. data/assets/itcss/1-settings/_spacing.scss +2 -0
  56. data/assets/itcss/2-tools/_color.scss +17 -0
  57. data/assets/itcss/2-tools/_index.scss +1 -0
  58. data/assets/itcss/3-generic/_animations.scss +4 -0
  59. data/assets/itcss/3-generic/_clearfix.scss +26 -0
  60. data/assets/itcss/3-generic/_fonts.scss +31 -0
  61. data/assets/itcss/3-generic/_index.scss +4 -0
  62. data/assets/itcss/3-generic/_reset.scss +40 -0
  63. data/assets/itcss/4-elements/_index.scss +45 -0
  64. data/assets/itcss/5-objects/_index.scss +5 -0
  65. data/assets/itcss/5-objects/_o-breadcrumb.scss +11 -0
  66. data/assets/itcss/5-objects/_o-btn.scss +3 -0
  67. data/assets/itcss/5-objects/_o-flash-message.scss +17 -0
  68. data/assets/itcss/5-objects/_o-grid.scss +33 -0
  69. data/assets/itcss/5-objects/_o-password-strength-meter.scss +43 -0
  70. data/assets/itcss/6-components/_c-action-bar.scss +22 -0
  71. data/assets/itcss/6-components/_c-app-loading.scss +30 -0
  72. data/assets/itcss/6-components/_c-app.scss +3 -0
  73. data/assets/itcss/6-components/_c-btn-default.scss +62 -0
  74. data/assets/itcss/6-components/_c-checkbox.scss +38 -0
  75. data/assets/itcss/6-components/_c-data-table.scss +535 -0
  76. data/assets/itcss/6-components/_c-default-breadcrumb.scss +16 -0
  77. data/assets/itcss/6-components/_c-display-layers.scss +3 -0
  78. data/assets/itcss/6-components/_c-dropdown-group.scss +3 -0
  79. data/assets/itcss/6-components/_c-dropdown.scss +183 -0
  80. data/assets/itcss/6-components/_c-examples-nav.scss +21 -0
  81. data/assets/itcss/6-components/_c-flash-message.scss +40 -0
  82. data/assets/itcss/6-components/_c-form-field.scss +40 -0
  83. data/assets/itcss/6-components/_c-form-message.scss +15 -0
  84. data/assets/itcss/6-components/_c-loader.scss +43 -0
  85. data/assets/itcss/6-components/_c-main-view-wrapper.scss +9 -0
  86. data/assets/itcss/6-components/_c-main-view.scss +6 -0
  87. data/assets/itcss/6-components/_c-nav-bar.scss +38 -0
  88. data/assets/itcss/6-components/_c-pagination.scss +60 -0
  89. data/assets/itcss/6-components/_c-panel.scss +17 -0
  90. data/assets/itcss/6-components/_c-popup-inject-point.scss +16 -0
  91. data/assets/itcss/6-components/_c-popup.scss +3 -0
  92. data/assets/itcss/6-components/_c-section-heading.scss +58 -0
  93. data/assets/itcss/6-components/_c-select-all-cell.scss +4 -0
  94. data/assets/itcss/6-components/_c-select-row-cell.scss +4 -0
  95. data/assets/itcss/6-components/_c-tab-set.scss +50 -0
  96. data/assets/itcss/6-components/_c-title-bar.scss +29 -0
  97. data/assets/itcss/6-components/_index.scss +28 -0
  98. data/assets/itcss/7-themes/_index.scss +0 -0
  99. data/assets/itcss/8-trumps/_index.scss +15 -0
  100. data/assets/itcss/app.scss +59 -0
  101. data/lib/shift_ui_kit.rb +9 -0
  102. metadata +173 -0
@@ -0,0 +1,16 @@
1
+ .c-default-breadcrumb {
2
+ color: #999;
3
+
4
+ &__separator::after {
5
+ content: "»";
6
+ color: inherit;
7
+ }
8
+
9
+ &__item {
10
+ color: inherit;
11
+
12
+ &:hover, &:active {
13
+ color: #333;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ .c-display-layers {
2
+ height: 100%;
3
+ }
@@ -0,0 +1,3 @@
1
+ .c-dropdown-group {
2
+ position: relative;
3
+ }
@@ -0,0 +1,183 @@
1
+ .c-dropdown {
2
+ display: inline-block;
3
+ position: relative;
4
+
5
+ &__label {
6
+ height: inherit;
7
+ padding: 8px 40px 8px 10px;
8
+ border: 0;
9
+ outline: 0;
10
+ position: relative;
11
+ cursor: pointer;
12
+ background-color: $color-info;
13
+ color: white;
14
+ transition: background-color 0.2s ease;
15
+
16
+ &::after {
17
+ width: 14px;
18
+ display: block;
19
+ content: " ";
20
+ position: absolute;
21
+ top: 0;
22
+ bottom: 0;
23
+ right: 15px;
24
+ background: url("/assets/images/dropdown-arrow.svg") center center no-repeat;
25
+ background-size: 14px auto;
26
+ opacity: 0.3;
27
+ transition: opacity 0.2s ease;
28
+ }
29
+
30
+ &:hover, &:focus {
31
+ background-color: lighten($color-info, 10%);
32
+ &::after {
33
+ opacity: 1;
34
+ }
35
+ }
36
+ }
37
+
38
+ &__options {
39
+ display: none;
40
+ position: absolute;
41
+ top: 100%;
42
+ left: 0;
43
+ z-index: 2;
44
+ background: #fff;
45
+ box-shadow: rgba(#000, 0.3) 0 1px 1px;
46
+ min-width: 100%;
47
+
48
+ &__option {
49
+ padding: 10px;
50
+ display: block;
51
+ cursor: pointer;
52
+ background: #fff;
53
+ color: #666;
54
+ transition: background-color 0.2s ease, color 0.2s ease;
55
+ font-weight: bold;
56
+ white-space: nowrap;
57
+ & + & {
58
+ border-top: 1px solid #eee;
59
+ }
60
+ &:hover, &:focus {
61
+ background-color: #eee;
62
+ color: #000;
63
+ }
64
+ }
65
+ }
66
+
67
+ &--open &__label {
68
+
69
+ &::after {
70
+ opacity: 1;
71
+ }
72
+ }
73
+
74
+ &--open &__options {
75
+ display: block;
76
+ }
77
+ }
78
+
79
+
80
+ // .c-dropdown {
81
+ // position: static;
82
+ // flex-grow: 1;
83
+ //
84
+ // @media (min-width: 450px) {
85
+ // position: relative;
86
+ // }
87
+ //
88
+ // &__label {
89
+ // width: 100%;
90
+ // height: inherit;
91
+ // padding-left: 10px;
92
+ // padding-right: 30px;
93
+ // border: 0;
94
+ // outline: 0;
95
+ // position: relative;
96
+ // line-height: 50px;
97
+ // cursor: pointer;
98
+ // background: transparent;
99
+ // transition: background-color 0.2s ease;
100
+ //
101
+ // &::after {
102
+ // width: 14px;
103
+ // display: block;
104
+ // content: " ";
105
+ // position: absolute;
106
+ // top: 0;
107
+ // bottom: 0;
108
+ // right: 10px;
109
+ // background: url("/assets/images/dropdown-arrow.svg") center center no-repeat;
110
+ // background-size: 14px auto;
111
+ // opacity: 0.3;
112
+ // transition: opacity 0.2s ease;
113
+ // }
114
+ //
115
+ // @media (min-width: 450px) {
116
+ // padding-left: 15px;
117
+ // padding-right: 40px;
118
+ // &::after { right: 15px }
119
+ // }
120
+ //
121
+ // &:hover, &:focus {
122
+ // background-color: rgba(#000, 0.1);
123
+ // &::after {
124
+ // opacity: 1;
125
+ // }
126
+ // }
127
+ // }
128
+ //
129
+ // &__options {
130
+ // display: none;
131
+ // position: absolute;
132
+ // top: 100%;
133
+ // left: 0;
134
+ // right: 0;
135
+ // z-index: 2;
136
+ // background: #fff;
137
+ // box-shadow: rgba(#000, 0.3) 0 1px 1px;
138
+ //
139
+ // @media (min-width: 450px) {
140
+ // width: 50vw;
141
+ // }
142
+ //
143
+ // @media (min-width: 640px) {
144
+ // width: 200px;
145
+ // right: auto;
146
+ // }
147
+ //
148
+ // &__option {
149
+ // padding: 10px;
150
+ // display: block;
151
+ // cursor: pointer;
152
+ // background: #fff;
153
+ // color: #666;
154
+ // transition: background-color 0.2s ease, color 0.2s ease;
155
+ // font-weight: bold;
156
+ // & + & {
157
+ // border-top: 1px solid #eee;
158
+ // }
159
+ // &:hover, &:focus {
160
+ // background-color: #eee;
161
+ // color: #000;
162
+ // }
163
+ // }
164
+ // }
165
+ //
166
+ // @media (min-width: 450px) {
167
+ // &:last-child &__options {
168
+ // left: auto;
169
+ // right: 0;
170
+ // }
171
+ // }
172
+ //
173
+ // &--open &__label {
174
+ // background-color: rgba(#000, 0.1);
175
+ // &::after {
176
+ // opacity: 1;
177
+ // }
178
+ // }
179
+ //
180
+ // &--open &__options {
181
+ // display: block;
182
+ // }
183
+ // }
@@ -0,0 +1,21 @@
1
+ .c-examples-nav {
2
+ background: #444;
3
+ width: 200px;
4
+ position: absolute;
5
+ top: 0;
6
+ left: 0;
7
+ bottom: 0;
8
+
9
+ &__item {
10
+ &__link {
11
+ display: block;
12
+ color: #FFF;
13
+ line-height: 30px;
14
+ padding: 10px;
15
+ }
16
+
17
+ &--active {
18
+ background: #555;
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,40 @@
1
+ .c-flash-message {
2
+ margin-bottom: 20px;
3
+ padding: 15px;
4
+
5
+ &--success {
6
+ $color: $color-accept;
7
+ color: mix(#000, $color);
8
+ background: desaturate(mix(#fff, $color), 10%);
9
+ }
10
+
11
+ &--info {
12
+ $color: $color-info;
13
+ color: mix(#000, $color);
14
+ background: desaturate(mix(#fff, $color), 10%);
15
+ }
16
+
17
+ &--warning {
18
+ $color: $color-warning;
19
+ color: mix(#000, $color);
20
+ background: desaturate(mix(#fff, $color), 10%);
21
+ }
22
+
23
+ &--error {
24
+ $color: $color-unsafe;
25
+ font-weight: bold;
26
+ color: mix(#000, $color);
27
+ background: mix(#fff, $color);
28
+ }
29
+
30
+ &--fixed {
31
+ box-shadow: rgba(#000, 0.3) 0 1px 1px;
32
+ }
33
+
34
+ &__dismiss_button {
35
+ background-color: rgba(#000, 0.1);
36
+ &:hover, &:active {
37
+ background-color: rgba(#000, 0.2);
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
1
+ .c-form-field {
2
+ background: #fff;
3
+ display: block;
4
+
5
+ & + & {
6
+ margin-top: 1px;
7
+ @media (min-width: 640px) {
8
+ margin-top: 0;
9
+ margin-left: 1px;
10
+ }
11
+ }
12
+
13
+ &__label, &__validation_message {
14
+ font-size: 13px;
15
+ padding-top: 15px;
16
+ padding-left: 15px;
17
+ padding-right: 15px;
18
+ display: inline-block;
19
+ font-weight: bold;
20
+ text-transform: uppercase;
21
+ color: #666;
22
+ }
23
+
24
+ &__validation_message {
25
+ margin-left: -25px;
26
+ color: #ccc;
27
+ &--success { color: #21AD34 }
28
+ &--failure { color: #FC6D6D }
29
+ }
30
+
31
+ &__input {
32
+ width: 100%;
33
+ padding: 5px 15px 10px;
34
+ border: 0;
35
+ outline: 0;
36
+ display: block;
37
+ line-height: 1.5;
38
+ }
39
+
40
+ }
@@ -0,0 +1,15 @@
1
+ .c-form-message {
2
+ padding: 15px;
3
+
4
+ &--info {
5
+ color: #D1B147;
6
+ }
7
+
8
+ &--success {
9
+ color: #21AD34;
10
+ }
11
+
12
+ &--failure {
13
+ color: #AD2121;
14
+ }
15
+ }
@@ -0,0 +1,43 @@
1
+ .c-loader {
2
+ position: absolute;
3
+ top: 0;
4
+ left: 0;
5
+ right: 0;
6
+ bottom: 0;
7
+ background: #000;
8
+ opacity: 0.1;
9
+ z-index: 1;
10
+
11
+ &__inner {
12
+ position: absolute;
13
+ width: 50px;
14
+ height: 50px;
15
+ top: calc(50% - 25px);
16
+ left: calc(50% - 25px);
17
+ background: url("/assets/images/app-loading.svg") center center no-repeat;
18
+ background-size: contain;
19
+
20
+ will-change: transform;
21
+ transform: rotate(0deg);
22
+
23
+ animation: spin 3s linear infinite;
24
+ }
25
+ }
26
+
27
+ .c-loader--enter {
28
+ opacity: 0.01;
29
+ }
30
+
31
+ .c-loader--enter.c-loader--enter-active {
32
+ opacity: 0.1;
33
+ transition: opacity 100ms ease-in;
34
+ }
35
+
36
+ .c-loader--leave {
37
+ opacity: 0.1;
38
+ }
39
+
40
+ .c-loader--leave.c-loader--leave-active {
41
+ opacity: 0.01;
42
+ transition: opacity 100ms ease-in;
43
+ }
@@ -0,0 +1,9 @@
1
+ .c-main-view-wrapper {
2
+ height: auto;
3
+ position: absolute;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ overflow: auto;
9
+ }
@@ -0,0 +1,6 @@
1
+ .c-main-view {
2
+ height: auto;
3
+ position: relative;
4
+ margin: 20px;
5
+ min-height: calc(100% - 40px);
6
+ }
@@ -0,0 +1,38 @@
1
+ .c-nav-bar {
2
+ width: 100%;
3
+ min-height: 50px;
4
+ background: $color-brand;
5
+ color: #fff;
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: stretch;
9
+ flex-wrap: wrap;
10
+
11
+ &__logo {
12
+ width: 50px;
13
+ flex-grow: 0;
14
+ flex-shrink: 0;
15
+ background: url("/assets/images/logo.svg") center center no-repeat;
16
+ background-size: 60% auto;
17
+ opacity: 0.6;
18
+ }
19
+
20
+ &__heading {
21
+ width: auto;
22
+ min-height: inherit;
23
+ position: relative;
24
+ flex-grow: 100;
25
+ flex-basis: 250px;
26
+ line-height: 50px;
27
+ padding-right: 15px;
28
+ }
29
+
30
+ &__text {
31
+ width: auto;
32
+ min-height: inherit;
33
+ line-height: 50px;
34
+ padding-left: 15px;
35
+ padding-right: 15px;
36
+ color: mix(#fff, $color-brand);
37
+ }
38
+ }
@@ -0,0 +1,60 @@
1
+ .c-pagination {
2
+ margin: 0;
3
+ padding: 0;
4
+ display: inline-flex;
5
+ justify-content: space-between;
6
+
7
+ &__item {
8
+ $border-radius: 3px;
9
+ $section-margin: 10px;
10
+ padding: 8px 10px;
11
+ color: #000;
12
+
13
+ &--next, &--prev, &--page {
14
+ background: #fff;
15
+ border: 1px solid #ccc;
16
+ }
17
+
18
+ &--next, &--prev { border-radius: $border-radius }
19
+ &--next { margin-left: $section-margin }
20
+ &--prev { margin-right: $section-margin }
21
+
22
+ &--page {
23
+ margin-left: -1px;
24
+ min-width: 40px;
25
+ text-align: center;
26
+ }
27
+
28
+ &--start {
29
+ border-top-left-radius: $border-radius;
30
+ border-bottom-left-radius: $border-radius;
31
+ margin-left: 0;
32
+ }
33
+
34
+ &--end {
35
+ border-top-right-radius: $border-radius;
36
+ border-bottom-right-radius: $border-radius;
37
+ }
38
+
39
+ &--current {
40
+ $background-color: color(info, $tone: muted);
41
+ border-color: darken($background-color, 10%);
42
+ background-color: $background-color;
43
+ }
44
+
45
+ &--current + &--page {
46
+ margin-left: 0;
47
+ border-left: 0;
48
+ }
49
+
50
+ &--separator {
51
+ color: #999;
52
+ }
53
+
54
+ &--disabled {
55
+ background-color: transparent;
56
+ color: #ccc;
57
+ cursor: default;
58
+ }
59
+ }
60
+ }