Skip to content

Commit

Permalink
Add styles for sfrac template (#4074)
Browse files Browse the repository at this point in the history
* add styles for sfrac template

* linter: spaces before {
  • Loading branch information
hjpalpha authored Mar 7, 2024
1 parent 702d4c8 commit 3bab392
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions stylesheets/commons/Miscellaneous.less
Original file line number Diff line number Diff line change
Expand Up @@ -5214,6 +5214,38 @@ Author(s): Scribunto developer(s)
text-decoration: underline;
}

/*******************************************************************************
Author(s): Hjpalpha, based on a template copied from Wikipedia
Template: Sfrac
*******************************************************************************/
.sfrac {
display: inline-block;
font-size: 85%;
text-align: center;
}

.sfrac .numerator {
display: block;
line-height: 1em;
margin: 0 0.1em;
}

.sfrac .denominator {
display: block;
line-height: 1em;
margin: 0 0.1em;
border-top: 1px solid;
}

.sfrac .frac {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}

/*******************************************************************************
Hexagon portraits
Use case: Hexagon shaped portraits originally created for /heroes/Portal:Heroes
Expand Down

0 comments on commit 3bab392

Please sign in to comment.