Created
October 6, 2019 09:15
-
-
Save ffoodd/153e0054eeee6ef049a61240802f346f to your computer and use it in GitHub Desktop.
Plaan — № 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header role="banner" class="sr-only"> | |
<h1>Plan de salle du « Cercle des poètes disparus »</h1> | |
</header> | |
<main role="main" style="--rows:4; --cols:7;"> | |
<ul role="presentation" class="no-list no-margin" id="shadow"> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
<li role="presentation"></li> | |
</ul> | |
<ul class="no-list no-margin" id="plan"> | |
<li>M. Keating</li> | |
<li>Neil Perry</li> | |
<li>Todd Anderson</li> | |
<li>Knox Overstreet</li> | |
<li>Charlie Dalton</li> | |
<li>Richard Cameron</li> | |
<li>Steven Meeks</li> | |
<li>Gerard Pitts</li> | |
<li>Hopkins</li> | |
<li>Stick</li> | |
</ul> | |
</main> | |
<aside role="complementary"> | |
</aside> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[role="main"] { | |
display: grid; | |
gap: 1rem; | |
grid-template: repeat(var(--rows, 4), 1fr) / repeat(var(--cols, 7), 1fr); | |
height: 100vh; | |
margin: 0; | |
padding: 1rem; | |
width: 100vw; | |
} | |
[id="plan"] { | |
display: contents; | |
} | |
[id="plan"] li { | |
grid-area: 1 / 1 / auto / auto; | |
} | |
[id="shadow"] { | |
display: contents; | |
} | |
[id="shadow"] [role="presentation"] { | |
background: hsla(var(--muted-light), .25); | |
border-radius: .25rem; | |
} | |
@supports not (grid-template-rows: subgrid) { | |
[id="shadow"] [role="presentation"] { | |
display: inline-block; | |
} | |
[id="shadow"] [role="presentation"]:first-child { | |
grid-area: 1 / 1; | |
width: 0; | |
} | |
[id="shadow"] [role="presentation"]:last-child { | |
grid-area: var(--rows) / 1; | |
width: 0; | |
} | |
} | |
@supports (grid-template-rows: subgrid) { | |
[id="shadow"] { | |
display: grid; | |
gap: 1rem; | |
grid-area: 1 / 2 / span var(--rows) / span calc(var(--cols) - 1); | |
grid-template-columns: repeat(calc(var(--cols) - 1), 1fr); | |
grid-template-rows: subgrid; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://ffoodd.github.io/sseeeedd/css/styles.min.css" rel="stylesheet" /> | |
<link href="https://ffoodd.github.io/sseeeedd/css/print.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment