Skip to content

Commit 9b2933a

Browse files
committed
verschillende kleuren (#1)
1 parent e190f44 commit 9b2933a

2 files changed

Lines changed: 90 additions & 48 deletions

File tree

faq.html

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,66 @@
99
<style>
1010
/* Schrijf hier gewoon je CSS voor dit component */
1111

12-
details > p {
12+
.item:nth-of-type(1)[open] summary {
13+
background-color: rgb(128, 0, 255);
14+
width: 270px;
15+
border-radius: 8px 8px 0 0;
16+
padding: 5px;
17+
}
18+
19+
.item:nth-of-type(1)[open] p {
20+
background-color: rgb(128, 0, 255);
1321
margin: 0%;
1422
border-radius: 0 8px 8px 8px;
1523
padding: 5px;
24+
margin-bottom: 10px;
25+
1626
}
1727

18-
details > summary {
28+
29+
.item:nth-of-type(2)[open] summary {
30+
background-color: rgb(102, 223, 150);
31+
width: 270px;
32+
border-radius: 8px 8px 0 0;
33+
padding: 5px;
34+
}
35+
36+
.item:nth-of-type(2)[open] p {
37+
background-color: rgb(102, 223, 150);
38+
margin: 0%;
39+
border-radius: 0 8px 8px 8px;
40+
padding: 5px;
41+
margin-bottom: 10px;
42+
}
43+
44+
45+
.item:nth-of-type(3)[open] summary {
46+
background-color: rgb(239, 235, 105);
1947
width: 270px;
2048
border-radius: 8px 8px 0 0;
2149
padding: 5px;
50+
}
51+
52+
.item:nth-of-type(3)[open] p {
53+
background-color: rgb(239, 235, 105);
54+
margin: 0%;
55+
border-radius: 0 8px 8px 8px;
56+
padding: 5px;
57+
margin-bottom: 10px;
58+
}
2259

60+
details > p {
61+
margin: 0%;
62+
border-radius: 0 8px 8px 8px;
63+
padding: 5px;
2364
}
24-
25-
details:open > summary,p {
26-
background-color:rgb(122, 13, 210) ;
27-
margin-top: 15px;
65+
66+
details > summary {
67+
width: 270px;
68+
border-radius: 8px 8px 0 0;
69+
padding: 5px;
70+
2871
}
29-
30-
3172
/* Hint: Dit component kun je volledig met HTML en CSS bouwen */
3273

3374
/* Hint: Denk aan de states van het component; deze kan open en dicht zijn */
@@ -37,23 +78,23 @@
3778
<h1>Veelgestelde vragen</h1>
3879

3980

40-
<details>
81+
<details class="item">
4182
<summary>Wat is frontend development?</summary>
4283

4384
<p>
4485
Een frontend developer ontwerpt en bouwt websites in HTML, CSS en JavaScript. Deze frontend talen leer je bij ons, je hebt dus geen voorkennis nodig.
4586
</p>
4687
</details>
4788

48-
<details>
89+
<details class="item">
4990
<summary>Moet ik al kunnen coderen?</summary>
5091

5192
<p>
5293
Nee, je hebt helemaal geen voorkennis nodig om te beginnen aan deze opleiding, we kunnen je alles leren! Als je wel al voorkennis hebt, is dat alleen maar goed, dan kunnen we je helpen je skills te verbeteren en te verdiepen in de stof.
5394
</p>
5495
</details>
5596

56-
<details>
97+
<details class="item">
5798
<summary>Wat is een Associate Degree?</summary>
5899

59100
<p>

switch.html

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,45 @@
1717
height: 34px;
1818
}
1919

20-
/* De checkbox */
21-
.switch input {
22-
display: none
23-
}
24-
25-
/* De balk van de switch */
26-
.slider {
27-
position: absolute;
28-
top: 0;
29-
left: 0;
30-
right: 0;
31-
bottom: 0;
32-
background-color: #737272;
33-
border-radius: 34px;
34-
}
35-
36-
.slider:before {
37-
position: absolute;
38-
content: "";
39-
height: 26px;
40-
width: 26px;
41-
border-radius: 50%;
42-
left: 4px;
43-
bottom: 4px;
44-
background-color: white;
45-
transition: 0.2s;
46-
}
20+
/* De checkbox */
21+
.switch input {
22+
display: none
23+
}
24+
25+
/* De balk van de switch */
26+
.slider {
27+
position: absolute;
28+
top: 0;
29+
left: 0;
30+
right: 0;
31+
bottom: 0;
32+
background-color: #737272;
33+
border-radius: 34px;
34+
}
35+
36+
/* Slider rondje */
37+
.slider:before {
38+
position: absolute;
39+
content: "";
40+
height: 26px;
41+
width: 26px;
42+
border-radius: 50%;
43+
left: 4px;
44+
bottom: 4px;
45+
background-color: white;
46+
transition: 0.2s;
47+
}
4748

48-
49-
input:checked + .slider {
50-
background-color: #5ee4b1;
51-
}
52-
53-
/* Wanneer de knop naar rechts gaat */
54-
input:checked + .slider:before {
55-
transform: translateX(26px);
56-
}
57-
49+
50+
input:checked + .slider {
51+
background-color: #5ee4b1;
52+
}
53+
54+
/* rondje gaat naar rechts */
55+
input:checked + .slider:before {
56+
transform: translateX(26px);
57+
}
58+
5859

5960
/* Hint: Dit component kun je volledig met HTML en CSS bouwen */
6061

0 commit comments

Comments
 (0)