summaryrefslogtreecommitdiff
path: root/stylesheets
diff options
context:
space:
mode:
Diffstat (limited to 'stylesheets')
-rw-r--r--stylesheets/programmes.css116
1 files changed, 62 insertions, 54 deletions
diff --git a/stylesheets/programmes.css b/stylesheets/programmes.css
index 88591c6..2da1e2c 100644
--- a/stylesheets/programmes.css
+++ b/stylesheets/programmes.css
@@ -1,78 +1,86 @@
-#program-list {
- max-height: 60vh;
- overflow: auto;
- scrollbar-width: thin;
- scrollbar-color: darkblue #8ad;
-}
-
-#program-list::-webkit-scrollbar {
- width: 0.25em;
- height: 0.25em;
+@media (min-width: 40em) {
+ main {
+ margin: 2em 4em 0 4em;
+ }
}
-#program-list::-webkit-scrollbar-track {
- background: #8ad;
+details.program:first-child {
+ border-top: 1px solid black;
}
-#program-list::-webkit-scrollbar-thumb {
- background: darkblue;
+details.program {
+ position: relative;
+ width: 100%;
+ border-bottom: 1px solid black;
}
-.programs {
+details.program > summary {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(var(--cell-width), 1fr));
- grid-auto-rows: var(--cell-height);
+ grid-template-columns: 4fr 5fr 4em;
grid-gap: 0.8em;
+ line-height: 2em;
+ list-style: none;
+ cursor: pointer;
}
-
-.program {
- background-color: #099;
+details.program > summary::-webkit-details-marker {
+ display: none;
+}
+/* Disable Chrome's outline; we already highlight this block
+ prominently enough IMO. */
+details.program > summary:focus {
+ outline: none;
}
-.program a {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 100%;
- color: inherit;
- text-decoration: none;
+details.program > summary > .name {
+ margin-left: 2em;
+ font-weight: bold;
+ color: #1f4e79;
}
-.program .summary {
+details.program[open] > summary > .name,
+details.program[open] > summary > .composers {
+ color: #e05a00;
font-weight: bold;
}
-details summary .duration {
- font-family: monospace;
+details.program > summary > img.button {
+ display: block;
+ width: 2em;
+ margin: auto 1em;
+}
+details.program > summary > img.button.close,
+details.program[open] > summary > img.button.open {
+ display: none;
+}
+details.program[open] > summary > img.button.close {
+ display: block;
+ position: absolute;
+ bottom: 0;
+ right: 0;
}
-@media (min-width: 40em) {
- main {
- display: grid;
- grid-template-columns: 50% 50%;
- }
+details.program > summary ~ * {
+ margin-left: 2em;
+}
- .programs {
- --cell-width: 10em;
- --cell-height: 10em;
- }
+details.program > *:nth-child(3) {
+ color: var(--gold);
+ font-weight: bold;
+}
- .program a {
- transition: color 0.5s;
- }
- .program:hover a {
- color: white;
- }
+details.program blockquote p::before {
+ content: open-quote;
+}
+details.program blockquote p::after {
+ content: close-quote;
+}
- .details.active > *:first-child {
- margin-top: 0;
- }
+ol.pieces {
+ list-style: none;
+ padding-left: 0;
}
-@media (max-width: 40em) {
- .programs {
- --cell-width: 8em;
- --cell-height: 4em;
- }
+ol.pieces > li.intermission {
+ margin-left: 4em;
+ font-style: italic;
}