fleetio_spark 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f1709f4671237a8d93589f2b4f092d69350bf4f9efd6f78718902280c3ebad7
4
- data.tar.gz: bc2a350f41e659d2aee5b6b32fa56b52cc71ebf52fee6ea62d8fb2eac7160249
3
+ metadata.gz: b6932bdc5acd849bd634509c012c9227894fab54da7ef6923e7ad1cdaa18be69
4
+ data.tar.gz: 44f7b8c0e6235858fafcd7f90fbaaf4283c05326bd72b34543ba91fb1e162e4d
5
5
  SHA512:
6
- metadata.gz: bd166d415392bb10e3a17175e5df7fe49ecda85c45275f332de273b7f67c8b0c9746dc0aef5c4d2469cd9aae08331b184470de0eef96badac2b097e15e292578
7
- data.tar.gz: 8f29f658e0523a1535f1f1820c3911e94b5b8123257dd3c56f7fe87a148453aa3e60d26fc8fae0827034ed39e86125b94a2bedd13bbb6cd1888fc923f9e3f847
6
+ metadata.gz: 322407626af4f3da9e61f22931e1ee133a2618de04153293cf6d6213832e524c2193aab51d3684a6db7ea829b0e064897da8986c45a53edf734bc349c7926029
7
+ data.tar.gz: 15425c5ae57892ee391a31b717e796587e15737205eda3ecd383655fc39eaccb5773f703a7e7f161f85ae37b97748fc4b941daf3fb599b6b7ee74020202346cc
@@ -7,8 +7,13 @@
7
7
  top: 0;
8
8
  left: 0;
9
9
  height: 100%;
10
+ font-size: $base-size;
11
+ line-height: $base-line-height;
10
12
  @include font-smoothing;
11
13
 
14
+ @include at-least( $width-md ) {
15
+ z-index: 1050;
16
+ }
12
17
 
13
18
  .nav-wrapper {
14
19
  position: relative;
@@ -26,11 +31,10 @@
26
31
  bottom: 0;
27
32
  margin: 0;
28
33
  padding: 0 0 ($app-nav-header-height + $pad-lg);
29
-
30
34
  }
31
35
 
32
- .nav-tree-item-icon {
33
- flex-shrink: 0;
36
+ .nav-tree-item-icon {
37
+ flex-shrink: 0;
34
38
  width: 18px;
35
39
  height: 18px;
36
40
 
@@ -74,7 +78,7 @@
74
78
  color: rgba($fl-white, 0.5);
75
79
  }
76
80
 
77
- &.active {
81
+ &.item-active {
78
82
  color: $fl-white;
79
83
  background-color: darken($primary-sidebar-bg, 3%);
80
84
 
@@ -109,9 +113,7 @@
109
113
  }
110
114
  }
111
115
 
112
- .active { color: $fl-white; }
113
-
114
- .new,.active {
116
+ .item-new,.item-active {
115
117
  &:before {
116
118
  content: "";
117
119
  position: absolute;
@@ -125,10 +127,7 @@
125
127
  }
126
128
  }
127
129
 
128
- .new:before {
129
- background-color: $fl-yellow-600;
130
- }
131
- .new {
130
+ .item-new {
132
131
  .nav-tree-item-content:after {
133
132
  content: " New";
134
133
  font-size: 85%;
@@ -136,10 +135,18 @@
136
135
  color: $fl-yellow-600;
137
136
  margin-left: $pad-xs;
138
137
  }
138
+
139
+ &:before {
140
+ background-color: $fl-yellow-600;
141
+ }
139
142
  }
140
143
 
141
- .active:before {
142
- background-color: $fl-blue-500;
144
+ .item-active {
145
+ color: $fl-white;
146
+
147
+ &:before {
148
+ background-color: $fl-blue-500;
149
+ }
143
150
  }
144
151
  }
145
152
 
@@ -169,13 +176,13 @@
169
176
  padding: 0 20px;
170
177
  text-decoration: none;
171
178
  transition: background-color $duration $timing;
172
- background-color: darken($primary-sidebar-bg, 3%);
179
+ background-color: darken($primary-sidebar-bg, 6%);
173
180
  line-height: 1.4;
174
181
 
175
182
  &:hover,
176
183
  &:focus {
177
184
  color: $fl-white;
178
- background-color: darken($primary-sidebar-bg, 6%);
185
+ background-color: darken($primary-sidebar-bg, 8%);
179
186
 
180
187
  .dropdown-icon {
181
188
  color: inherit
@@ -195,7 +202,7 @@
195
202
  margin-right: auto;
196
203
  line-height: 1.5;
197
204
  padding-right: $pad-base;
198
-
205
+
199
206
  &, * {
200
207
  white-space: nowrap;
201
208
  overflow: hidden;
@@ -234,7 +241,7 @@
234
241
  margin-top: -$pad-sm;
235
242
  margin-left: $pad-lg;
236
243
  padding: $pad-md $pad-base;
237
-
244
+
238
245
  .divider {
239
246
  margin: $pad-base;
240
247
 
@@ -254,6 +261,14 @@
254
261
  height: 40px;
255
262
  }
256
263
 
264
+ .nav-group {
265
+ margin: $pad-base 0;
266
+
267
+ .nav-header {
268
+ padding: $pad-sm $pad-base;
269
+ }
270
+ }
271
+
257
272
  > li {
258
273
  > a,
259
274
  > label {
@@ -11,11 +11,17 @@
11
11
  top: 0;
12
12
  right: 0;
13
13
  left: 0;
14
+ font-size: $base-size;
15
+ line-height: $base-line-height;
14
16
 
15
17
  @include at-least( $width-sm ) {
16
18
  padding: 0 $pad-xl;
17
19
  }
18
20
 
21
+ @include at-least( $width-md ) {
22
+ left: $primary-sidebar-width;
23
+ }
24
+
19
25
  .sidebar-nav-toggle {
20
26
  @include circular-button(32px);
21
27
  flex-shrink: 0;
@@ -151,4 +157,28 @@
151
157
  }
152
158
  }
153
159
  }
160
+
161
+ .user-dropdown {
162
+ .user-name {
163
+ padding: 5px $pad-base 6px;
164
+ }
165
+
166
+ .user-menu-btn {
167
+ .user-avatar {
168
+ width: 100%;
169
+ max-width: none;
170
+ vertical-align: middle;
171
+ border-radius: 50%;
172
+ width: 32px;
173
+ height: 32px;
174
+ }
175
+ }
176
+
177
+ .dropdown-menu {
178
+ .user-avatar {
179
+ width: 40px;
180
+ height: 40px;
181
+ }
182
+ }
183
+ }
154
184
  }
@@ -7,22 +7,17 @@
7
7
  main {
8
8
  min-height: 100vh;
9
9
  }
10
- }
11
10
 
12
- .app-layout {
13
11
  @include at-least( $width-md ) {
14
12
  margin-left: $primary-sidebar-width;
13
+ }
14
+ }
15
15
 
16
- .app-nav-header {
17
- left: $primary-sidebar-width;
18
- }
19
- .sidebar-nav { z-index: 1050; }
20
-
21
- .hide-sidebar {
22
- .app-layout { margin-left: 0; }
23
- .app-nav-header { left: 0; }
24
- .sidebar-nav { z-index: -1; }
25
- }
16
+ .hide-sidebar {
17
+ @include at-least( $width-md ) {
18
+ .app-layout { margin-left: 0; }
19
+ .app-nav-header { left: 0; }
20
+ .sidebar-nav { z-index: -1; }
26
21
  }
27
22
  }
28
23
 
@@ -1,5 +1,3 @@
1
1
  body {
2
2
  font-family: $base-font;
3
- font-size: $base-size;
4
- line-height: $base-line-height;
5
3
  }
@@ -55,6 +55,7 @@ module Spark
55
55
 
56
56
  def item( content=nil, url=nil, options=nil, &block )
57
57
  content, url, options = parse_item_args( content, url, options, &block)
58
+ return '' if options.delete('if') == false || options.delete('unless') == true
58
59
 
59
60
  if url
60
61
  content_tag( config[:item_tag], role: 'none', class: config[:base_class] + "-item-wrapper" ) do
@@ -44,8 +44,10 @@ module Spark
44
44
  def item_tree( name, options={}, &block )
45
45
  content, url, options = parse_item_args( "#", options, &block)
46
46
 
47
+ return '' if options.delete('if') == false || options.delete('unless') == true
48
+
47
49
  node = Spark::Helpers.dasherize( name.strip.downcase ).gsub('-','_')
48
- active = !!(options.delete( 'active' ) || content.match(/nav-item-active/))
50
+ active = !!(options.delete( 'active' ) || content.match(/item-active/))
49
51
 
50
52
  options.merge!({
51
53
  'role' => 'treeitem',
@@ -54,7 +56,11 @@ module Spark
54
56
  })
55
57
 
56
58
  name, options = set_content( name, options )
57
- options = add_class( options, config[:base_class] + "-item-wrapper" )
59
+
60
+ classes = [config[:base_class] + "-item-wrapper"]
61
+ classes.push( 'tree-active' ) if !!( options.delete( 'active' ) || content.match(/item-active/))
62
+
63
+ options = add_class( options, classes )
58
64
 
59
65
  content_tag( config[:item_tag], options ) do
60
66
  concat link_to( "#", class: config[:base_class] + '-item' ){
@@ -126,8 +132,8 @@ module Spark
126
132
  active = is_active?( options.delete( 'active' ) )
127
133
 
128
134
  classes = []
129
- classes.push( 'new' ) if new
130
- classes.push( 'active' ) if active
135
+ classes.push( 'item-new' ) if new
136
+ classes.push( 'item-active' ) if active
131
137
  options = add_class( options, classes )
132
138
 
133
139
 
@@ -140,8 +146,7 @@ module Spark
140
146
  content = capture( &block )
141
147
 
142
148
  classes = []
143
- classes.push( 'new' ) if is_new?( options.delete( 'new' ) ) || content.match(/nav-item-new/)
144
- classes.push( 'active' ) if !!( options.delete( 'active' ) || content.match(/nav-item-active/))
149
+ classes.push( 'tree-new' ) if is_new?( options.delete( 'new' ) ) || content.match(/item-new/)
145
150
 
146
151
  options = add_class( options, classes )
147
152
 
@@ -1,3 +1,3 @@
1
1
  module FleetioSpark
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -33,19 +33,16 @@ svg {
33
33
  position: relative; }
34
34
  .app-layout main {
35
35
  min-height: 100vh; }
36
-
37
36
  @media all and (min-width: 1000px) {
38
37
  .app-layout {
39
- margin-left: 250px; }
40
- .app-layout .app-nav-header {
41
- left: 250px; }
42
- .app-layout .sidebar-nav {
43
- z-index: 1050; }
44
- .app-layout .hide-sidebar .app-layout {
38
+ margin-left: 250px; } }
39
+
40
+ @media all and (min-width: 1000px) {
41
+ .hide-sidebar .app-layout {
45
42
  margin-left: 0; }
46
- .app-layout .hide-sidebar .app-nav-header {
43
+ .hide-sidebar .app-nav-header {
47
44
  left: 0; }
48
- .app-layout .hide-sidebar .sidebar-nav {
45
+ .hide-sidebar .sidebar-nav {
49
46
  z-index: -1; } }
50
47
 
51
48
  .app-container {
@@ -308,9 +305,7 @@ body {
308
305
  -webkit-transform: perspective(1px) translate3d(0, 0, 0);
309
306
  transform: perspective(1px) translate3d(0, 0, 0); } }
310
307
  body {
311
- font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
312
- font-size: 14px;
313
- line-height: 1.5; }
308
+ font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; }
314
309
 
315
310
  .tick-input-label [type=checkbox], .tick-input-label [type=radio] {
316
311
  position: absolute;
@@ -714,8 +709,13 @@ input:checked + .check-switch-panel {
714
709
  top: 0;
715
710
  left: 0;
716
711
  height: 100%;
712
+ font-size: 14px;
713
+ line-height: 1.5;
717
714
  -webkit-font-smoothing: antialiased;
718
715
  -moz-osx-font-smoothing: grayscale; }
716
+ @media all and (min-width: 1000px) {
717
+ .sidebar-nav {
718
+ z-index: 1050; } }
719
719
  .sidebar-nav .nav-wrapper {
720
720
  position: relative;
721
721
  width: auto;
@@ -772,10 +772,10 @@ input:checked + .check-switch-panel {
772
772
  -webkit-transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
773
773
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
774
774
  color: rgba(255, 255, 255, 0.5); }
775
- .sidebar-nav .nav-tree-item.active {
775
+ .sidebar-nav .nav-tree-item.item-active {
776
776
  color: #FFFFFF;
777
777
  background-color: #003d6b; }
778
- .sidebar-nav .nav-tree-item.active + .nav-tree-group {
778
+ .sidebar-nav .nav-tree-item.item-active + .nav-tree-group {
779
779
  background-color: #003d6b; }
780
780
  .sidebar-nav .nav-tree-item-content {
781
781
  width: 100%;
@@ -794,9 +794,7 @@ input:checked + .check-switch-panel {
794
794
  .sidebar-nav .nav-tree-group .nav-tree-item:hover, .sidebar-nav .nav-tree-group .nav-tree-item:focus {
795
795
  color: #FFFFFF;
796
796
  background-color: transparent; }
797
- .sidebar-nav .nav-tree-group .active {
798
- color: #FFFFFF; }
799
- .sidebar-nav .nav-tree-group .new:before, .sidebar-nav .nav-tree-group .active:before {
797
+ .sidebar-nav .nav-tree-group .item-new:before, .sidebar-nav .nav-tree-group .item-active:before {
800
798
  content: "";
801
799
  position: absolute;
802
800
  display: block;
@@ -806,15 +804,17 @@ input:checked + .check-switch-panel {
806
804
  width: 6px;
807
805
  height: 6px;
808
806
  border-radius: 50%; }
809
- .sidebar-nav .nav-tree-group .new:before {
810
- background-color: #F2AA2A; }
811
- .sidebar-nav .nav-tree-group .new .nav-tree-item-content:after {
807
+ .sidebar-nav .nav-tree-group .item-new .nav-tree-item-content:after {
812
808
  content: " New";
813
809
  font-size: 85%;
814
810
  letter-spacing: .02em;
815
811
  color: #F2AA2A;
816
812
  margin-left: 2px; }
817
- .sidebar-nav .nav-tree-group .active:before {
813
+ .sidebar-nav .nav-tree-group .item-new:before {
814
+ background-color: #F2AA2A; }
815
+ .sidebar-nav .nav-tree-group .item-active {
816
+ color: #FFFFFF; }
817
+ .sidebar-nav .nav-tree-group .item-active:before {
818
818
  background-color: #0091E6; }
819
819
  .sidebar-nav .triggered .nav-tree-group {
820
820
  -webkit-transition-property: max-height, opacity, padding;
@@ -846,11 +846,11 @@ input:checked + .check-switch-panel {
846
846
  text-decoration: none;
847
847
  -webkit-transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
848
848
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
849
- background-color: #003d6b;
849
+ background-color: #00345b;
850
850
  line-height: 1.4; }
851
851
  .sidebar-nav-header > a:hover, .sidebar-nav-header > a:focus {
852
852
  color: #FFFFFF;
853
- background-color: #00345b; }
853
+ background-color: #002f51; }
854
854
  .sidebar-nav-header > a:hover .dropdown-icon, .sidebar-nav-header > a:focus .dropdown-icon {
855
855
  color: inherit; }
856
856
  .sidebar-nav-header .dropdown-icon {
@@ -909,6 +909,10 @@ input:checked + .check-switch-panel {
909
909
  .sidebar-nav-header .dropdown-menu .user-avatar {
910
910
  width: 40px;
911
911
  height: 40px; }
912
+ .sidebar-nav-header .dropdown-menu .nav-group {
913
+ margin: 8px 0; }
914
+ .sidebar-nav-header .dropdown-menu .nav-group .nav-header {
915
+ padding: 4px 8px; }
912
916
  .sidebar-nav-header .dropdown-menu > li > a, .sidebar-nav-header .dropdown-menu > li > label {
913
917
  font-size: 14px;
914
918
  border-radius: 3px;
@@ -986,10 +990,15 @@ input:checked + .check-switch-panel {
986
990
  z-index: 1040;
987
991
  top: 0;
988
992
  right: 0;
989
- left: 0; }
993
+ left: 0;
994
+ font-size: 14px;
995
+ line-height: 1.5; }
990
996
  @media all and (min-width: 600px) {
991
997
  .app-nav-header {
992
998
  padding: 0 24px; } }
999
+ @media all and (min-width: 1000px) {
1000
+ .app-nav-header {
1001
+ left: 250px; } }
993
1002
  .app-nav-header .sidebar-nav-toggle {
994
1003
  display: -webkit-box;
995
1004
  display: -ms-flexbox;
@@ -1114,6 +1123,18 @@ input:checked + .check-switch-panel {
1114
1123
  color: inherit;
1115
1124
  font-size: 10px;
1116
1125
  margin-right: 2px; }
1126
+ .app-nav-actions .user-dropdown .user-name {
1127
+ padding: 5px 8px 6px; }
1128
+ .app-nav-actions .user-dropdown .user-menu-btn .user-avatar {
1129
+ width: 100%;
1130
+ max-width: none;
1131
+ vertical-align: middle;
1132
+ border-radius: 50%;
1133
+ width: 32px;
1134
+ height: 32px; }
1135
+ .app-nav-actions .user-dropdown .dropdown-menu .user-avatar {
1136
+ width: 40px;
1137
+ height: 40px; }
1117
1138
 
1118
1139
  .app-admin-header {
1119
1140
  display: -webkit-box;
Binary file
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fleetio_spark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.1
33
+ version: 1.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.1
40
+ version: 1.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: esvg
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -180,10 +180,10 @@ files:
180
180
  - lib/fleetio_spark.rb
181
181
  - lib/fleetio_spark/helper.rb
182
182
  - lib/fleetio_spark/version.rb
183
- - public/spark-0.1.0.css
184
- - public/spark-0.1.0.css.gz
185
- - public/spark-0.1.0.js
186
- - public/spark-0.1.0.js.gz
183
+ - public/spark-0.1.1.css
184
+ - public/spark-0.1.1.css.gz
185
+ - public/spark-0.1.1.js
186
+ - public/spark-0.1.1.js.gz
187
187
  homepage:
188
188
  licenses:
189
189
  - MIT
Binary file