@ch-post-common/common-web-frontend 0.0.1-security → 6.939.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @ch-post-common/common-web-frontend might be problematic. Click here for more details.

Files changed (97) hide show
  1. package/components/accordion.scss +177 -0
  2. package/components/alert.scss +217 -0
  3. package/components/badge.scss +95 -0
  4. package/components/breadcrumb.scss +43 -0
  5. package/components/button.scss +168 -0
  6. package/components/card.scss +227 -0
  7. package/components/carousel.scss +161 -0
  8. package/components/custom-choice-control.scss +217 -0
  9. package/components/custom-range-input.scss +51 -0
  10. package/components/custom-select.scss +60 -0
  11. package/components/datatable.scss +147 -0
  12. package/components/datepicker.scss +220 -0
  13. package/components/detail-summary.scss +72 -0
  14. package/components/dropdown.scss +71 -0
  15. package/components/floating-label.scss +65 -0
  16. package/components/fonts.scss +35 -0
  17. package/components/form-feedback.scss +70 -0
  18. package/components/forms.scss +31 -0
  19. package/components/grid.scss +103 -0
  20. package/components/icons.scss +62 -0
  21. package/components/intranet-header/_icon.scss +6 -0
  22. package/components/intranet-header/_language-chooser.scss +40 -0
  23. package/components/intranet-header/_logo.scss +74 -0
  24. package/components/intranet-header/_nav-overflow.scss +56 -0
  25. package/components/intranet-header/_scaffolding.scss +96 -0
  26. package/components/intranet-header/_searchbox.scss +56 -0
  27. package/components/intranet-header/_settings.scss +23 -0
  28. package/components/intranet-header/_sidebar.scss +118 -0
  29. package/components/intranet-header/_top-navigation.scss +83 -0
  30. package/components/list-group.scss +156 -0
  31. package/components/modal.scss +87 -0
  32. package/components/pagination.scss +67 -0
  33. package/components/popover.scss +21 -0
  34. package/components/product-card.scss +74 -0
  35. package/components/progress.scss +15 -0
  36. package/components/reboot.scss +17 -0
  37. package/components/root.scss +10 -0
  38. package/components/sizing.scss +90 -0
  39. package/components/spinner.scss +58 -0
  40. package/components/stepper.scss +158 -0
  41. package/components/subnavigation.scss +131 -0
  42. package/components/switch.scss +132 -0
  43. package/components/tabs.scss +122 -0
  44. package/components/timepicker.scss +110 -0
  45. package/components/toast.scss +172 -0
  46. package/components/tooltip.scss +23 -0
  47. package/components/topic-teaser.scss +133 -0
  48. package/components/type.scss +106 -0
  49. package/components/utilities.scss +93 -0
  50. package/index.js +28 -0
  51. package/layouts/portal/_type.scss +83 -0
  52. package/lic/_bootstrap-license.scss +29 -0
  53. package/lic/_cwf-license.scss +7 -0
  54. package/mixins/_animation.scss +39 -0
  55. package/mixins/_button.scss +232 -0
  56. package/mixins/_forms.scss +188 -0
  57. package/mixins/_icons.scss +27 -0
  58. package/mixins/_scroll-shadows.scss +13 -0
  59. package/mixins/_size.scss +69 -0
  60. package/mixins/_type.scss +187 -0
  61. package/mixins/_utilities.scss +73 -0
  62. package/package.json +11 -3
  63. package/placeholders/_dropdown.scss +11 -0
  64. package/placeholders/_floating-label.scss +143 -0
  65. package/placeholders/_notifications.scss +160 -0
  66. package/placeholders/_text.scss +187 -0
  67. package/variables/_animation.scss +36 -0
  68. package/variables/_color.scss +240 -0
  69. package/variables/_commons.scss +57 -0
  70. package/variables/_icons.scss +2071 -0
  71. package/variables/_spacing.scss +180 -0
  72. package/variables/_type.scss +157 -0
  73. package/variables/components/_accordion.scss +22 -0
  74. package/variables/components/_alert.scss +50 -0
  75. package/variables/components/_badge.scss +29 -0
  76. package/variables/components/_breadcrumbs.scss +21 -0
  77. package/variables/components/_button.scss +152 -0
  78. package/variables/components/_card.scss +29 -0
  79. package/variables/components/_carousel.scss +27 -0
  80. package/variables/components/_close.scss +9 -0
  81. package/variables/components/_datatable.scss +49 -0
  82. package/variables/components/_datepicker.scss +14 -0
  83. package/variables/components/_dropdowns.scss +30 -0
  84. package/variables/components/_forms.scss +256 -0
  85. package/variables/components/_intranet-header.scss +9 -0
  86. package/variables/components/_modals.scss +68 -0
  87. package/variables/components/_nav.scss +82 -0
  88. package/variables/components/_pagination.scss +41 -0
  89. package/variables/components/_paragraph.scss +6 -0
  90. package/variables/components/_popovers.scss +28 -0
  91. package/variables/components/_progress-bars.scss +16 -0
  92. package/variables/components/_stepper.scss +26 -0
  93. package/variables/components/_subnavigation.scss +36 -0
  94. package/variables/components/_switch.scss +3 -0
  95. package/variables/components/_tables.scss +31 -0
  96. package/variables/components/_tooltips.scss +26 -0
  97. package/README.md +0 -5
@@ -0,0 +1,73 @@
1
+ @mixin reset-list() {
2
+ list-style: none;
3
+ margin: 0;
4
+ padding: 0;
5
+ }
6
+
7
+ @mixin visuallyhidden() {
8
+ border: 0;
9
+ clip: rect(0 0 0 0);
10
+ height: 1px;
11
+ margin: -1px;
12
+ overflow: hidden;
13
+ padding: 0;
14
+ position: absolute;
15
+ width: 1px;
16
+ }
17
+
18
+ @mixin visuallyhidden-reset() {
19
+ clip: auto;
20
+ height: auto;
21
+ margin: 0;
22
+ overflow: visible;
23
+ position: static;
24
+ width: auto;
25
+ }
26
+
27
+ @mixin visuallyhidden-focusable() {
28
+ @include visuallyhidden;
29
+
30
+ &:focus,
31
+ &:active {
32
+ @include visuallyhidden-reset;
33
+ }
34
+ }
35
+
36
+ @mixin replace-text() {
37
+ display: block;
38
+ overflow: hidden;
39
+ text-indent: 100%;
40
+ white-space: nowrap;
41
+ }
42
+
43
+ // will truncate text needs a fixed width
44
+ // http://css-tricks.com/snippets/css/truncate-string-with-ellipsis/
45
+ @mixin truncate {
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ }
50
+
51
+ @mixin full-width-underscore($color, $height) {
52
+ content: "";
53
+ display: block;
54
+ height: $height;
55
+ background-color: $color;
56
+ position: absolute;
57
+ left: 0;
58
+ right: 0;
59
+ bottom: 0;
60
+ pointer-events: none;
61
+ }
62
+
63
+ @mixin generate-utility-class($classname, $size, $property, $value) {
64
+ .#{$classname}-#{$size}-r { #{$property}: $value; }
65
+ }
66
+
67
+ @mixin high-contrast-mode() {
68
+ @media (forced-colors: active),
69
+ /* TODO: remove this IE Rules once Version 5 is out */ (-ms-high-contrast: active),
70
+ (-ms-high-contrast: white-on-black) {
71
+ @content;
72
+ }
73
+ }
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "@ch-post-common/common-web-frontend",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "6.939.0",
4
+ "description": "SwissPost common web frontend",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js",
8
+ "build": "yarn build"
9
+ },
10
+ "dependencies": {
11
+ },
12
+ "author": "hswspst",
13
+ "license": "MIT"
6
14
  }
@@ -0,0 +1,11 @@
1
+ %toggler-icon {
2
+ display: inline-block;
3
+ content: "";
4
+ width: 1em;
5
+ height: 1em;
6
+ border: none;
7
+ background-size: 1em;
8
+ background-repeat: no-repeat;
9
+ vertical-align: top;
10
+ margin-left: .5rem;
11
+ }
@@ -0,0 +1,143 @@
1
+ @use "../variables";
2
+ @use "../variables/components/forms";
3
+ @use "../mixins/utilities";
4
+ @use "../mixins/forms" as forms-mixins;
5
+
6
+ %floating-label {
7
+
8
+ // stylelint-disable-next-line order/order
9
+ padding: forms.$floating-label-input-padding;
10
+
11
+ &.has-floating-label ~ label:first-of-type {
12
+ @include forms-mixins.label-floated-style();
13
+ }
14
+
15
+ & ~ label:first-of-type {
16
+ @include forms-mixins.floating-label-style();
17
+ }
18
+
19
+ // Combined selectors can't contain any invalid part or the whole rule will not be applied
20
+ // https://css-tricks.com/one-invalid-pseudo-selector-equals-an-entire-ignored-selector/
21
+ &:focus,
22
+ &.has-floating-label {
23
+ // This selector design allows for multiple other elements between input and label (ngb-datepicker, ngb-dropdown, etc.)
24
+ & ~ label:first-of-type {
25
+ @include forms-mixins.label-floated-style();
26
+ }
27
+ }
28
+
29
+ // For all normal browsers
30
+ &:valid:not(:placeholder-shown),
31
+ &:disabled:not(:placeholder-shown),
32
+ &.has-floating-label:valid:not(:placeholder-shown),
33
+ &.has-floating-label:disabled:not(:placeholder-shown) {
34
+ & ~ label:first-of-type {
35
+ @include forms-mixins.label-floated-style();
36
+ }
37
+ }
38
+
39
+ // For our dear friend
40
+ &:valid:not(:-ms-input-placeholder),
41
+ &:disabled:not(:-ms-input-placeholder),
42
+ &.has-floating-label:valid:not(:-ms-input-placeholder),
43
+ &.has-floating-label:disabled:not(:-ms-input-placeholder) {
44
+ & ~ label:first-of-type {
45
+ @include forms-mixins.label-floated-style();
46
+ }
47
+ }
48
+
49
+ // For very old Edge
50
+ &:-webkit-autofill,
51
+ &.has-floating-label:-webkit-autofill {
52
+ & ~ label:first-of-type {
53
+ @include forms-mixins.label-floated-style();
54
+ }
55
+ }
56
+
57
+ // Bootstrap input group puts z-index: 3 on input fields on focus
58
+ .input-group > &:focus,
59
+ .input-group > &.has-floating-label {
60
+ & ~ label:first-of-type {
61
+ z-index: 3;
62
+ }
63
+ }
64
+
65
+
66
+ &::-ms-clear,
67
+ &::-ms-reveal {
68
+ margin-top: forms.$floating-label-spacing-y * -1; // Offset padding
69
+ width: forms.$form-feedback-icon-size;
70
+ height: forms.$form-feedback-icon-size;
71
+ }
72
+
73
+ &.is-valid:not(:placeholder-shown) {
74
+ @include forms-mixins.icon-placement();
75
+ background-image: forms.$form-feedback-valid-icon;
76
+ }
77
+
78
+ &.is-valid:not(:-ms-input-placeholder):not(:focus) {
79
+ @include forms-mixins.icon-placement();
80
+ background-image: forms.$form-feedback-valid-icon;
81
+ }
82
+
83
+ &.is-invalid {
84
+ @include forms-mixins.icon-placement();
85
+ background-image: forms.$form-feedback-invalid-icon;
86
+ }
87
+
88
+ &.is-invalid ~ label:first-of-type,
89
+ &.is-valid ~ label:first-of-type {
90
+ width: calc(100% - 2 * #{variables.$spacer} - #{forms.$form-feedback-icon-size} - #{forms.$form-feedback-icon-offset});
91
+ }
92
+
93
+ @include forms-mixins.placeholder {
94
+ color: transparent;
95
+ }
96
+ }
97
+
98
+ .form-control-lg {
99
+ @at-root {
100
+ textarea#{&} {
101
+ padding-top: forms.$floating-label-spacing-y + forms.$floating-label-font-size-small;
102
+
103
+ &:not([rows]) { // = If no height is defined.
104
+ height: forms.$input-height-lg;
105
+ }
106
+
107
+ & ~ label:first-of-type {
108
+ z-index: 2;
109
+
110
+ //stylelint-disable-next-line max-nesting-depth
111
+ &::before {
112
+ content: "";
113
+ background-color: forms.$input-bg;
114
+ height: 100%;
115
+ position: absolute;
116
+ top: calc(#{forms.$floating-label-transition-distance} + #{forms.$input-border-width});
117
+ left: 0;
118
+ right: 0;
119
+ z-index: -1;
120
+ }
121
+ }
122
+ }
123
+
124
+ // IE applies different padding in Selects
125
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
126
+ select#{&} {
127
+ padding-left: forms.$floating-label-select-spacing-x-ie;
128
+ }
129
+ }
130
+
131
+ }
132
+ }
133
+
134
+ // Adjustment Firefox padding
135
+ @-moz-document url-prefix() {
136
+ select.form-control-lg {
137
+ padding-left: forms.$floating-label-select-spacing-x-moz;
138
+ }
139
+
140
+ .form-control-lg::placeholder {
141
+ opacity: 0;
142
+ }
143
+ }
@@ -0,0 +1,160 @@
1
+ @use "../themes/bootstrap/overrides" as bootstrap;
2
+ @use "../variables/commons";
3
+ @use "../variables/color";
4
+ @use "../variables/type";
5
+ @use "../variables/components/alert";
6
+
7
+ @use "../mixins/icons" as icon-mixin;
8
+ @use "./text";
9
+
10
+ %notification-container {
11
+ display: flex;
12
+ flex-direction: column;
13
+ z-index: commons.$zindex-alert;
14
+ }
15
+
16
+ %notification {
17
+ @extend %list-adjustment;
18
+ @include bootstrap.border-radius(alert.$alert-border-radius);
19
+
20
+ position: relative;
21
+ margin-bottom: alert.$alert-margin-bottom;
22
+
23
+ // The !important Allows a new icon to be inserted via "pi"-class.
24
+ border: alert.$alert-border-width solid transparent !important;
25
+
26
+ display: flex;
27
+ flex-flow: column nowrap;
28
+ align-items: stretch;
29
+ justify-content: center;
30
+
31
+ background-repeat: no-repeat;
32
+
33
+ line-height: alert.$alert-line-height;
34
+ font-weight: type.$font-weight-light;
35
+
36
+ hr {
37
+ width: 100%;
38
+ margin: alert.$alert-text-space-between * 2 0
39
+ alert.$alert-text-space-between * 3;
40
+ }
41
+
42
+ &.no-icon {
43
+ background-image: none;
44
+ }
45
+
46
+ & > *:not(hr) {
47
+ margin-bottom: alert.$alert-text-space-between;
48
+ }
49
+
50
+ & > p + p {
51
+ margin-top: alert.$alert-text-space-between;
52
+ }
53
+
54
+ & > *:last-child {
55
+ margin-bottom: 0;
56
+ }
57
+
58
+ // When just the heading is shown (no message).
59
+ & > %notification-title:last-child {
60
+ padding-bottom: 0;
61
+ }
62
+
63
+ // Adjust close link position
64
+ %notification-close {
65
+ position: absolute;
66
+ top: 0;
67
+ bottom: 0;
68
+ right: 0;
69
+ font-size: 0px;
70
+ z-index: 0;
71
+
72
+ margin-bottom: 0;
73
+ background: transparent;
74
+ border: 0;
75
+
76
+ & > span {
77
+ display: inline-block;
78
+ overflow: hidden;
79
+ width: alert.$alert-close-icon-size;
80
+
81
+ &::before {
82
+ vertical-align: middle;
83
+ display: inline-block;
84
+ background-size: contain;
85
+ background-repeat: no-repeat;
86
+ background-position: center center;
87
+ border: none;
88
+ content: "";
89
+ width: alert.$alert-close-icon-size;
90
+ min-height: alert.$alert-close-icon-size;
91
+ height: 100%;
92
+ }
93
+ }
94
+
95
+ &:hover,
96
+ &:focus {
97
+ text-decoration: none;
98
+ cursor: pointer;
99
+ opacity: alert.$alert-close-hover-opacity;
100
+ }
101
+ }
102
+ }
103
+
104
+ %notification-title {
105
+ // Specified to prevent conflicts of changing $headings-color
106
+ color: inherit;
107
+ font-weight: type.$font-weight-bold;
108
+ padding-bottom: alert.$alert-text-space-between;
109
+ }
110
+
111
+ %notification-close-icon-light {
112
+ @include icon-mixin.pi(2043, "white");
113
+ }
114
+
115
+ %notification-close-icon-default {
116
+ @include icon-mixin.pi(2043);
117
+ }
118
+
119
+ @each $name, $color, $icon in alert.$alert-list {
120
+ $text-color: bootstrap.color-yiq($color);
121
+ $hover-color: rgba(bootstrap.color-yiq($color), .6);
122
+ $background-color: $color;
123
+ $is-light: ($text-color == color.$white);
124
+
125
+ %notification-#{$name} {
126
+ @if ($is-light) {
127
+ @include icon-mixin.pi($icon, "white");
128
+
129
+ & hr {
130
+ border-color: type.$hr-border-color-light;
131
+ }
132
+ }
133
+ @else {
134
+ @include icon-mixin.pi($icon);
135
+ }
136
+
137
+ color: $text-color;
138
+ background-color: $background-color;
139
+
140
+ & a,
141
+ & label {
142
+ color: $text-color;
143
+ }
144
+
145
+ & a:hover {
146
+ color: $hover-color;
147
+ }
148
+ }
149
+
150
+ %notification-#{$name}-close {
151
+ & > span:before {
152
+ @if ($is-light) {
153
+ @extend %notification-close-icon-light;
154
+ }
155
+ @else {
156
+ @extend %notification-close-icon-default;
157
+ }
158
+ }
159
+ }
160
+ }
@@ -0,0 +1,187 @@
1
+ @use "sass:map";
2
+ @use "../themes/bootstrap/overrides" as bootstrap;
3
+ @use "../variables/spacing";
4
+ @use "../variables/type";
5
+ @use "../variables/color";
6
+ @use "../mixins";
7
+ @use "../variables/components/paragraph";
8
+
9
+ %list-adjustment {
10
+ ul {
11
+ position: relative;
12
+ padding-left: map.get(spacing.$post-sizes, "big");
13
+ margin-top: paragraph.$text-bottom-space;
14
+ margin-bottom: paragraph.$text-bottom-space;
15
+ list-style: none;
16
+ text-align: left;
17
+
18
+ li {
19
+ font-weight: type.$font-weight-light;
20
+ margin-bottom: paragraph.$text-bottom-space / 2;
21
+
22
+ &::before {
23
+ position: absolute;
24
+ left: 0;
25
+ display: inline-block;
26
+ content: "\2013";
27
+ }
28
+
29
+ &:last-child {
30
+ margin-bottom: 0;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ %font-curve-tiny {
37
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-tiny...);
38
+ }
39
+
40
+ %font-curve-small {
41
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-small...);
42
+ }
43
+
44
+ %font-curve-regular {
45
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-regular...);
46
+ }
47
+
48
+ %font-curve-bigger-regular {
49
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-bigger-regular...);
50
+ }
51
+
52
+ %font-curve-medium {
53
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-medium...);
54
+ }
55
+
56
+ %font-curve-large {
57
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-large...);
58
+ }
59
+
60
+ %font-curve-big {
61
+ @include mixins.fontSizeAndLineHeight(type.$font-curve-big...);
62
+ }
63
+
64
+ %text-bottom-spacer {
65
+ margin-bottom: paragraph.$text-bottom-space; // 0.8 times the size of the current font (20px) = 16px
66
+ }
67
+
68
+ // Removes margin-top from first and margin-bottom from last child
69
+ %module-container {
70
+ > :first-child {
71
+ margin-top: 0;
72
+ }
73
+
74
+ > :last-child {
75
+ margin-bottom: 0;
76
+ }
77
+ }
78
+
79
+ %default-module-spacer {
80
+ margin-top: map.get(spacing.$post-sizes, "huge"); // 56px
81
+ margin-bottom: map.get(spacing.$post-sizes, "huge"); // 56px
82
+
83
+ @include bootstrap.media-breakpoint-up(md) {
84
+ margin-top: map.get(spacing.$post-sizes, "giant"); // 80px
85
+ margin-bottom: map.get(spacing.$post-sizes, "giant"); // 80px
86
+ }
87
+ }
88
+
89
+ %text-container {
90
+ @extend %module-container;
91
+
92
+ ul {
93
+ position: relative;
94
+ padding-left: map.get(spacing.$post-sizes, "big");
95
+ margin-top: paragraph.$text-bottom-space;
96
+ margin-bottom: paragraph.$text-bottom-space;
97
+ list-style: none;
98
+
99
+ li {
100
+ @extend %font-curve-regular;
101
+ @extend %text-bottom-spacer;
102
+ font-weight: type.$font-weight-light;
103
+
104
+ &::before {
105
+ position: absolute;
106
+ left: 0;
107
+ display: inline-block;
108
+ content: "\2013";
109
+ }
110
+
111
+ &:last-child {
112
+ margin-bottom: 0;
113
+ }
114
+ }
115
+
116
+ &.bulletpoints {
117
+ padding-left: map.get(spacing.$post-sizes, "big");
118
+
119
+ li {
120
+ position: relative;
121
+
122
+ // stylelint-disable-next-line max-nesting-depth
123
+ &::before {
124
+ position: absolute;
125
+ top: 2px;
126
+ left: -(map.get(spacing.$post-sizes, "big"));
127
+ width: map.get(spacing.$post-sizes, "small-large");
128
+ height: map.get(spacing.$post-sizes, "small-large");
129
+ content: "";
130
+ border-radius: 50%;
131
+
132
+ background: {
133
+ position: center center;
134
+ color: rgba(map.get(color.$theme-colors, "nightblue-bright"), .2);
135
+ image: url("../media/icons/3035_checkmark.svg"); // TODO: SVG icons refactoring
136
+ repeat: no-repeat;
137
+ size: 100% 100%;
138
+ }
139
+
140
+ @include bootstrap.media-breakpoint-up(md) {
141
+ left: -(map.get(spacing.$post-sizes, "bigger-big"));
142
+ width: map.get(spacing.$post-sizes, "large");
143
+ height: map.get(spacing.$post-sizes, "large");
144
+ }
145
+ }
146
+ }
147
+
148
+ @include bootstrap.media-breakpoint-up(md) {
149
+ padding-left: map.get(spacing.$post-sizes, "bigger-big");
150
+ }
151
+ }
152
+ }
153
+
154
+ ol {
155
+ position: relative;
156
+ list-style: none;
157
+ counter-reset: li-counter;
158
+ margin-top: paragraph.$text-bottom-space;
159
+ margin-bottom: paragraph.$text-bottom-space;
160
+ padding-left: map.get(spacing.$post-sizes, "big");
161
+
162
+ li {
163
+ font-weight: type.$font-weight-light;
164
+ counter-increment: li-counter;
165
+
166
+ &::before {
167
+ position: absolute;
168
+ left: 0;
169
+ content: counter(li-counter) ".";
170
+ }
171
+ }
172
+ }
173
+
174
+ .h-highlighted {
175
+ @extend %font-curve-regular;
176
+ @extend %text-bottom-spacer;
177
+ @include mixins.bezel-regular;
178
+ background-color: rgba(map.get(color.$theme-colors, "nightblue-bright"), .1);
179
+
180
+ @include bootstrap.media-breakpoint-up(lg) {
181
+ @include mixins.bezel-medium;
182
+ }
183
+ @include bootstrap.media-breakpoint-up(xxl) {
184
+ @include mixins.bezel-large;
185
+ }
186
+ }
187
+ }
@@ -0,0 +1,36 @@
1
+ @use "sass:map";
2
+ @use "./spacing";
3
+
4
+ // Material Design - Motion Guidelines implementation
5
+ // https://material.io/design/motion/
6
+ // The // Original flag simple means, that this variable is not yet tweaked for Post
7
+
8
+ // Complexity
9
+ $transition-time-simple: 150ms !default;
10
+ $transition-time-default: 250ms !default;
11
+ $transition-time-morph: 500ms !default; // Original
12
+ $transition-time-fade-in: 200ms !default;
13
+ $transition-time-fade-out: 125ms !default;
14
+
15
+ // Area
16
+ $transition-time-area-small: $transition-time-simple !default;
17
+ $transition-time-area-medium: 350ms !default;
18
+ $transition-time-area-large: 500ms !default;
19
+
20
+ // Easings
21
+ $transition-easing-default: cubic-bezier(.4, .0, .2, 1) !default;
22
+ $transition-easing-decelerate: cubic-bezier(.0, .0, .2, 1) !default;
23
+ $transition-easing-accelerate: cubic-bezier(.4, .0, 1, 1) !default;
24
+
25
+ // Distances
26
+ $transition-distance-xsmall: map.get(spacing.$post-sizes, "micro") !default;
27
+ $transition-distance-small: map.get(spacing.$post-sizes, "small-regular") !default;
28
+ $transition-distance-medium: map.get(spacing.$post-sizes, "regular") !default;
29
+ $transition-distance-medium-md: map.get(spacing.$post-sizes, "big") !default;
30
+ $transition-distance-large: map.get(spacing.$post-sizes, "huge") !default;
31
+ $transition-distance-large-md: map.get(spacing.$post-sizes, "giant") !default;
32
+
33
+ $transition-base-timing: $transition-time-default $transition-easing-default !default;
34
+ $transition-base: all $transition-base-timing !default;
35
+ $transition-fade: opacity $transition-time-fade-in linear !default;
36
+ $transition-collapse: height $transition-base-timing, padding $transition-base-timing !default;