mirror of
https://github.com/kognise/water.css.git
synced 2025-08-11 15:45:15 +02:00
(Jankily) clean up overflow and make code snippet link to min.css
This commit is contained in:
@@ -128,9 +128,9 @@
|
||||
</header>
|
||||
|
||||
<div id="link-snippet-container">
|
||||
<pre id="link-snippet-auto"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"></code></pre>
|
||||
<pre hidden id="link-snippet-dark"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css"></code></pre>
|
||||
<pre hidden id="link-snippet-light"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css"></code></pre>
|
||||
<pre id="link-snippet-auto"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css"></code></pre>
|
||||
<pre hidden id="link-snippet-dark"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/dark.min.css"></code></pre>
|
||||
<pre hidden id="link-snippet-light"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.min.css"></code></pre>
|
||||
</div>
|
||||
|
||||
<h3>Options</h3>
|
||||
|
@@ -28,12 +28,19 @@
|
||||
}
|
||||
|
||||
#link-snippet-container > pre {
|
||||
overflow: auto;
|
||||
overflow: hidden;
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
transition: transform 220ms cubic-bezier(0.175, 0.885, 0.32, 1) 220ms;
|
||||
}
|
||||
|
||||
/* This is a really *really* evil hack to get around a half-char of overflow. */
|
||||
@media only screen and (min-width: 840px) {
|
||||
#link-snippet-container > pre > code {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
#link-snippet-container > pre[hidden] {
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
|
Reference in New Issue
Block a user