@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,94 @@
|
|
|
1
|
+
/* @todo validate a.alert exist */
|
|
2
|
+
a.alert {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
transition: box-shadow $animation-duration;
|
|
5
|
+
|
|
6
|
+
&:hover,
|
|
7
|
+
&:active,
|
|
8
|
+
&:focus {
|
|
9
|
+
box-shadow: $shadow;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.alert {
|
|
14
|
+
border-radius: var(--radius);
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-self: flex-start;
|
|
18
|
+
box-shadow: none;
|
|
19
|
+
padding: $spacing-4;
|
|
20
|
+
|
|
21
|
+
&.is-banner {
|
|
22
|
+
|
|
23
|
+
text-align: center;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
border: none !important;
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.text:first-child,
|
|
30
|
+
.title:first-child {
|
|
31
|
+
line-height: normal;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.title,
|
|
35
|
+
.text {
|
|
36
|
+
margin-bottom: 0 !important;
|
|
37
|
+
padding-bottom: $spacing-1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.text:last-child {
|
|
41
|
+
padding-bottom: 0 !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include mobile {
|
|
49
|
+
flex-wrap: wrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
strong {
|
|
53
|
+
color: currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@each $name in $colors-feedback {
|
|
57
|
+
&.is-#{$name} {
|
|
58
|
+
background-color: fadeColor($name);
|
|
59
|
+
border: 1px solid getColor($name);
|
|
60
|
+
|
|
61
|
+
.icon {
|
|
62
|
+
color: getColor($name);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
> .icon {
|
|
68
|
+
flex: none;
|
|
69
|
+
align-self: flex-start;
|
|
70
|
+
|
|
71
|
+
[class^='tri-'],
|
|
72
|
+
[class*=' tri-'] {
|
|
73
|
+
font-size: 20px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
> .body {
|
|
78
|
+
align-self: center;
|
|
79
|
+
margin-bottom: 0;
|
|
80
|
+
flex-grow: 1;
|
|
81
|
+
padding: 1px $spacing-2; /* Fixes flex behavior on Safari mobile */
|
|
82
|
+
|
|
83
|
+
@include mobile {
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.text,
|
|
89
|
+
.paragraph {
|
|
90
|
+
font-size: $text-14;
|
|
91
|
+
text-align: left;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
a.toaster {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
transition: box-shadow $animation-duration;
|
|
4
|
+
|
|
5
|
+
&:hover,
|
|
6
|
+
&:active,
|
|
7
|
+
&:focus {
|
|
8
|
+
box-shadow: $shadow;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.toaster {
|
|
13
|
+
background-color: getColor('info-fade');
|
|
14
|
+
border-radius: var(--radius);
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
position: relative;
|
|
17
|
+
margin-left: 24px;
|
|
18
|
+
margin-right: 24px;
|
|
19
|
+
|
|
20
|
+
.toaster-close {
|
|
21
|
+
padding-right: 0 !important ;
|
|
22
|
+
color: getColor('font') !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.text:first-child,
|
|
26
|
+
.title:first-child {
|
|
27
|
+
font-size: $text-16 !important;
|
|
28
|
+
line-height: normal;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.title,
|
|
32
|
+
.text {
|
|
33
|
+
margin-bottom: 0 !important ;
|
|
34
|
+
padding-bottom: $spacing-1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.text:last-child {
|
|
38
|
+
padding-bottom: 0 !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.icon {
|
|
42
|
+
padding: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include mobile {
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
strong {
|
|
50
|
+
color: currentColor;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
code,
|
|
54
|
+
pre {
|
|
55
|
+
background: getColor('background');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
pre code {
|
|
59
|
+
background: transparent;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@each $name in $colors-feedback {
|
|
63
|
+
&.is-#{$name} {
|
|
64
|
+
background-color: fadeColor($name);
|
|
65
|
+
border: 2px solid getColor($name);
|
|
66
|
+
|
|
67
|
+
.icon {
|
|
68
|
+
color: getColor($name);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:not(.has-description) > .icon {
|
|
74
|
+
align-self: flex-start;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.has-description {
|
|
78
|
+
@include mobile {
|
|
79
|
+
justify-content: center;
|
|
80
|
+
text-align: center;
|
|
81
|
+
|
|
82
|
+
.icon {
|
|
83
|
+
padding: 0;
|
|
84
|
+
margin-bottom: 30px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.body {
|
|
88
|
+
flex: 0 1 auto;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
display: flex;
|
|
94
|
+
|
|
95
|
+
> .icon {
|
|
96
|
+
flex: none;
|
|
97
|
+
align-self: flex-start;
|
|
98
|
+
margin-top: -5.4px;
|
|
99
|
+
font-size: 20px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
> .body {
|
|
103
|
+
align-self: center;
|
|
104
|
+
color: getColor('font');
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
flex-grow: 1;
|
|
107
|
+
padding: 1px $spacing-2; /* Fixes flex behavior on Safari mobile */
|
|
108
|
+
|
|
109
|
+
@include mobile {
|
|
110
|
+
flex: 1;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
box-shadow: none;
|
|
115
|
+
padding: $spacing-4;
|
|
116
|
+
|
|
117
|
+
.title,
|
|
118
|
+
.text,
|
|
119
|
+
.paragraph {
|
|
120
|
+
font-size: $text-14;
|
|
121
|
+
text-align: left;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.input, .textarea {
|
|
2
|
+
&:not(:disabled) {
|
|
3
|
+
&:active,
|
|
4
|
+
&:focus,
|
|
5
|
+
&:focus-visible:not(.icon) {
|
|
6
|
+
padding-left: 15px ;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.input,
|
|
12
|
+
.textarea {
|
|
13
|
+
@include input;
|
|
14
|
+
|
|
15
|
+
padding-left: $spacing-4;
|
|
16
|
+
padding-right: $spacing-4;
|
|
17
|
+
font-size: $size-medium;
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
|
|
21
|
+
// Colors
|
|
22
|
+
@each $name in $colors-brand-functionnal {
|
|
23
|
+
$color: getColor($name);
|
|
24
|
+
$color-invert: invertColor($name);
|
|
25
|
+
$brandName: getColorBrandName($name);
|
|
26
|
+
|
|
27
|
+
&.is-#{$brandName} {
|
|
28
|
+
border: 1px solid $color;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Sizes
|
|
33
|
+
&.is-small {
|
|
34
|
+
@include control-small;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.is-large {
|
|
38
|
+
@include control-large;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.is-fullwidth {
|
|
42
|
+
display: block;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.is-inline {
|
|
47
|
+
display: inline;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
& label {
|
|
51
|
+
margin-top: 10px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.input {
|
|
56
|
+
&::-ms-clear {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.is-small {
|
|
61
|
+
height: 24px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.is-rounded {
|
|
65
|
+
padding-left: 1em;
|
|
66
|
+
padding-right: 1em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.is-static {
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
padding-left: 0;
|
|
73
|
+
padding-right: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&::-webkit-search-cancel-button{
|
|
77
|
+
$colorSvg: encodecolor(getColorValue('main'));
|
|
78
|
+
position:absolute;
|
|
79
|
+
right: 0px;
|
|
80
|
+
bottom : 0px;
|
|
81
|
+
top:0px;
|
|
82
|
+
padding: 0 24px;
|
|
83
|
+
opacity: 1;
|
|
84
|
+
display: block;
|
|
85
|
+
background-image: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
86
|
+
background-size : 20px;
|
|
87
|
+
-webkit-appearance: none;
|
|
88
|
+
background-repeat: no-repeat;
|
|
89
|
+
background-color: getColor('background') ;
|
|
90
|
+
background-position: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&[type="search"] {
|
|
94
|
+
padding-right: 45px;
|
|
95
|
+
&:hover:not(:focus){
|
|
96
|
+
&::-webkit-search-cancel-button {
|
|
97
|
+
background-color: getColor('main-fade');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&:focus{
|
|
101
|
+
&::-webkit-search-cancel-button {
|
|
102
|
+
padding: 0 23px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.textarea {
|
|
111
|
+
display: block;
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
min-width: 100%;
|
|
114
|
+
resize: vertical;
|
|
115
|
+
padding-top: 15px;
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
&:not([rows]) {
|
|
119
|
+
max-height: 600px;
|
|
120
|
+
min-height: 120px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&[rows] {
|
|
124
|
+
height: initial;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.has-fixed-size {
|
|
128
|
+
resize: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:focus-visible{
|
|
132
|
+
padding-top: 14px;
|
|
133
|
+
padding-bottom: 4px;
|
|
134
|
+
}
|
|
135
|
+
}
|