Skip to content

Commit

Permalink
Corrected an issue that caused list items rendered from markdown (e.g…
Browse files Browse the repository at this point in the history
…., in game lobby descriptions, topo challenge docs) to be unstyled. Resolves GBAPI#273. (#145)
  • Loading branch information
sei-bstein authored Oct 18, 2023
1 parent 34666d0 commit bd020f4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion projects/gameboard-ui/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@import "../../../node_modules/bootstrap/scss/functions";
@import "../../../node_modules/bootstrap/scss/variables";
@import "../../../node_modules/bootstrap/scss/mixins";

@import "../../../node_modules/bootstrap/scss/root";
@import "../../../node_modules/bootstrap/scss/reboot";
@import "../../../node_modules/bootstrap/scss/type";
Expand Down Expand Up @@ -124,12 +123,26 @@ h5 {
font-weight: 300;
}

/* In the majority of cases, we style <li>s in a custom way */
li {
list-style-type: none;
padding: 0;
margin: 0;
}

/* ... but for markdown we just go with the classics */
markdown ul li {
list-style-type: disc;
padding: unset;
margin-left: 1rem;
}

markdown ol li {
list-style-type: unset;
padding: unset;
margin-left: 1rem;
}

.spacer {
flex: 1;
}
Expand Down

0 comments on commit bd020f4

Please sign in to comment.