@oat-sa/tao-core-ui 3.13.0 → 3.13.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oat-sa/tao-core-ui",
3
- "version": "3.13.0",
3
+ "version": "3.13.2",
4
4
  "displayName": "TAO Core UI",
5
5
  "description": "UI libraries of TAO",
6
6
  "scripts": {
@@ -8,6 +8,9 @@ For licensing, see LICENSE.md or http://ckeditor.com/license
8
8
  .cke_button__sourcedialog_label {
9
9
  display: inline;
10
10
  }
11
+ .cke_button__interactionsource_label {
12
+ display: inline;
13
+ }
11
14
 
12
15
  /* "Font Size" combo width */
13
16
  .cke_combo__fontsize .cke_combo_text {
@@ -1,7 +1,7 @@
1
1
  // this combines the most common features from normalize, h5bp main and tao base
2
2
 
3
3
  //these vars enables you to include this base in a scoped env.
4
- $mainContainer : html !default;
4
+ $mainContainer: html !default;
5
5
 
6
6
  // Those styles can't be scoped because it's the base to use REM
7
7
  html {
@@ -29,17 +29,21 @@ body {
29
29
  }
30
30
 
31
31
  // cannot be scoped
32
- ::-webkit-scrollbar-corner { background-color: ThreeDHighlight;}
32
+ ::-webkit-scrollbar-corner {
33
+ background-color: ThreeDHighlight;
34
+ }
33
35
 
34
36
  #{$mainContainer} {
35
-
36
- *, *:before, *:after {
37
+ *,
38
+ *:before,
39
+ *:after {
37
40
  -moz-box-sizing: border-box;
38
41
  -webkit-box-sizing: border-box;
39
42
  box-sizing: border-box;
40
43
  }
41
44
 
42
- &, body{
45
+ &,
46
+ body {
43
47
  color: $textColor;
44
48
  font-family: $regularFont;
45
49
  font-weight: normal;
@@ -51,61 +55,115 @@ body {
51
55
  line-height: 1.4;
52
56
  background: white;
53
57
  border-width: 1px;
54
- @if($mainContainer != html){
58
+ @if ($mainContainer != html) {
55
59
  @include font-size(14);
56
60
  }
57
61
  }
58
62
 
59
- address, article, aside, audio, blockquote, dd, div, dl, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header,
60
- hr, noscript, ol, output, p, pre, section, summary, ul, main {
61
- margin-top: 0;
62
- padding-top: 0;
63
- padding-bottom: 0;
63
+ address,
64
+ article,
65
+ aside,
66
+ audio,
67
+ blockquote,
68
+ dd,
69
+ div,
70
+ dl,
71
+ fieldset,
72
+ figcaption,
73
+ figure,
74
+ footer,
75
+ form,
76
+ h1,
77
+ h2,
78
+ h3,
79
+ h4,
80
+ h5,
81
+ h6,
82
+ header,
83
+ hr,
84
+ noscript,
85
+ ol,
86
+ output,
87
+ p,
88
+ pre,
89
+ section,
90
+ summary,
91
+ ul,
92
+ main {
93
+ margin-block-start: 0;
94
+ padding-block-start: 0;
95
+ padding-block-end: 0;
64
96
  white-space: normal;
65
97
  }
66
98
 
67
99
  h1 {
68
100
  font-size: 2em;
69
- margin: 0.67em 0;
101
+ margin-block: 0.67em;
102
+ margin-inline: 0;
70
103
  }
71
104
 
72
105
  h2 {
73
106
  font-size: 1.5em;
74
- margin: 0.83em 0;
107
+ margin-block: 0.83em;
108
+ margin-inline: 0;
75
109
  }
76
110
 
77
111
  h3 {
78
112
  font-size: 1.17em;
79
- margin: 1em 0;
113
+ margin-block: 1em;
114
+ margin-inline: 0;
80
115
  }
81
116
 
82
117
  h4 {
83
118
  font-size: 1em;
84
- margin: 1.33em 0;
119
+ margin-block: 1.33em;
120
+ margin-inline: 0;
85
121
  }
86
122
 
87
123
  h5 {
88
124
  font-size: 0.83em;
89
- margin: 1.67em 0;
125
+ margin-block: 1.67em;
126
+ margin-inline: 0;
90
127
  }
91
128
 
92
129
  h6 {
93
130
  font-size: 0.67em;
94
- margin: 2.33em 0;
131
+ margin-block: 2.33em;
132
+ margin-inline: 0;
95
133
  }
96
134
 
97
135
  blockquote {
98
- margin: 1em 40px;
99
- }
100
-
101
- blockquote, dd, dl, fieldset, figure, h1, h2, h3, h4, h5, h6,
102
- hr, ol, p, pre, ul {
136
+ margin-block: 1em;
137
+ margin-inline: 40px;
138
+ }
139
+
140
+ blockquote,
141
+ dd,
142
+ dl,
143
+ fieldset,
144
+ figure,
145
+ h1,
146
+ h2,
147
+ h3,
148
+ h4,
149
+ h5,
150
+ h6,
151
+ hr,
152
+ ol,
153
+ p,
154
+ pre,
155
+ ul {
103
156
  display: block;
104
157
  margin-block-end: 10px;
105
158
  white-space: normal;
106
159
  }
107
160
 
108
- h1, h2, h3, h4, h5, h6 {
161
+ h1,
162
+ h2,
163
+ h3,
164
+ h4,
165
+ h5,
166
+ h6 {
109
167
  font-weight: normal;
110
168
  font-style: normal;
111
169
  }
@@ -140,7 +198,8 @@ body {
140
198
  &:hover {
141
199
  text-decoration: underline;
142
200
  color: $info;
143
- &:before, &:after {
201
+ &:before,
202
+ &:after {
144
203
  text-decoration: none !important;
145
204
  }
146
205
  }
@@ -149,7 +208,7 @@ body {
149
208
  text-decoration: none;
150
209
  display: block;
151
210
  }
152
- &[rel="external"] span.icon-external {
211
+ &[rel='external'] span.icon-external {
153
212
  &:before {
154
213
  @include font-size(11);
155
214
  padding: 0 0 0 4px;
@@ -159,15 +218,25 @@ body {
159
218
  }
160
219
  }
161
220
 
162
- b, .b, strong, .strong {
221
+ b,
222
+ .b,
223
+ strong,
224
+ .strong {
163
225
  font-weight: bold;
164
226
  }
165
227
 
166
- i, .i, em, .em, dfn {
228
+ i,
229
+ .i,
230
+ em,
231
+ .em,
232
+ dfn {
167
233
  font-style: italic;
168
234
  }
169
235
 
170
- code, pre, kdb, samp {
236
+ code,
237
+ pre,
238
+ kdb,
239
+ samp {
171
240
  font-family: $monospaceFont;
172
241
  @include font-size(14);
173
242
  }
@@ -179,7 +248,7 @@ body {
179
248
  }
180
249
 
181
250
  code {
182
- background: whiten($lightBlueGrey, .5);
251
+ background: whiten($lightBlueGrey, 0.5);
183
252
  padding: 2px 6px;
184
253
  display: inline-block;
185
254
  margin: 0 3px;
@@ -196,7 +265,7 @@ body {
196
265
  }
197
266
 
198
267
  q {
199
- quotes: "\201C" "\201D" "\2018" "\2019";
268
+ quotes: '\201C''\201D''\2018''\2019';
200
269
  &:before,
201
270
  &:after {
202
271
  content: '';
@@ -210,7 +279,7 @@ body {
210
279
 
211
280
  sub,
212
281
  sup {
213
- font-size: .75em;
282
+ font-size: 0.75em;
214
283
  position: relative;
215
284
  vertical-align: baseline;
216
285
  }
@@ -232,7 +301,6 @@ body {
232
301
  overflow: hidden;
233
302
  }
234
303
 
235
-
236
304
  fieldset {
237
305
  border: 0;
238
306
  margin: 0;
@@ -250,7 +318,8 @@ body {
250
318
  resize: vertical;
251
319
  }
252
320
 
253
- label, button {
321
+ label,
322
+ button {
254
323
  cursor: pointer;
255
324
  }
256
325
 
@@ -261,7 +330,8 @@ body {
261
330
  border: none;
262
331
  }
263
332
 
264
- button, input {
333
+ button,
334
+ input {
265
335
  &::-moz-focus-inner {
266
336
  border: 0;
267
337
  padding: 0;
@@ -287,9 +357,9 @@ body {
287
357
  }
288
358
 
289
359
  button,
290
- html input[type="button"],
291
- input[type="reset"],
292
- input[type="submit"] {
360
+ html input[type='button'],
361
+ input[type='reset'],
362
+ input[type='submit'] {
293
363
  -webkit-appearance: button;
294
364
  cursor: pointer;
295
365
  }
@@ -298,7 +368,7 @@ body {
298
368
  @include simple-border();
299
369
  @include border-radius(1);
300
370
 
301
- &[type="search"] {
371
+ &[type='search'] {
302
372
  -webkit-appearance: textfield;
303
373
  -moz-box-sizing: content-box;
304
374
  -webkit-box-sizing: content-box;
@@ -309,8 +379,8 @@ body {
309
379
  }
310
380
  }
311
381
 
312
- &[type="checkbox"],
313
- &[type="radio"] {
382
+ &[type='checkbox'],
383
+ &[type='radio'] {
314
384
  box-sizing: border-box;
315
385
  padding: 0;
316
386
  }
@@ -321,9 +391,12 @@ body {
321
391
  }
322
392
 
323
393
  audio:not([controls]),
324
- [hidden], template,
325
- .hidden, .deleted,
326
- .js, .js-hide {
394
+ [hidden],
395
+ template,
396
+ .hidden,
397
+ .deleted,
398
+ .js,
399
+ .js-hide {
327
400
  display: none !important;
328
401
  }
329
402
 
@@ -359,13 +432,15 @@ body {
359
432
  top: -10000px;
360
433
  }
361
434
 
362
- %clearfix-before, .clearfix:before {
363
- content: " ";
435
+ %clearfix-before,
436
+ .clearfix:before {
437
+ content: ' ';
364
438
  display: table;
365
439
  }
366
440
 
367
- %clearfix-after, .clearfix:after {
368
- content: " ";
441
+ %clearfix-after,
442
+ .clearfix:after {
443
+ content: ' ';
369
444
  display: table;
370
445
  clear: both;
371
446
  }
@@ -375,7 +450,6 @@ body {
375
450
  clear: both;
376
451
  }
377
452
 
378
-
379
453
  .lft,
380
454
  .wrap-left {
381
455
  display: inline;
@@ -389,15 +463,18 @@ body {
389
463
  }
390
464
 
391
465
  .wrap-left {
392
- margin: 20px 20px 20px 0;
466
+ margin-block: 20px;
467
+ margin-inline: 0 20px;
393
468
  }
394
469
 
395
470
  .wrap-right {
396
- margin: 20px 0 20px 20px;
471
+ margin-block: 20px;
472
+ margin-inline: 20px 0;
397
473
  }
398
474
 
399
475
  .tao-centered {
400
- margin: 20px auto;
476
+ margin-block: 20px;
477
+ margin-inline: auto;
401
478
  display: block;
402
479
  }
403
480
 
@@ -420,12 +497,24 @@ body {
420
497
  // added to make _u_ in ck QTI compatible
421
498
  .txt-underline {
422
499
  text-decoration: underline;
423
- font-size : inherit;
500
+ font-size: inherit;
501
+ }
502
+ .writing-mode-vertical-rl .txt-underline {
503
+ text-underline-position: right;
504
+ }
505
+ .writing-mode-vertical-rl[data-useragent-browser='safari'] .txt-underline {
506
+ // for Safari < 18.2 which doesn't support "text-underline-position: right"
507
+ text-decoration: none;
508
+ border-right: 1px solid currentColor;
509
+ }
510
+
511
+ .txt-combine-upright-all {
512
+ text-combine-upright: all;
424
513
  }
425
514
 
426
515
  .txt-highlight {
427
516
  padding: 0 5px;
428
- background: #FF6416;
517
+ background: #ff6416;
429
518
  color: white;
430
519
  }
431
520
 
@@ -461,13 +550,15 @@ body {
461
550
  text-overflow: ellipsis;
462
551
  }
463
552
 
464
- .disabled, *:disabled {
553
+ .disabled,
554
+ *:disabled {
465
555
  cursor: default;
466
- opacity: .7;
556
+ opacity: 0.7;
467
557
  }
468
558
 
469
- .overlay, .ui-widget-overlay {
470
- background: white(.9);
559
+ .overlay,
560
+ .ui-widget-overlay {
561
+ background: white(0.9);
471
562
  }
472
563
 
473
564
  .ui-widget {
@@ -479,13 +570,14 @@ body {
479
570
  font-size: 1.4rem !important;
480
571
  }
481
572
 
482
- .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
573
+ .ui-widget input,
574
+ .ui-widget select,
575
+ .ui-widget textarea,
576
+ .ui-widget button {
483
577
  font-family: $regularFont;
484
578
  font-size: 1.4rem !important;
485
579
  }
486
580
 
487
-
488
-
489
581
  // everything on list styles and counters
490
582
  @import 'base/list-style';
491
583
 
@@ -497,5 +589,4 @@ body {
497
589
 
498
590
  // everything user highlight
499
591
  @import 'base/highlight';
500
-
501
592
  }
@@ -1,4 +1,5 @@
1
- [class*=" col-"], [class^="col-"] {
1
+ [class*=' col-'],
2
+ [class^='col-'] {
2
3
  float: left;
3
4
  min-block-size: 1rem;
4
5
  &:first-child {
@@ -17,7 +18,8 @@
17
18
  overflow-x: hidden;
18
19
  }
19
20
 
20
- .grid-row, .fixed-grid-row {
21
+ .grid-row,
22
+ .fixed-grid-row {
21
23
  @extend .clearfix;
22
24
  inline-size: widthPerc(852, 840);
23
25
  }
@@ -29,17 +31,19 @@
29
31
  @include grid-unit($i, 12, 12);
30
32
  margin-block-end: 12px;
31
33
  }
32
- .alpha {
33
- margin-left: 0 !important
34
- }
34
+ }
35
+ .alpha {
36
+ margin-inline-start: 0 !important;
35
37
  }
36
38
 
37
39
  .writing-mode-vertical-rl {
38
- .grid-row.grid-row, .fixed-grid-row.fixed-grid-row {
40
+ .grid-row.grid-row,
41
+ .fixed-grid-row.fixed-grid-row {
39
42
  block-size: auto;
40
43
  inline-size: 100%;
41
44
  }
42
- [class*=" col-"], [class^="col-"] {
45
+ [class*=' col-'],
46
+ [class^='col-'] {
43
47
  &:first-child {
44
48
  margin-inline-start: 0;
45
49
  margin-block-end: 12px;
@@ -48,10 +52,15 @@
48
52
  margin-inline-end: 0;
49
53
  }
50
54
  }
55
+ .grid-row:last-child {
56
+ [class*=' col-'],
57
+ [class^='col-'] {
58
+ margin-block-end: 0;
59
+ }
60
+ }
51
61
  }
52
62
 
53
63
  #icon-editor {
54
-
55
64
  .grid-row {
56
65
  @extend .clearfix;
57
66
  width: 100%;
@@ -125,32 +125,38 @@ a:hover {
125
125
 
126
126
  h1 {
127
127
  font-size: 2em;
128
- margin: 0.67em 0;
128
+ margin-block: 0.67em;
129
+ margin-inline: 0;
129
130
  }
130
131
 
131
132
  h2 {
132
133
  font-size: 1.5em;
133
- margin: 0.83em 0;
134
+ margin-block: 0.83em;
135
+ margin-inline: 0;
134
136
  }
135
137
 
136
138
  h3 {
137
139
  font-size: 1.17em;
138
- margin: 1em 0;
140
+ margin-block: 1em;
141
+ margin-inline: 0;
139
142
  }
140
143
 
141
144
  h4 {
142
145
  font-size: 1em;
143
- margin: 1.33em 0;
146
+ margin-block: 1.33em;
147
+ margin-inline: 0;
144
148
  }
145
149
 
146
150
  h5 {
147
151
  font-size: 0.83em;
148
- margin: 1.67em 0;
152
+ margin-block: 1.67em;
153
+ margin-inline: 0;
149
154
  }
150
155
 
151
156
  h6 {
152
157
  font-size: 0.67em;
153
- margin: 2.33em 0;
158
+ margin-block: 2.33em;
159
+ margin-inline: 0;
154
160
  }
155
161
 
156
162
  /**
@@ -158,7 +164,7 @@ h6 {
158
164
  */
159
165
 
160
166
  abbr[title] {
161
- border-bottom: 1px dotted;
167
+ border-block-end: 1px dotted;
162
168
  }
163
169
 
164
170
  /**
@@ -171,7 +177,8 @@ strong {
171
177
  }
172
178
 
173
179
  blockquote {
174
- margin: 1em 40px;
180
+ margin-block: 1em;
181
+ margin-inline: 40px;
175
182
  }
176
183
 
177
184
  /**
@@ -462,8 +469,8 @@ html input[disabled] {
462
469
  * Known issue: excess padding remains in IE 6.
463
470
  */
464
471
 
465
- input[type="checkbox"],
466
- input[type="radio"] {
472
+ input[type='checkbox'],
473
+ input[type='radio'] {
467
474
  box-sizing: border-box; /* 1 */
468
475
  padding: 0; /* 2 */
469
476
  *height: 13px; /* 3 */
@@ -476,7 +483,7 @@ input[type="radio"] {
476
483
  * (include `-moz` to future-proof).
477
484
  */
478
485
 
479
- input[type="search"] {
486
+ input[type='search'] {
480
487
  -webkit-appearance: textfield; /* 1 */
481
488
  -moz-box-sizing: content-box;
482
489
  -webkit-box-sizing: content-box; /* 2 */
@@ -488,8 +495,8 @@ input[type="search"] {
488
495
  * on OS X.
489
496
  */
490
497
 
491
- input[type="search"]::-webkit-search-cancel-button,
492
- input[type="search"]::-webkit-search-decoration {
498
+ input[type='search']::-webkit-search-cancel-button,
499
+ input[type='search']::-webkit-search-decoration {
493
500
  -webkit-appearance: none;
494
501
  }
495
502
 
@@ -525,4 +532,3 @@ table {
525
532
  border-collapse: collapse;
526
533
  border-spacing: 0;
527
534
  }
528
-
@@ -1,6 +1,8 @@
1
- ul, ol {
2
- padding-left: 40px;
3
- &.plain, &.none {
1
+ ul,
2
+ ol {
3
+ padding-inline-start: 40px;
4
+ &.plain,
5
+ &.none {
4
6
  padding: 0;
5
7
  margin: 0;
6
8
  list-style: none;
@@ -27,18 +29,21 @@ This SCSS generates CSS classes for custom list styling, it:
27
29
  */
28
30
 
29
31
  //https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type
30
- $list_styles: disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman,
31
- lower-greek, lower-latin, upper-latin, armenian, georgian, lower-alpha, upper-alpha;
32
+ $list_styles: disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-greek, lower-latin,
33
+ upper-latin, armenian, georgian, lower-alpha, upper-alpha;
32
34
 
33
35
  $suffixes: (
34
36
  'parenthesis': ')',
35
37
  'period': '.'
36
38
  );
37
39
 
38
- [class^="list-style-"], [class*=" list-style-"] {
40
+ [class^='list-style-'],
41
+ [class*=' list-style-'] {
39
42
  counter-reset: custom-counter;
40
43
 
41
- &>p, &>div, &>li.qti-choice {
44
+ & > p,
45
+ & > div,
46
+ & > li.qti-choice {
42
47
  position: relative;
43
48
  &::before {
44
49
  counter-increment: custom-counter;
@@ -52,7 +57,9 @@ $suffixes: (
52
57
 
53
58
  @each $style in $list_styles {
54
59
  &.list-style-#{$style} {
55
- &>p, &>div, &>li.qti-choice::before {
60
+ & > p,
61
+ & > div,
62
+ & > li.qti-choice::before {
56
63
  content: counter(custom-counter, #{$style});
57
64
  }
58
65
  }
@@ -61,7 +68,7 @@ $suffixes: (
61
68
  @each $style in $list_styles {
62
69
  @each $suffix, $symbol in $suffixes {
63
70
  &.list-style-#{$style}-#{$suffix} > li.qti-choice::before {
64
- content: counter(custom-counter, #{$style}) "#{$symbol}";
71
+ content: counter(custom-counter, #{$style}) '#{$symbol}';
65
72
  }
66
73
  }
67
74
  }