better small display & simple customer satisfaction
This commit is contained in:
4
core.css
4
core.css
@@ -4,6 +4,8 @@
|
|||||||
--primary-color: #002992;
|
--primary-color: #002992;
|
||||||
--primary-color-no-focus: #abbbdf;
|
--primary-color-no-focus: #abbbdf;
|
||||||
--color: white;
|
--color: white;
|
||||||
|
--font-size: 28px;
|
||||||
|
--min-font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
*:not(td):not(th) {
|
*:not(td):not(th) {
|
||||||
@@ -26,7 +28,7 @@ main {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
margin: 1rem 1rem 0;
|
padding: 1rem 1rem 0;
|
||||||
color: var(--color);
|
color: var(--color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
body {
|
body {
|
||||||
font-size: clamp(11px, 2.1vw, 28px);
|
font-size: clamp(var(--min-font-size, 11px), 2.1vw, var(--font-size, 28px));
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@@ -59,8 +59,9 @@ li {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
|
clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
|
||||||
min-height: 150px;
|
/* Set --min-height in JS or fallback to 150px if --font-size is 28px, otherwise 110px */
|
||||||
font-size: clamp(15px, 2.1vw, 28px);
|
min-height: var(--min-height, 150px);
|
||||||
|
font-size: clamp(var(--min-font-size, 11px), 2.1vw, var(--font-size, 28px));
|
||||||
}
|
}
|
||||||
|
|
||||||
.customer-satisfaction h2,
|
.customer-satisfaction h2,
|
||||||
|
|||||||
10
main.ts
10
main.ts
@@ -31,12 +31,20 @@ if (display === 'house-only') {
|
|||||||
document.querySelectorAll('.hud')?.forEach((hud) => hud.remove())
|
document.querySelectorAll('.hud')?.forEach((hud) => hud.remove())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const simpleCustomerSatisfaction = params.get('customer-satisfaction')
|
||||||
|
|
||||||
|
if (simpleCustomerSatisfaction === 'simple') {
|
||||||
|
document.querySelector('.value-analysis-value-engineering')?.remove()
|
||||||
|
}
|
||||||
|
|
||||||
const size = params.get('size')
|
const size = params.get('size')
|
||||||
|
|
||||||
if (size === 'small') {
|
if (size === 'small') {
|
||||||
const body = document.querySelector('body')
|
const body = document.querySelector('body')
|
||||||
if (body) {
|
if (body) {
|
||||||
body.style.fontSize = '15px'
|
document.documentElement.style.setProperty('--min-height', '100px')
|
||||||
|
document.documentElement.style.setProperty('--font-size', '13px')
|
||||||
|
document.documentElement.style.setProperty('--min-font-size', '8px')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user