Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to one-column view on narrow screens #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@
margin: 0px 0px 0px 0px;
font-family: Lora, arial, helvetica, ariel, sans-serif;
font-size: 140%;
height: 100%;
display: flex;
flex-direction: column;
}
.content {
flex-grow: 1;
}
.devcurl {
border-top: 1px solid #0f564d;
}
@media (min-width: 60em) {
.content {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: min-content 1fr;
}
.devcurl {
border-top: none;
}
}
pre {
overflow-x: scroll;
}
a {
text-decoration: none;
Expand Down Expand Up @@ -38,37 +60,24 @@
}

.withcurl {
width: 48%;
background: #093754;
color: #ffffff;
padding: 10px 10px 10px 10px;
float: left;
height: 40%;
}
.withlib {
width: 48%;
background: #ffffff;
color: #093754;
padding: 10px 10px 10px 10px;
float: left;
height: 40%;
}
.devcurl {
width: 48%;
background: #ffffff;
color: #0f564d;
padding: 10px 10px 10px 10px;
float: left;
clear: left;
height: 100%;
}
.devlib {
width: 48%;
background: #0f564d;
color: #ffffff;
padding: 10px 10px 10px 10px;
float: left;
height: 100%;
}
.term {
padding: 4px 4px 4px 4px;
Expand All @@ -90,6 +99,7 @@
<p>
</div>

<div class="content">
<div class="withcurl">
<h2>development with curl</h2>
<pre class="term">
Expand Down Expand Up @@ -155,4 +165,5 @@ <h2>development of libcurl</h2>
<li> <a href="https://everything.curl.dev/source/contributing">contribute</a>
</ol>
</div>
</div>
</body>