@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.
- package/README.md +47 -0
- package/dist/default/assets/icons/all/alert.svg +1 -0
- package/dist/default/assets/icons/all/arrow-down.svg +1 -0
- package/dist/default/assets/icons/all/arrow-left.svg +1 -0
- package/dist/default/assets/icons/all/arrow-right.svg +1 -0
- package/dist/default/assets/icons/all/arrow-up.svg +1 -0
- package/dist/default/assets/icons/all/attachment.svg +1 -0
- package/dist/default/assets/icons/all/bell.svg +1 -0
- package/dist/default/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/check-circle.svg +1 -0
- package/dist/default/assets/icons/all/check.svg +1 -0
- package/dist/default/assets/icons/all/exclamation-circle.svg +1 -0
- package/dist/default/assets/icons/all/eye-slash.svg +1 -0
- package/dist/default/assets/icons/all/eye.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/infos-circle.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/search.svg +1 -0
- package/dist/default/assets/icons/all/times.svg +1 -0
- package/dist/default/assets/icons/all/trash.svg +1 -0
- package/dist/default/trilogy-mangled.css +1 -0
- package/dist/default/trilogy-partials.css +1 -0
- package/dist/default/trilogy.css +1 -0
- package/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +7 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +76 -0
- package/framework/src/base/_helpers.scss +875 -0
- package/framework/src/base/_loading.scss +109 -0
- package/framework/src/base/_reset.scss +148 -0
- package/framework/src/components/_accordion.scss +144 -0
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +36 -0
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +244 -0
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/components/_container.scss +69 -0
- package/framework/src/components/_countdown.scss +57 -0
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +52 -0
- package/framework/src/components/_dropdown.scss +195 -0
- package/framework/src/components/_fab.scss +47 -0
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/components/_icon.scss +384 -0
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +51 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_loader.scss +126 -0
- package/framework/src/components/_modal.scss +232 -0
- package/framework/src/components/_otp.scss +73 -0
- package/framework/src/components/_pagination.scss +83 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +184 -0
- package/framework/src/components/_product-tour.scss +129 -0
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +85 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_segmented-control.scss +62 -0
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +217 -0
- package/framework/src/components/_sticker.scss +148 -0
- package/framework/src/components/_switch.scss +115 -0
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +228 -0
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +282 -0
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/components/alert/_alert.scss +94 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/components/alert/_toaster.scss +124 -0
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/components/input/_form.scss +602 -0
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/components/progress/_progress.scss +223 -0
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +3 -0
- package/framework/src/elements/_plus-symbol.scss +32 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +467 -0
- package/framework/src/grid/_rows.scss +54 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +5 -0
- package/framework/src/layout/_hero.scss +146 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +46 -0
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +13 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +56 -0
- package/framework/src/utilities/_derived-variables.scss +1 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +10 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +8 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +294 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/variables/_color.scss +85 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +28 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// Responsiveness
|
|
2
|
+
@mixin from($device) {
|
|
3
|
+
@media screen and (min-width: $device) {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin until($device) {
|
|
9
|
+
@media screen and (max-width: #{$device - 1px}) {
|
|
10
|
+
@content;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin mobile {
|
|
15
|
+
@media screen and (max-width: #{$tablet - 1px}) {
|
|
16
|
+
@content;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin tablet {
|
|
21
|
+
@media screen and (min-width: $tablet), print {
|
|
22
|
+
@content;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin tablet-only {
|
|
27
|
+
@media screen and (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
|
|
28
|
+
@content;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin touch {
|
|
33
|
+
@media screen and (max-width: #{$desktop - 1px}) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin desktop {
|
|
39
|
+
@media screen and (min-width: $desktop) {
|
|
40
|
+
@content;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin desktop-only {
|
|
45
|
+
@media screen and (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
|
|
46
|
+
@content;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@mixin until-widescreen {
|
|
51
|
+
@media screen and (max-width: #{$widescreen - 1px}) {
|
|
52
|
+
@content;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin widescreen {
|
|
57
|
+
@media screen and (min-width: $widescreen) {
|
|
58
|
+
@content;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@mixin widescreen-only {
|
|
63
|
+
@media screen and (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
|
|
64
|
+
@content;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin until-fullhd {
|
|
69
|
+
@media screen and (max-width: #{$fullhd - 1px}) {
|
|
70
|
+
@content;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@mixin fullhd {
|
|
75
|
+
@media screen and (min-width: $fullhd) {
|
|
76
|
+
@content;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin all-desktop-only {
|
|
81
|
+
@media screen and (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
|
|
82
|
+
@content;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Responsive for container queries
|
|
87
|
+
.query-container {
|
|
88
|
+
container-type: inline-size;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin container-from($device) {
|
|
92
|
+
@container (min-width: #{$device}) {
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@mixin container-until($device) {
|
|
98
|
+
@container (max-width: #{$device - 1px}) {
|
|
99
|
+
@content;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin container-mobile {
|
|
104
|
+
@container (max-width: #{$tablet - 1px}) {
|
|
105
|
+
@content;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@mixin container-tablet {
|
|
110
|
+
@container (min-width: #{$tablet}) {
|
|
111
|
+
@content;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin container-tablet-only {
|
|
116
|
+
@container (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
|
|
117
|
+
@content;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin container-touch {
|
|
122
|
+
@container (max-width: #{$desktop - 1px}) {
|
|
123
|
+
@content;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin container-desktop {
|
|
128
|
+
@container (min-width: #{$desktop}) {
|
|
129
|
+
@content;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin container-desktop-only {
|
|
134
|
+
@container (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
|
|
135
|
+
@content;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@mixin container-until-widescreen {
|
|
140
|
+
@container (max-width: #{$widescreen - 1px}) {
|
|
141
|
+
@content;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@mixin container-widescreen {
|
|
146
|
+
@container (min-width: #{$widescreen}) {
|
|
147
|
+
@content;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin container-widescreen-only {
|
|
152
|
+
@container (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
|
|
153
|
+
@content;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@mixin container-until-fullhd {
|
|
158
|
+
@container (max-width: #{$fullhd - 1px}) {
|
|
159
|
+
@content;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@mixin container-fullhd {
|
|
164
|
+
@container (min-width: #{$fullhd}) {
|
|
165
|
+
@content;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@mixin container-all-desktop-only {
|
|
170
|
+
@container (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
|
|
171
|
+
@content;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@mixin spinner($color: 'neutral') {
|
|
2
|
+
animation: spinAround 500ms infinite linear;
|
|
3
|
+
border: 2px solid getColor("#{$color}");
|
|
4
|
+
border-radius: 290486px;
|
|
5
|
+
border-right-color: transparent;
|
|
6
|
+
border-top-color: transparent;
|
|
7
|
+
content: '';
|
|
8
|
+
display: block;
|
|
9
|
+
height: 1em;
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 1em;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@mixin hoverRules {
|
|
2
|
+
background-color: getColor('main-fade');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@mixin hover {
|
|
6
|
+
&:hover:not(.is-disabled):not(:focus) {
|
|
7
|
+
@include hoverRules();
|
|
8
|
+
}
|
|
9
|
+
&:focus:not(.is-disabled), &:focus-visible:not(.is-disabled) {
|
|
10
|
+
border: 2px solid currentColor;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin disabledRulesWithoutBG {
|
|
15
|
+
border-color: getColor('disabled') !important;
|
|
16
|
+
box-shadow: none !important;
|
|
17
|
+
color: getColor('disabled') !important;
|
|
18
|
+
cursor: not-allowed !important;
|
|
19
|
+
filter: grayscale(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin disabledRules {
|
|
23
|
+
background-color: getColor('disabled-fade') !important;
|
|
24
|
+
@include disabledRulesWithoutBG;
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@mixin block {
|
|
2
|
+
&:not(:last-child) {
|
|
3
|
+
margin-bottom: 15px;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin overflow-touch {
|
|
8
|
+
-webkit-overflow-scrolling: touch;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin placeholder {
|
|
12
|
+
$placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input';
|
|
13
|
+
@each $placeholder in $placeholders {
|
|
14
|
+
&:#{$placeholder}-placeholder {
|
|
15
|
+
@content;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin ellipsis() {
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
'transparent': ['transparent', 'transparent', 'transparent'],
|
|
16
|
+
'main':[ #3d5d7e, 'main', 'white'],
|
|
17
|
+
'main-fade':[ #eff2f8, 'main-fade', 'white'],
|
|
18
|
+
'accent':[ #da641b,'accent', 'white'],
|
|
19
|
+
'accent-fade':[ #faebe3,'accent-fade', 'white'],
|
|
20
|
+
'font':[ #3d5d7e, 'font', 'white'],
|
|
21
|
+
'font-placeholder':[ #687a87, 'font-placeholder', 'white'],
|
|
22
|
+
'success':[ #007B52, 'success', 'white'],
|
|
23
|
+
'success-fade':[ #cae8ca,'success-fade', 'white'],
|
|
24
|
+
'info':[ #1A688A, 'info', 'white'],
|
|
25
|
+
'info-fade':[ #c8dbec, 'info-fade', 'white'],
|
|
26
|
+
'warning':[ #FFBB33, 'warning', 'white'],
|
|
27
|
+
'warning-fade':[ #ecdbc6, 'warning-fade', 'white'],
|
|
28
|
+
'error':[ #D42D02,'error', 'white'],
|
|
29
|
+
'error-fade':[ #eecccc, 'error-fade', 'white'],
|
|
30
|
+
'disabled':[ #646464, 'disabled', 'white'],
|
|
31
|
+
'disabled-fade':[ #D1D1D1,'disabled-fade', 'white'],
|
|
32
|
+
'neutral':[ #707070, 'grey', 'white' ],
|
|
33
|
+
'neutral-fade':[#F4F4F4, 'grey-fade', 'white' ],
|
|
34
|
+
) !default;
|
|
35
|
+
|
|
36
|
+
$fade-colors: (
|
|
37
|
+
'main': 'main-fade',
|
|
38
|
+
'success': 'success-fade',
|
|
39
|
+
'info':'info-fade',
|
|
40
|
+
'warning':'warning-fade',
|
|
41
|
+
'error':'error-fade',
|
|
42
|
+
'disabled': 'disabled-fade',
|
|
43
|
+
'neutral': 'neutral-fade',
|
|
44
|
+
) !default;
|
|
45
|
+
|
|
46
|
+
@function getColor( $name ) {
|
|
47
|
+
@if global-variable-exists(suffix-theme) {
|
|
48
|
+
@return var(--color-#{nth(map-get($colors, $name), 2)}-#{$suffix-theme});
|
|
49
|
+
} @else {
|
|
50
|
+
@return var(--color-#{nth(map-get($colors,$name),2)});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@function getColorValue( $name ) {
|
|
55
|
+
@return #{nth(map-get($colors,$name),1)}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@function getColorBrandName( $name ) {
|
|
59
|
+
@return #{nth(map-get($colors,$name),2)}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@function invertColor ($colorName) {
|
|
65
|
+
@return var(--color-#{nth(map-get($colors,$colorName),3)})
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@function fadeColor ($colorName) {
|
|
69
|
+
$name: map-get($fade-colors,$colorName);
|
|
70
|
+
@return getColor($name);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Brand Color
|
|
74
|
+
$colors-brand: (
|
|
75
|
+
'background', 'main', 'accent'
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
// Brand Color Functionnal
|
|
79
|
+
$colors-brand-functionnal: (
|
|
80
|
+
'background', 'main', 'accent', 'info', 'success', 'error', 'warning', 'neutral'
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
$colors-feedback: (
|
|
84
|
+
'success', 'error', 'warning', 'info'
|
|
85
|
+
);
|
|
@@ -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
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trilogy-ds/styles",
|
|
3
|
+
"version": "0.0.1-alpha-prompt",
|
|
4
|
+
"author": "Bouygues Telecom",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/BouyguesTelecom/trilogy",
|
|
8
|
+
"directory": "packages/styles"
|
|
9
|
+
},
|
|
10
|
+
"license": "UNLICENSED",
|
|
11
|
+
"files": [
|
|
12
|
+
"framework/src",
|
|
13
|
+
"themes/default/src",
|
|
14
|
+
"themes/common/src",
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"main": "dist/default/trilogy.css",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build:autolayout": "esbuild --platform=node --bundle scripts/autolayout.ts --outfile=scripts/dist/autolayout.cjs --sourcemap",
|
|
20
|
+
"build:spacing": "esbuild --platform=node --bundle scripts/spacing.ts --outfile=scripts/dist/spacing.cjs --sourcemap",
|
|
21
|
+
"create:autolayout": "node scripts/dist/autolayout.cjs",
|
|
22
|
+
"create:spacing": "node scripts/dist/spacing.cjs",
|
|
23
|
+
"prebuild": "npm run copy:icons",
|
|
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",
|
|
26
|
+
"copy:icons": "mkdir -p ./dist/default/assets/icons && cp -R ../assets/lib/icons/all ./dist/default/assets/icons/."
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "assets";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@mixin pattern-light ($size, $x-pos: top, $y-pos: center) {
|
|
2
|
+
background: url('') no-repeat;
|
|
3
|
+
background-size: $size;
|
|
4
|
+
background-position: $x-pos $y-pos;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin pattern-dark ($size, $x-pos: top, $y-pos: center) {
|
|
8
|
+
background: linear-gradient(#1b3650, getColor('alternate'));
|
|
9
|
+
background-size: auto, $size, auto;
|
|
10
|
+
background-position: top left, $x-pos $y-pos, top left;
|
|
11
|
+
}
|
|
File without changes
|
|
File without changes
|