tidy up .cheat-october-list

This commit is contained in:
Ray Elliott 2020-02-19 19:43:27 +00:00
parent 70946b3910
commit 1acf8673f9
1 changed files with 30 additions and 29 deletions

View File

@ -166,40 +166,41 @@
}
}
/* TODO do this properly using a shortcode */
// TODO do this properly using a shortcode to add the class to the list
// (see contentposts/leopold.md)
.cheat-october-list {
display: none;
}
.cheat-october-list + ul {
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
}
+ ul {
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
}
.cheat-october-list + ul > li {
list-style: none;
}
+ ul > li {
list-style: none;
}
.cheat-october-list + ul > li > p:first-child {
position: relative;
margin-top: 0;
padding-left: 40px;
}
+ ul > li > p:first-child {
position: relative;
margin-top: 0;
padding-left: 40px;
}
.cheat-october-list + ul > li > p:not(:first-child) {
padding-left: 40px;
}
+ ul > li > p:not(:first-child) {
padding-left: 40px;
}
.cheat-october-list + ul > li > p:first-child::before {
content: "";
position: absolute;
display: block;
top: 0.2em;
bottom: 0.2em;
left: 0;
right: 0;
background-size: contain;
background-repeat: no-repeat;
background-image: url(../images/logos/october-icon.png);
+ ul > li > p:first-child::before {
content: "";
position: absolute;
display: block;
top: 0.2em;
bottom: 0.2em;
left: 0;
right: 0;
background-size: contain;
background-repeat: no-repeat;
background-image: url(../images/logos/october-icon.png);
}
}