Skip to content

Commit b276ca1

Browse files
authored
[TASK] Remove display settings relicts (#216)
1 parent a15073b commit b276ca1

File tree

5 files changed

+1
-222
lines changed

5 files changed

+1
-222
lines changed

packages/typo3-docs-theme/assets/js/theme.js

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -60,71 +60,6 @@ jQuery(document).ready(function () { 'use strict';
6060
versionOptions.appendChild(options);
6161
}
6262

63-
// Display settings FullWidth: value, checkbox, element
64-
jQuery("#dsCogwheel" ).click(function() {
65-
jQuery("#dsPanel" ).slideToggle();
66-
});
67-
var
68-
body = document.getElementsByTagName('body')[0],
69-
vPermanent,
70-
vFullWidth,
71-
vCbsTheme,
72-
selectedStorage,
73-
cbPermanent = document.querySelector('#cbPermanent'),
74-
cbFullWidth = document.querySelector('#cbFullWidth'),
75-
rbCbsThemeDark = document.querySelector('#rbCbsThemeDark'),
76-
rbCbsThemeLight = document.querySelector('#rbCbsThemeLight'),
77-
elFullWidth = document.getElementsByClassName('page-main-inner')[0]
78-
;
79-
80-
function dsLoad() {
81-
vPermanent = localStorage.getItem('displaySettingsPermanent') === 'true';
82-
selectedStorage = vPermanent ? localStorage : sessionStorage;
83-
vFullWidth = selectedStorage.getItem('displaySettingsFullWidth') === 'true';
84-
vCbsTheme = selectedStorage.getItem('displaySettingsCbsTheme') || 'dark';
85-
}
86-
function dsSet() {
87-
if (elFullWidth) { elFullWidth.style.width = vFullWidth ? '99999px' : ''; }
88-
if (cbPermanent) { cbPermanent.checked = vPermanent; }
89-
if (cbFullWidth) { cbFullWidth.checked = vFullWidth; }
90-
if (body && vCbsTheme) { body.dataset.cbsTheme = vCbsTheme; }
91-
if (rbCbsThemeDark && vCbsTheme) { rbCbsThemeDark.checked = (vCbsTheme=='dark')};
92-
if (rbCbsThemeLight && vCbsTheme) { rbCbsThemeLight.checked = (vCbsTheme=='light')};
93-
}
94-
function dsSave() {
95-
vPermanent = !! cbPermanent.checked;
96-
vFullWidth = !! cbFullWidth.checked;
97-
vCbsTheme = (!!body.dataset.cbsTheme && body.dataset.cbsTheme) || 'dark';
98-
selectedStorage = vPermanent ? localStorage : sessionStorage;
99-
selectedStorage.setItem('displaySettingsFullWidth', vFullWidth ? 'true' : 'false');
100-
selectedStorage.setItem('displaySettingsCbsTheme', vCbsTheme);
101-
localStorage.setItem('displaySettingsPermanent', vPermanent ? 'true' : 'false');
102-
}
103-
jQuery(cbPermanent).change(function() {
104-
dsSave();
105-
dsSet();
106-
});
107-
jQuery(rbCbsThemeDark).change(function() {
108-
if (rbCbsThemeDark.checked) {
109-
body.dataset.cbsTheme = rbCbsThemeDark.value;
110-
dsSave();
111-
dsSet();
112-
}
113-
});
114-
jQuery(rbCbsThemeLight).change(function() {
115-
if (rbCbsThemeLight.checked) {
116-
body.dataset.cbsTheme = rbCbsThemeLight.value;
117-
dsSave();
118-
dsSet();
119-
}
120-
});
121-
jQuery(cbFullWidth).change(function() {
122-
dsSave();
123-
dsSet();
124-
});
125-
dsLoad();
126-
dsSet();
127-
12863
var versionNode = document.getElementById("toc-version");
12964
if (versionNode) {
13065
versionNode.addEventListener('click', function () {

packages/typo3-docs-theme/assets/sass/_component_displaysettings.scss

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/typo3-docs-theme/assets/sass/theme.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
@import 'component_math';
4040
@import 'component_horizbuttons';
4141
@import 'component_panel';
42-
@import 'component_displaysettings';
4342
@import 'component_phpdomain';
4443
@import 'component_confval.scss';
4544
@import 'component_fieldlist';

packages/typo3-docs-theme/resources/public/css/theme.css

Lines changed: 0 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -10394,38 +10394,6 @@ readers do not read off random characters that represent icons */
1039410394
font-weight: 700;
1039510395
src: url("../fonts/source-code-pro/source-code-pro-v23-latin_latin-ext-700italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
1039610396
}
10397-
/* source-sans-3-200 - latin_latin-ext */
10398-
@font-face {
10399-
font-display: swap;
10400-
font-family: "Source Sans 3";
10401-
font-style: normal;
10402-
font-weight: 200;
10403-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-200.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10404-
}
10405-
/* source-sans-3-200italic - latin_latin-ext */
10406-
@font-face {
10407-
font-display: swap;
10408-
font-family: "Source Sans 3";
10409-
font-style: italic;
10410-
font-weight: 200;
10411-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-200italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10412-
}
10413-
/* source-sans-3-300 - latin_latin-ext */
10414-
@font-face {
10415-
font-display: swap;
10416-
font-family: "Source Sans 3";
10417-
font-style: normal;
10418-
font-weight: 300;
10419-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10420-
}
10421-
/* source-sans-3-300italic - latin_latin-ext */
10422-
@font-face {
10423-
font-display: swap;
10424-
font-family: "Source Sans 3";
10425-
font-style: italic;
10426-
font-weight: 300;
10427-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-300italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10428-
}
1042910397
/* source-sans-3-regular - latin_latin-ext */
1043010398
@font-face {
1043110399
font-display: swap;
@@ -10442,38 +10410,6 @@ readers do not read off random characters that represent icons */
1044210410
font-weight: 400;
1044310411
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
1044410412
}
10445-
/* source-sans-3-500 - latin_latin-ext */
10446-
@font-face {
10447-
font-display: swap;
10448-
font-family: "Source Sans 3";
10449-
font-style: normal;
10450-
font-weight: 500;
10451-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10452-
}
10453-
/* source-sans-3-500italic - latin_latin-ext */
10454-
@font-face {
10455-
font-display: swap;
10456-
font-family: "Source Sans 3";
10457-
font-style: italic;
10458-
font-weight: 500;
10459-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-500italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10460-
}
10461-
/* source-sans-3-600 - latin_latin-ext */
10462-
@font-face {
10463-
font-display: swap;
10464-
font-family: "Source Sans 3";
10465-
font-style: normal;
10466-
font-weight: 600;
10467-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10468-
}
10469-
/* source-sans-3-600italic - latin_latin-ext */
10470-
@font-face {
10471-
font-display: swap;
10472-
font-family: "Source Sans 3";
10473-
font-style: italic;
10474-
font-weight: 600;
10475-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-600italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10476-
}
1047710413
/* source-sans-3-700 - latin_latin-ext */
1047810414
@font-face {
1047910415
font-display: swap;
@@ -10490,38 +10426,6 @@ readers do not read off random characters that represent icons */
1049010426
font-weight: 700;
1049110427
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-700italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
1049210428
}
10493-
/* source-sans-3-800 - latin_latin-ext */
10494-
@font-face {
10495-
font-display: swap;
10496-
font-family: "Source Sans 3";
10497-
font-style: normal;
10498-
font-weight: 800;
10499-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-800.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10500-
}
10501-
/* source-sans-3-800italic - latin_latin-ext */
10502-
@font-face {
10503-
font-display: swap;
10504-
font-family: "Source Sans 3";
10505-
font-style: italic;
10506-
font-weight: 800;
10507-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-800italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10508-
}
10509-
/* source-sans-3-900 - latin_latin-ext */
10510-
@font-face {
10511-
font-display: swap;
10512-
font-family: "Source Sans 3";
10513-
font-style: normal;
10514-
font-weight: 900;
10515-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10516-
}
10517-
/* source-sans-3-900italic - latin_latin-ext */
10518-
@font-face {
10519-
font-display: swap;
10520-
font-family: "Source Sans 3";
10521-
font-style: italic;
10522-
font-weight: 900;
10523-
src: url("../fonts/source-sans-3/source-sans-3-v15-latin_latin-ext-900italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
10524-
}
1052510429
/* Equilibrium Light by Carlo Abelli - a nice light theme */
1052610430
:root {
1052710431
--base16-base00: hsl(0, 0%, 13%);
@@ -24956,36 +24860,6 @@ ul[class*=horizbuttons-][class*=-striking-] > li {
2495624860
background-color: rgba(var(--bs-body-color-rgb), 0.03);
2495724861
}
2495824862

24959-
.displaysettingsui {
24960-
display: none;
24961-
}
24962-
@media (min-width: 1200px) {
24963-
.displaysettingsui {
24964-
display: block;
24965-
}
24966-
}
24967-
.displaysettingsui .dsDivCogwheel {
24968-
text-align: right;
24969-
float: right;
24970-
}
24971-
.displaysettingsui .dsDivCogwheel i {
24972-
cursor: pointer;
24973-
color: hsl(32, 100%, 50%);
24974-
}
24975-
.displaysettingsui .dsPanel {
24976-
border-radius: 0.2em;
24977-
display: none;
24978-
background-color: hsl(0, 0%, 95%);
24979-
border: 1px solid hsl(0, 0%, 85%);
24980-
padding: 1em;
24981-
}
24982-
.displaysettingsui .dsPanel input {
24983-
margin-right: 0.5em;
24984-
}
24985-
.displaysettingsui .dsPanel label {
24986-
margin-right: 1em;
24987-
}
24988-
2498924863
.rst-content dl.php {
2499024864
border-radius: 0.375rem;
2499124865
margin-bottom: 1rem;

packages/typo3-docs-theme/resources/public/js/theme.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)