From 1cbbad05f0378f51d122c24dd1e02baff86005e6 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Fri, 17 Feb 2023 15:58:14 +0100 Subject: [PATCH] Prepare FAQ section --- index.html | 49 ++++++++++++++++++++++++++++++-- sass/style.scss | 75 +++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 109 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index cafe03f..d3dce5a 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ -
+

FAQ

- accordion +
+
+
+
+
+ Co mám dělat, pokud by student/ka měl/a zvláštní chování? +
+
+ Tempore qui et consequatur adipisci aut et neque dolorum. Ab et illo quo est. Vel praesentium voluptas sint. +
+
+
+
+
+
+
+
+ Co mám dělat, pokud by student/ka měl/a zvláštní chování? +
+
+ Tempore qui et consequatur adipisci aut et neque dolorum. Ab et illo quo est. Vel praesentium voluptas sint. +
+
+
+
+
+
+
+
+ Co mám dělat, pokud by student/ka měl/a zvláštní chování? +
+
+ Tempore qui et consequatur adipisci aut et neque dolorum. Ab et illo quo est. Vel praesentium voluptas sint. +
+
+
+
+
+
+
+
+ Co mám dělat, pokud by student/ka měl/a zvláštní chování? +
+
+ Tempore qui et consequatur adipisci aut et neque dolorum. Ab et illo quo est. Vel praesentium voluptas sint. +
+
+
diff --git a/sass/style.scss b/sass/style.scss index 57850ef..b14c5b7 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -20,6 +20,7 @@ body { color: $col-white; line-height: 1.5; + font-size: 16pt; font-family: "moderat", sans-serif; } @@ -40,14 +41,75 @@ section { padding-top: 3rem; } + /* Specific */ +.partners { + display: flex; + justify-content: center; + flex-wrap: wrap; + + img { + width: clamp(20rem, 80vw, 0); + padding: 1.5em; + } +} + +.faq-list { + width: 100%; + + .faq { + position: relative; + display: grid; + grid-template-columns: auto auto; + column-gap: 1em; + width: 100%; + padding: 2em; + cursor: pointer; + + // Hide bottom border. + // It is -2px to avoid float rounding errors + // which cause the border to appear in some widths. + margin-bottom: -2px; + + &:before, + &:last-child:after { + content: ""; + position: absolute; + left: 10%; + width: 80%; + border-width: 1px 0 0 0; + border-style: solid; + border-color: #8392a3; + } + &:before { top: 0 } + &:last-child:after { bottom: 0 } + + &.active { + background-color: $col-accent; + border-radius: 2rem; + z-index: 1; + + &:before { border: 0 } + } + + .mark { + text-align: right; + } + + .question { + margin-bottom: 1em; + font-size: 1.5048rem; + } + } +} + footer { $logo-radius: 4.5em; position: relative; text-align: center; padding: $logo-radius+1 2em 2em 2em; - margin-top: $logo-radius+4; + margin-top: $logo-radius+6; border-top: 1px solid #5d6e81; @@ -68,14 +130,3 @@ footer { background-color: $col-bg; } } - -section.partners { - display: flex; - justify-content: center; - flex-wrap: wrap; - - img { - width: clamp(20rem, 80vw, 0); - padding: 1.5em; - } -}