css/balance
This commit is contained in:
parent
abfb2e60cc
commit
eb3303e753
3 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<!-- Comment. -->
|
<!-- Comment. -->
|
||||||
<h1>Root heading</h1>
|
<h1>This is some long root heading</h1>
|
||||||
|
|
||||||
<div class="sectionless">
|
<div class="sectionless">
|
||||||
<p><span class="thing">It</span> is <strong>important</strong>.</p>
|
<p><span class="thing">It</span> is <strong>important</strong>.</p>
|
||||||
|
|
|
@ -40,8 +40,10 @@ padding: 1em 2em;
|
||||||
.columns {
|
.columns {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
|
@media (width > 600px) {
|
||||||
grid-template-columns: 1fr 2fr;
|
grid-template-columns: 1fr 2fr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.sectionless {
|
.sectionless {
|
||||||
background-color: #630;
|
background-color: #630;
|
||||||
|
|
|
@ -5,3 +5,7 @@ margin: .5px;
|
||||||
padding: .5em;
|
padding: .5em;
|
||||||
/**/
|
/**/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue