@total_onion/onion-library 1.1.33 → 1.1.35

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.
@@ -34,9 +34,150 @@
34
34
  margin: 0;
35
35
  }
36
36
 
37
- /* Make images easier to work with */
38
- img {
39
- display: block;
37
+ /* Box sizing rules */
38
+ *,
39
+ *::before,
40
+ *::after {
41
+ box-sizing: border-box;
42
+ }
43
+
44
+ //***** TYPOGRAPHY *****\\
45
+ body {
46
+ // @include core-typography-mixins-v3.fontSecondary();
47
+ }
48
+
49
+ // h1,
50
+ // h2,
51
+ // h3,
52
+ // h4,
53
+ // h5,
54
+ // h6 {
55
+ // margin: 0; //reset default margin
56
+ // font-weight: unset; //reset default font weight
57
+ // margin-top: unset;
58
+ // @include core-typography-mixins-v3.fontPrimary();
59
+ // }
60
+ .override-element-styles {
61
+ h1,
62
+ h2,
63
+ h3,
64
+ h4,
65
+ h5,
66
+ h6 {
67
+ font-size: 0;
68
+ }
69
+ }
70
+
71
+ .standard-content-box-wysiwyg-editor {
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ margin-bottom: var(--heading-block-spacing);
79
+
80
+ &:last-child {
81
+ margin-bottom: 0;
82
+ }
83
+ }
84
+ p {
85
+ margin-bottom: var(--paragraph-block-spacing);
86
+
87
+ &:last-child {
88
+ margin-bottom: 0;
89
+ }
90
+ }
91
+ }
92
+
93
+ p {
94
+ margin: 0; //reset default margin
95
+ // @include core-typography-mixins-v3.p();
96
+ }
97
+
98
+ a {
99
+ text-decoration-skip-ink: auto;
100
+ color: var(--link-colour);
101
+ text-decoration: var(--link-decoration-style);
102
+ text-decoration-color: var(--link-decoration-colour);
103
+
104
+ strong,
105
+ b {
106
+ font-weight: var(--weight-bold);
107
+ }
108
+
109
+ &:hover {
110
+ cursor: pointer;
111
+ color: var(--link-colour-hover);
112
+ text-decoration: var(--link-decoration-style-hover);
113
+ text-decoration-color: var(--link-decoration-colour-hover);
114
+ }
115
+ }
116
+
117
+ button {
118
+ &:focus {
119
+ // outline: none;
120
+ // appearance: none;
121
+ }
122
+ }
123
+
124
+ blockquote {
125
+ margin: 0; //reset default margin
126
+ quotes: '“' '”' '‘' '’';
127
+ font-weight: bold;
128
+
129
+ &::before {
130
+ content: open-quote;
131
+ }
132
+
133
+ &::after {
134
+ content: close-quote;
135
+ }
136
+ }
137
+
138
+ figure,
139
+ figcaption,
140
+ dl,
141
+ dd {
142
+ margin: 0;
143
+ }
144
+
145
+ q {
146
+ &::before {
147
+ content: open-quote;
148
+ }
149
+
150
+ &::after {
151
+ content: close-quote;
152
+ }
153
+ }
154
+
155
+ ol {
156
+ list-style-type: decimal;
157
+ }
158
+ ul {
159
+ list-style-type: disc;
160
+ }
161
+ li {
162
+ // @include core-typography-mixins-v3.p();
163
+ }
164
+ ol {
165
+ padding: 0; //reset default padding
166
+ margin: 0; //reset default margin
167
+ // font-family: var(--secondary-font-family);
168
+ margin-bottom: var(--paragraph-block-spacing);
169
+ list-style-position: inside;
170
+ &:last-child {
171
+ margin-bottom: 0;
172
+ }
173
+ li {
174
+ margin-bottom: var(--list-item-block-spacing);
175
+ line-height: var(--list-item-line-height);
176
+ letter-spacing: var(--list-item-letter-spacing);
177
+ &:last-child {
178
+ margin-bottom: 0;
179
+ }
180
+ }
40
181
  }
41
182
 
42
183
  html {
@@ -68,7 +209,6 @@
68
209
  height: auto;
69
210
  min-height: 100vh;
70
211
  position: relative;
71
- @include core-typography-mixins-v3.fontSecondary();
72
212
  background: var(--body-background-colour);
73
213
  --default-text-colour-mobile: var(--theme-primary-text-colour);
74
214
  color: var(--default-text-colour-mobile);
@@ -143,20 +283,6 @@
143
283
  bottom: 0 !important;
144
284
  }
145
285
 
146
- .evidon-consent-button,
147
- .evidon-prefdiag-overlay,
148
- .evidon-banner {
149
- color: var(--black);
150
- img {
151
- width: auto;
152
- }
153
-
154
- a {
155
- text-decoration: underline;
156
- font-size: unset;
157
- }
158
- }
159
-
160
286
  /* Remove all animations and transitions for people that prefer not to see them */
161
287
  @media (prefers-reduced-motion: reduce) {
162
288
  * {
@@ -5,151 +5,6 @@
5
5
  @use 'sass:math';
6
6
 
7
7
  @mixin coreTypographyV3() {
8
- /* Box sizing rules */
9
- *,
10
- *::before,
11
- *::after {
12
- box-sizing: border-box;
13
- }
14
-
15
- //***** TYPOGRAPHY *****\\
16
- body {
17
- @include core-typography-mixins-v3.fontSecondary();
18
- }
19
-
20
- h1,
21
- h2,
22
- h3,
23
- h4,
24
- h5,
25
- h6 {
26
- margin: 0; //reset default margin
27
- font-weight: unset; //reset default font weight
28
- margin-top: unset;
29
- @include core-typography-mixins-v3.fontPrimary();
30
- }
31
- .override-element-styles {
32
- h1,
33
- h2,
34
- h3,
35
- h4,
36
- h5,
37
- h6 {
38
- font-size: 0;
39
- }
40
- }
41
-
42
- .standard-content-box-wysiwyg-editor {
43
- h1,
44
- h2,
45
- h3,
46
- h4,
47
- h5,
48
- h6 {
49
- margin-bottom: var(--heading-block-spacing);
50
-
51
- &:last-child {
52
- margin-bottom: 0;
53
- }
54
- }
55
- p {
56
- margin-bottom: var(--paragraph-block-spacing);
57
-
58
- &:last-child {
59
- margin-bottom: 0;
60
- }
61
- }
62
- }
63
-
64
- p {
65
- margin: 0; //reset default margin
66
- @include core-typography-mixins-v3.p();
67
- }
68
-
69
- a {
70
- text-decoration-skip-ink: auto;
71
- color: var(--link-colour);
72
- text-decoration: var(--link-decoration-style);
73
- text-decoration-color: var(--link-decoration-colour);
74
-
75
- strong,
76
- b {
77
- font-weight: var(--weight-bold);
78
- }
79
-
80
- &:hover {
81
- cursor: pointer;
82
- color: var(--link-colour-hover);
83
- text-decoration: var(--link-decoration-style-hover);
84
- text-decoration-color: var(--link-decoration-colour-hover);
85
- }
86
- }
87
-
88
- button {
89
- &:focus {
90
- // outline: none;
91
- // appearance: none;
92
- }
93
- }
94
-
95
- blockquote {
96
- margin: 0; //reset default margin
97
- quotes: '“' '”' '‘' '’';
98
- font-weight: bold;
99
-
100
- &::before {
101
- content: open-quote;
102
- }
103
-
104
- &::after {
105
- content: close-quote;
106
- }
107
- }
108
-
109
- figure,
110
- figcaption,
111
- dl,
112
- dd {
113
- margin: 0;
114
- }
115
-
116
- q {
117
- &::before {
118
- content: open-quote;
119
- }
120
-
121
- &::after {
122
- content: close-quote;
123
- }
124
- }
125
-
126
- ol {
127
- list-style-type: decimal;
128
- }
129
- ul {
130
- list-style-type: disc;
131
- }
132
- li {
133
- @include core-typography-mixins-v3.p();
134
- }
135
- ol {
136
- padding: 0; //reset default padding
137
- margin: 0; //reset default margin
138
- font-family: var(--secondary-font-family);
139
- margin-bottom: var(--paragraph-block-spacing);
140
- list-style-position: inside;
141
- &:last-child {
142
- margin-bottom: 0;
143
- }
144
- li {
145
- margin-bottom: var(--list-item-block-spacing);
146
- line-height: var(--list-item-line-height);
147
- letter-spacing: var(--list-item-letter-spacing);
148
- &:last-child {
149
- margin-bottom: 0;
150
- }
151
- }
152
- }
153
8
  .font-primary {
154
9
  @include core-typography-mixins-v3.fontPrimary();
155
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "dotenv": "^16.0.3",
43
- "esbuild": "0.25.5"
43
+ "esbuild": "0.25.5",
44
+ "gsap": "^3.13.0"
44
45
  }
45
46
  }