@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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.
Files changed (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -0,0 +1,97 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
2
+
3
+ // Typography OS-regular
4
+ $family-primary: 'Poppins Read', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
5
+ $family-secondary: 'Poppins Speak', 'Poppins', 'Arial Black', 'Arial Bold', serif !default;
6
+ $family-code: monospace !default;
7
+ $render-mode: optimizeLegibility !default;
8
+
9
+ $font-ratio: 1 !default;
10
+ $font-convert-to-px: false !default;
11
+
12
+ $weight-extrathin: 400 !default;
13
+ $weight-thin: 400 !default;
14
+ $weight-light: 400 !default;
15
+ $weight-normal: 400 !default;
16
+ $weight-medium: 500 !default;
17
+ $weight-semibold: 600 !default;
18
+ $weight-bold: 600 !default;
19
+ $weight-extrabold: 600 !default;
20
+ $weight-black: 600 !default;
21
+
22
+ $text-8: 8px !default;
23
+ $text-9: 9px !default;
24
+ $text-10: 10px !default;
25
+ $text-11: 11px !default;
26
+ $text-12: 12px !default;
27
+ $text-13: 13px !default;
28
+ $text-14: 14px !default;
29
+ $text-15: 15px !default;
30
+ $text-16: 16px !default;
31
+ $text-17: 17px !default;
32
+ $text-18: 18px !default;
33
+ $text-19: 19px !default;
34
+ $text-20: 20px !default;
35
+ $text-22: 22px !default;
36
+ $text-24: 24px !default;
37
+ $text-26: 26px !default;
38
+ $text-27: 27px !default;
39
+ $text-28: 28px !default;
40
+ $text-29: 29px !default;
41
+ $text-32: 32px !default;
42
+ $text-34: 34px !default;
43
+ $text-35: 35px !default;
44
+ $text-36: 36px !default;
45
+ $text-38: 38px !default;
46
+ $text-39: 39px !default;
47
+ $text-40: 40px !default;
48
+ $text-42: 42px !default;
49
+ $text-44: 44px !default;
50
+ $text-46: 46px !default;
51
+ $text-48: 48px !default;
52
+ $text-50: 50px !default;
53
+ $text-54: 54px !default;
54
+ $text-56: 56px !default;
55
+ $text-58: 58px !default;
56
+ $text-60: 60px !default;
57
+ $text-64: 64px !default;
58
+ $text-80: 80px !default;
59
+
60
+ $size-1: $text-32;
61
+ $size-2: $text-28;
62
+ $size-3: $text-24;
63
+ $size-4: $text-20;
64
+ $size-5: $text-18;
65
+ $size-6: $text-14;
66
+ $size-7: $text-12;
67
+ $size-8: $text-11;
68
+ $size-1-desktop: $text-48;
69
+ $size-2-desktop: $text-38;
70
+ $size-3-desktop: $text-28;
71
+ $size-4-desktop: $text-24;
72
+ $size-5-desktop: $text-18;
73
+ $size-6-desktop: $text-14;
74
+ $size-7-desktop: $text-12;
75
+ $size-8-desktop: $text-11;
76
+
77
+
78
+ $sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 $size-8;
79
+
80
+ $size-small: $text-13 !default;
81
+ $size-normal: $text-16 !default;
82
+ $size-medium: $text-16 !default;
83
+ $size-large: $text-24 !default;
84
+
85
+ /* Real Text level ! */
86
+ $text-levels: (
87
+ ($text-16, $text-20, $text-16),
88
+ ($text-14, $text-18, $text-16),
89
+ ($text-12, $text-15, $text-16),
90
+ ($text-10, $text-12, $text-16)
91
+ );
92
+ $text-levels-mobile: (
93
+ ($text-16, $text-20, $text-8),
94
+ ($text-14, $text-18, $text-8),
95
+ ($text-12, $text-15, $text-8),
96
+ ($text-10, $text-12, $text-8)
97
+ );
@@ -0,0 +1,6 @@
1
+ @import "animation";
2
+ @import "color";
3
+ @import "font";
4
+ @import "responsiveness";
5
+ @import "shadow";
6
+ @import "zindex";
@@ -0,0 +1,7 @@
1
+ // The container horizontal gap, which acts as the offset for breakpoints
2
+ $gap: 24px !default;
3
+
4
+ $tablet: 768px !default;
5
+ $desktop: 984px + 2 * $gap !default;
6
+ $widescreen: 1192px + 2 * $gap !default;
7
+ $fullhd: 1340px + 2 * $gap !default;
@@ -0,0 +1,3 @@
1
+ $shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
2
+ $focus-shadow: 0 1px 3px 0 rgba(69, 69, 69, 0.15),
3
+ 0 2px 20px -3px rgba(69, 69, 69, 0.3);
@@ -0,0 +1,14 @@
1
+ $zindex: (
2
+ subzero: -1,
3
+ void: 0,
4
+ tiny: 1,
5
+ small: 10,
6
+ medium: 100,
7
+ large: 1000,
8
+ dropdown: 5000,
9
+ sticky: 6000,
10
+ fixed: 7000,
11
+ modal: 9999,
12
+ popover: 9000,
13
+ tooltip: 9999,
14
+ );
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta.9",
3
+ "version": "0.0.2-alpha-prompt",
4
4
  "author": "Bouygues Telecom",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/BouyguesTelecom/trilogy",
8
+ "directory": "packages/styles"
9
+ },
5
10
  "license": "UNLICENSED",
6
11
  "files": [
7
12
  "framework/src",
@@ -16,8 +21,8 @@
16
21
  "create:autolayout": "node scripts/dist/autolayout.cjs",
17
22
  "create:spacing": "node scripts/dist/spacing.cjs",
18
23
  "prebuild": "npm run copy:icons",
19
- "build": "vite --config vite.config.js build",
20
- "watch:css": "vite --config vite.config.js watch",
24
+ "build": "npm run build:autolayout && npm run create:autolayout && vite --config vite.config.js build",
25
+ "watch:css": "vite --config vite.config.js build -- --watch",
21
26
  "copy:icons": "mkdir -p ./dist/default/assets/icons && cp -R ../assets/lib/icons/all ./dist/default/assets/icons/."
22
27
  }
23
28
  }
@@ -1,30 +0,0 @@
1
- @charset "utf-8";
2
- @import '../utilities/spacing';
3
-
4
- @import 'disclaimer';
5
- @import 'divider';
6
- @import 'breadcrumb';
7
- @import 'switch';
8
- @import 'card';
9
- @import 'dropdown';
10
- @import 'level';
11
- @import 'menu';
12
- @import 'modal';
13
- @import 'pagination';
14
- @import 'popover';
15
- @import 'product-tour';
16
- @import 'price';
17
- @import 'tabs';
18
- @import 'accordion';
19
- @import 'countdown';
20
- @import 'timeline';
21
- @import 'slices';
22
- @import 'stepper';
23
- @import 'slider';
24
- @import 'plus-symbol';
25
- @import 'otp';
26
- @import 'segmented-control';
27
- @import 'progress-radial';
28
- @import 'range';
29
- @import 'scroll-view';
30
- @import 'fab';
@@ -1,38 +0,0 @@
1
- body:not(.is-tight) {
2
- .box {
3
- margin-top: 16px;
4
- }
5
- .box:not(:first-child) + * {
6
- margin-top: 16px;
7
- }
8
- * + .box {
9
- margin-top: 8px;
10
- }
11
- .text {
12
- margin-top: 8px;
13
- }
14
- .card {
15
- margin-top: 16px;
16
- }
17
- .button {
18
- margin-top: 16px;
19
- }
20
- .accordions {
21
- margin-top: 16px;
22
- }
23
- .alert {
24
- margin-top: 16px;
25
- }
26
- .field {
27
- margin-top: 8px;
28
- }
29
- .chips-list {
30
- margin-top: 16px;
31
- }
32
- .tags {
33
- margin-top: 16px;
34
- }
35
- .chips-list {
36
- margin-top: 16px;
37
- }
38
- }
@@ -1,84 +0,0 @@
1
- .disclaimer.accordions {
2
- .accordion {
3
- .disclaimer-header {
4
- margin-left: 0;
5
- justify-content: flex-start;
6
-
7
- .toggle.button {
8
- max-height: 20px;
9
- max-width: 20px;
10
- min-height: 20px;
11
- min-width: 20px;
12
- height: 20px;
13
- width: 20px;
14
- margin: 0 10px 0 0;
15
- top: -1px;
16
-
17
- &.is-bordered {
18
- min-height: 32px;
19
- min-width: 32px;
20
- }
21
- }
22
-
23
- .title {
24
- margin: 0 0 0 15px;
25
- }
26
- }
27
-
28
- .disclaimer-content {
29
- padding-left: 20px;
30
- margin-left: $spacing-6;
31
- position: relative;
32
- color: getColor('font');
33
-
34
- .disclaimer-marker {
35
- margin-left: 30px;
36
- }
37
-
38
- .disclaimer-item {
39
- margin-left: 20px;
40
-
41
- .heading {
42
- font-weight: $weight-normal;
43
- }
44
-
45
- a {
46
- font-weight: $weight-semibold;
47
- text-decoration: underline;
48
- }
49
-
50
- p {
51
- &:not(.heading) {
52
- margin-bottom: 0;
53
- }
54
- }
55
- }
56
-
57
- &::before {
58
- content: "";
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
- background-color: getColor('font');
63
- display: block;
64
- width: 0.1em;
65
- height: 100%;
66
- }
67
- }
68
-
69
- &:hover:not(.is-disabled) {
70
- border-color: getColor('alternate');
71
- }
72
-
73
- &.is-active {
74
- color: getColor('alternate');
75
- }
76
- /* @todo : deprecated ? remove ? add doc ? */
77
- .heading {
78
- font-size: $text-13;
79
- color: getColor('grey');
80
- margin-bottom: 0.75em;
81
- text-transform: inherit;
82
- }
83
- }
84
- }
@@ -1,120 +0,0 @@
1
- .level {
2
- @include block;
3
-
4
- align-items: center;
5
- justify-content: space-between;
6
-
7
- code {
8
- border-radius: $radius;
9
- }
10
-
11
- img {
12
- display: inline-block;
13
- vertical-align: top;
14
- }
15
-
16
- // Modifiers
17
- &.is-mobile {
18
- display: flex;
19
-
20
- .level-left,
21
- .level-right {
22
- display: flex;
23
- }
24
-
25
- .level-left + .level-right {
26
- margin-top: 0;
27
- }
28
-
29
- .level-item {
30
- margin-right: 7.4px;
31
-
32
- &:not(:last-child) {
33
- margin-bottom: 0;
34
- }
35
-
36
- &:not(.is-narrow) {
37
- flex-grow: 1;
38
- }
39
- }
40
- }
41
-
42
- // Responsiveness
43
- @include tablet {
44
- display: flex;
45
-
46
- & > .level-item {
47
- &:not(.is-narrow) {
48
- flex-grow: 1;
49
- }
50
- }
51
- }
52
- }
53
-
54
- .level-item {
55
- align-items: center;
56
- display: flex;
57
- flex-basis: auto;
58
- flex-grow: 0;
59
- flex-shrink: 0;
60
- justify-content: center;
61
-
62
- .title,
63
- .subtitle {
64
- margin-bottom: 0;
65
- }
66
-
67
- // Responsiveness
68
- @include mobile {
69
- &:not(:last-child) {
70
- margin-bottom: 7.5px;
71
- }
72
- }
73
- }
74
-
75
- .level-left,
76
- .level-right {
77
- flex-basis: auto;
78
- flex-grow: 0;
79
- flex-shrink: 0;
80
-
81
- .level-item {
82
- // Modifiers
83
- &.is-flexible {
84
- flex-grow: 1;
85
- }
86
-
87
- // Responsiveness
88
- @include tablet {
89
- &:not(:last-child) {
90
- margin-right: 7.5px;
91
- }
92
- }
93
- }
94
- }
95
-
96
- .level-left {
97
- align-items: center;
98
- justify-content: flex-start;
99
-
100
- // Responsiveness
101
- @include mobile {
102
- & + .level-right {
103
- margin-top: 15px;
104
- }
105
- }
106
-
107
- @include tablet {
108
- display: flex;
109
- }
110
- }
111
-
112
- .level-right {
113
- align-items: center;
114
- justify-content: flex-end;
115
-
116
- // Responsiveness
117
- @include tablet {
118
- display: flex;
119
- }
120
- }
@@ -1,64 +0,0 @@
1
- .media {
2
- align-items: flex-start;
3
- display: flex;
4
- text-align: left;
5
-
6
- .content:not(:last-child) {
7
- margin-bottom: 7.5px;
8
- }
9
-
10
- .media {
11
- border-top: 1px solid getColor('grey-lighter');
12
- display: flex;
13
- padding-top: 7.5px;
14
-
15
- .content:not(:last-child),
16
- .control:not(:last-child) {
17
- margin-bottom: 5px;
18
- }
19
-
20
- .media {
21
- padding-top: 5px;
22
-
23
- & + .media {
24
- margin-top: 5px;
25
- }
26
- }
27
- }
28
-
29
- & + .media {
30
- border-top: 1px solid getColor('grey-lighter');
31
- margin-top: 10px;
32
- padding-top: 10px;
33
- }
34
-
35
- // Sizes
36
- &.is-large {
37
- & + .media {
38
- margin-top: 15px;
39
- padding-top: 15px;
40
- }
41
- }
42
- }
43
-
44
- .media-left,
45
- .media-right {
46
- flex-basis: auto;
47
- flex-grow: 0;
48
- flex-shrink: 0;
49
- }
50
-
51
- .media-left {
52
- margin-right: 10px;
53
- }
54
-
55
- .media-right {
56
- margin-left: 10px;
57
- }
58
-
59
- .media-content {
60
- flex-basis: auto;
61
- flex-grow: 1;
62
- flex-shrink: 1;
63
- text-align: left;
64
- }
@@ -1,213 +0,0 @@
1
- @use "sass:math";
2
-
3
- $menu-top: 60px;
4
- $menu-top-desktop: 80px;
5
-
6
- $menu-item-height: 3.125em;
7
- $menu-item-line-height: math.div($menu-item-height, 2);
8
- $menu-dropdown-item-height: 2em;
9
-
10
- .menu {
11
- font-size: $text-14;
12
-
13
- &.is-small {
14
- font-size: $size-small;
15
- }
16
-
17
- &.is-large {
18
- font-size: $size-large;
19
- }
20
-
21
- &.is-fixed {
22
- position: fixed;
23
- max-width: 374px;
24
- }
25
-
26
- li {
27
- border-bottom: 1px solid getColor('grey-lighter');
28
-
29
- &:last-child {
30
- border-bottom: none;
31
- }
32
- }
33
-
34
- .navbar.navbar-header .navbar-menu & {
35
- top: $menu-top;
36
-
37
- @include desktop {
38
- top: $menu-top-desktop;
39
- }
40
- }
41
-
42
- }
43
-
44
- .menu-title {
45
- padding-left: 10px;
46
- }
47
-
48
- .menu-list {
49
- line-height: 1.25;
50
- padding: 10px 0;
51
- border-bottom: 1px solid getColor('grey-light');
52
-
53
- a {
54
- @include unselectable;
55
-
56
- color: getColor('font');
57
- padding: 10px 0.75em;
58
- position: relative;
59
- display: flex;
60
- flex-direction: row;
61
- text-decoration: inherit;
62
-
63
- &:hover {
64
- background-color: transparent;
65
- color: getColor('alternate');
66
- }
67
-
68
- &.with-arrow::after {
69
- content: "";
70
- mask-image: url('./assets/icons/all/arrow-right.svg');
71
- background-color: getColor('font');
72
- right: 0.75em;
73
- position: absolute;
74
- width: 15px;
75
- height: 15px;
76
- align-self: center;
77
- }
78
-
79
- &.is-active {
80
- background-color: getColor('grey-light');
81
- color: getColor('alternate');
82
-
83
- &::before {
84
- content: '';
85
- position: absolute;
86
- left: 0;
87
- top: 0;
88
- width: 4px;
89
- height: 100%;
90
- background-color: getVariantColor('alternate',2);
91
- }
92
- }
93
-
94
- .badge {
95
- margin-top: 1px;
96
- }
97
-
98
- .icon {
99
- margin: -1px 10px 0 0;
100
- }
101
- }
102
-
103
- li {
104
- ul {
105
- margin: 0.75em;
106
- padding-left: 0.75em;
107
- }
108
- }
109
-
110
- &.dropdown-menu-list,
111
- &.aside-menu-list {
112
- color: getColor('font');
113
- border: 0;
114
- background-color: getColor('background');
115
- padding: 0;
116
-
117
- li {
118
- ul {
119
- padding: 0;
120
- margin: 0.4em 0 0.8em;
121
-
122
- li {
123
- padding: 0;
124
-
125
- a {
126
- min-height: $menu-dropdown-item-height;
127
- line-height: $menu-dropdown-item-height;
128
- padding: 0 2.4em;
129
- }
130
- }
131
- }
132
- }
133
-
134
- li.is-active a,
135
- a.is-active {
136
- box-shadow: inset 4px 0 0 0 currentColor;
137
- color: getVariantColor('alternate',2);
138
- background: inherit;
139
- }
140
-
141
- a {
142
- padding: 0 1.2em;
143
- color: getColor('font');
144
- min-height: $menu-dropdown-item-height;
145
- line-height: $menu-dropdown-item-height;
146
- white-space: nowrap;
147
- text-overflow: ellipsis;
148
- overflow: hidden;
149
-
150
- &:hover {
151
- color: getVariantColor('alternate',2);
152
- background-color: getColor('grey-lighter');
153
- }
154
-
155
- sub {
156
- display: inline-block;
157
- height: 20px;
158
- margin: 3px;
159
- }
160
-
161
- .tag {
162
- height: 20px;
163
- padding: 5px;
164
- margin-left: 5px;
165
- }
166
- }
167
- }
168
-
169
- &.aside-menu-list {
170
- border-right: 1px solid getColor('grey-light');
171
-
172
- a {
173
- padding-left: 1.2em;
174
- padding-top: 0.8em;
175
- min-height: $menu-item-height;
176
- line-height: $menu-item-line-height;
177
- color: getColor('font');
178
-
179
- &:hover {
180
- color: getVariantColor('alternate',2);
181
- background-color: getColor('grey-lighter');
182
- }
183
- }
184
- }
185
- }
186
-
187
- .menu-label {
188
- color: getVariantColor('alternate',2);
189
- font-size: 14px;
190
- letter-spacing: 0.1em;
191
- text-transform: uppercase;
192
- font-weight: $weight-semibold;
193
- padding-bottom: 1em;
194
- border-bottom: 2px solid currentColor;
195
-
196
- &:not(:first-child) {
197
- margin-top: 1em;
198
- }
199
-
200
- &:not(:last-child) {
201
- margin-bottom: 1em;
202
- }
203
- }
204
-
205
- aside.menu {
206
- > div {
207
- padding: 10px;
208
- }
209
- }
210
-
211
- .is-sidebar-menu ul.menu-list {
212
- height: 100%;
213
- }