webapps.planet: more responsive css.

flac
John Benediktsson 2020-03-01 14:35:04 -08:00 committed by Steve Ayerhart
parent 3c80b9b9aa
commit 8fd968cf58
No known key found for this signature in database
GPG Key ID: 5BFD39C5359E967D
2 changed files with 59 additions and 46 deletions

View File

@ -2,10 +2,20 @@
padding-left: 15px;
padding-right: 15px;
padding-bottom: 15px;
position: relative;
}
h1.planet-title {
font-size: 300%;
.posts {
max-width: 755px;
margin-right: 215px;
}
.infobox {
position: absolute;
top: 0;
left: calc(100% - 215px);
width: 200px;
padding: 10px;
}
.posting-title {
@ -26,6 +36,12 @@ pre, code {
color: #000000;
}
.infobox {
padding-left: 10px;
@media screen and (max-width: 600px) {
.infobox {
display: none;
}
.posts {
margin-right: 0;
}
}

View File

@ -4,11 +4,9 @@
<t:atom t:href="$planet/feed.xml">[ planet-factor ]</t:atom>
<t:title>[ planet-factor ]</t:title>
<div class="posts">
<table width="100%">
<tr>
<td>
<t:title>[ planet-factor ]</t:title>
<t:bind-each t:name="postings">
@ -26,9 +24,9 @@
</t:bind-each>
</td>
</div>
<td valign="top" width="25%" class="infobox">
<div class="infobox">
<h2>Blogroll</h2>
@ -51,8 +49,7 @@
<img src="http://planet.factorcode.org/icons/feed-icon-14x14.png" />
<t:a t:href="$planet/feed.xml">Syndicate</t:a>
</p>
</td>
</tr>
</table>
</div>
</t:chloe>