-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
143 lines (141 loc) · 2.51 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;900&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html{
font-family: 'Montserrat', sans-serif;
font-size: 100%;
}
body{
background-color: #DBE2E9;
}
img{
width: 100%;
height: 100%;
object-fit: cover;
}
section{
min-height:100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin: 100px 0;
}
.container{
background-color: white;
width: 90%;
max-width: 900px;
margin: 0 auto;
box-shadow: 0px 0px 61px 7px #5e849c40;
padding: 50px 20px;
border-radius: 20px;
text-align: center;
}
.header{
display: flex;
flex-direction: column;
align-items: center;
}
.header h1{
cursor: pointer;
font-size: 40px;
font-weight: 900;
letter-spacing: -2px;
}
form{
margin-top: 30px;
width: 80%;
max-width: 300px;
position: relative;
}
input{
border: none;
border-bottom: 2px solid rgba(128, 128, 128, 0.479);
font-size: 20px;
width: 100%;
outline: none;
color: gray;
background-color: transparent;
}
input::placeholder{
opacity: .5;
color: gray;
font-family: 'Montserrat';
}
form ion-icon{
position: absolute;
right: 0;
font-size: 20px;
opacity: .5;
color: gray;
}
.gallery{
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) ;
margin-top: 50px;
grid-gap: 20px;
}
.item{
width: 100%;
height: 300px;
position: relative;
overflow: hidden;
border-radius:8px;
transition: .3s ease box-shadow;
}
.item:hover{
box-shadow: 0px 0px 20px 3px #00000042;
}
.item:nth-last-child(1){
margin-bottom: 0;
}
.item h3{
width: 100%;
padding: 20px;
position: absolute;
background-color: #00000040;
color: aliceblue;
bottom: -70px;
font-weight: 300;
transition: .5s ease-in-out bottom;
}
.item:hover h3{
bottom: 0;
}
.load-more{
display: inline-block;
margin-top:30px;
padding: 20px 50px;
background-color: black;
text-decoration: none;
text-transform: uppercase;
color: azure;
font-weight: 500;
cursor: pointer;
}
@media only screen and (min-width: 900px){
.container{
max-width: 1160px;
padding: 100px;
}
.header{
flex-direction: row;
justify-content: space-between;
}
.header h1{
font-size: 50px;
}
.header input{
font-size: 24px;
}
.header ion-icon{
font-size: 24px;
}
.gallery{
grid-gap: 30px;
}
}