Skip to content

Commit af71a8e

Browse files
committed
Ook lesiconen overgezet op het lettertype i.p.v. SVG-iconen
1 parent 677b5fa commit af71a8e

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link
77
rel="stylesheet"
8-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=arrow_back,arrow_back_ios_new,arrow_forward_ios,bar_chart,check,close,delete,error,event,link,menu,more_horiz,notification_multiple,palette,qr_code_scanner,settings"
8+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=arrow_back,arrow_back_ios_new,arrow_forward_ios,bar_chart,block,check,close,delete,error,event,info,link,menu,more_horiz,notification_multiple,palette,qr_code_scanner,settings"
99
/>
1010
<link rel="stylesheet" href="dialog-polyfill.min.css" />
1111
<link rel="stylesheet" href="material.css" />

schedule.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ async function fetchSchedule(year, week, isFirstLoad) {
599599
: "";
600600
if (!a.cancelled && (a.schedulerRemark || a.content)) {
601601
warningSymbol = warning
602-
? `<svg width="24" height="24" fill="none" viewBox="0 -960 960 960" xmlns="http://www.w3.org/2000/svg" id="icon" data-tooltip="${warning}"><path d="M480-280q17 0 28.5-11.5T520-320v-160q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480v160q0 17 11.5 28.5T480-280Zm0-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>`
602+
? `<span id="icon" data-tooltip="${warning}">info</span>`
603603
: "";
604604
}
605605
if (
@@ -614,7 +614,7 @@ async function fetchSchedule(year, week, isFirstLoad) {
614614
cancelled = "notEnrolled";
615615
warning = "Afgemeld";
616616
warningSymbol = warning
617-
? `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" id="icon" data-tooltip="${warning}"><path d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q54 0 104-17.5t92-50.5L228-676q-33 42-50.5 92T160-480q0 134 93 227t227 93Zm252-124q33-42 50.5-92T800-480q0-134-93-227t-227-93q-54 0-104 17.5T284-732l448 448Z"/></svg>`
617+
? `<span id="icon" data-tooltip="${warning}">block</span>`
618618
: "";
619619
} else if (a.cancelled == true) {
620620
cancelled = "cancelled";
@@ -747,8 +747,8 @@ async function fetchSchedule(year, week, isFirstLoad) {
747747
tip.textContent = btn.getAttribute("data-tooltip");
748748
const rect = btn.getBoundingClientRect();
749749
const tipRect = tip.getBoundingClientRect();
750-
let top = rect.bottom + 10;
751-
let left = rect.right - tipRect.width + 4; // rect.left + (rect.width - tipRect.width) / 2 for center
750+
let top = rect.bottom + 8;
751+
let left = rect.right - tipRect.width + 5; // rect.left + (rect.width - tipRect.width) / 2 for center
752752
if (top + tipRect.height > window.innerHeight)
753753
top = rect.top - tipRect.height - 8;
754754
if (left < 0) left = 8;

style.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ section #submenu:last-of-type,
261261
}
262262
.warning {
263263
position: absolute;
264-
bottom: 6px;
264+
bottom: 0;
265265
right: 6px;
266266
}
267267
th {
@@ -644,6 +644,8 @@ button:not(:disabled) {
644644
.icon {
645645
vertical-align: middle;
646646
color: black;
647+
font-family: Material Symbols Rounded;
648+
font-size: 24px;
647649
}
648650

649651
.selected {
@@ -878,6 +880,8 @@ input[type="radio"]:not(:checked) ~ label {
878880
}
879881
#warningIcon {
880882
fill: #e89822;
883+
position: relative;
884+
bottom: 4px;
881885
}
882886
#authorizationCode:invalid {
883887
background-color: #ff2f2f73;
@@ -922,7 +926,7 @@ button:disabled {
922926
color: var(--accent-text);
923927
}
924928
.notEnrolled #icon {
925-
fill: var(--accent-text);
929+
color: var(--accent-text);
926930
}
927931
.timeline {
928932
position: absolute;
@@ -1066,9 +1070,6 @@ label {
10661070
.weekEnabled .timeline {
10671071
top: calc(var(--top) * 1.2 + 2rem);
10681072
}
1069-
.weekEnabled .warning {
1070-
bottom: 4px;
1071-
}
10721073
}
10731074
@media (max-width: 810px) {
10741075
.weekEnabled .longExtra {

0 commit comments

Comments
 (0)