Skip to content

Commit

Permalink
Merge pull request #36 from TYPO3incubator/feature/spacings-bgcolor
Browse files Browse the repository at this point in the history
Feature/spacings bgcolor
  • Loading branch information
JuliaGru authored Apr 11, 2024
2 parents baa7bff + 0015ca9 commit 472b581
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 328 deletions.
44 changes: 44 additions & 0 deletions assets/scss/base/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,48 @@ html {
.required {
@apply text-error;
}

.space-before {
&-extra-small {
@apply pt-4;
}

&-small {
@apply pt-8;
}

&-medium {
@apply pt-12;
}

&-large {
@apply pt-16;
}

&-extra-large {
@apply pt-20;
}
}

.space-after {
&-extra-small {
@apply pb-4;
}

&-small {
@apply pb-8;
}

&-medium {
@apply pb-12;
}

&-large {
@apply pb-16;
}

&-extra-large {
@apply pb-20;
}
}
}
27 changes: 27 additions & 0 deletions local_packages/success/Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,33 @@
'showitem' => 'button_link, button_label, button_style,',
];

$GLOBALS['TCA']['tt_content']['columns']['layout']['config']['items'] = [
[
'label' => 'LLL:EXT:success/Resources/Private/Language/locallang_db.xlf:layout.default',
'value' => 0,
],
[
'label' => 'LLL:EXT:success/Resources/Private/Language/locallang_db.xlf:layout.primary',
'value' => 1,
],
[
'label' => 'LLL:EXT:success/Resources/Private/Language/locallang_db.xlf:layout.secondary',
'value' => 2,
],
[
'label' => 'LLL:EXT:success/Resources/Private/Language/locallang_db.xlf:layout.light',
'value' => 3,
],
[
'label' => 'LLL:EXT:success/Resources/Private/Language/locallang_db.xlf:layout.white',
'value' => 4,
],
[
'label' => 'LLL:EXT:success/Resources/Private/Language/locallang_db.xlf:layout.black',
'value' => 5,
],
];

// Image orient options
$GLOBALS['TCA']['tt_content']['columns']['imageorient']['config']['items'] = [
[
Expand Down
19 changes: 19 additions & 0 deletions local_packages/success/Resources/Private/Language/locallang_db.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,25 @@
<source>White</source>
</trans-unit>

<trans-unit id="layout.default" resname="layout.default">
<source>Default</source>
</trans-unit>
<trans-unit id="layout.primary" resname="layout.primary">
<source>Background Primary</source>
</trans-unit>
<trans-unit id="layout.secondary" resname="layout.secondary">
<source>Background Secondary</source>
</trans-unit>
<trans-unit id="layout.light" resname="layout.light">
<source>Background Light</source>
</trans-unit>
<trans-unit id="layout.black" resname="layout.black">
<source>Background Black</source>
</trans-unit>
<trans-unit id="layout.white" resname="layout.white">
<source>Background White</source>
</trans-unit>

<trans-unit id="cards" resname="cards">
<source>Cards</source>
</trans-unit>
Expand Down
Loading

0 comments on commit 472b581

Please sign in to comment.