forked from Technigo/project-library
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
179 lines (154 loc) · 2.99 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
body {
background-color: #498f49;
}
.header {
background: url(assets/cultivation-header3.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
height: 200px;
display: grid;
grid-template-columns: 9fr 1fr;
grid-template-rows: 3fr 2fr 4fr;
}
.text-background {
grid-row-start: 2;
grid-column: span 2;
background-color: rgba(138, 138, 138, 0.5);
height: 100px;
display: flex;
align-items: center;
justify-content: center;
}
.h1 {
font-family: "Shadows Into Light";
text-transform: uppercase;
color: #dad7cd;
font-size: 40px;
text-align: center;
}
.btn-container {
grid-row: 3;
grid-column: 2;
display: flex;
align-items: flex-end;
justify-content: flex-end;
}
.sort-btn {
background: #a3b18a;
color: black;
padding: 15px;
margin: 25px 10px;
font-size: 6px;
border: 1px solid #344e41;
border-radius: 15px;
height: 24px;
display: flex;
align-items: center;
}
.navbar {
border-top: 2px solid #344e41;
border-bottom: 2px solid #344e41;
margin: 10px 0;
padding: 15px;
display: grid;
grid-template-columns: 2fr 2fr;
}
.btn {
background: #498f49;
color: black;
padding: 10px;
font-size: 16px;
text-transform: uppercase;
border: none;
}
.btn:hover,
.sort-btn:hover {
background: #82e285;
}
/* Dropdown Button */
.dropbtn {
background-color: #498f49;
color: black;
padding: 10px;
font-size: 16px;
text-transform: uppercase;
border: none;
}
/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #63d578;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {
background-color: #ddd;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}
/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
background-color: #82e285;
}
.card-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 10px;
}
.card {
border: 2px solid #344e41;
border-radius: 10px;
padding: 15px;
text-align: center;
background: #a3b18a;
}
.card h2 {
text-transform: uppercase;
}
.card p {
font-weight: 600;
text-transform: capitalize;
}
img {
height: 200px;
width: 80%;
object-fit: cover;
border-radius: 10px;
}
@media (min-width: 668px) {
.text-background {
height: 60px;
}
.h1 {
font-size: 50px;
}
.sort-btn {
padding: 25px;
margin: 25px 10px;
font-size: 10px;
border-radius: 15px;
height: 24px;
}
.navbar {
grid-template-columns: repeat(4, 1fr);
}
}