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