-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
86 lines (74 loc) · 1.34 KB
/
style.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
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
:root {
color-scheme: dark only;
font-family: Manrope, Arial, sans-serif;
}
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
/***********************************************
GLOBAL STYLES
***********************************************/
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
background-image: linear-gradient(
-135deg,
#dbdcd7 0%,
#dddcd7 24%,
#e2c9cc 30%,
#e7627d 46%,
#b8235a 59%,
#801357 71%,
#3d1635 84%,
#1c1a27 100%
);
}
.search {
position: relative;
/* height: 50px; */
}
.search .input {
background-color: hsl(0, 0%, 23%);
border: 0;
font-size: 18px;
padding: 15px;
height: 50px;
width: 50px;
transition: width 0.3s ease;
border-radius: 50px;
}
.btn {
background-color: hsl(0, 0%, 23%);
border: 0;
cursor: pointer;
font-size: 1.5rem;
position: absolute;
top: 0;
left: 0;
height: 50px;
width: 50px;
transition: transform 0.3s ease;
border-radius: 50px;
}
.btn:focus,
.input:focus {
outline: none;
}
.search.active .input {
width: 200px;
}
.search.active .btn {
transform: translateX(198px);
}
.input:focus::placeholder {
opacity: 0;
}