details style

This commit is contained in:
Julie Blanc 2026-04-08 20:33:31 +02:00
parent 94d14d70c1
commit af9785e436
23 changed files with 95 additions and 31 deletions

View file

@ -77,25 +77,25 @@ class subtitlesDecor extends Paged.Handler {
}
});
if (withDecor) {
const smallSizes = [1, 2, 3, 2, 1];
const bigSizes = [1, 2, 3, 4, 5, 4, 3, 2, 1];
let firstDecor, secondDecor;
if (isLeft) {
firstDecor = this.createDecor(symbol, smallSizes, "decor-h3_small");
secondDecor = this.createDecor(symbol, bigSizes, "decor-h3_big");
} else {
firstDecor = this.createDecor(symbol, bigSizes, "decor-h3_big");
secondDecor = this.createDecor(symbol, smallSizes, "decor-h3_small");
}
const container = document.createElement("div");
container.className = "h3_container " + subtitle.className;
subtitle.className = "";
subtitle.parentNode.insertBefore(container, subtitle);
container.appendChild(firstDecor);
container.appendChild(secondDecor);
container.appendChild(subtitle);
}
// if (withDecor) {
// const smallSizes = [1, 2, 3, 2, 1];
// const bigSizes = [1, 2, 3, 4, 5, 4, 3, 2, 1];
// let firstDecor, secondDecor;
// if (isLeft) {
// firstDecor = this.createDecor(symbol, smallSizes, "decor-h3_small");
// secondDecor = this.createDecor(symbol, bigSizes, "decor-h3_big");
// } else {
// firstDecor = this.createDecor(symbol, bigSizes, "decor-h3_big");
// secondDecor = this.createDecor(symbol, smallSizes, "decor-h3_small");
// }
// const container = document.createElement("div");
// container.className = "h3_container " + subtitle.className;
// subtitle.className = "";
// subtitle.parentNode.insertBefore(container, subtitle);
// container.appendChild(firstDecor);
// container.appendChild(secondDecor);
// container.appendChild(subtitle);
// }
}