-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
173 lines (149 loc) · 3.74 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
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
}
/* Container */
.container {
width: 80%;
margin: auto;
max-width: 1200px;
}
/* Header */
header {
background: #007bff;
color: #ffffff;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
}
header h1 {
margin: 0;
text-align: center;
}
/* Navigation Bar */
nav ul {
list-style: none;
text-align: center;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 15px;
}
nav ul li a {
color: #ffffff;
text-decoration: none;
font-weight: bold;
}
/* Hero Section */
.hero {
background: #f4f4f4;
padding: 2rem 0;
text-align: center;
}
/* Content Sections */
.content-section {
padding: 2rem 0;
border-bottom: 1px solid #dddddd;
}
/* Footer */
footer {
background: #007bff;
color: #ffffff;
text-align: center;
padding: 1rem 0;
}
/* Resource Page Styles */
.resource-banner {
background-color: #f0f0f0; /* Example color */
padding: 20px;
text-align: center;
}
.tiles-grid {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Creates a three-column grid layout */
grid-template-rows: repeat(3, 1fr); /* Creates a three-row grid layout for a 3x3 grid */
gap: 20px; /* Spacing between tiles */
padding: 20px; /* Spacing between the grid and the screen edge, matching the gap */
justify-content: center;
align-content: center;
}
.resource-tile {
background-color: #29483c;
border: 3px solid #085c47;
border-radius: 5px;
padding: 15px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to each tile */
cursor: pointer;
transition: transform 0.3s ease;
}
.resource-grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
direction: rtl; /* right to left grid population layout */
gap: 15px; /*adjusts gap between tiles*/
}
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-gap: 16px; /* Adjust the gap size as needed */
margin: 16px;
}
.grid-item {
background: #4CAF50; /* Sample background color */
padding: 20px;
text-align: center;
color: white;
border-radius: 4px;
}
.resource-tile:hover {
transform: scale(1.05); /* slightly enlarges the tile on hovering*/
}
.resource-tile img {
max-width: 100%; /* ensures image takes up entire width of tile*/
height: auto;
border-bottom: 1px solid #ddd; /* adding a line under image thumbnails to deliniate them. */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* adds smooth transition for shadow as well */
}
/* offsets every second row of the tile grid for a more organic layout */
.tiles-grid > div:nth-child(3n+2) {
margin-top: 50px;
}
.resource-description {
display: none;
}
.resource-tile:hover {
transform: scale(1.05); /* slightly enlarges the tile on hovering */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* adds more prominent shadow on hover */
}
/* Responsive adjustments for medium screens, for example, two-column layout */
@media screen and (max-width: 992px) {
.tiles-grid {
grid-template-columns: repeat (3, 1fr);
grid-template-rows: auto; /* Rows size to content */
}
nav ul li {
display: block;
margin: 10px 0;
}
}
/* Responsive adjustments for smaller screens */
@media screen and (max-width: 600px) {
.tiles-grid {
grid-template-columns: 1fr; /* Stack tiles vertically on smaller screens */
grid-template-rows: auto; /* Rows size to content */
}
nav ul li {
display: block;
margin: 10px 0;
}
}