@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-fix-timepicker

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 (153) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/calendar.svg +1 -0
  3. package/dist/default/assets/icons/all/clock.svg +1 -0
  4. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  5. package/dist/default/assets/icons/all/micro.svg +1 -0
  6. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  7. package/dist/default/trilogy-mangled.css +1 -1
  8. package/dist/default/trilogy-partials.css +1 -1
  9. package/dist/default/trilogy.css +1 -1
  10. package/framework/src/_all.scss +2 -2
  11. package/framework/src/base/_all.scss +0 -1
  12. package/framework/src/base/_color.scss +1 -52
  13. package/framework/src/base/_elements.scss +1 -1
  14. package/framework/src/base/_generic.scss +9 -1
  15. package/framework/src/base/_helpers.scss +34 -44
  16. package/framework/src/base/_loading.scss +9 -2
  17. package/framework/src/base/_reset.scss +11 -1
  18. package/framework/src/components/_accordion.scss +55 -97
  19. package/framework/src/components/_autocomplete.scss +38 -0
  20. package/framework/src/components/_autolayout.scss +332 -0
  21. package/framework/src/components/_badge.scss +87 -0
  22. package/framework/src/components/_box.scss +168 -0
  23. package/framework/src/components/_breadcrumb.scss +29 -38
  24. package/framework/src/components/_button.scss +86 -0
  25. package/framework/src/components/_calendar.scss +129 -0
  26. package/framework/src/components/_card.scss +32 -86
  27. package/framework/src/components/_checkbox.scss +73 -0
  28. package/framework/src/components/_chips.scss +84 -0
  29. package/framework/src/{elements → components}/_container.scss +7 -46
  30. package/framework/src/components/_countdown.scss +49 -47
  31. package/framework/src/components/_date-picker.scss +58 -0
  32. package/framework/src/components/_divider.scss +49 -14
  33. package/framework/src/components/_dropdown.scss +166 -99
  34. package/framework/src/components/_fab.scss +25 -38
  35. package/framework/src/components/_flex-box.scss +1005 -0
  36. package/framework/src/{elements → components}/_icon.scss +12 -11
  37. package/framework/src/components/_image.scss +69 -0
  38. package/framework/src/components/_index.scss +53 -0
  39. package/framework/src/components/_link.scss +62 -0
  40. package/framework/src/components/_list.scss +66 -0
  41. package/framework/src/{elements → components}/_loader.scss +2 -2
  42. package/framework/src/components/_modal.scss +182 -158
  43. package/framework/src/components/_otp.scss +11 -30
  44. package/framework/src/components/_pagination.scss +60 -159
  45. package/framework/src/components/_popover.scss +260 -260
  46. package/framework/src/components/_price.scss +140 -165
  47. package/framework/src/components/_product-tour.scss +2 -4
  48. package/framework/src/components/_prompt.scss +156 -0
  49. package/framework/src/components/_radio.scss +85 -0
  50. package/framework/src/components/_range.scss +73 -72
  51. package/framework/src/components/_segmented-control.scss +55 -53
  52. package/framework/src/components/_select.scss +131 -0
  53. package/framework/src/components/_stepper.scss +81 -224
  54. package/framework/src/{elements → components}/_sticker.scss +34 -29
  55. package/framework/src/components/_switch.scss +97 -191
  56. package/framework/src/components/_table.scss +244 -0
  57. package/framework/src/components/_tabs.scss +114 -98
  58. package/framework/src/components/_tag.scss +114 -0
  59. package/framework/src/components/_text.scss +55 -0
  60. package/framework/src/components/_textarea.scss +46 -0
  61. package/framework/src/components/_timeline.scss +28 -113
  62. package/framework/src/components/_timepicker-circular.scss +88 -0
  63. package/framework/src/components/_timepicker.scss +79 -0
  64. package/framework/src/components/_title.scss +151 -0
  65. package/framework/src/{elements → components/alert}/_alert.scss +15 -12
  66. package/framework/src/components/alert/_index.scss +2 -0
  67. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  68. package/framework/src/components/input/_entry.scss +135 -0
  69. package/framework/src/{elements → components/input}/_form.scss +42 -33
  70. package/framework/src/components/input/_index.scss +4 -0
  71. package/framework/src/components/input/_input-gauge.scss +44 -0
  72. package/framework/src/components/input/_input-icons.scss +55 -0
  73. package/framework/src/components/progress/_index.scss +2 -0
  74. package/framework/src/components/progress/_progress-radial.scss +28 -0
  75. package/framework/src/{elements → components/progress}/_progress.scss +33 -24
  76. package/framework/src/elements/_index.scss +5 -0
  77. package/framework/src/elements/_other.scss +0 -41
  78. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  79. package/framework/src/grid/_columns.scss +278 -763
  80. package/framework/src/grid/_rows.scss +45 -38
  81. package/framework/src/layout/_all.scss +0 -1
  82. package/framework/src/layout/_hero.scss +92 -214
  83. package/framework/src/layout/_section.scss +10 -29
  84. package/framework/src/theming/_all.scss +3 -0
  85. package/framework/src/theming/buttons_partial.scss +32 -0
  86. package/framework/src/theming/common_partials.scss +10 -0
  87. package/framework/src/theming/links_partial.scss +20 -0
  88. package/framework/src/trilogy-mangled.scss +3 -3
  89. package/framework/src/trilogy.scss +3 -2
  90. package/framework/src/utilities/_a11y.scss +13 -0
  91. package/framework/src/utilities/_all.scss +4 -0
  92. package/framework/src/utilities/_background.scss +21 -0
  93. package/framework/src/utilities/_controls.scss +38 -49
  94. package/framework/src/utilities/_derived-variables.scss +0 -103
  95. package/framework/src/utilities/_initial-variables.scss +4 -144
  96. package/framework/src/utilities/_pre.scss +4 -1
  97. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  98. package/framework/src/utilities/mixins/_delete.scss +86 -0
  99. package/framework/src/utilities/mixins/_index.scss +11 -0
  100. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  101. package/framework/src/utilities/mixins/_mixins.scss +372 -0
  102. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  103. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  104. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  105. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  106. package/framework/src/utilities/mixins/_state.scss +25 -0
  107. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  108. package/framework/src/utilities/mixins/_utils.scss +24 -0
  109. package/framework/src/utilities/variables/_animation.scss +2 -0
  110. package/framework/src/utilities/variables/_color.scss +86 -0
  111. package/framework/src/utilities/variables/_font.scss +97 -0
  112. package/framework/src/utilities/variables/_index.scss +6 -0
  113. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  114. package/framework/src/utilities/variables/_shadow.scss +3 -0
  115. package/framework/src/utilities/variables/_zindex.scss +14 -0
  116. package/package.json +8 -3
  117. package/framework/src/components/_all.scss +0 -30
  118. package/framework/src/components/_autolayout2.scss +0 -38
  119. package/framework/src/components/_disclaimer.scss +0 -84
  120. package/framework/src/components/_level.scss +0 -120
  121. package/framework/src/components/_media.scss +0 -64
  122. package/framework/src/components/_menu.scss +0 -213
  123. package/framework/src/components/_progress-radial.scss +0 -23
  124. package/framework/src/components/_search-modal.scss +0 -197
  125. package/framework/src/components/_slices.scss +0 -316
  126. package/framework/src/components/_slider.scss +0 -92
  127. package/framework/src/elements/_all.scss +0 -35
  128. package/framework/src/elements/_badge.scss +0 -81
  129. package/framework/src/elements/_box.scss +0 -267
  130. package/framework/src/elements/_button.scss +0 -192
  131. package/framework/src/elements/_checkbox.scss +0 -39
  132. package/framework/src/elements/_checkradio.scss +0 -173
  133. package/framework/src/elements/_chips.scss +0 -100
  134. package/framework/src/elements/_dot.scss +0 -6
  135. package/framework/src/elements/_entry.scss +0 -109
  136. package/framework/src/elements/_image.scss +0 -59
  137. package/framework/src/elements/_input-gauge.scss +0 -37
  138. package/framework/src/elements/_input-icons.scss +0 -41
  139. package/framework/src/elements/_link.scss +0 -79
  140. package/framework/src/elements/_list.scss +0 -61
  141. package/framework/src/elements/_notification.scss +0 -151
  142. package/framework/src/elements/_options.scss +0 -146
  143. package/framework/src/elements/_paragraph.scss +0 -101
  144. package/framework/src/elements/_radio.scss +0 -67
  145. package/framework/src/elements/_select.scss +0 -315
  146. package/framework/src/elements/_switch.scss +0 -108
  147. package/framework/src/elements/_table.scss +0 -298
  148. package/framework/src/elements/_tag.scss +0 -131
  149. package/framework/src/elements/_textarea.scss +0 -125
  150. package/framework/src/elements/_timeline.scss +0 -283
  151. package/framework/src/elements/_title.scss +0 -139
  152. package/framework/src/layout/_toolbar.scss +0 -100
  153. package/framework/src/utilities/_mixins.scss +0 -744
@@ -0,0 +1,86 @@
1
+ $suffix: '';
2
+
3
+ /*
4
+ All color variables are defined here
5
+ @string slug name used in classname (You can use your brand name)
6
+ @color A valid css color value
7
+ @invert The slug name of the best inverted color
8
+ @hover A valid css color value (a variant color for the hover case)
9
+ @visited A valid css color value (a variant color for the pressed case) -- optional
10
+ @background A valid css color value (a variant color for background) -- optional
11
+ */
12
+ $colors: (
13
+ 'background': [#fff, 'white', 'main'],
14
+ 'stroke':[ #727272, 'stroke', 'white' ],
15
+ 'stroke-fade':[ #cadbe8, 'stroke-fade', 'white' ],
16
+ 'transparent': ['transparent', 'transparent', 'transparent'],
17
+ 'main':[ #3d5d7e, 'main', 'white'],
18
+ 'main-fade':[ #eff2f8, 'main-fade', 'white'],
19
+ 'accent':[ #da641b,'accent', 'white'],
20
+ 'accent-fade':[ #faebe3,'accent-fade', 'white'],
21
+ 'font':[ #3d5d7e, 'font', 'white'],
22
+ 'font-placeholder':[ #687a87, 'font-placeholder', 'white'],
23
+ 'success':[ #007B52, 'success', 'white'],
24
+ 'success-fade':[ #cae8ca,'success-fade', 'white'],
25
+ 'info':[ #1A688A, 'info', 'white'],
26
+ 'info-fade':[ #c8dbec, 'info-fade', 'white'],
27
+ 'warning':[ #FFBB33, 'warning', 'white'],
28
+ 'warning-fade':[ #ecdbc6, 'warning-fade', 'white'],
29
+ 'error':[ #D42D02,'error', 'white'],
30
+ 'error-fade':[ #eecccc, 'error-fade', 'white'],
31
+ 'disabled':[ #646464, 'disabled', 'white'],
32
+ 'disabled-fade':[ #D1D1D1,'disabled-fade', 'white'],
33
+ 'neutral':[ #707070, 'grey', 'white' ],
34
+ 'neutral-fade':[#F4F4F4, 'grey-fade', 'white' ],
35
+ ) !default;
36
+
37
+ $fade-colors: (
38
+ 'main': 'main-fade',
39
+ 'success': 'success-fade',
40
+ 'info':'info-fade',
41
+ 'warning':'warning-fade',
42
+ 'error':'error-fade',
43
+ 'disabled': 'disabled-fade',
44
+ 'neutral': 'neutral-fade',
45
+ ) !default;
46
+
47
+ @function getColor( $name ) {
48
+ @if global-variable-exists(suffix-theme) {
49
+ @return var(--color-#{nth(map-get($colors, $name), 2)}-#{$suffix-theme});
50
+ } @else {
51
+ @return var(--color-#{nth(map-get($colors,$name),2)});
52
+ }
53
+ }
54
+
55
+ @function getColorValue( $name ) {
56
+ @return #{nth(map-get($colors,$name),1)}
57
+ }
58
+
59
+ @function getColorBrandName( $name ) {
60
+ @return #{nth(map-get($colors,$name),2)}
61
+ }
62
+
63
+
64
+
65
+ @function invertColor ($colorName) {
66
+ @return var(--color-#{nth(map-get($colors,$colorName),3)})
67
+ }
68
+
69
+ @function fadeColor ($colorName) {
70
+ $name: map-get($fade-colors,$colorName);
71
+ @return getColor($name);
72
+ }
73
+
74
+ // Brand Color
75
+ $colors-brand: (
76
+ 'background', 'main', 'accent'
77
+ );
78
+
79
+ // Brand Color Functionnal
80
+ $colors-brand-functionnal: (
81
+ 'background', 'main', 'accent', 'info', 'success', 'error', 'warning', 'neutral'
82
+ );
83
+
84
+ $colors-feedback: (
85
+ 'success', 'error', 'warning', 'info'
86
+ );
@@ -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: 976px + 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.1-fix-timepicker",
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
- }