Skip to content

Commit

Permalink
feat(styles): tweak leading quote indents
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Mar 18, 2016
1 parent 8a7261c commit f7a810e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions _app/_posts/note/2014-06-05-markup-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,32 @@ HTML defines a long list of available inline tags, a complete list of which can

“This should be replaced.”

This is a normal paragraph.

## ‘This should be replaced.’

‘This should be replaced.’

This is a normal paragraph.

## 「This should be replaced.」

「This should be replaced.」

This is a normal paragraph.

## 『This should be replaced.』

『This should be replaced.』

This is a normal paragraph.

## (This should be replaced.)

(This should be replaced.)

This is a normal paragraph.

---

Most of these elements are styled by browsers with few modifications on our part.
Expand Down
8 changes: 4 additions & 4 deletions _app/assets/themes/curtana/_less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -533,16 +533,16 @@ body:hover .latest {
.leading-indent-fix {

& { text-indent: -.39em; }
&--double-quotes { text-indent: -.42em; }
&--single-quotes { text-indent: -.27em; }
&--double-quotes { text-indent: -.45em; }
&--single-quotes { text-indent: -.28em; }
&--chinese-corner-bracket { text-indent: -.6em; }
&--chinese-white-corner-bracket { text-indent: -.56em; }
&--fullwidth-parenthesis { text-indent: -.62em; }

// Special heading indent fix with `@heading-letter-spacing` offset
h1& {
&--double-quotes { text-indent: (-.42em - @heading-letter-spacing); }
&--single-quotes { text-indent: (-.27em - @heading-letter-spacing); }
&--double-quotes { text-indent: (-.45em - @heading-letter-spacing); }
&--single-quotes { text-indent: (-.28em - @heading-letter-spacing); }
}

// Reset indent for list, otherwise it looks weird
Expand Down

0 comments on commit f7a810e

Please sign in to comment.