Skip to content

Commit 838b380

Browse files
Fixed calendar design and table layout in hsf.css
1 parent b9d26a6 commit 838b380

File tree

1 file changed

+49
-167
lines changed

1 file changed

+49
-167
lines changed

css/hsf.css

Lines changed: 49 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
.blog-masthead {
3131
background-color: #428bca;
32-
-webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
33-
box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
32+
-webkit-box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1);
33+
box-shadow: inset 0 -2px 5px rgba(0, 0, 0, .1);
3434
}
3535

3636
/* Nav links */
@@ -41,6 +41,7 @@
4141
font-weight: 500;
4242
color: #fff;
4343
}
44+
4445
.blog-nav-item:hover,
4546
.blog-nav-item:focus {
4647
color: #fff;
@@ -51,6 +52,7 @@
5152
.blog-nav .active {
5253
color: #fff;
5354
}
55+
5456
.blog-nav .active:after {
5557
position: absolute;
5658
bottom: 0;
@@ -73,12 +75,14 @@
7375
padding-top: 20px;
7476
padding-bottom: 20px;
7577
}
78+
7679
.blog-title {
7780
margin-top: 30px;
7881
margin-bottom: 0;
7982
font-size: 50px;
8083
font-weight: normal;
8184
}
85+
8286
.blog-description {
8387
font-size: 20px;
8488
color: #999;
@@ -98,11 +102,13 @@
98102
padding: 15px;
99103
margin: 0 -15px 15px;
100104
}
105+
101106
.sidebar-module-inset {
102107
padding: 15px;
103108
background-color: #f5f5f5;
104109
border-radius: 4px;
105110
}
111+
106112
.sidebar-module-inset p:last-child,
107113
.sidebar-module-inset ul:last-child,
108114
.sidebar-module-inset ol:last-child {
@@ -114,6 +120,7 @@
114120
margin-bottom: 60px;
115121
text-align: left;
116122
}
123+
117124
.pager > li > a {
118125
width: 140px;
119126
padding: 10px 20px;
@@ -129,10 +136,12 @@
129136
margin-bottom: 30px;
130137
padding: 10px 20px;
131138
}
139+
132140
.blog-post-title {
133141
margin-bottom: 5px;
134142
font-size: 24px;
135143
}
144+
136145
.blog-post-meta {
137146
margin-bottom: 20px;
138147
color: #999;
@@ -146,86 +155,56 @@
146155
margin-bottom: 50px;
147156
}
148157

149-
/* Table Styles */
150-
table {
158+
/* Calendar Design */
159+
.calendar {
160+
border-collapse: collapse;
151161
width: 100%;
152-
border-collapse: collapse; /* Ensures tables don't have gaps between cells */
153-
margin-bottom: 30px; /* Space below the table */
154-
}
155-
156-
th, td {
157-
padding: 12px; /* Adds space around content */
158-
text-align: left; /* Aligns text to the left */
159-
border: 1px solid #ddd; /* Light border color */
160-
}
161-
162-
th {
163-
background-color: #f8f9fa; /* Light background for header */
164-
font-weight: bold; /* Bold text for headers */
165-
}
166-
167-
tr:nth-child(even) {
168-
background-color: #f2f2f2; /* Alternating row colors */
169-
}
170-
171-
tr:hover {
172-
background-color: #e9ecef; /* Hover effect on rows */
173-
}
174-
175-
/* Training Table Styles */
176-
.training table {
177-
width: 100%;
178-
border-collapse: collapse; /* Ensures there are no gaps between cells */
162+
margin-bottom: 30px;
179163
}
180164

181-
.training table tr {
182-
background-color: white;
183-
border: 1px solid #cccccc; /* Add borders around rows */
165+
.calendar th, .calendar td {
166+
padding: 15px;
167+
border: 1px solid #ccc;
168+
text-align: center;
184169
}
185170

186-
.training table tr:nth-child(2n) {
187-
background-color: #f8f8f8; /* Alternate row color */
171+
.calendar th {
172+
background-color: #f0f0f0;
173+
font-weight: bold;
188174
}
189175

190-
.training table th, .training table td {
191-
padding: 8px 15px; /* Adjust padding for better spacing */
192-
border: 1px solid #cccccc; /* Border for cells */
193-
text-align: left; /* Align text to the left */
176+
.calendar td {
177+
background-color: #fff;
194178
}
195179

196-
.training table th {
197-
background-color: #f0f0f0; /* Light background for table headers */
198-
font-weight: bold; /* Make header text bold */
180+
.calendar td:hover {
181+
background-color: #f2f2f2;
199182
}
200183

201-
.training table tr:hover {
202-
background-color: #f2f2f2; /* Hover effect for rows */
184+
.calendar td.empty {
185+
background-color: #f9f9f9;
203186
}
204187

205-
.training table tr td:first-child,
206-
.training table tr th:first-child {
207-
padding-left: 20px; /* Add extra padding on the left for the first column */
188+
/* Text spacing */
189+
.calendar-container {
190+
margin-bottom: 40px;
208191
}
209192

210-
.training table tr td:last-child,
211-
.training table tr th:last-child {
212-
padding-right: 20px; /* Add extra padding on the right for the last column */
193+
.calendar-container h3 {
194+
font-size: 24px;
195+
font-weight: bold;
196+
margin-bottom: 20px;
213197
}
214198

215-
/* Footer */
216-
.blog-footer {
217-
padding: 40px 0;
218-
color: #999;
219-
text-align: center;
220-
background-color: #f9f9f9;
221-
border-top: 1px solid #e5e5e5;
199+
.calendar p {
200+
margin-top: 20px;
201+
line-height: 1.6;
222202
}
223203

224-
.blog-footer p:last-child {
225-
margin-bottom: 0;
226-
}
204+
/*
205+
* Navbar
206+
*/
227207

228-
/* Navbar */
229208
.navbar-nav {
230209
padding-top: 0px;
231210
padding-bottom: 0px;
@@ -250,7 +229,7 @@ tr:hover {
250229
color: #f39c12;
251230
}
252231

253-
.navbar-nav>li>a {
232+
.navbar-nav > li > a {
254233
padding-top: 9.5px;
255234
padding-bottom: 9.5px;
256235
}
@@ -289,36 +268,14 @@ body {
289268
font-size: 20px;
290269
}
291270

292-
.event-announce > a:hover {
293-
color: #333333;
294-
}
295-
296271
.alert {
297272
padding: 8px;
298273
}
299274

300-
.list-simple {
301-
padding-left: 15px;
302-
}
303-
304-
.dropdown-menu > li > a:hover,
305-
.dropdown-menu > li > a:focus {
306-
background-color: #555555;
307-
}
308-
309-
[role="button"] {
310-
font-size: 17px;
311-
}
312-
313-
.alignleft {
314-
float: left;
315-
}
316-
317-
.alignright {
318-
float: right;
319-
}
275+
/*
276+
* Colorful link styles
277+
*/
320278

321-
/* COLORFUL BIG LINK */
322279
.big-link-container {
323280
width: 100%;
324281
display: grid;
@@ -341,89 +298,14 @@ body {
341298
color: #cc5555;
342299
}
343300

344-
/* TRAINING GROUP */
345-
.training-module {
346-
width: 100%;
347-
min-height: 100pt;
348-
display: grid;
349-
padding: 5pt;
350-
border-radius: 10px 20px;
351-
}
352-
353-
.tm-stable {
354-
background-color: #f1f9f1;
355-
}
356-
357-
.tm-alpha {
358-
background-image: repeating-linear-gradient(-45deg, transparent, transparent 20px, #f9f2f4 20px, #f9f2f4 40px);
359-
}
360-
361-
.tm-beta {
362-
background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, #f9f9f1 10px, #f9f9f1 40px);
363-
}
364-
365-
.training-module-name {
366-
text-align: center;
367-
font-weight: bold;
368-
padding-bottom: 10pt;
369-
font-size: 17px;
370-
}
371-
372-
.training-module-status {
373-
padding-top: 10pt;
374-
text-align: center;
375-
}
376-
377-
.training-module-webpage {
378-
text-align: center;
379-
display: block;
380-
align-self: end;
381-
padding-top: 10pt;
382-
}
383-
384-
.training-module-repository {
385-
padding-top: 10pt;
386-
vertical-align: bottom;
387-
text-align: center;
388-
display: block;
389-
align-self: end;
390-
}
391-
392-
.training-module-videos {
393-
text-align: center;
394-
display: block;
395-
align-self: end;
396-
}
397-
398-
.training-module-container {
399-
width: 100%;
400-
display: grid;
401-
grid-template-columns: repeat(3, 1fr);
402-
gap: 10px;
403-
}
404-
405-
figure.centered-figure {
406-
text-align: center;
407-
}
408-
409-
.centered-figure > img {
410-
width: 80%;
411-
max-width: 600px;
412-
}
413-
414-
.centered-figure > figcaption {
415-
width: 80%;
416-
max-width: 600px;
417-
text-align: center;
418-
margin: 0 auto;
419-
}
420-
421301
/* Media Queries */
422302

423303
@media (max-width: 620px) {
424304
.big-link-container {
425305
grid-template-columns: 1fr;
426306
}
427307

428-
.big-link
429-
308+
.calendar {
309+
font-size: 14px; /* Adjust font size for smaller screens */
310+
}
311+
}

0 commit comments

Comments
 (0)