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,32 +166,32 @@
} }
} }
/* 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 { .cheat-october-list {
display: none; display: none;
}
.cheat-october-list + ul { + ul {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
padding-left: 0; padding-left: 0;
} }
.cheat-october-list + ul > li { + ul > li {
list-style: none; list-style: none;
} }
.cheat-october-list + ul > li > p:first-child { + ul > li > p:first-child {
position: relative; position: relative;
margin-top: 0; margin-top: 0;
padding-left: 40px; padding-left: 40px;
} }
.cheat-october-list + ul > li > p:not(:first-child) { + ul > li > p:not(:first-child) {
padding-left: 40px; padding-left: 40px;
} }
.cheat-october-list + ul > li > p:first-child::before { + ul > li > p:first-child::before {
content: ""; content: "";
position: absolute; position: absolute;
display: block; display: block;
@ -203,3 +203,4 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-image: url(../images/logos/october-icon.png); background-image: url(../images/logos/october-icon.png);
} }
}