@kitconcept/volto-light-theme 8.0.0-alpha.3 → 8.0.0-alpha.30
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/.changelog.draft +6 -9
- package/CHANGELOG.md +310 -0
- package/locales/af/LC_MESSAGES/volto.po +645 -0
- package/locales/ar/LC_MESSAGES/volto.po +645 -0
- package/locales/bg/LC_MESSAGES/volto.po +645 -0
- package/locales/bn/LC_MESSAGES/volto.po +645 -0
- package/locales/ca/LC_MESSAGES/volto.po +645 -0
- package/locales/cs/LC_MESSAGES/volto.po +645 -0
- package/locales/cy/LC_MESSAGES/volto.po +645 -0
- package/locales/da/LC_MESSAGES/volto.po +645 -0
- package/locales/de/LC_MESSAGES/volto.po +83 -167
- package/locales/el/LC_MESSAGES/volto.po +645 -0
- package/locales/en/LC_MESSAGES/volto.po +30 -115
- package/locales/en_AU/LC_MESSAGES/volto.po +645 -0
- package/locales/en_GB/LC_MESSAGES/volto.po +645 -0
- package/locales/eo/LC_MESSAGES/volto.po +645 -0
- package/locales/es/LC_MESSAGES/volto.po +75 -160
- package/locales/et/LC_MESSAGES/volto.po +645 -0
- package/locales/eu/LC_MESSAGES/volto.po +59 -125
- package/locales/fa/LC_MESSAGES/volto.po +645 -0
- package/locales/fi/LC_MESSAGES/volto.po +645 -0
- package/locales/fr/LC_MESSAGES/volto.po +645 -0
- package/locales/fu/LC_MESSAGES/volto.po +645 -0
- package/locales/ga/LC_MESSAGES/volto.po +645 -0
- package/locales/gl/LC_MESSAGES/volto.po +645 -0
- package/locales/he/LC_MESSAGES/volto.po +645 -0
- package/locales/hi/LC_MESSAGES/volto.po +645 -0
- package/locales/hr/LC_MESSAGES/volto.po +645 -0
- package/locales/hu/LC_MESSAGES/volto.po +645 -0
- package/locales/hy/LC_MESSAGES/volto.po +645 -0
- package/locales/id/LC_MESSAGES/volto.po +645 -0
- package/locales/it/LC_MESSAGES/volto.po +645 -0
- package/locales/ja/LC_MESSAGES/volto.po +645 -0
- package/locales/ka/LC_MESSAGES/volto.po +645 -0
- package/locales/kn/LC_MESSAGES/volto.po +645 -0
- package/locales/ko/LC_MESSAGES/volto.po +645 -0
- package/locales/lt/LC_MESSAGES/volto.po +645 -0
- package/locales/lv/LC_MESSAGES/volto.po +645 -0
- package/locales/mi/LC_MESSAGES/volto.po +645 -0
- package/locales/mk_MK/LC_MESSAGES/volto.po +645 -0
- package/locales/ms/LC_MESSAGES/volto.po +645 -0
- package/locales/mt/LC_MESSAGES/volto.po +645 -0
- package/locales/my/LC_MESSAGES/volto.po +645 -0
- package/locales/nl/LC_MESSAGES/volto.po +645 -0
- package/locales/nl_BE/LC_MESSAGES/volto.po +645 -0
- package/locales/nn/LC_MESSAGES/volto.po +645 -0
- package/locales/no/LC_MESSAGES/volto.po +645 -0
- package/locales/pl/LC_MESSAGES/volto.po +645 -0
- package/locales/pt/LC_MESSAGES/volto.po +645 -0
- package/locales/pt_BR/LC_MESSAGES/volto.po +38 -123
- package/locales/rm/LC_MESSAGES/volto.po +645 -0
- package/locales/ro/LC_MESSAGES/volto.po +645 -0
- package/locales/ru/LC_MESSAGES/volto.po +645 -0
- package/locales/sk/LC_MESSAGES/volto.po +645 -0
- package/locales/sl/LC_MESSAGES/volto.po +645 -0
- package/locales/sm/LC_MESSAGES/volto.po +645 -0
- package/locales/sq/LC_MESSAGES/volto.po +645 -0
- package/locales/sr/LC_MESSAGES/volto.po +645 -0
- package/locales/sr_Cyrl/LC_MESSAGES/volto.po +645 -0
- package/locales/sr_Latn/LC_MESSAGES/volto.po +645 -0
- package/locales/sv/LC_MESSAGES/volto.po +645 -0
- package/locales/sw/LC_MESSAGES/volto.po +645 -0
- package/locales/ta/LC_MESSAGES/volto.po +645 -0
- package/locales/te/LC_MESSAGES/volto.po +645 -0
- package/locales/th/LC_MESSAGES/volto.po +645 -0
- package/locales/tl/LC_MESSAGES/volto.po +645 -0
- package/locales/to/LC_MESSAGES/volto.po +645 -0
- package/locales/tr/LC_MESSAGES/volto.po +645 -0
- package/locales/uk/LC_MESSAGES/volto.po +645 -0
- package/locales/vi/LC_MESSAGES/volto.po +645 -0
- package/locales/volto.pot +31 -116
- package/locales/zh_CN/LC_MESSAGES/volto.po +645 -0
- package/locales/zh_HK/LC_MESSAGES/volto.po +645 -0
- package/locales/zh_TW/LC_MESSAGES/volto.po +645 -0
- package/package.json +7 -4
- package/src/__mocks__/semantic-ui-react.ts +31 -0
- package/src/components/Blocks/Block/EditBlockWrapper.jsx +9 -3
- package/src/components/Blocks/Button/schema.js +12 -0
- package/src/components/Blocks/EventCalendar/Search/components/EventTemplate.tsx +1 -1
- package/src/components/Blocks/Image/Edit.jsx +9 -32
- package/src/components/Blocks/Image/View.jsx +9 -26
- package/src/components/Blocks/Image/adapter.js +28 -14
- package/src/components/Blocks/Image/adapter.test.js +156 -0
- package/src/components/Blocks/Image/schema.js +21 -7
- package/src/components/Blocks/Listing/DefaultTemplate.jsx +12 -6
- package/src/components/Blocks/Listing/GridTemplate.jsx +17 -7
- package/src/components/Blocks/Listing/ListingBody.jsx +4 -1
- package/src/components/Blocks/Listing/SummaryTemplate.jsx +17 -7
- package/src/components/Blocks/Maps/MapsSidebar.jsx +68 -0
- package/src/components/Blocks/Maps/View.jsx +37 -0
- package/src/components/Blocks/Maps/adapter.js +27 -0
- package/src/components/Blocks/Maps/adapter.test.js +63 -0
- package/src/components/Blocks/Maps/schema.js +42 -2
- package/src/components/Blocks/Separator/schema.js +12 -0
- package/src/components/Blocks/Teaser/DefaultBody.tsx +35 -6
- package/src/components/Blocks/Video/VideoSidebar.jsx +68 -0
- package/src/components/Blocks/Video/View.jsx +38 -0
- package/src/components/Blocks/Video/adapter.js +28 -0
- package/src/components/Blocks/Video/adapter.test.js +63 -0
- package/src/components/Blocks/Video/schema.js +42 -2
- package/src/components/Blocks/schema.ts +69 -0
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +128 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +117 -0
- package/src/components/Caption/Caption.test.tsx +31 -0
- package/src/components/Caption/{Caption.jsx → Caption.tsx} +14 -21
- package/src/components/Footer/ColumnLinks.tsx +2 -2
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/Footer/slots/Colophon.tsx +13 -1
- package/src/components/Footer/slots/CoreFooter.tsx +4 -2
- package/src/components/Footer/slots/FollowUsLogoAndLinks.tsx +12 -23
- package/src/components/Header/Header.tsx +3 -3
- package/src/components/LanguageSelector/LanguageSelector.tsx +91 -0
- package/src/components/MobileNavigation/MobileNavigation.jsx +11 -9
- package/src/components/Navigation/Navigation.test.tsx +176 -0
- package/src/components/Navigation/{Navigation.jsx → Navigation.tsx} +89 -42
- package/src/components/StickyMenu/MobileCarouselArrowButton.tsx +81 -0
- package/src/components/StickyMenu/MobileStickyMenu.tsx +76 -0
- package/src/components/Summary/DefaultSummary.tsx +10 -3
- package/src/components/Summary/EventSummary.tsx +10 -3
- package/src/components/Summary/FileSummary.tsx +10 -3
- package/src/components/Summary/NewsItemSummary.tsx +10 -3
- package/src/components/Summary/PersonSummary.tsx +10 -3
- package/src/components/Summary/Summary.stories.tsx +46 -30
- package/src/components/Tags/Tags.test.tsx +71 -0
- package/src/components/Tags/{Tags.jsx → Tags.tsx} +9 -25
- package/src/components/Theme/EventView.jsx +4 -4
- package/src/components/Theme/ImageView.jsx +8 -1
- package/src/components/Theme/NewsItemView.jsx +4 -4
- package/src/components/Theme/RenderBlocksV2.jsx +38 -15
- package/src/components/Widgets/ColorSwatch.stories.tsx +197 -0
- package/src/components/Widgets/ColorSwatch.test.tsx +188 -0
- package/src/components/Widgets/ColorSwatch.tsx +77 -39
- package/src/components/Widgets/ObjectList.tsx +37 -27
- package/src/components/Widgets/SoftTextWidget.tsx +129 -0
- package/src/components/Widgets/SoftTextareaWidget.tsx +118 -0
- package/src/components/Widgets/ThemeColorSwatch.tsx +5 -9
- package/src/config/blocks.tsx +83 -28
- package/src/config/classExtenders.ts +11 -10
- package/src/config/settings.ts +6 -0
- package/src/config/slots.ts +7 -0
- package/src/config/widgets.ts +5 -9
- package/src/customizations/volto/components/manage/Blocks/Maps/MapsSidebar.jsx +10 -0
- package/src/customizations/volto/components/manage/Blocks/Maps/View.jsx +10 -0
- package/src/customizations/volto/components/manage/Blocks/Video/VideoSidebar.jsx +10 -0
- package/src/customizations/volto/components/manage/Blocks/Video/View.jsx +10 -0
- package/src/customizations/volto/components/manage/DragDropList/DragDropList.jsx +263 -0
- package/src/customizations/volto/components/theme/LanguageSelector/LanguageSelector.tsx +10 -0
- package/src/helpers/styleDefinitions.test.tsx +30 -0
- package/src/helpers/styleDefinitions.ts +49 -0
- package/src/helpers/useLiveData.ts +7 -2
- package/src/index.ts +15 -0
- package/src/internalChecks.test.ts +94 -0
- package/src/primitives/Card/Card.stories.tsx +4 -1
- package/src/primitives/Card/Card.test.tsx +11 -33
- package/src/primitives/Card/Card.tsx +37 -44
- package/src/primitives/IconLinkList.tsx +53 -52
- package/src/primitives/LinkIconButton.tsx +52 -0
- package/src/reducers/errorContext.ts +14 -0
- package/src/reducers/index.ts +7 -0
- package/src/theme/_bgcolor-blocks-layout.scss +48 -46
- package/src/theme/_content.scss +12 -13
- package/src/theme/_export_import.scss +94 -0
- package/src/theme/_footer.scss +131 -64
- package/src/theme/_header.scss +25 -5
- package/src/theme/_insets.scss +1 -1
- package/src/theme/_layout.scss +41 -77
- package/src/theme/_mobile-sticky-menu.scss +92 -0
- package/src/theme/_search-page.scss +250 -0
- package/src/theme/_typo-custom.scss +24 -8
- package/src/theme/_variables.scss +40 -4
- package/src/theme/_widgets.scss +6 -17
- package/src/theme/blocks/_accordion.scss +11 -4
- package/src/theme/blocks/_form.scss +350 -0
- package/src/theme/blocks/_grid.scss +10 -77
- package/src/theme/blocks/_highlight.scss +10 -7
- package/src/theme/blocks/_image.scss +99 -184
- package/src/theme/blocks/_listing.scss +61 -128
- package/src/theme/blocks/_maps.scss +60 -34
- package/src/theme/blocks/_search.scss +3 -4
- package/src/theme/blocks/_table.scss +1 -0
- package/src/theme/blocks/_teaser.scss +7 -117
- package/src/theme/blocks/_toc.scss +2 -1
- package/src/theme/card.scss +136 -69
- package/src/theme/main.scss +4 -0
- package/src/theme/notfound.scss +2 -0
- package/src/theme/person.scss +7 -1
- package/src/theme/sticky-menu.scss +7 -5
- package/src/transforms/to6.ts +5 -49
- package/src/transforms/to8.test.js +201 -0
- package/src/transforms/to8.ts +109 -0
- package/src/types.d.ts +1 -0
- package/vitest.config.mjs +28 -3
- package/razzle.extend.js +0 -38
- package/src/components/Blocks/schema.js +0 -44
- package/src/components/Breadcrumbs/Breadcrumbs.jsx +0 -118
- package/src/components/Widgets/AlignWidget.tsx +0 -84
- package/src/components/Widgets/BlockAlignment.tsx +0 -88
- package/src/components/Widgets/BlockWidth.tsx +0 -101
- package/src/components/Widgets/Buttons.tsx +0 -167
- package/src/components/Widgets/Size.tsx +0 -78
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
& > strong,
|
|
18
18
|
& > em,
|
|
19
19
|
& > figcaption,
|
|
20
|
-
& > a
|
|
20
|
+
& > a,
|
|
21
21
|
& > blockquote,
|
|
22
22
|
& > h2,
|
|
23
23
|
& > h3,
|
|
@@ -25,16 +25,6 @@
|
|
|
25
25
|
color: var(--theme-foreground-color);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
:not(.teaser-item)
|
|
29
|
-
> a:not(.item):not(
|
|
30
|
-
:has(> .teaser-item),
|
|
31
|
-
:has(> .listing-body),
|
|
32
|
-
:has(> .card-container)
|
|
33
|
-
) {
|
|
34
|
-
color: var(--link-foreground-color, --theme-foreground-color);
|
|
35
|
-
text-decoration: underline;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
28
|
&:first-child:has(> .documentFirstHeading) {
|
|
39
29
|
padding-top: 0;
|
|
40
30
|
}
|
|
@@ -407,6 +397,14 @@
|
|
|
407
397
|
}
|
|
408
398
|
}
|
|
409
399
|
|
|
400
|
+
// Banner block, if next block has different bgcolor it snaps to the bottom
|
|
401
|
+
#page-document
|
|
402
|
+
.blocks-group-wrapper:has(
|
|
403
|
+
:last-child.banner.next--has--different--backgroundColor
|
|
404
|
+
) {
|
|
405
|
+
padding-bottom: 0;
|
|
406
|
+
}
|
|
407
|
+
|
|
410
408
|
// Color map
|
|
411
409
|
@mixin use-theme-colors() {
|
|
412
410
|
#page-document {
|
|
@@ -439,7 +437,8 @@
|
|
|
439
437
|
&.__button {
|
|
440
438
|
& > .button.container,
|
|
441
439
|
& > .block-inner-container {
|
|
442
|
-
& button
|
|
440
|
+
& button,
|
|
441
|
+
a {
|
|
443
442
|
border-color: var(--theme-foreground-color);
|
|
444
443
|
background-color: var(--theme-color);
|
|
445
444
|
|
|
@@ -451,6 +450,10 @@
|
|
|
451
450
|
border-color: var(--theme-foreground-color);
|
|
452
451
|
background-color: var(--theme-foreground-color);
|
|
453
452
|
color: var(--theme-color);
|
|
453
|
+
|
|
454
|
+
&::after {
|
|
455
|
+
background-color: var(--theme-color);
|
|
456
|
+
}
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
}
|
|
@@ -494,7 +497,8 @@
|
|
|
494
497
|
&.listing,
|
|
495
498
|
&.search,
|
|
496
499
|
&.rssBlock {
|
|
497
|
-
h2.headline
|
|
500
|
+
h2.headline,
|
|
501
|
+
h2.block-title {
|
|
498
502
|
color: var(--theme-foreground-color);
|
|
499
503
|
}
|
|
500
504
|
|
|
@@ -505,40 +509,26 @@
|
|
|
505
509
|
.listing-item {
|
|
506
510
|
border-bottom-color: var(--theme-foreground-color) !important;
|
|
507
511
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
color: var(--theme-foreground-color);
|
|
516
|
-
}
|
|
512
|
+
.headline,
|
|
513
|
+
h3,
|
|
514
|
+
h2,
|
|
515
|
+
a,
|
|
516
|
+
p,
|
|
517
|
+
span {
|
|
518
|
+
color: var(--theme-foreground-color);
|
|
517
519
|
}
|
|
518
520
|
|
|
519
521
|
.head-title span,
|
|
520
522
|
.head-title {
|
|
521
523
|
color: var(--theme-foreground-color);
|
|
522
524
|
}
|
|
523
|
-
|
|
524
|
-
.card-container {
|
|
525
|
-
background-color: var(--theme-high-contrast-color);
|
|
526
|
-
|
|
527
|
-
.content,
|
|
528
|
-
.content p {
|
|
529
|
-
color: var(--theme-foreground-color);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
525
|
}
|
|
533
|
-
/* I have removed the .card-container className that's why I have to write this css
|
|
534
|
-
* I will remove all the .card-container className from repo.
|
|
535
|
-
*/
|
|
536
526
|
&.grid .card,
|
|
537
527
|
& .grid-variation .card {
|
|
538
528
|
background-color: var(--theme-high-contrast-color);
|
|
539
529
|
|
|
540
|
-
.
|
|
541
|
-
.
|
|
530
|
+
.card-summary,
|
|
531
|
+
.card-summary p {
|
|
542
532
|
color: var(--theme-foreground-color);
|
|
543
533
|
}
|
|
544
534
|
}
|
|
@@ -1122,19 +1112,28 @@
|
|
|
1122
1112
|
}
|
|
1123
1113
|
}
|
|
1124
1114
|
|
|
1125
|
-
table.ui.table.slate-table-block {
|
|
1126
|
-
border-color:
|
|
1115
|
+
table.ui.celled.table.slate-table-block {
|
|
1116
|
+
border-color: color-mix(
|
|
1117
|
+
in srgb,
|
|
1118
|
+
var(--theme-color) 75%,
|
|
1119
|
+
var(--theme-foreground-color)
|
|
1120
|
+
);
|
|
1127
1121
|
|
|
1128
1122
|
tr td,
|
|
1129
1123
|
th {
|
|
1130
|
-
border-color:
|
|
1124
|
+
border-color: color-mix(
|
|
1125
|
+
in srgb,
|
|
1126
|
+
var(--theme-color) 75%,
|
|
1127
|
+
var(--theme-foreground-color)
|
|
1128
|
+
);
|
|
1131
1129
|
}
|
|
1132
1130
|
|
|
1133
1131
|
th {
|
|
1134
1132
|
background-color: var(--theme-high-contrast-color) !important;
|
|
1133
|
+
color: var(--theme-low-contrast-foreground-color);
|
|
1135
1134
|
|
|
1136
|
-
|
|
1137
|
-
color:
|
|
1135
|
+
* {
|
|
1136
|
+
color: inherit;
|
|
1138
1137
|
}
|
|
1139
1138
|
}
|
|
1140
1139
|
|
|
@@ -1269,12 +1268,15 @@
|
|
|
1269
1268
|
color: var(--header-foreground);
|
|
1270
1269
|
}
|
|
1271
1270
|
}
|
|
1271
|
+
.language-selector a {
|
|
1272
|
+
color: var(--header-foreground);
|
|
1273
|
+
}
|
|
1272
1274
|
}
|
|
1273
1275
|
|
|
1274
1276
|
// Navigation
|
|
1275
1277
|
nav.navigation {
|
|
1276
|
-
|
|
1277
|
-
color: var(--header-foreground);
|
|
1278
|
+
.item {
|
|
1279
|
+
color: var(--header-foreground, var(--primary-foreground-color));
|
|
1278
1280
|
}
|
|
1279
1281
|
.submenu-wrapper {
|
|
1280
1282
|
.submenu.active {
|
|
@@ -1329,7 +1331,7 @@
|
|
|
1329
1331
|
|
|
1330
1332
|
& > button:not(:hover, :active, :focus) {
|
|
1331
1333
|
svg path {
|
|
1332
|
-
fill: var(--
|
|
1334
|
+
fill: var(--search-foreground);
|
|
1333
1335
|
}
|
|
1334
1336
|
}
|
|
1335
1337
|
}
|
|
@@ -1426,12 +1428,12 @@
|
|
|
1426
1428
|
}
|
|
1427
1429
|
|
|
1428
1430
|
a.section {
|
|
1429
|
-
color: var(--
|
|
1431
|
+
color: var(--breadcrumbs-foreground, --link-foreground-color);
|
|
1430
1432
|
}
|
|
1431
1433
|
|
|
1432
1434
|
a.home {
|
|
1433
1435
|
svg {
|
|
1434
|
-
fill: var(--
|
|
1436
|
+
fill: var(--breadcrumbs-foreground, --link-foreground-color) !important;
|
|
1435
1437
|
}
|
|
1436
1438
|
}
|
|
1437
1439
|
}
|
package/src/theme/_content.scss
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
@mixin day-with-head-title-separator {
|
|
2
|
+
.day:has(+ .head-title) {
|
|
3
|
+
&::after {
|
|
4
|
+
margin-left: 8px;
|
|
5
|
+
content: '|';
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
.ui.basic.segment.content-area {
|
|
2
11
|
// We cancel the padding and margin from the segment
|
|
3
12
|
// allowing the content elements to be the ones that push for
|
|
@@ -18,6 +27,8 @@
|
|
|
18
27
|
#page-document .dates {
|
|
19
28
|
@include default-container-width();
|
|
20
29
|
@include adjustMarginsToContainer($default-container-width);
|
|
30
|
+
@include day-with-head-title-separator();
|
|
31
|
+
|
|
21
32
|
margin-top: $spacing-medium;
|
|
22
33
|
margin-bottom: $spacing-medium;
|
|
23
34
|
color: var(--primary-foreground-color);
|
|
@@ -27,13 +38,6 @@
|
|
|
27
38
|
text-transform: uppercase;
|
|
28
39
|
}
|
|
29
40
|
|
|
30
|
-
.head-title:has(+ .day) {
|
|
31
|
-
&::after {
|
|
32
|
-
margin-left: 8px;
|
|
33
|
-
content: '|';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
41
|
@container (max-width: #{$tablet-breakpoint} ) {
|
|
38
42
|
.day,
|
|
39
43
|
.head-title {
|
|
@@ -91,6 +95,7 @@
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
.dates {
|
|
98
|
+
@include day-with-head-title-separator();
|
|
94
99
|
margin-top: $spacing-medium;
|
|
95
100
|
margin-bottom: $spacing-medium;
|
|
96
101
|
color: var(--primary-foreground-color);
|
|
@@ -103,12 +108,6 @@
|
|
|
103
108
|
letter-spacing: 1px;
|
|
104
109
|
text-transform: uppercase;
|
|
105
110
|
}
|
|
106
|
-
.head-title {
|
|
107
|
-
&::after {
|
|
108
|
-
margin-left: 8px;
|
|
109
|
-
content: '|';
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
111
|
@container (max-width: #{$tablet-breakpoint} ) {
|
|
113
112
|
.day,
|
|
114
113
|
.head-title {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#page-controlpanel-content-transfer .container {
|
|
2
|
+
.grid-container {
|
|
3
|
+
@include default-container-width();
|
|
4
|
+
@include adjustMarginsToContainer($default-container-width);
|
|
5
|
+
padding-top: $spacing-medium;
|
|
6
|
+
padding-bottom: $spacing-large;
|
|
7
|
+
gap: $spacing-small;
|
|
8
|
+
grid-template-columns: 1fr 1fr;
|
|
9
|
+
|
|
10
|
+
@container (max-width: #{$computer-breakpoint}) {
|
|
11
|
+
grid-template-columns: 1fr;
|
|
12
|
+
}
|
|
13
|
+
.grid-column {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
height: 250px;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
padding: $spacing-small;
|
|
19
|
+
border: 1px solid var(--primary-foreground-color);
|
|
20
|
+
gap: $spacing-small;
|
|
21
|
+
|
|
22
|
+
h2 {
|
|
23
|
+
width: 100%;
|
|
24
|
+
margin: 0;
|
|
25
|
+
@include text-heading-h3();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& > span {
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: $spacing-small;
|
|
31
|
+
right: $spacing-small;
|
|
32
|
+
|
|
33
|
+
svg {
|
|
34
|
+
width: auto;
|
|
35
|
+
height: 30px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.file-input-wrapper {
|
|
40
|
+
position: relative;
|
|
41
|
+
margin-top: auto;
|
|
42
|
+
|
|
43
|
+
.file-input-name {
|
|
44
|
+
position: absolute;
|
|
45
|
+
bottom: 100%;
|
|
46
|
+
left: 0;
|
|
47
|
+
margin-bottom: $spacing-small;
|
|
48
|
+
font-size: 18px;
|
|
49
|
+
font-weight: 300;
|
|
50
|
+
line-height: 24px;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
button {
|
|
56
|
+
align-self: end;
|
|
57
|
+
padding: 8px 20px;
|
|
58
|
+
border: 1px solid var(--primary-foreground-color);
|
|
59
|
+
border-radius: unset;
|
|
60
|
+
margin: 0;
|
|
61
|
+
background: none;
|
|
62
|
+
color: var(--primary-foreground-color);
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
|
|
66
|
+
@include body-text-bold();
|
|
67
|
+
|
|
68
|
+
&:hover,
|
|
69
|
+
&:active,
|
|
70
|
+
&:focus {
|
|
71
|
+
border-color: var(--primary-foreground-color);
|
|
72
|
+
background-color: var(--primary-foreground-color);
|
|
73
|
+
color: var(--primary-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&[data-disabled='true'],
|
|
77
|
+
&[data-disabled='true']:hover {
|
|
78
|
+
border-color: color-mix(
|
|
79
|
+
in srgb,
|
|
80
|
+
var(--primary-color) 50%,
|
|
81
|
+
var(--primary-foreground-color)
|
|
82
|
+
);
|
|
83
|
+
background-color: var(--primary-color);
|
|
84
|
+
color: color-mix(
|
|
85
|
+
in srgb,
|
|
86
|
+
var(--primary-color) 50%,
|
|
87
|
+
var(--primary-foreground-color)
|
|
88
|
+
);
|
|
89
|
+
cursor: not-allowed;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|