Skip to content

Commit 5154436

Browse files
committed
Scherm van afspraak toevoegen verder aangepast
1 parent 9be4511 commit 5154436

2 files changed

Lines changed: 57 additions & 38 deletions

File tree

index.html

Lines changed: 49 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -413,26 +413,41 @@ <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>
416+
<div class="material-textfield">
417+
<input type="text" id="custContent" placeholder=" " />
418+
<label for="custContent">Omschrijving</label>
419+
</div>
420+
<div style="display: flex; padding: 0">
421+
<div
422+
class="material-textfield"
423+
style="
424+
flex: 1;
425+
background: none;
426+
border-right: 2px solid var(--primary-background);
427+
border-radius: 0;
428+
margin-bottom: 0;
429+
"
430+
>
431+
<input id="custLocation" placeholder=" " required />
432+
<label for="custLocation">Lokaal</label>
420433
</div>
421-
422-
<div class="material-textfield">
423-
<input type="text" id="custTeacher" placeholder=" " required />
434+
<div
435+
class="material-textfield"
436+
style="
437+
flex: 1;
438+
background: none;
439+
border-right: 2px solid var(--primary-background);
440+
border-radius: 0;
441+
margin-bottom: 0;
442+
"
443+
>
444+
<input id="custTeacher" placeholder=" " required />
424445
<label for="custTeacher">Docent</label>
425446
</div>
426-
</div>
427-
428-
<div class="material-textfield">
429-
<input type="text" id="custGroup" placeholder=" " required />
430-
<label for="custGroup">Groep</label>
431-
</div>
432-
433-
<div class="material-textfield">
434-
<input type="text" id="custContent" placeholder=" " />
435-
<label for="custContent">Inhoud</label>
447+
<div class="material-textfield" style="flex: 1; background: none">
448+
<input id="custGroup" placeholder=" " required />
449+
<label for="custGroup">Klas</label>
450+
</div>
436451
</div>
437452

438453
<div class="switch switch--2">
@@ -444,11 +459,6 @@ <h2>Afspraak toevoegen</h2>
444459
<small></small>
445460
</div>
446461

447-
<div class="material-textfield">
448-
<input type="date" id="custDate" placeholder=" " required />
449-
<label for="custTitle">Datum</label>
450-
</div>
451-
452462
<div style="display: flex; padding: 0">
453463
<div
454464
class="material-textfield"
@@ -457,6 +467,20 @@ <h2>Afspraak toevoegen</h2>
457467
background: none;
458468
border-right: 2px solid var(--primary-background);
459469
border-radius: 0;
470+
margin-bottom: 0;
471+
"
472+
>
473+
<input type="date" id="custDate" placeholder=" " required />
474+
<label for="custDate">Datum</label>
475+
</div>
476+
<div
477+
class="material-textfield"
478+
style="
479+
flex: 1;
480+
background: none;
481+
border-right: 2px solid var(--primary-background);
482+
border-radius: 0;
483+
margin-bottom: 0;
460484
"
461485
>
462486
<input
@@ -466,7 +490,7 @@ <h2>Afspraak toevoegen</h2>
466490
placeholder=" "
467491
required
468492
/>
469-
<label for="custTitle">Starttijd</label>
493+
<label for="custStart">Starttijd</label>
470494
</div>
471495
<div class="material-textfield" style="flex: 1; background: none">
472496
<input
@@ -476,7 +500,7 @@ <h2>Afspraak toevoegen</h2>
476500
placeholder=" "
477501
required
478502
/>
479-
<label for="custTitle">Eindtijd</label>
503+
<label for="custEnd">Eindtijd</label>
480504
</div>
481505
</div>
482506
</section>
@@ -494,6 +518,7 @@ <h2>Afspraak toevoegen</h2>
494518
style="
495519
background: var(--primary-foreground);
496520
color: var(--primary-light);
521+
margin-right: 8px;
497522
"
498523
commandfor="customAppointments"
499524
command="close"

style.css

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ details strong {
487487
#schedule .les.clicked {
488488
filter: brightness(1.15);
489489
}
490-
#info .les,
491-
#customAppointments .les {
490+
#info .les {
492491
padding: 0px 10px;
493492
min-height: var(--height);
494493
position: relative;
@@ -508,19 +507,9 @@ details strong {
508507
cursor: default;
509508
padding: 0;
510509
}
511-
.dates .material-textfield label {
512-
left: 0;
513-
}
514510
dialog.right #content {
515511
max-height: calc(100vh - 113px);
516512
}
517-
#customAppointments .dates {
518-
padding: 12px;
519-
gap: 8px;
520-
}
521-
#customAppointments .dates .material-textfield {
522-
padding: 0;
523-
}
524513
#schedule section {
525514
position: relative;
526515
}
@@ -1170,10 +1159,10 @@ dialog.right #content {
11701159
}
11711160
#customAppointments,
11721161
#customAppointments #content {
1173-
width: 250px;
1162+
width: 387px;
11741163
}
11751164
#customAppointments .switch {
1176-
width: 218px;
1165+
width: 355px;
11771166
}
11781167
#addCustomAppointment {
11791168
position: fixed;
@@ -1223,6 +1212,11 @@ dialog.right #content {
12231212
display: none !important;
12241213
}
12251214
}
1215+
@media (max-width: 445px) {
1216+
#custDate {
1217+
width: 5rem !important;
1218+
}
1219+
}
12261220
@media (max-width: 395px) {
12271221
#announcementsButton {
12281222
display: none !important;

0 commit comments

Comments
 (0)