Skip to content

Commit 1a1cef1

Browse files
committed
Add responsiveness to site index
1 parent 35276ed commit 1a1cef1

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

site/index.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,7 @@ <h1 class="title">
6363
<div class="columns split-view">
6464
<div class="column left">
6565
<h5>Before expansion</h5>
66-
<pre class="highlight"><code class="language-clojure">
67-
68-
69-
{:duct.module/logging {}}
70-
71-
72-
</code></pre>
66+
<pre class="highlight"><code class="language-clojure">{:duct.module/logging {}}</code></pre>
7367
</div>
7468
<div class="column right">
7569
<h5>After expansion</h5>

site/style.css

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,19 @@ pre.highlight code {
113113
margin-top: 0;
114114
}
115115

116-
.split-view .left {
117-
max-width: 18rem;
118-
}
119-
120-
.split-view .left pre.highlight code {
121-
border-radius: 10px 0 0 10px;
122-
border-right: none;
123-
}
124-
125-
.split-view .right pre.highlight code {
126-
border-radius: 0 10px 10px 0;
116+
@media screen and (width > 769px) {
117+
.split-view .left {
118+
max-width: 18rem;
119+
}
120+
121+
.split-view .left pre.highlight code {
122+
border-radius: 10px 0 0 10px;
123+
border-right: none;
124+
min-height: 12.5em;
125+
padding-top: 5.5em;
126+
}
127+
128+
.split-view .right pre.highlight code {
129+
border-radius: 0 10px 10px 0;
130+
}
127131
}

0 commit comments

Comments
 (0)