This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
123 lines (110 loc) · 2.06 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
:root {
--font-pops: "Poppins", sans-serif;
--main-bg: #d4dbe9;
--container-bg: white;
--question-bg: #e4e4e4;
--button-bg: #1dc877;
}
body {
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: var(--main-bg);
font-family: var(--font-pops);
min-height: 100vh;
}
button {
cursor: pointer;
}
.main-container {
display: flex;
flex-direction: column;
gap: 2rem;
width: 30%;
margin: 0 auto;
background-color: var(--container-bg);
border-radius: 25px;
padding: 2rem;
margin-top: 4rem;
}
/** Main Title **/
.questions {
display: flex;
flex-direction: column;
gap: 2rem;
}
.question {
position: relative;
background-color: var(--question-bg);
border-radius: 25px;
}
.question-title {
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 1.2rem;
cursor: pointer;
padding: 0.2rem 0.8rem;
}
.questions-btn {
float: right;
border: none;
background: transparent;
font-size: 1rem;
}
/*** Hide Text ***/
.question-text {
display: none;
padding: 10px;
}
.show-text .question-text {
display: inline-block;
padding: 15px;
color: gray;
}
.minus-icon {
display: none;
}
.show-text .minus-icon {
display: inline-block;
}
.show-text .plus-icon {
display: none;
}
.read-more {
width: 100%;
padding: 1rem;
text-align: center;
text-transform: uppercase;
border: none;
border-radius: 25px;
font-size: 1rem;
font-family: var(--font-pops);
background-color: var(--button-bg);
color: var(--container-bg);
letter-spacing: 4px;
box-shadow: -2px 10px 24px -11px rgba(0, 0, 0, 0.62);
-webkit-box-shadow: -2px 10px 24px -11px rgba(0, 0, 0, 0.62);
-moz-box-shadow: -2px 10px 24px -11px rgba(0, 0, 0, 0.62);
}
/** Media Queries **/
@media only screen and (max-width: 1025px) {
.main-container {
width: 55%;
}
}
@media only screen and (max-width: 800px) {
.main-container {
width: 65%;
}
}
@media only screen and (max-width: 600px) {
.main-container {
width: 80%;
}
}
@media only screen and (max-width: 480px) {
.main-container {
width: 90%;
}
}