Skip to content

Commit ee7380b

Browse files
author
Jing Liu
committed
added assets/css/style.scss
1 parent 73558d6 commit ee7380b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

assets/css/style.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
---
3+
4+
@import "{{ site.theme }}";
5+
6+
/* https://gist.github.com/unruthless/413930 */
7+
sub, sup {
8+
/* Specified in % so that the sup/sup is the
9+
right size relative to the surrounding text */
10+
font-size: 75%;
11+
12+
/* Zero out the line-height so that it doesn't
13+
interfere with the positioning that follows */
14+
line-height: 0;
15+
16+
/* Where the magic happens: makes all browsers position
17+
the sup/sup properly, relative to the surrounding text */
18+
position: relative;
19+
20+
/* Note that if you're using Eric Meyer's reset.css, this
21+
is already set and you can remove this rule */
22+
vertical-align: baseline;
23+
}
24+
25+
sup {
26+
/* Move the superscripted text up */
27+
top: -0.5em;
28+
}
29+
30+
sub {
31+
/* Move the subscripted text down, but only
32+
half as far down as the superscript moved up */
33+
bottom: -0.25em;
34+
}
35+

0 commit comments

Comments
 (0)