-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
117 lines (95 loc) · 2.23 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
:root{
/*Colour base-palette : */
--white: hsl(0, 0%, 100%);
--light-pink: hsl(275, 100%, 97%);
--grayish-purple: hsl(292, 16%, 49%);
--dark-purple: hsl(292, 42%, 14%);
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
@font-face{
src: url(./assets/fonts/WorkSans-VariableFont_wght.ttf);
font-family: 'Work Sans';
font-weight: 400 600 700 900;
}
body{
max-width: 100vw;
min-height: 100vh; /*to apply flex display and align item in center*/
font-family: "Work Sans";
background: var(--light-pink) no-repeat url(./assets/images/background-pattern-desktop.svg);
background-size: contain;
display: flex;
justify-content: center;
align-items: center;
}
main{
width: 40vw;
min-width: 20rem;
position: absolute;
top: 27vh;
padding: 1.5rem 1.5rem 0.5rem;
background-color: var(--white);
border-radius: 10px;
box-shadow: 0.2px 0.2px 50px 1px rgba(164, 164, 164, 0.131);
}
.header{
display: flex;
justify-content: baseline;
align-items: center;
column-gap: 1rem;
}
h1{
font-size: 3rem;
}
.star_icon{
width: 22px;
}
hr{
color: var(--grayish-purple);
opacity: 0.4;
}
.question{
font-weight: 600;
color: var(--dark-purple);
margin-top: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
column-gap: 1rem;
}
.question::after{
content: url(./assets/images/icon-plus.svg);
}
.question:hover ,.question:focus{
color: rgb(211, 34, 221);
cursor: pointer;
}
.question.active::after{
content: url(./assets/images/icon-minus.svg);
}
.answer{
font-size: 0.9rem;
font-weight: 500;
line-height: 1.5em;
color: var(--grayish-purple);
margin: 1rem 0;
height: 0;
overflow: hidden;
transition: height 0.5s;
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
@media (max-width: 750px){
body{
background: no-repeat url(./assets/images/background-pattern-mobile.svg);
background-size: contain;
}
main{
width: 80vw;
position: absolute;
top: 20vh;
}
}