@festo-ui/web-essentials 5.0.0-dev.119 → 5.0.0-dev.120

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.
@@ -3,11 +3,14 @@
3
3
  width: 240px;
4
4
  display: flex;
5
5
  flex-direction: column;
6
- border-left: 1px solid $border;
7
6
  .fwe-side-menu-item {
7
+ border-left: 1px solid $border;
8
+ line-height: 1.2;
9
+ display: flex;
10
+ align-items: center;
11
+ height: 42px;
8
12
  cursor: pointer;
9
13
  margin-left: -1px;
10
- line-height: 42px;
11
14
  color: $text;
12
15
  padding: 0px 8px 0px 16px;
13
16
  position: relative;
@@ -15,11 +18,11 @@
15
18
  position: absolute;
16
19
  content: "";
17
20
  top: 0px;
18
- left: 0px;
21
+ left: -1px;
19
22
  bottom: 0px;
20
23
  width: 0px;
21
24
  background: $hero;
22
- transition: width 0.2s;
25
+ transition: width 0.2s, height 0.2s;
23
26
  }
24
27
  &.fwe-active {
25
28
  color: $hero;
@@ -32,23 +35,34 @@
32
35
  @media (max-width: 900px) {
33
36
  width: 190px;
34
37
  }
35
- }
36
38
 
37
- .fwe-side-menu-layout {
38
- margin-top: 64px;
39
- display: flex;
40
- align-items: flex-start;
41
- .fwe-content-container {
42
- max-width: 600px;
43
- flex-shrink: 1;
44
- flex-grow: 1;
45
- @media (max-width: 750px) {
46
- max-width: unset;
47
- margin-top: 32px;
39
+ &--horizontal {
40
+ @include custom-scrollbar;
41
+ display: flex;
42
+ flex-direction: row;
43
+ width: 100%;
44
+ overflow-y: hidden;
45
+ overflow-x: auto;
46
+
47
+ .fwe-side-menu-item {
48
+ border: unset;
49
+ height: 48px;
50
+ padding: 0px 16px;
51
+ margin: 0px;
52
+ white-space: nowrap;
53
+ &::before {
54
+ top: unset;
55
+ right: 16px;
56
+ left: 16px;
57
+ width: unset;
58
+ height: 0px;
59
+ }
60
+ &.fwe-active {
61
+ &::before {
62
+ width: unset;
63
+ height: 4px;
64
+ }
65
+ }
48
66
  }
49
67
  }
50
- @media (max-width: 750px) {
51
- flex-direction: column;
52
- margin-top: 32px;
53
- }
54
68
  }
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  @import "../variables";
8
+ @import "../mixins";
8
9
 
9
10
  @import "footer";
10
11
  @import "teaser";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Festo UI - Web Essentials v5.0.0-dev.119 (https://storybook.festo.design/)
2
+ * Festo UI - Web Essentials v5.0.0-dev.120 (https://storybook.festo.design/)
3
3
  * Copyright 2022 Festo SE & Co. KG
4
4
  * Licensed under Apache-2.0
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/web-essentials",
3
- "version": "5.0.0-dev.119",
3
+ "version": "5.0.0-dev.120",
4
4
  "description": "CSS framework and utils to build FESTO web applications",
5
5
  "keywords": [
6
6
  "css",
package/scss/_mixins.scss CHANGED
@@ -24,22 +24,25 @@
24
24
  @mixin custom-scrollbar {
25
25
  scrollbar-width: thin;
26
26
  scrollbar-color: $control-scrollbar $gray-100;
27
- &::-webkit-scrollbar {
28
- width: 14px;
29
- }
30
27
 
31
- &::-webkit-scrollbar-track {
32
- background: transparent;
33
- }
28
+ @media (pointer: fine) {
29
+ &::-webkit-scrollbar {
30
+ width: 14px;
31
+ }
34
32
 
35
- &::-webkit-scrollbar-thumb {
36
- overflow: visible;
37
- background-color: $control-scrollbar;
38
- // use $gray-100 with opacity 0 for effect of margins of scrollbar
39
- border: 3px solid rgba(242, 243, 245, 0);
40
- // hide the background with background clip
41
- -webkit-background-clip: padding-box;
42
- background-clip: padding-box;
43
- border-radius: 8px;
33
+ &::-webkit-scrollbar-track {
34
+ background: transparent;
35
+ }
36
+
37
+ &::-webkit-scrollbar-thumb {
38
+ overflow: visible;
39
+ background-color: $control-scrollbar;
40
+ // use $gray-100 with opacity 0 for effect of margins of scrollbar
41
+ border: 3px solid rgba(242, 243, 245, 0);
42
+ // hide the background with background clip
43
+ -webkit-background-clip: padding-box;
44
+ background-clip: padding-box;
45
+ border-radius: 8px;
46
+ }
44
47
  }
45
48
  }
package/scss/_scroll.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  // styles for native browser scrollbar
2
2
  .fwe-scrollbar {
3
- @include custom-scrollbar();
3
+ @include custom-scrollbar;
4
4
  }
5
5
 
6
6
  // styles for js scrollbar (simplebar.js)
package/scss/_tree.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  .fwe-tree {
2
- @include custom-scrollbar();
2
+ @include custom-scrollbar;
3
3
  position: relative;
4
4
 
5
5
  &-node {
@@ -3,11 +3,14 @@
3
3
  width: 240px;
4
4
  display: flex;
5
5
  flex-direction: column;
6
- border-left: 1px solid $border;
7
6
  .fwe-side-menu-item {
7
+ border-left: 1px solid $border;
8
+ line-height: 1.2;
9
+ display: flex;
10
+ align-items: center;
11
+ height: 42px;
8
12
  cursor: pointer;
9
13
  margin-left: -1px;
10
- line-height: 42px;
11
14
  color: $text;
12
15
  padding: 0px 8px 0px 16px;
13
16
  position: relative;
@@ -15,11 +18,11 @@
15
18
  position: absolute;
16
19
  content: "";
17
20
  top: 0px;
18
- left: 0px;
21
+ left: -1px;
19
22
  bottom: 0px;
20
23
  width: 0px;
21
24
  background: $hero;
22
- transition: width 0.2s;
25
+ transition: width 0.2s, height 0.2s;
23
26
  }
24
27
  &.fwe-active {
25
28
  color: $hero;
@@ -32,23 +35,34 @@
32
35
  @media (max-width: 900px) {
33
36
  width: 190px;
34
37
  }
35
- }
36
38
 
37
- .fwe-side-menu-layout {
38
- margin-top: 64px;
39
- display: flex;
40
- align-items: flex-start;
41
- .fwe-content-container {
42
- max-width: 600px;
43
- flex-shrink: 1;
44
- flex-grow: 1;
45
- @media (max-width: 750px) {
46
- max-width: unset;
47
- margin-top: 32px;
39
+ &--horizontal {
40
+ @include custom-scrollbar;
41
+ display: flex;
42
+ flex-direction: row;
43
+ width: 100%;
44
+ overflow-y: hidden;
45
+ overflow-x: auto;
46
+
47
+ .fwe-side-menu-item {
48
+ border: unset;
49
+ height: 48px;
50
+ padding: 0px 16px;
51
+ margin: 0px;
52
+ white-space: nowrap;
53
+ &::before {
54
+ top: unset;
55
+ right: 16px;
56
+ left: 16px;
57
+ width: unset;
58
+ height: 0px;
59
+ }
60
+ &.fwe-active {
61
+ &::before {
62
+ width: unset;
63
+ height: 4px;
64
+ }
65
+ }
48
66
  }
49
67
  }
50
- @media (max-width: 750px) {
51
- flex-direction: column;
52
- margin-top: 32px;
53
- }
54
68
  }
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  @import "../variables";
8
+ @import "../mixins";
8
9
 
9
10
  @import "footer";
10
11
  @import "teaser";