-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
133 lines (130 loc) · 2.2 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
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;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: 300px;
height: auto;
object-fit: cover;
}
section {
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
margin: 20px 20px;
}
.container {
background-color: white;
width: 90%;
margin: auto;
box-shadow: 0px 0px 61px 7px #5e849c40;
padding: 20px 20px;
border-radius: 20px;
}
.header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 3%;
margin-top: 0;
}
.header h1 {
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: 0.5;
color: gray;
font-family: "Montserrat";
}
form ion-icon {
position: absolute;
right: 0;
font-size: 20px;
opacity: 0.5;
color: gray;
}
.gallery {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
margin-top: 20px;
grid-gap: 20px;
}
.item {
width: 300px;
height: 90%;
position: relative;
overflow: hidden;
border-radius: 8px;
transition: 0.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: 0.5s ease-in-out bottom;
}
.item:hover h3 {
bottom: 0;
}
@media only screen and (min-width: 900px) {
.container {
max-width: 1160px;
padding: 40px;
margin-top: 0px;
}
.header {
flex-direction: row;
justify-content: space-between;
}
.header h1 {
font-size: 40px;
}
.header input {
font-size: 24px;
}
.header ion-icon {
font-size: 24px;
}
.gallery {
grid-gap: 30px;
}
}