Halbooking (for Københavns Kommune) is a webapp for booking rooms for social events and courts for various sports such as badminton and hockey.
However, the current user interface design is hard to use and a bit dated with very small font sizes, tiny button click areas and oddly placed key navigation select boxes.
So, how – using only CSS, not altering the HTML – can the design be improved and a tad modernized?
Try it out yourself in Google Chrome:
/***********************************************************
Created by Andreas G. Ibsen, agib.dk
------------------------------------
Go to http://kk.halbooking.dk/default.asp?pid=14&skift=1
Then try paste this CSS into Stylebot Chrome extension:
***********************************************************/
#boxtop {
background-image: none;
border-top: 4px solid oklch(0.8975 0 0);
color: oklch(0.3211 0 0);
font-size: 15px;
letter-spacing: 1px;
padding: 20px 0 15px 0;
text-transform: uppercase;
}
#mf_rqqcogoq {
margin-bottom: 4px;
}
#logon {
background-color: oklch(0 0 0 / 0.4);
border-radius: 4px;
color: oklch(1 0 0);
display: inline-block;
font-size: 1.15em;
line-height: 1.5;
padding: 3px 9px;
text-align: center;
text-decoration: none;
}
#logon::after {
content: "Log ind";
}
#omrvalg, td[width="250"] + td div select {
background-color: oklch(0.9553 0.0639 92.76);
font-size: 16px;
width: 260px;
}
#omrvalg:focus, td[width="250"] + td div select:focus {
background-color: oklch(1 0 0);
}
#sddm li {
font-size: 16px;
padding-right: 10px;
}
.book_top {
background-color: oklch(0.9642 0 0);
background-image: none;
border-top: 1px solid oklch(0.8452 0 0);
}
.btncolor {
display: none;
}
.textbox, .textbox_login {
font-size: 13px;
height: 30px;
}
a[title="Gå en dag frem"] {
border-right: none;
margin-left: -1px;
}
a[title="Gå en dag frem"]::after {
content: "⟶";
}
a[title="Gå en dag tilbage"] {
margin-left: .5em;
}
a[title="Gå en dag tilbage"], a[title="Gå en dag frem"] {
background-color: oklch(0 0 0 / 0);
border: 1px solid oklch(0.8975 0 0);
border-width: 0 1px;
color: dodgerblue;
display: inline-block;
font-size: 36px;
line-height: 1px;
padding: 20px 15px 15px 15px;
text-decoration: none;
}
a[title="Gå en dag tilbage"]::before {
content: "⟵";
}
body {
font-size: 18px;
}
td {
font-size: 13px;
}
td.header {
width: 1px;
}
td.header + td {
text-align: left;
}
td.header + td table td {
color: oklch(1 0 0);
font-size: 1px;
}
td.header strong {
font-size: 2em;
white-space: nowrap;
}
td[width="250"] + td {
text-align: left;
}
td[width="250"] + td div select {
margin-top: 6px;
}
td[width="250"] + td div strong, td.header > img, #logon > img {
display: none;
}
td[width="40%"] {
font-size: 18px;
width: 30%;
}
td[width="40%"] + td {
white-space: nowrap;
width: 1px;
}
td[width="60%"] {
width: initial;
}