Skip to content

Commit

Permalink
fix(curriculum): align resources items with other items
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 31, 2024
1 parent 1f937d2 commit 6f92d66
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions client/src/curriculum/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,27 @@
p.curriculum-resources {
margin-bottom: 0.5rem;

+ ul > li {
list-style-type: none;

&:not(.external)::before {
content: url("../assets/icons/cur-mdn-resource.svg");
display: inline-block;
height: 1em;
margin-right: 0.5rem;
width: 1em;
}
+ ul {
padding-left: 0.25rem;
> li {
list-style-type: none;

&.external {
&::before {
content: url("../assets/icons/cur-ext-resource.svg");
display: inline-block;
height: 1em;
margin-right: 0.5rem;
width: 1em;
height: 1.5rem;
margin-right: 0.25rem;
width: 1.5rem;
vertical-align: bottom;
}

&:not(.external)::before {
content: url("../assets/icons/cur-mdn-resource.svg");
}

&.external {
&::before {
content: url("../assets/icons/cur-ext-resource.svg");
}
}
}
}
Expand Down

0 comments on commit 6f92d66

Please sign in to comment.