Skip to content

Commit

Permalink
[TASK] Adjust colors for TYPO3 12
Browse files Browse the repository at this point in the history
  • Loading branch information
deoostfrees committed Nov 22, 2024
1 parent 5dc321d commit 704ace9
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Resources/Private/Build/JavaScript/Backend/Diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ const setDefaultChartColor = () => {
}
};

setDefaultChartColor();
const IS_TYPO3_12 = document.querySelector('.lux--12') !== null ? true : false;

if (!IS_TYPO3_12) {
setDefaultChartColor();
}

Chart.register(...registerables);

Expand Down
16 changes: 16 additions & 0 deletions Resources/Private/Sass/Modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ hr {
border-left: 0;
border-right: 0;
margin: 40px 0;

.lux--12 & {
--typo3-component-border-color: #dddddd;
}
}

label {
Expand Down Expand Up @@ -373,6 +377,14 @@ label {
}
}

.lux--12 {

& .table-title,
& .table {
--typo3-component-border-color: #dddddd;
}
}

.lux-textarea {
width: 100%;
padding: 10px;
Expand Down Expand Up @@ -435,6 +447,10 @@ label {
display: none;
}
}

.lux--12 & {
--typo3-component-border-color: #dddddd;
}
}

.lux-trigger-conjunctionOR:before {
Expand Down
8 changes: 8 additions & 0 deletions Resources/Private/Sass/PageOverview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@
}
}

.lux--12 {

& .table-title,
& .table {
--typo3-component-border-color: #dddddd;
}
}

.unitajax {
position: relative;
overflow: hidden;
Expand Down
4 changes: 4 additions & 0 deletions Resources/Private/Sass/_Timeline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ $linewidth: 3px;
content: '';
display: block;
position: absolute;

.lux--12 & {
background-color: var(--panel-bg);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/Modules.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Resources/Public/Css/PageOverview.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Diagram.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 704ace9

Please sign in to comment.