Skip to content

Commit

Permalink
Adjust styling to show list bullets (and fix margins).
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fitzgerald committed Nov 15, 2024
1 parent 81ab282 commit 2b1c4dd
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions packages/perseus/src/styles/perseus-renderer.less
Original file line number Diff line number Diff line change
Expand Up @@ -541,32 +541,16 @@
}
}

// TODO(joel) - remove?
.perseus-tooltip {
.perseus-formats-tooltip {
background: #fff;
color: #777;
padding: 5px 10px;
width: 240px;
}

// CSS is evil; let's overwrite some styles. T_T
.perseus-formats-tooltip {
.perseus-tooltip;
color: #777;
}
.framework-perseus :not(.perseus-numeric-input /* Not in my widget, buddy! */) .perseus-formats-tooltip .paragraph > ul {
padding: 0;
margin: -20px 0 -16px 0;
> li {
list-style-type: none;
}
}

.perseus-numeric-input .perseus-formats-tooltip ul {
padding-inline-start: 20px;
> li:first-of-type {
list-style-type: none;
margin-inline-start: -20px;
}
.perseus-formats-tooltip .paragraph,
.perseus-formats-tooltip ul {
margin: 0;
}

.box-shadow(@shadow: 0 1px 3px rgba(0,0,0,0.25)) {
Expand Down

0 comments on commit 2b1c4dd

Please sign in to comment.