-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
70 lines (62 loc) · 1.3 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
* {
box-sizing: border-box;
}
body {
background: rgb(177, 188, 230);
background: linear-gradient(
180deg,
rgba(177, 188, 230, 1) 0%,
rgba(154, 134, 164, 1) 100%
);
height: 100vh;
padding-top: 150px;
overflow: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.tabs {
position: relative;
display: flex;
}
input[type="radio"] {
display: none;
}
.btn {
width: min(32vw, 150px);
height: 35px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
top: 1px;
left: 0;
z-index: 2;
cursor: pointer;
}
.tabs__content {
visibility: hidden;
background-color: #e2e6fd;
border: 1px solid rgb(111, 111, 111);
border-radius: 0 3px 3px 3px;
padding: 1rem;
position: absolute;
bottom: 0;
left: 0;
transform: translateY(100%);
z-index: 1;
}
#first-topic-id:checked ~ .tabs__content-first,
#second-topic-id:checked ~ .tabs__content-second,
#third-topic-id:checked ~ .tabs__content-third {
visibility: visible;
}
#first-topic-id:checked ~ .btn-1,
#second-topic-id:checked ~ .btn-2,
#third-topic-id:checked ~ .btn-3 {
background-color: #e2e6fd;
border: 1px solid rgb(111, 111, 111);
border-bottom: none;
border-radius: 3px 3px 0 0;
}