fleetio_spark 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/spark/components/_index.scss +19 -18
  3. data/app/assets/stylesheets/spark/components/{button → actions/button}/_button.scss +0 -0
  4. data/app/assets/stylesheets/spark/components/{button → actions/button}/_button_group.scss +0 -0
  5. data/app/assets/stylesheets/spark/components/{button → actions/button}/_disabled.scss +0 -0
  6. data/app/assets/stylesheets/spark/components/{button → actions/button}/_size.scss +0 -0
  7. data/app/assets/stylesheets/spark/components/{button → actions/button}/_theme-base.scss +0 -0
  8. data/app/assets/stylesheets/spark/components/{button → actions/button}/_theme-primary.scss +0 -0
  9. data/app/assets/stylesheets/spark/components/{button → actions/button}/_theme-text.scss +0 -0
  10. data/app/assets/stylesheets/spark/components/{ui → actions}/checklist/_container.scss +0 -0
  11. data/app/assets/stylesheets/spark/components/{ui → actions}/checklist/_item.scss +0 -0
  12. data/app/assets/stylesheets/spark/components/{ui/_checklist_trigger.scss → actions/checklist/_trigger.scss} +0 -0
  13. data/app/assets/stylesheets/spark/components/app/_header.scss +5 -1
  14. data/app/assets/stylesheets/spark/components/app/_sidebar.scss +1 -1
  15. data/app/assets/stylesheets/spark/components/{ui → embed}/_wistia_media.scss +0 -0
  16. data/app/assets/stylesheets/spark/components/{icon → images}/_badge.scss +0 -0
  17. data/app/assets/stylesheets/spark/components/{icon → images}/_icon.scss +0 -0
  18. data/app/assets/stylesheets/spark/components/{ui → images}/_placeholder.scss +0 -0
  19. data/app/assets/stylesheets/spark/{form → components/input}/_base.scss +0 -0
  20. data/app/assets/stylesheets/spark/components/messaging/_banner.scss +55 -13
  21. data/app/assets/stylesheets/spark/components/{ui → messaging}/_toast.scss +0 -0
  22. data/app/assets/stylesheets/spark/components/nav/_item.scss +0 -1
  23. data/app/assets/stylesheets/spark/components/nav/_pills.scss +2 -2
  24. data/app/assets/stylesheets/spark/components/nav/_sidebar.scss +11 -9
  25. data/app/assets/stylesheets/spark/components/nav/_tabs.scss +24 -5
  26. data/app/assets/stylesheets/spark/components/{layout → structure}/_block.scss +13 -5
  27. data/app/assets/stylesheets/spark/components/{ui → structure}/_card.scss +0 -0
  28. data/app/assets/stylesheets/spark/components/{layout → structure}/_grid.scss +0 -0
  29. data/app/assets/stylesheets/spark/components/{ui/_toolbar.scss → structure/_header.scss} +5 -1
  30. data/app/assets/stylesheets/spark/components/{layout → structure}/_media_block.scss +0 -0
  31. data/app/assets/stylesheets/spark/components/structure/_page.scss +36 -0
  32. data/app/assets/stylesheets/spark/components/{ui → structure}/_sticky_panel.scss +0 -0
  33. data/app/assets/stylesheets/spark/components/{ui → structure}/_widget_card.scss +0 -0
  34. data/app/assets/stylesheets/spark/form/_index.scss +0 -2
  35. data/app/components/spark/banner.html.slim +1 -0
  36. data/app/components/spark/{layout/block.html.slim → block.html.slim} +5 -5
  37. data/app/components/spark/block.rb +64 -0
  38. data/app/components/spark/card.rb +1 -1
  39. data/app/components/spark/header.rb +11 -0
  40. data/app/components/spark/{layout/media_block.html.slim → media_block.html.slim} +0 -0
  41. data/app/components/spark/media_block.rb +27 -0
  42. data/app/components/spark/nav/item.html.slim +1 -1
  43. data/app/components/spark/nav/item.rb +3 -1
  44. data/app/components/spark/nav/tabs.rb +3 -1
  45. data/app/components/spark/page.html.slim +13 -0
  46. data/app/components/spark/page.rb +19 -0
  47. data/app/components/spark/toolbar.rb +1 -5
  48. data/lib/fleetio_spark/version.rb +1 -1
  49. data/public/{code-1.0.3.js → code-1.1.0.js} +1 -1
  50. data/public/{code-1.0.3.js.gz → code-1.1.0.js.gz} +0 -0
  51. data/public/{code-1.0.3.js.map → code-1.1.0.js.map} +1 -1
  52. data/public/spark-1.1.0.css +1 -0
  53. data/public/spark-1.1.0.css.gz +0 -0
  54. data/public/{spark-1.0.3.js → spark-1.1.0.js} +1 -1
  55. data/public/{spark-1.0.3.js.gz → spark-1.1.0.js.gz} +0 -0
  56. data/public/{spark-1.0.3.js.map → spark-1.1.0.js.map} +1 -1
  57. metadata +43 -45
  58. data/app/assets/stylesheets/spark/components/layout/_page.scss +0 -54
  59. data/app/assets/stylesheets/spark/components/ui/_header.scss +0 -56
  60. data/app/assets/stylesheets/spark/form/_check-switch.scss +0 -93
  61. data/app/components/spark/layout/block.rb +0 -64
  62. data/app/components/spark/layout/media_block.rb +0 -29
  63. data/app/components/spark/layout/page.html.slim +0 -15
  64. data/app/components/spark/layout/page.rb +0 -37
  65. data/app/components/spark/toolbar.html.slim +0 -7
  66. data/public/spark-1.0.3.css +0 -1
  67. data/public/spark-1.0.3.css.gz +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bf8efe56b161ecc32a965d71f806fcaea0c60cf3b466daac9f941405bea8958
4
- data.tar.gz: 2b3bf1fb0812edfdc763eeede10cd2e4adc82e1786701c90b000d6be5fc641c4
3
+ metadata.gz: 17882711585eab6ebbf07a02fd4a6292efcc06b8d15352c74f37168c110415e5
4
+ data.tar.gz: 317b7979edef37edd39dfcdb98738f8675c7370b54f2ee0bf05ec2df37d87e02
5
5
  SHA512:
6
- metadata.gz: 77f139a999cd1fe3781e948bdf49a2018f82c93c0c189b6694a2a0387942772d574b8c843c4a8c7383a9c7d41b6b31f7d7a55960243ba490e8d6b902693e37d5
7
- data.tar.gz: 6f306ad99f1fdef9ce8577f8d80c21b294480b72f0bcab83d309a83ae36ca3cf857095a4aca2bd62b00e3937b2fcb586e1fee44af358aa4bd8b6d56bbf78c854
6
+ metadata.gz: c05a09bf22140a1761fb2e70743f6df5bfcc955baba8cbdb02988978da6e6e9b3f41dbdbb8ea0b73421cf89365c31848272527aa4b62f53295ef9fac51b13359
7
+ data.tar.gz: 810e1ea536f2b7f767b5a2d2fdcfc1d9f84f78fc0c6b5339b2e8f791bb07339ae0a6160c7dbee59d48e19393e5c743bb72b54bc9c1d1336904d959874eb5a10d
@@ -4,18 +4,27 @@
4
4
  @import "app/modal";
5
5
  @import "app/sidebar/toggle";
6
6
 
7
- @import "button/button";
8
- @import "button/button_group";
7
+ @import "actions/button/button";
8
+ @import "actions/button/button_group";
9
+ @import "actions/checklist/trigger";
10
+ @import "actions/checklist/container";
11
+ @import "actions/checklist/item";
9
12
 
10
- @import "icon/icon";
11
- @import "icon/badge";
13
+ @import "images/icon";
14
+ @import "images/badge";
15
+ @import "images/placeholder";
12
16
 
17
+ @import "input/base";
13
18
  @import "input/switch";
14
19
 
15
- @import "layout/grid";
16
- @import "layout/block";
17
- @import "layout/media_block";
18
- @import "layout/page";
20
+ @import "structure/grid";
21
+ @import "structure/block";
22
+ @import "structure/header";
23
+ @import "structure/media_block";
24
+ @import "structure/page";
25
+ @import "structure/sticky_panel";
26
+ @import "structure/card";
27
+ @import "structure/widget_card";
19
28
 
20
29
  @import "nav/item";
21
30
  @import "nav/tabs";
@@ -30,14 +39,6 @@
30
39
 
31
40
  @import "messaging/trial-notice";
32
41
  @import "messaging/banner";
42
+ @import "messaging/toast";
33
43
 
34
- @import "ui/toast";
35
- @import "ui/toolbar";
36
- @import "ui/sticky_panel";
37
- @import "ui/placeholder";
38
- @import "ui/checklist_trigger";
39
- @import "ui/checklist/container";
40
- @import "ui/checklist/item";
41
- @import "ui/card";
42
- @import "ui/widget_card";
43
- @import "ui/wistia_media";
44
+ @import "embed/wistia_media";
@@ -4,9 +4,13 @@
4
4
  border-bottom: 1px solid $fl-gray-100;
5
5
  background-color: $fl-white;
6
6
  line-height: $base-line-height;
7
- padding: 0 $pad-lg;
8
7
  height: $app-header-height;
9
8
  position: absolute;
9
+ padding: 0 $pad-base;
10
+
11
+ @include at-least($width-base) {
12
+ padding: 0 $pad-lg;
13
+ }
10
14
 
11
15
  // When sidebar is present and visible
12
16
  // header should be the full width minus the sidebar width
@@ -32,7 +32,7 @@
32
32
  .spark-nav-sidebar-header {
33
33
  position: absolute;
34
34
  width: $app-sidebar-width;
35
- z-index: $z-app-sidebar-header;
35
+ z-index: 1;
36
36
  }
37
37
 
38
38
  .spark-nav-sidebar-header {
@@ -15,11 +15,11 @@
15
15
 
16
16
  &-message {
17
17
  margin: 0 .8em;
18
- }
18
+ a {
19
+ color: inherit;
20
+ text-decoration: underline;
21
+ }
19
22
 
20
- a {
21
- color: inherit;
22
- text-decoration: underline;
23
23
  }
24
24
 
25
25
  &.theme-message {
@@ -27,11 +27,60 @@
27
27
  color: #fff;
28
28
  }
29
29
 
30
+ .app-banner-action-item {
31
+ text-decoration: none;
32
+ padding: $pad-sm $pad-base;
33
+ color: inherit;
34
+ white-space: nowrap;
35
+ position: relative;
36
+ z-index: 0;
37
+
38
+ &:before, &:after {
39
+ content: "";
40
+ left: 0;
41
+ top: 0;
42
+ width: 100%;
43
+ height: 100%;
44
+ border-radius: 3px;
45
+ position: absolute;
46
+ z-index: -1;
47
+ }
48
+
49
+ &:before {
50
+ background-color: rgba(#fff, .05);
51
+ top: 1px;
52
+ left: 1px;
53
+ transition: background-color $duration $timing;
54
+ }
55
+
56
+ &:after {
57
+ border: currentColor 1px solid;
58
+ opacity: 0.3;
59
+ transition: opacity $duration $timing;
60
+ }
61
+
62
+ &:hover, &:focus {
63
+ &:after {
64
+ opacity: 0.8;
65
+ }
66
+ }
67
+ }
68
+
30
69
  &.theme-alert {
31
70
  background: $fl-red-25;
32
71
  border-top-color: $fl-red-400;
33
72
  border-bottom-color: $fl-red-50;
34
73
  color: $fl-red-700;
74
+ //justify-content: space-between;
75
+
76
+ .app-banner-action-item {
77
+ &:before {
78
+ background-color: rgba(#fff, .3);
79
+ }
80
+ &:hover:before, &:focus:before {
81
+ background-color: rgba(#fff, .8);
82
+ }
83
+ }
35
84
  }
36
85
 
37
86
  &.theme-admin {
@@ -42,15 +91,8 @@
42
91
  justify-content: space-between;
43
92
 
44
93
  .app-banner-action-item {
45
- text-decoration: none;
46
- padding: $pad-sm $pad-base;
47
- background-color: $fl-yellow-300;
48
- border-radius: 3px;
49
- transition: background-color $duration $timing;
50
- white-space: nowrap;
51
-
52
- &:hover {
53
- background-color: $fl-yellow-400;
94
+ &:before {
95
+ background-color: $fl-yellow-300;
54
96
  }
55
97
  }
56
98
  }
@@ -7,7 +7,6 @@
7
7
  font-size: 14px;
8
8
  font-weight: 500;
9
9
  transition: color $duration-short $timing;
10
- //color: $fl-blue-700;
11
10
 
12
11
  &.active {
13
12
  color: $fl-blue-900;
@@ -33,11 +33,11 @@
33
33
 
34
34
  &.active {
35
35
  color: $fl-white;
36
- background-color: $fl-blue-600;
36
+ background-color: $fl-blue-700;
37
37
 
38
38
  .nav-item-badge {
39
39
  background: $fl-white;
40
- color: $fl-blue-600;
40
+ color: $fl-blue-700;
41
41
  }
42
42
  }
43
43
 
@@ -3,10 +3,9 @@
3
3
  overflow-x: hidden;
4
4
 
5
5
  .nav-toggle {
6
- width: calc(100% + #{2 * $pad-lg});
7
6
  background: $fl-white;
8
- margin: 0 #{-$pad-lg};
9
- padding: $pad-xs $pad-lg;
7
+ width: 100%;
8
+ padding: $pad-xs $pad-base;
10
9
 
11
10
  &-icon {
12
11
  margin-right: -$pad-base;
@@ -19,18 +18,21 @@
19
18
 
20
19
  &-wrapper {
21
20
  @include until($width-base) {
22
- margin: 0 #{-$pad-lg};
23
- padding: 0 $pad-lg;
24
21
  max-height: 0;
25
- transition: max-height ($duration * 1.5) $timing;
22
+ transition-duration: $duration * 1.5;
23
+ transition-timing: $timing;
24
+ transition-properties: max-height padding;
25
+ }
26
26
 
27
- //> *:first-child {
28
- //margin-top: $pad-lg;
29
- //}
27
+ @include at-least($width-base) {
28
+ padding: 0;
30
29
  }
31
30
  }
32
31
 
33
32
  &.nav-active &-wrapper {
33
+ padding-top: $pad-base;
34
+ padding-bottom: $pad-base;
35
+
34
36
  @include until($width-base) {
35
37
  max-height: 100vh;
36
38
  }
@@ -32,10 +32,14 @@
32
32
  .nav-toggle {
33
33
  width: 100%;
34
34
  background: $fl-white;
35
- padding: $pad-xs $pad-lg;
35
+ padding: $pad-xs $pad-base;
36
36
  display: none;
37
37
  margin: -1px 0 0;
38
38
 
39
+ @include at-least($width-base) {
40
+ padding: $pad-xs $pad-lg;
41
+ }
42
+
39
43
  &-icon {
40
44
  margin-right: -$pad-base;
41
45
  }
@@ -91,9 +95,12 @@
91
95
  }
92
96
 
93
97
  .nav-item {
94
- padding: 0 $pad-lg;
98
+ padding: 0 $pad-base;
95
99
  transition: padding $duration cubic-bezier(0.47, 0, 0.745, 0.715);
96
100
  border-bottom: 1px solid $fl-gray-100;
101
+ @include at-least($width-base) {
102
+ padding: 0 $pad-lg;
103
+ }
97
104
  }
98
105
 
99
106
  // Hide all nav elements but the active one.
@@ -127,7 +134,12 @@
127
134
  }
128
135
 
129
136
  .nav-item {
130
- padding: ($pad-base + 1) $pad-lg;
137
+ padding: ($pad-base + 1) $pad-base;
138
+
139
+ @include at-least($width-base) {
140
+ padding: ($pad-base + 1) $pad-lg;
141
+ }
142
+
131
143
  &:hover, &:focus {
132
144
  background-color: $fl-gray-50;
133
145
  }
@@ -147,10 +159,17 @@
147
159
 
148
160
  &.layout-padded:not(.collapse-tabs) {
149
161
  .nav-item-wrapper:first-child {
150
- padding-left: $pad-lg;
162
+ padding-left: $pad-base;
163
+ @include at-least($width-base) {
164
+ padding-left: $pad-lg;
165
+ }
151
166
  }
152
167
  .nav-item-wrapper:last-child {
153
- padding-right: $pad-lg;
168
+ padding-right: $pad-base;
169
+
170
+ @include at-least($width-base) {
171
+ padding-right: $pad-lg;
172
+ }
154
173
  }
155
174
  }
156
175
  }
@@ -1,4 +1,4 @@
1
- .spark-layout-block {
1
+ .spark-block {
2
2
  display: flex;
3
3
  align-items: center;
4
4
  width: 100%;
@@ -7,11 +7,19 @@
7
7
  flex-wrap: wrap;
8
8
  }
9
9
 
10
+ &.layout-padded {
11
+ padding: 8px 8px;
12
+
13
+ @include at-least($width-base) {
14
+ padding: 8px 16px;
15
+ }
16
+ }
17
+
10
18
  @each $label, $size in $gutter-sizes {
11
- &.gutter-#{$label} .spark-layout-block-item {
19
+ &.gutter-#{$label} .spark-block-item {
12
20
  margin: 0 $size;
13
21
  }
14
- &.action-gutter-#{$label} .spark-layout-block-action {
22
+ &.action-gutter-#{$label} .spark-block-action {
15
23
  margin: 0 $size;
16
24
  }
17
25
  }
@@ -23,14 +31,14 @@
23
31
 
24
32
  &-items {
25
33
  flex-grow: 1;
26
- .spark-layout-block-item:first-child {
34
+ .spark-block-item:first-child {
27
35
  margin-left: 0;
28
36
  }
29
37
  }
30
38
 
31
39
  &-actions {
32
40
  margin-left: auto;
33
- .spark-layout-block-action:last-child {
41
+ .spark-block-action:last-child {
34
42
  margin-right: 0;
35
43
  }
36
44
  }
@@ -1,10 +1,14 @@
1
- .spark-toolbar {
1
+ .spark-header {
2
2
  &.is-sticky {
3
3
  padding: $pad-md $pad-lg 1px;
4
4
  background-color: $fl-white;
5
5
  border-bottom: 1px solid $fl-gray-100;
6
6
  box-shadow: 0 2px 6px 0 rgba($fl-gray-900, .08);
7
7
  margin: 0;
8
+
9
+ > * {
10
+ margin-bottom: $pad-md - 1;
11
+ }
8
12
  }
9
13
 
10
14
  > * {
@@ -0,0 +1,36 @@
1
+ .spark-page {
2
+
3
+ &-header {
4
+ width: 100%;
5
+ background: $fl-white;
6
+ border-bottom: 1px solid $fl-gray-100;
7
+ }
8
+
9
+ &-wrapper {
10
+ position: relative;
11
+
12
+ > * {
13
+ padding: $pad-base;
14
+ }
15
+
16
+ @include at-least($width-base) {
17
+ display: flex;
18
+ padding: $pad-base ($pad-base * 2);
19
+ > * {
20
+ padding: $pad-base ($pad-base + $pad-base / 2);
21
+ &:first-child { padding-left: 0; }
22
+ &:last-child { padding-right: 0; }
23
+ }
24
+ }
25
+ }
26
+
27
+ &-main {
28
+ z-index: 1;
29
+ width: 100%;
30
+
31
+ &-header ~ &-content {
32
+ padding-top: $pad-lg;
33
+ border-top: 1px solid $fl-gray-100;
34
+ }
35
+ }
36
+ }