Fix responsive layout for Archives page (#35)

Previously the width of date field was hardcoded at 180px and that would
take up most of screen estate on mobile devices. The most important part
- article titles - may become condensed and even unreadable
This commit is contained in:
Vitaly Potyarkin 2018-09-14 12:30:08 +03:00 committed by Arul
parent e2babcce12
commit 6de60cb90b

View file

@ -641,6 +641,8 @@ dl {
dl dt { dl dt {
float: left; float: left;
width: 180px; width: 180px;
max-width: 30%;
margin-right: 1.5em;
overflow: hidden; overflow: hidden;
clear: left; clear: left;
text-align: right; text-align: right;
@ -651,10 +653,18 @@ dl dt {
} }
dl dd { dl dd {
margin-left: 200px; float: left;
max-width: calc(100% - 30% - 1.5em);
margin-left: 0;
margin-bottom: 12px margin-bottom: 12px
} }
dl:after, dl dd:after {
clear: both;
content: "";
display: block;
}
mark { mark {
background-color: #ffc336 background-color: #ffc336
} }