Skip to content

Commit cd00a16

Browse files
committed
Aangepaste afspraken verbeterd
1 parent af71a8e commit cd00a16

3 files changed

Lines changed: 36 additions & 25 deletions

File tree

index.html

Lines changed: 16 additions & 23 deletions
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,block,check,close,delete,error,event,info,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=add,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" />
@@ -413,36 +413,37 @@ <h2>Afspraak toevoegen</h2>
413413
<input type="text" id="custTitle" placeholder=" " required />
414414
<label for="custTitle">Titel</label>
415415
</div>
416+
<div class="les dates">
417+
<div class="material-textfield">
418+
<input type="text" id="custLocation" placeholder=" " required />
419+
<label for="custLocation">Locatie</label>
420+
</div>
416421

417-
<div class="material-textfield">
418-
<input type="text" id="custLocation" placeholder=" " required />
419-
<label for="custLocation">Locatie</label>
422+
<div class="material-textfield">
423+
<input type="text" id="custTeacher" placeholder=" " required />
424+
<label for="custTeacher">Docent</label>
425+
</div>
420426
</div>
421427

422428
<div class="material-textfield">
423-
<input type="text" id="custTeacher" placeholder=" " required />
424-
<label for="custTeacher">Docent(en)</label>
429+
<input type="text" id="custGroup" placeholder=" " required />
430+
<label for="custGroup">Groep</label>
425431
</div>
426432

427433
<div class="material-textfield">
428-
<input type="text" id="custGroup" placeholder=" " required />
429-
<label for="custGroup">Groep(en)</label>
434+
<input type="text" id="custContent" placeholder=" " />
435+
<label for="custContent">Inhoud</label>
430436
</div>
431437

432438
<div class="switch switch--2">
433-
<label for="custCancelled">Afgezegd</label>
439+
<label for="custCancelled">Uitval</label>
434440
<label class="switch__label">
435441
<input type="checkbox" id="custCancelled" class="switch__input" />
436442
<span class="switch__design"></span> </label
437443
><br />
438444
<small></small>
439445
</div>
440446

441-
<div class="material-textfield">
442-
<input type="text" id="custContent" placeholder=" " />
443-
<label for="custContent">Content</label>
444-
</div>
445-
446447
<div class="material-textfield">
447448
<input type="date" id="custDate" placeholder=" " required />
448449
<label for="custTitle">Datum</label>
@@ -1279,15 +1280,7 @@ <h2>Instellingen</h2>
12791280
command="show-modal"
12801281
commandfor="customAppointments"
12811282
>
1282-
<svg
1283-
xmlns="http://www.w3.org/2000/svg"
1284-
viewBox="0 -960 960 960"
1285-
id="icon"
1286-
>
1287-
<path
1288-
d="M440-440H240q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h200v-200q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v200h200q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H520v200q0 17-11.5 28.5T480-200q-17 0-28.5-11.5T440-240v-200Z"
1289-
/>
1290-
</svg>
1283+
<span id="icon">add</span>
12911284
<span>Toevoegen</span>
12921285
</button>
12931286
</main>

schedule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function showAddAppointment() {
391391

392392
const update = () => {
393393
const enabled = localStorage.getItem("addAppointmentOn") === "true";
394-
button.style.display = enabled ? "inline" : "none";
394+
button.style.display = enabled ? "flex" : "none";
395395
};
396396

397397
checkbox.checked = localStorage.getItem("addAppointmentOn") === "true";

style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ details strong {
487487
#schedule .les.clicked {
488488
filter: brightness(1.15);
489489
}
490-
#info .les {
490+
#info .les,
491+
#customAppointments .les {
491492
padding: 0px 10px;
492493
min-height: var(--height);
493494
position: relative;
@@ -507,6 +508,19 @@ details strong {
507508
cursor: default;
508509
padding: 0;
509510
}
511+
.dates .material-textfield label {
512+
left: 0;
513+
}
514+
#customAppointments #content {
515+
max-height: calc(100vh - 113px);
516+
}
517+
#customAppointments .dates {
518+
padding: 12px;
519+
gap: 8px;
520+
}
521+
#customAppointments .dates .material-textfield {
522+
padding: 0;
523+
}
510524
#schedule section {
511525
position: relative;
512526
}
@@ -1170,6 +1184,9 @@ dialog.right #content {
11701184
border: none;
11711185
background-color: var(--primary-accent);
11721186
color: var(--accent-text);
1187+
font-family:
1188+
Google Sans Flex,
1189+
system-ui;
11731190
font-weight: 500;
11741191
font-size: 0.875rem;
11751192
letter-spacing: 0.1px;
@@ -1181,6 +1198,7 @@ dialog.right #content {
11811198
font-variation-settings:
11821199
"opsz" 20,
11831200
"ROND" 100;
1201+
line-height: 1;
11841202
}
11851203
.addBtn {
11861204
margin-left: 0.5rem;

0 commit comments

Comments
 (0)