blue-react 8.1.1 → 8.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue React v8.1.1 (https://bruegmann.github.io/blue-react)
2
+ * Blue React v8.1.4 (https://bruegmann.github.io/blue-react)
3
3
  * Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-react/blob/master/LICENSE).
4
4
  */
5
5
 
@@ -11,3 +11,6 @@ $custom-checkbox-indicator-border-radius: $border-radius-sm !default;
11
11
 
12
12
  $link-decoration: none !default;
13
13
  $link-hover-decoration: underline !default;
14
+
15
+ $font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
16
+ Cantarell, "Helvetica Neue", sans-serif !default;
@@ -1,5 +1,7 @@
1
1
  :root {
2
+ --app-bg: #{$app-bg};
2
3
  --sidebar-bg: #{$sidebar-bg};
4
+ --header-bg: #{$header-bg};
3
5
  --action-link-bg-color: var(--theme);
4
6
  }
5
7
 
@@ -50,7 +52,7 @@ body {
50
52
  }
51
53
 
52
54
  body {
53
- background: var(--sidebar-bg, $theme);
55
+ background: var(--app-bg, #{$app-bg});
54
56
 
55
57
  .blue-wrapper {
56
58
  position: fixed;
@@ -171,4 +173,5 @@ label {
171
173
  transform: translateX(-100%);
172
174
  transition: transform 0.4s;
173
175
  background: var(--sidebar-bg);
176
+ color: $sidebar-color;
174
177
  }
@@ -62,9 +62,9 @@
62
62
  z-index: 3;
63
63
  }
64
64
 
65
- .blue-sidebar-toggler,
66
65
  .blue-header {
67
66
  @include header-bg();
67
+ color: $header-color;
68
68
  }
69
69
 
70
70
  // .blue-layout:not(.wrapper-in) .blue-header {
@@ -73,7 +73,6 @@
73
73
 
74
74
  .blue-header {
75
75
  height: $normal-size;
76
- color: $header-color;
77
76
  position: fixed;
78
77
  top: 0;
79
78
  left: $normal-size;
@@ -192,19 +191,19 @@
192
191
  position: absolute !important;
193
192
  margin-top: 0 !important;
194
193
  left: 0;
195
- background-color: $bla-button-bg-normal !important;
196
- border-color: transparent !important;
197
194
  justify-content: center;
198
195
 
196
+ &,
199
197
  &:hover,
200
198
  &:focus {
201
199
  color: $sidebar-color;
202
- background-color: $bla-button-bg-hover;
200
+ background-color: $sidebar-bg;
203
201
  border-color: transparent;
204
202
  }
205
203
  }
206
204
 
207
205
  .blue-sidebar {
206
+ @include custom-scrollbar($sidebar-color, $sidebar-bg, 0.3rem);
208
207
  overflow-y: auto;
209
208
  }
210
209
 
@@ -242,7 +241,7 @@
242
241
  z-index: 1;
243
242
 
244
243
  a {
245
- color: $header-color;
244
+ color: inherit;
246
245
 
247
246
  &:focus {
248
247
  text-decoration: none;
@@ -257,8 +256,7 @@
257
256
  }
258
257
 
259
258
  .blue-menu-item {
260
- transition: width 0.5s, background-color 0.3s, color 0.15s, box-shadow 0.3s,
261
- opacity 0.3s !important;
259
+ transition: width 0.5s, background-color 0.3s, color 0.15s, box-shadow 0.3s, opacity 0.3s !important;
262
260
  padding: 0.5rem 0.75rem;
263
261
  border: none;
264
262
  margin-top: 0.125rem;
@@ -305,16 +303,24 @@
305
303
  animation: blue-menu-item-dropdown 0.15s;
306
304
  position: relative;
307
305
 
308
- --sidebar-bg: #{$sidebar-deep-bg};
309
-
310
306
  &::before {
311
307
  content: "";
312
308
  position: absolute;
313
- top: 0.125rem; right: 0.125rem; bottom: 0.125rem; left: 0.125rem;
314
- background-color: var(--sidebar-bg);
309
+ top: 0.125rem;
310
+ right: 0.125rem;
311
+ bottom: 0.125rem;
312
+ left: 0.125rem;
315
313
  border-radius: $border-radius;
316
314
  box-shadow: $box-shadow;
317
315
  }
316
+ }
317
+
318
+ .blue-sidebar .blue-menu-item-dropdown {
319
+ --sidebar-bg: #{$sidebar-deep-bg};
320
+
321
+ &::before {
322
+ background-color: var(--sidebar-bg);
323
+ }
318
324
 
319
325
  .blue-menu-item-dropdown {
320
326
  --sidebar-bg: #{darken($sidebar-deep-bg, 4%)};
@@ -337,6 +343,34 @@
337
343
  }
338
344
  }
339
345
 
346
+ .blue-header .blue-menu-item-dropdown {
347
+ --sidebar-bg: #{$header-deep-bg};
348
+
349
+ &::before {
350
+ background-color: var(--header-bg);
351
+ }
352
+
353
+ .blue-menu-item-dropdown {
354
+ --sidebar-bg: #{darken($header-deep-bg, 4%)};
355
+
356
+ .blue-menu-item-dropdown {
357
+ --sidebar-bg: #{darken($header-deep-bg, 8%)};
358
+
359
+ .blue-menu-item-dropdown {
360
+ --sidebar-bg: #{darken($header-deep-bg, 12%)};
361
+
362
+ .blue-menu-item-dropdown {
363
+ --sidebar-bg: #{darken($header-deep-bg, 16%)};
364
+
365
+ .blue-menu-item-dropdown {
366
+ --sidebar-bg: #{darken($header-deep-bg, 20%)};
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ }
373
+
340
374
  .blue-menu-item-dropdown-caret.caret {
341
375
  display: none;
342
376
  position: absolute;
@@ -344,4 +378,4 @@
344
378
  top: 50%;
345
379
  transform: translateY(-50%);
346
380
  align-items: center;
347
- }
381
+ }
@@ -1,6 +1,7 @@
1
1
  .blue-search {
2
2
  display: flex;
3
3
  align-items: center;
4
+ border: $input-border-width solid $input-border-color;
4
5
  border-radius: $input-border-radius;
5
6
 
6
7
  &.blue-search-body {
@@ -1,7 +1,5 @@
1
- $primary-color: #007bff !default;
2
-
3
1
  /* Bootstrap */
4
- $primary: $primary-color !default;
2
+ $primary: #007bff !default;
5
3
  $success: #4bd763 !default;
6
4
  $info: rgb(62, 158, 187) !default;
7
5
  $warning: #f0ad4e !default;
@@ -44,7 +42,7 @@ $actions-height: 7.5rem !default;
44
42
  $bla-button-bg-normal: rgba(0, 0, 0, 0.1) !default;
45
43
 
46
44
  // Background color of menu toggle button on hover state.
47
- $bla-button-bg-hover: rgba(white, 0.15) !default;
45
+ $bla-button-bg-hover: rgba(white, 0.25) !default;
48
46
 
49
47
  // Font size for sidebar menu items.
50
48
  $bla-btn-font-size: 1em !default;
@@ -73,18 +71,21 @@ $sidebar-color: white !default;
73
71
  // Color of indicator for active sidebar item.
74
72
  $sidebar-indicator-color: $sidebar-color !default;
75
73
 
76
- // Background color, when hovering sidebar menu item.
77
- $sidebar-control-bg-hover: $bla-button-bg-hover !default;
78
-
79
74
  // Background of search control in sidebar.
80
75
  $sidebar-search-bg: $input-bg !default;
81
76
 
77
+ // Background of the body element
78
+ $app-bg: $sidebar-bg !default;
79
+
82
80
  // Text color of header elements
83
81
  $header-color: #fff !default;
84
82
 
85
83
  // Background color of Header
86
84
  $header-bg: $theme !default;
87
85
 
86
+ // Background of header action menu dropdown menus
87
+ $header-deep-bg: darken($header-bg, 4%) !default;
88
+
88
89
  // Background color, when hovering action menu item.
89
90
  $actions-control-bg-hover: $bla-button-bg-hover !default;
90
91
 
@@ -64,7 +64,7 @@
64
64
 
65
65
  @mixin blue-sidebar($width) {
66
66
  .blue-menu-item {
67
- color: $sidebar-color;
67
+ color: inherit;
68
68
  width: $normal-size;
69
69
  height: $normal-size;
70
70
  padding: 0.25rem 0.75rem;
@@ -78,7 +78,7 @@
78
78
  content: "";
79
79
  position: absolute;
80
80
  top: 0.25rem; right: 0.25rem; bottom: 0.25rem; left: 0.25rem;
81
- background-color: $sidebar-control-bg-hover;
81
+ background-color: currentColor;
82
82
  border-radius: $border-radius;
83
83
  transform: scale(0.9);
84
84
  opacity: 0;
@@ -87,13 +87,12 @@
87
87
 
88
88
  &:hover,
89
89
  &:active {
90
- color: $sidebar-color;
91
- // background-color: $sidebar-control-bg-hover !important;
90
+ color: inherit;
92
91
  border-color: transparent;
93
92
 
94
93
  &::before {
95
94
  transform: scale(1);
96
- opacity: 1;
95
+ opacity: 0.25;
97
96
  }
98
97
  }
99
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-react",
3
- "version": "8.1.1",
3
+ "version": "8.1.4",
4
4
  "description": "Blue React Components",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "main": "index.js",