@trilogy-ds/styles 0.0.1-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 (145) hide show
  1. package/README.md +47 -0
  2. package/dist/default/assets/icons/all/alert.svg +1 -0
  3. package/dist/default/assets/icons/all/arrow-down.svg +1 -0
  4. package/dist/default/assets/icons/all/arrow-left.svg +1 -0
  5. package/dist/default/assets/icons/all/arrow-right.svg +1 -0
  6. package/dist/default/assets/icons/all/arrow-up.svg +1 -0
  7. package/dist/default/assets/icons/all/attachment.svg +1 -0
  8. package/dist/default/assets/icons/all/bell.svg +1 -0
  9. package/dist/default/assets/icons/all/calendar.svg +1 -0
  10. package/dist/default/assets/icons/all/check-circle.svg +1 -0
  11. package/dist/default/assets/icons/all/check.svg +1 -0
  12. package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
  13. package/dist/default/assets/icons/all/eye-slash.svg +1 -0
  14. package/dist/default/assets/icons/all/eye.svg +1 -0
  15. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  16. package/dist/default/assets/icons/all/infos-circle.svg +1 -0
  17. package/dist/default/assets/icons/all/micro.svg +1 -0
  18. package/dist/default/assets/icons/all/search.svg +1 -0
  19. package/dist/default/assets/icons/all/times.svg +1 -0
  20. package/dist/default/assets/icons/all/trash.svg +1 -0
  21. package/dist/default/trilogy-mangled.css +1 -0
  22. package/dist/default/trilogy-partials.css +1 -0
  23. package/dist/default/trilogy.css +1 -0
  24. package/framework/src/_all.scss +8 -0
  25. package/framework/src/base/_all.scss +9 -0
  26. package/framework/src/base/_color.scss +7 -0
  27. package/framework/src/base/_elements.scss +34 -0
  28. package/framework/src/base/_fonts.scss +2 -0
  29. package/framework/src/base/_generic.scss +76 -0
  30. package/framework/src/base/_helpers.scss +875 -0
  31. package/framework/src/base/_loading.scss +109 -0
  32. package/framework/src/base/_reset.scss +148 -0
  33. package/framework/src/components/_accordion.scss +144 -0
  34. package/framework/src/components/_autocomplete.scss +38 -0
  35. package/framework/src/components/_autolayout.scss +332 -0
  36. package/framework/src/components/_badge.scss +87 -0
  37. package/framework/src/components/_box.scss +168 -0
  38. package/framework/src/components/_breadcrumb.scss +36 -0
  39. package/framework/src/components/_button.scss +79 -0
  40. package/framework/src/components/_calendar.scss +129 -0
  41. package/framework/src/components/_card.scss +244 -0
  42. package/framework/src/components/_checkbox.scss +71 -0
  43. package/framework/src/components/_chips.scss +84 -0
  44. package/framework/src/components/_container.scss +69 -0
  45. package/framework/src/components/_countdown.scss +57 -0
  46. package/framework/src/components/_date-picker.scss +58 -0
  47. package/framework/src/components/_divider.scss +52 -0
  48. package/framework/src/components/_dropdown.scss +195 -0
  49. package/framework/src/components/_fab.scss +47 -0
  50. package/framework/src/components/_flex-box.scss +994 -0
  51. package/framework/src/components/_icon.scss +384 -0
  52. package/framework/src/components/_image.scss +69 -0
  53. package/framework/src/components/_index.scss +51 -0
  54. package/framework/src/components/_link.scss +58 -0
  55. package/framework/src/components/_list.scss +66 -0
  56. package/framework/src/components/_loader.scss +126 -0
  57. package/framework/src/components/_modal.scss +232 -0
  58. package/framework/src/components/_otp.scss +73 -0
  59. package/framework/src/components/_pagination.scss +83 -0
  60. package/framework/src/components/_popover.scss +340 -0
  61. package/framework/src/components/_price.scss +184 -0
  62. package/framework/src/components/_product-tour.scss +129 -0
  63. package/framework/src/components/_prompt.scss +125 -0
  64. package/framework/src/components/_radio.scss +82 -0
  65. package/framework/src/components/_range.scss +85 -0
  66. package/framework/src/components/_scroll-view.scss +19 -0
  67. package/framework/src/components/_segmented-control.scss +62 -0
  68. package/framework/src/components/_select.scss +131 -0
  69. package/framework/src/components/_stepper.scss +217 -0
  70. package/framework/src/components/_sticker.scss +148 -0
  71. package/framework/src/components/_switch.scss +115 -0
  72. package/framework/src/components/_table.scss +244 -0
  73. package/framework/src/components/_tabs.scss +228 -0
  74. package/framework/src/components/_tag.scss +114 -0
  75. package/framework/src/components/_text.scss +55 -0
  76. package/framework/src/components/_textarea.scss +46 -0
  77. package/framework/src/components/_timeline.scss +282 -0
  78. package/framework/src/components/_title.scss +151 -0
  79. package/framework/src/components/alert/_alert.scss +94 -0
  80. package/framework/src/components/alert/_index.scss +2 -0
  81. package/framework/src/components/alert/_toaster.scss +124 -0
  82. package/framework/src/components/input/_entry.scss +135 -0
  83. package/framework/src/components/input/_form.scss +602 -0
  84. package/framework/src/components/input/_index.scss +4 -0
  85. package/framework/src/components/input/_input-gauge.scss +44 -0
  86. package/framework/src/components/input/_input-icons.scss +55 -0
  87. package/framework/src/components/progress/_index.scss +2 -0
  88. package/framework/src/components/progress/_progress-radial.scss +28 -0
  89. package/framework/src/components/progress/_progress.scss +223 -0
  90. package/framework/src/elements/_index.scss +5 -0
  91. package/framework/src/elements/_other.scss +3 -0
  92. package/framework/src/elements/_plus-symbol.scss +32 -0
  93. package/framework/src/grid/_all.scss +3 -0
  94. package/framework/src/grid/_columns.scss +467 -0
  95. package/framework/src/grid/_rows.scss +54 -0
  96. package/framework/src/grid/_tiles.scss +78 -0
  97. package/framework/src/layout/_all.scss +5 -0
  98. package/framework/src/layout/_hero.scss +146 -0
  99. package/framework/src/layout/_main.scss +36 -0
  100. package/framework/src/layout/_section.scss +46 -0
  101. package/framework/src/theming/_all.scss +3 -0
  102. package/framework/src/theming/buttons_partial.scss +32 -0
  103. package/framework/src/theming/common_partials.scss +10 -0
  104. package/framework/src/theming/links_partial.scss +20 -0
  105. package/framework/src/trilogy-core.scss +16 -0
  106. package/framework/src/trilogy-mangled.scss +14 -0
  107. package/framework/src/trilogy-namespaced.scss +14 -0
  108. package/framework/src/trilogy.scss +8 -0
  109. package/framework/src/utilities/_a11y.scss +13 -0
  110. package/framework/src/utilities/_all.scss +13 -0
  111. package/framework/src/utilities/_animations.scss +71 -0
  112. package/framework/src/utilities/_background.scss +21 -0
  113. package/framework/src/utilities/_controls.scss +56 -0
  114. package/framework/src/utilities/_derived-variables.scss +1 -0
  115. package/framework/src/utilities/_functions.scss +94 -0
  116. package/framework/src/utilities/_initial-variables.scss +10 -0
  117. package/framework/src/utilities/_post.scss +6 -0
  118. package/framework/src/utilities/_pre.scss +8 -0
  119. package/framework/src/utilities/_spacing.scss +10 -0
  120. package/framework/src/utilities/_tools.scss +3 -0
  121. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  122. package/framework/src/utilities/mixins/_delete.scss +86 -0
  123. package/framework/src/utilities/mixins/_index.scss +11 -0
  124. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  125. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  126. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  127. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  128. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  129. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  130. package/framework/src/utilities/mixins/_state.scss +25 -0
  131. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  132. package/framework/src/utilities/mixins/_utils.scss +24 -0
  133. package/framework/src/utilities/variables/_animation.scss +2 -0
  134. package/framework/src/utilities/variables/_color.scss +85 -0
  135. package/framework/src/utilities/variables/_font.scss +97 -0
  136. package/framework/src/utilities/variables/_index.scss +6 -0
  137. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  138. package/framework/src/utilities/variables/_shadow.scss +3 -0
  139. package/framework/src/utilities/variables/_zindex.scss +14 -0
  140. package/package.json +28 -0
  141. package/themes/default/src/_all.scss +1 -0
  142. package/themes/default/src/assets.scss +11 -0
  143. package/themes/default/src/utilities/_all.scss +0 -0
  144. package/themes/default/src/utilities/_post.scss +0 -0
  145. package/themes/default/src/utilities/_pre.scss +3 -0
@@ -0,0 +1,54 @@
1
+ $gap: 4px,
2
+ 8px,
3
+ 12px,
4
+ 16px,
5
+ 24px,
6
+ 32px,
7
+ 40px,
8
+ 48px,
9
+ 54px,
10
+ 62px;
11
+
12
+
13
+ .rows {
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex: 1 1 auto;
17
+ justify-self: stretch;
18
+ height: 100%;
19
+ gap: 24px;
20
+
21
+ @include mobile {
22
+ gap: 16px;
23
+ }
24
+
25
+ @for $i from 1 through length($gap) {
26
+ $item: nth($gap, $i);
27
+ &.has-gap-#{$i} {
28
+ gap: $item;
29
+ }
30
+ }
31
+
32
+ &.is-aligned-end {
33
+ justify-content: flex-end;
34
+ }
35
+
36
+ &.is-gapless {
37
+ gap: 0;
38
+ }
39
+
40
+ .is-divider {
41
+ margin-top: 0;
42
+ margin-bottom: 0;
43
+ }
44
+
45
+ .row {
46
+ display: block;
47
+ flex-grow: 1;
48
+ flex-shrink: 1;
49
+
50
+ &.is-narrow {
51
+ flex-grow: 0;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,78 @@
1
+ @use "sass:math";
2
+
3
+ .tile {
4
+ align-items: stretch;
5
+ display: block;
6
+ flex-basis: 0;
7
+ flex-grow: 1;
8
+ flex-shrink: 1;
9
+ min-height: min-content;
10
+
11
+ &.is-ancestor {
12
+ margin-left: -7.5px;
13
+ margin-right: -7.5px;
14
+ margin-top: -7.5px;
15
+
16
+ &:last-child {
17
+ margin-bottom: -7.5px;
18
+ }
19
+
20
+ &:not(:last-child) {
21
+ margin-bottom: 7.5px;
22
+ }
23
+ }
24
+
25
+ &.is-child {
26
+ margin: 0 !important;
27
+ }
28
+
29
+ &.is-parent {
30
+ padding: 7.5px;
31
+
32
+ &.is-multiline {
33
+ > .tile.is-child {
34
+ > *:last-child {
35
+ margin-bottom: 20px;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ &.is-vertical {
42
+ flex-direction: column;
43
+
44
+ & > .tile.is-child:not(:last-child) {
45
+ margin-bottom: 15px !important;
46
+ }
47
+ }
48
+
49
+ &:not(.is-child) {
50
+ display: flex;
51
+ }
52
+
53
+ @include mobile {
54
+ @for $i from 1 through 12 {
55
+ &.is-#{$i}-mobile {
56
+ flex: none;
57
+ width: math.div($i, 12) * 100%;
58
+ }
59
+ }
60
+
61
+ &.is-vertical-mobile {
62
+ flex-direction: column;
63
+ }
64
+ }
65
+
66
+ @include tablet {
67
+ &:not(.is-child) {
68
+ display: flex;
69
+ }
70
+
71
+ @for $i from 1 through 12 {
72
+ &.is-#{$i} {
73
+ flex: none;
74
+ width: math.div($i, 12) * 100%;
75
+ }
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,5 @@
1
+ @charset "utf-8";
2
+
3
+ @import "main";
4
+ @import "section";
5
+ @import "hero";
@@ -0,0 +1,146 @@
1
+ $hero-padding-y: 20px;
2
+ $hero-padding-x: $hero-padding-y;
3
+ $hero-padding-small-y: $hero-padding-y;
4
+ $hero-padding-small-x: $hero-padding-y;
5
+ $hero-padding-medium-y: 40px;
6
+ $hero-padding-medium-x: $hero-padding-y;
7
+ $hero-padding-large-y: 60px;
8
+ $hero-padding-large-x: $hero-padding-y;
9
+
10
+ $hero-padding-desktop-y: 30px;
11
+ $hero-padding-desktop-x: $hero-padding-desktop-y;
12
+ $hero-padding-desktop-small-y: $hero-padding-desktop-y;
13
+ $hero-padding-desktop-small-x: $hero-padding-desktop-y;
14
+ $hero-padding-desktop-medium-y: 60px;
15
+ $hero-padding-desktop-medium-x: $hero-padding-desktop-y;
16
+ $hero-padding-desktop-large-y: 90px;
17
+ $hero-padding-desktop-large-x: $hero-padding-desktop-y;
18
+
19
+ $overlap: 30px;
20
+ $overlap-desktop: 30px;
21
+
22
+ .hero {
23
+ align-items: stretch;
24
+ background-color: getColor('background');
25
+ display: flex;
26
+ flex-direction: column;
27
+ justify-content: space-between;
28
+ position: relative;
29
+
30
+ .hero-body {
31
+ flex-grow: 1;
32
+ flex-shrink: 0;
33
+ position: relative;
34
+ display: flex;
35
+ flex-wrap: wrap;
36
+ align-items: center;
37
+ padding: 20px;
38
+
39
+ @include desktop {
40
+ padding: 30px 20px;
41
+ }
42
+
43
+ > .container {
44
+ flex: 1;
45
+ flex-basis: 100%;
46
+ }
47
+
48
+ .title {
49
+ font-size: 24px;
50
+
51
+ @include desktop {
52
+ font-size: 36px;
53
+ }
54
+ }
55
+ }
56
+
57
+ &.is-overlapped {
58
+ .hero-body {
59
+ padding-bottom: 50px;
60
+ }
61
+
62
+ + .section {
63
+ @include mobile {
64
+ margin-left: -$hero-padding-y;
65
+ margin-right: -$hero-padding-y;
66
+
67
+ .box {
68
+ box-shadow: none;
69
+ //@todo need confirmation
70
+ border-radius: 24px 24px 0 0;
71
+ overflow: hidden;
72
+ }
73
+ }
74
+
75
+ > .container {
76
+ margin-top: -$hero-padding-y - $overlap;
77
+
78
+ @include desktop {
79
+ margin-top: -$hero-padding-desktop-y - $overlap-desktop;
80
+ }
81
+ }
82
+
83
+ &.is-small {
84
+ > .container {
85
+ margin-top: -$hero-padding-small-y - $overlap;
86
+
87
+ @include desktop {
88
+ margin-top: -$hero-padding-desktop-small-y - $overlap-desktop;
89
+ }
90
+ }
91
+ }
92
+
93
+ &.is-medium {
94
+ > .container {
95
+ margin-top: -$hero-padding-medium-y - $overlap;
96
+
97
+ @include desktop {
98
+ margin-top: -$hero-padding-desktop-medium-y - $overlap-desktop;
99
+ }
100
+ }
101
+ }
102
+
103
+ &.is-large {
104
+ > .container {
105
+ margin-top: -$hero-padding-large-y - $overlap;
106
+
107
+ @include desktop {
108
+ margin-top: -$hero-padding-desktop-large-y - $overlap-desktop;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ &.has-background {
116
+ background-repeat: no-repeat;
117
+ background-size: cover;
118
+ }
119
+
120
+ &.has-background {
121
+ .hero-body {
122
+ text-align: center;
123
+ padding: 100px 20px;
124
+
125
+ @include desktop {
126
+ text-align: left;
127
+ padding-top: 80px;
128
+ padding-bottom: 80px;
129
+ }
130
+ }
131
+
132
+ &.is-overlapped {
133
+ .hero-body {
134
+ padding: 30px 20px 60px;
135
+
136
+ @include desktop {
137
+ padding: 60px 20px;
138
+ }
139
+ }
140
+ }
141
+ }
142
+
143
+ &.has-pattern-dark {
144
+ @include pattern-dark(105%, 50%, 35%);
145
+ }
146
+ }
@@ -0,0 +1,36 @@
1
+ body > header,
2
+ body > footer,
3
+ .main-content {
4
+ display: block;
5
+ width: 100%;
6
+ margin: 0 auto;
7
+ flex-shrink: 0;
8
+ position: relative;
9
+
10
+ &.is-fullwidth {
11
+ @include fullhd {
12
+ max-width: 100%;
13
+ }
14
+ }
15
+ }
16
+
17
+ .main-content {
18
+ flex-grow: 1;
19
+ max-width: 1500px;
20
+
21
+ &::before {
22
+ content: ' ';
23
+ background-color: transparent;
24
+ transition: background-color 250ms ease-in-out;
25
+ }
26
+
27
+ &.has-overlay {
28
+ &::before {
29
+ @include overlay;
30
+
31
+ position: fixed;
32
+ background-color: rgba(#000, 0.86);
33
+ z-index: zindex('small');
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,46 @@
1
+ .section {
2
+ padding: $spacing-6 $spacing-4;
3
+
4
+ @include desktop {
5
+ padding: $spacing-8 $spacing-5;
6
+ }
7
+
8
+ &.has-background {
9
+ background-size: cover;
10
+ background-position: center;
11
+ }
12
+
13
+ &.has-overlap > .container {
14
+ margin-top: -$spacing-6 - $spacing-4;
15
+
16
+ @include desktop {
17
+ margin-top: -$spacing-8 - $spacing-4;
18
+ }
19
+ }
20
+
21
+ &.is-info {
22
+ background-color: getColor('info');
23
+ color: getColor('background');
24
+ }
25
+
26
+ &.has-overlay {
27
+ position: relative;
28
+ z-index: zindex('void');
29
+ color: getColor('background');
30
+
31
+ &::before {
32
+ @include overlay;
33
+ content: '';
34
+ z-index: zindex('subzero');
35
+ background-color: rgba(0, 0, 0, 0.6);
36
+ }
37
+ }
38
+
39
+ &.has-pattern-light {
40
+ @include pattern-light(70%, 180px, -30px);
41
+ }
42
+
43
+ &.has-pattern-dark {
44
+ @include pattern-dark(120%, 260px, -30%);
45
+ }
46
+ }
@@ -0,0 +1,3 @@
1
+ @import "common_partials";
2
+ @import "links_partial";
3
+ @import "buttons_partial";
@@ -0,0 +1,32 @@
1
+ $noDisabled: ":not(:disabled):not([aria-disabled=true]):not(.is-loading)";
2
+
3
+ /*
4
+ Colors for buttons
5
+ @string slug name used in classname (You can use your brand name)
6
+ @color-background The name of the color in the color map for the background
7
+ @color-text The name of the color in the color map for the text
8
+ */
9
+ $button-colors: (
10
+ 'accent':['conversion', 'accent', 'background'],
11
+ 'primary': ['primary', 'main', 'background'],
12
+ 'secondary': ['secondary', 'main-fade', 'font'],
13
+ 'ghost': ['ghost', 'transparent', 'font']
14
+ ) !default;
15
+
16
+ %buttons-states {
17
+ #{$hoverSelector} {
18
+ filter: brightness(0.8);
19
+ &.is-primary {
20
+ filter: brightness(1.2);
21
+ }
22
+ }
23
+ &:active:not(:disabled) {
24
+ filter: brightness(0.7);
25
+ }
26
+
27
+ &:focus-visible,
28
+ &:focus:focus-visible {
29
+ outline: 2px solid getColor('font') !important;
30
+ outline-offset: 2px;
31
+ }
32
+ }
@@ -0,0 +1,10 @@
1
+ @import "../base/_color.scss";
2
+
3
+ :root {
4
+ --radius: 8px;
5
+ --radius-medium: 8px;
6
+ --radius-small: 4px;
7
+ --radius-large: 16px;
8
+ --border: 1px solid #{getColor('stroke')};
9
+ --border-active: 2px solid #{getColor('main')};
10
+ }
@@ -0,0 +1,20 @@
1
+ $link-colors: 'info' !default;
2
+
3
+ %link-over {
4
+ &:hover {
5
+ filter: brightness(0.8);
6
+ }
7
+ }
8
+
9
+ %link-states {
10
+ @extend %link-over;
11
+ &:active {
12
+ filter: brightness(0.9);
13
+ }
14
+ &:focus-visible,
15
+ &:focus:focus-visible {
16
+ outline: 2px solid currentColor;
17
+ border-radius: $radius-small;
18
+ padding: 0 4px;
19
+ }
20
+ }
@@ -0,0 +1,16 @@
1
+ @charset "utf-8";
2
+
3
+ @import "utilities/functions";
4
+ @import "utilities/initial-variables";
5
+ @import "utilities/derived-variables";
6
+ @import "utilities/mixins";
7
+ @import "base/reset";
8
+ @import "base/generic";
9
+ @import "base/fonts";
10
+ @import "grid/columns";
11
+ @import "grid/rows";
12
+ @import "layout/main";
13
+ @import "layout/section";
14
+ @import "elements/box";
15
+ @import "elements/paragraph";
16
+ @import "elements/title";
@@ -0,0 +1,14 @@
1
+ @charset "utf-8";
2
+
3
+ @import "utilities/all";
4
+
5
+ /* All Base Without elements */
6
+ @import "base/fonts";
7
+ @import "base/helpers";
8
+ @import "base/loading";
9
+ @import "base/elements";
10
+
11
+ @import "elements";
12
+ @import "components";
13
+ @import "grid/all";
14
+ @import "layout/all";
@@ -0,0 +1,14 @@
1
+ @import './styles/framework/src/utilities/tools';
2
+
3
+ @import './styles/themes/common/src/utilities/pre';
4
+ @import './styles/framework/src/utilities/pre';
5
+
6
+ @import './styles/framework/src/utilities/post';
7
+ @import './styles/themes/common/src/utilities/post';
8
+
9
+ @import './styles/framework/src/all';
10
+
11
+ // Fonts
12
+ @import './styles/dist/fonts/css/all.scss';
13
+
14
+ @import './styles/themes/common/src/_all';
@@ -0,0 +1,8 @@
1
+ @charset "utf-8";
2
+
3
+ @import "utilities/all";
4
+ @import "base/all";
5
+ @import "elements";
6
+ @import "components";
7
+ @import "grid/all";
8
+ @import "layout/all";
@@ -0,0 +1,13 @@
1
+ .sr-only {
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ margin: -1px;
6
+ padding: 0;
7
+ border: 0;
8
+ overflow: hidden;
9
+ clip: rect(0, 0, 0, 0);
10
+ white-space: nowrap;
11
+ top: 0;
12
+ left: 0;
13
+ }
@@ -0,0 +1,13 @@
1
+ @charset "utf-8";
2
+
3
+ @import "initial-variables";
4
+ @import "functions";
5
+ @import "derived-variables";
6
+ @import '../theming/links_partial';
7
+ @import '../theming/buttons_partial';
8
+ @import "mixins";
9
+ @import "controls";
10
+ @import "background";
11
+ @import "animations";
12
+ @import "spacing";
13
+ @import "a11y";
@@ -0,0 +1,71 @@
1
+ [class*="animate"] {
2
+ animation: $animation-duration $animation-timing-function;
3
+ }
4
+
5
+ @keyframes spinAround {
6
+ from {
7
+ transform: rotate(0deg);
8
+ }
9
+
10
+ to {
11
+ transform: rotate(359deg);
12
+ }
13
+ }
14
+
15
+ @keyframes from-right {
16
+ 0% {
17
+ transform: scaleX(0);
18
+ }
19
+
20
+ 0%,
21
+ 100% {
22
+ transform-origin: 100% 100%;
23
+ }
24
+ }
25
+
26
+ @keyframes from-top {
27
+ 0% {
28
+ transform: scaleY(0);
29
+ }
30
+
31
+ 0%,
32
+ 100% {
33
+ transform-origin: 0% 0%;
34
+ }
35
+ }
36
+
37
+ .animate-from-right {
38
+ animation-name: from-right;
39
+ }
40
+
41
+ .animate-from-top {
42
+ animation-name: from-top;
43
+ }
44
+
45
+ // animation for skeletons
46
+ @keyframes placeHolderShimmer {
47
+ 0% {
48
+ background-position: -46.8px 0;
49
+ }
50
+
51
+ 100% {
52
+ background-position: 46.8px 0;
53
+ }
54
+ }
55
+
56
+ // @TODO: Replace all raw values
57
+ @mixin animated-background {
58
+ animation-duration: 1s;
59
+ animation-fill-mode: forwards;
60
+ animation-iteration-count: infinite;
61
+ animation-name: placeHolderShimmer;
62
+ animation-timing-function: linear;
63
+ background: #f6f7f8;
64
+ background: linear-gradient(to right, #e1e1e1 8%, #ddd 18%, #e1e1e1 33%) !important;
65
+ background-size: 800px 104px;
66
+ position: relative;
67
+ }
68
+
69
+ @mixin disable-animation {
70
+ animation: none;
71
+ }
@@ -0,0 +1,21 @@
1
+ .is-inverted {
2
+ color: getColor('background');
3
+ }
4
+
5
+ .is-inverted {
6
+ .box, .section, .view, .hero {
7
+ &:not(.is-inverted) {
8
+ color: getColor('font');
9
+ }
10
+ }
11
+ }
12
+
13
+ .has-background {
14
+ background-repeat: no-repeat;
15
+ background-size: cover;
16
+ background-position: center;
17
+
18
+ .box-content {
19
+ background-color: transparent;
20
+ }
21
+ }
@@ -0,0 +1,56 @@
1
+ $control-border-width: 1px !default;
2
+
3
+ $control-padding-vertical: calc(0.375em - #{$control-border-width}) !default;
4
+ $control-padding-horizontal: 16px;
5
+
6
+ @mixin control {
7
+ -moz-appearance: none;
8
+ -webkit-appearance: none;
9
+ align-items: center;
10
+ border: $control-border-width solid transparent;
11
+ border-radius: var(--radius-small);
12
+ display: inline-flex;
13
+ font-size: $size-normal;
14
+ height: 46px;
15
+ justify-content: flex-start;
16
+ line-height: 1.4;
17
+ padding-bottom: $control-padding-vertical;
18
+ padding-left: $control-padding-horizontal;
19
+ padding-right: $control-padding-horizontal;
20
+ padding-top: $control-padding-vertical;
21
+ position: relative;
22
+ vertical-align: top;
23
+
24
+ // bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
25
+ @supports (-webkit-overflow-scrolling: touch) {
26
+ font-size: $text-16;
27
+ }
28
+
29
+ &:focus,
30
+ &:active {
31
+ outline: none;
32
+
33
+ // répétition nécessaire : bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
34
+ @supports (-webkit-overflow-scrolling: touch) {
35
+ font-size: $text-16;
36
+ }
37
+ }
38
+
39
+ &[disabled] {
40
+ cursor: not-allowed;
41
+ }
42
+
43
+ }
44
+
45
+ @mixin control-small {
46
+ border-radius: var(--radius-small);
47
+ font-size: $size-small;
48
+ }
49
+
50
+ @mixin control-medium {
51
+ font-size: $size-medium;
52
+ }
53
+
54
+ @mixin control-large {
55
+ font-size: $size-large;
56
+ }
@@ -0,0 +1 @@
1
+ @import './initial-variables';