-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (97 loc) · 1.95 KB
/
style.css
File metadata and controls
119 lines (97 loc) · 1.95 KB
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
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap');
*{
margin: 0;
padding: 0;
}
body{
font-family: 'Comfortaa', cursive;
background-color: black;
color: white;
overflow-x: hidden;
}
.container{
width: 1280px;
margin: auto;
}
header{border-bottom: 5px solid orange;}
#header{
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
min-height: 70px;
padding: 0 20px;
}
#header h2{font-size: 2rem;}
#search_box{
position: relative;
width: 350px;
}
#search_box input{
box-sizing: border-box;
width: 100%;
font-size: 1rem;
padding: 8px;
border-radius: 25px;
outline: none;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
-ms-transition: all 0.30s ease-in-out;
-o-transition: all 0.30s ease-in-out;
transition: all 0.30s ease-in-out;
border: 1px solid #DDDDDD;
}
input:focus{
box-shadow: 0 0 5px orange;
border: 1px solid orange;
}
#search_box i{
color: black;
position: absolute;
cursor: pointer;
top: 25%;
right: 4%;
transition: 1s;
}
#search_box i:hover{color: orange;}
#grid{
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: flex-start;
}
.img{
width: 380px;
height: 214px;
margin-top: 15px;
background-position: center;
background-size: cover;
border-radius: 2px;
cursor: pointer;
}
@media(max-width:1280px){
.container{width: 100%;}
}
@media(max-width:768px){
#main{width: 95%;}
.img{width: 100%;}
#header{
margin: 10px 0;
padding: 20px;
gap: 10px;
justify-content: center;
}
#header h2{padding: 5px 0;}
}
@media(max-width:480px){
#header h2{
text-align: center;
font-size: 1.5rem;
}
#search_box{
width: 80%;
margin: auto;
}
#search_box input{font-size: .7rem;}
}