Files
tps/index.css
2025-05-24 18:36:03 +02:00

226 lines
3.6 KiB
CSS

body {
font-size: clamp(var(--min-font-size, 11px), 2.1vw, var(--font-size, 28px));
}
ul {
padding-left: 0;
margin: 0;
}
li {
flex: 1;
list-style: none;
text-align: center;
padding: 0.5rem 1rem;
}
.focusable {
background-color: var(--primary-color);
}
.focusable.no-focus {
background-color: var(--primary-color-no-focus);
}
.text-hide,
.text-hide a,
.text-hide a:visited,
.text-hide a:focus,
.text-hide a:focus-visible {
color: var(--primary-color);
}
.no-focus.text-hide,
.no-focus.text-hide a,
.no-focus.text-hide a:visited,
.no-focus.text-hide a:focus,
.no-focus.text-hide a:focus-visible {
color: var(--primary-color-no-focus);
}
.focus.text-hide,
.focus.text-hide a,
.focus.text-hide a:visited,
.focus.text-hide a:focus,
.focus.text-hide a:focus-visible {
color: var(--color);
}
.customer-satisfaction-parent {
filter: url(#round);
/* Making the triangle fit the rest of the house */
margin: 0 -1rem;
}
.customer-satisfaction {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
text-align: center;
clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
/* Set --min-height in JS or fallback to 150px if --font-size is 28px, otherwise 110px */
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 p {
margin: 0;
padding: 0 0.5rem 0.5rem;
border-radius: 0;
}
.levers {
margin: 0.5rem 0;
}
.levers ul {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding-left: 0;
row-gap: 0.5rem;
gap: 0.5rem;
}
.people-improvement {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
}
.people-improvement svg {
flex: 1;
min-width: max(15vw, 200px);
max-width: 20vw;
}
.pilars {
display: flex;
justify-content: space-around;
flex-direction: column;
}
.pilars h3 {
margin-top: 0;
margin-bottom: 0;
padding: 1rem 2rem;
width: calc(100% - (2rem * 2));
text-align: center;
}
.just-in-time-pilar,
.jidoka-pilar {
display: flex;
flex: 2;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.pilars ul {
display: flex;
flex: 1;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
gap: 0.5rem;
}
.pilars li {
flex: 1;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.ground {
display: flex;
flex-direction: column;
margin: 0.5rem 0;
gap: 1rem;
}
.improvement ul,
.stability ul {
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
}
/* Wide screen */
@media only screen and (min-width: 521px) {
.pilars {
flex-direction: row;
}
}
main a {
color: var(--color);
text-decoration: none;
}
main a:visited,
main a:focus,
main a:focus-visible {
color: var(--color);
text-decoration: none;
}
details.hud {
font-size: 16px;
margin: 1rem;
}
details.hud li {
text-align: left;
}
.round-svg {
visibility: hidden;
height: 0;
}
.use-value {
display: none;
visibility: hidden;
}
.display-use-value {
display: inline;
visibility: visible;
}
.raibow {
text-decoration: underline;
background: linear-gradient(
to right,
#6666ff,
#0099ff,
#00ff00,
#ff3399,
#6666ff
);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: rainbow-animation 5s ease-in-out infinite;
background-size: 400% 100%;
}
@keyframes rainbow-animation {
0%,
100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}