Skip to content

Commit

Permalink
feat(template): remove grunt-leading-quotes support, use native `ha…
Browse files Browse the repository at this point in the history
…nging-punctuation` CSS feature
  • Loading branch information
sparanoid committed Apr 6, 2017
1 parent 9286c63 commit 9a86786
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 42 deletions.
18 changes: 0 additions & 18 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ module.exports = (grunt) ->
files: ["<%= config.app %>/**/*", "!_*", "_config*.yml"]
tasks: [
"jekyll:serve"
"newer:leading_quotes"
]

uglify:
Expand Down Expand Up @@ -269,21 +268,6 @@ module.exports = (grunt) ->
dest: "<%= config.dist %>"
]

leading_quotes:
options:
elements: "p, h1, h2, h3, h4, h5, h6"
regex: /||||/
class: "leading-indent-fix"
verbose: true

main:
files: [
expand: true
cwd: "<%= config.dist %>"
src: "**/*.html"
dest: "<%= config.dist %>"
]

cacheBust:
options:
algorithm: "md5"
Expand Down Expand Up @@ -686,7 +670,6 @@ module.exports = (grunt) ->
"less:serve"
"postcss:serve"
"jekyll:serve"
"leading_quotes"
"browserSync"
"watch"
]
Expand All @@ -711,7 +694,6 @@ module.exports = (grunt) ->
"postcss:dist"
"csscomb"
"jekyll:dist"
"leading_quotes"
"cssmin"
"assets_inline"
"uncss_inline"
Expand Down
23 changes: 0 additions & 23 deletions _app/assets/themes/curtana/_less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -659,29 +659,6 @@ body:hover .latest {
}
}

// Fix empty space when a paragraph starts with quote marks and some asian
// punctuation marks, class names are powered by `grunt-leading-quotes`
.leading-indent-fix {

& { text-indent: -.39em; }
&--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: (-.45em - @heading-letter-spacing); }
&--single-quotes { text-indent: (-.28em - @heading-letter-spacing); }
}

// Reset indent for list, otherwise it looks weird
li & {
text-indent: 0;
}
}

// Tweet button margin fix
.post-modified-date {
font-size: 75%;
Expand Down
1 change: 1 addition & 0 deletions _app/assets/themes/curtana/_less/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ body {
font-family: @fontstack-default;
font-size: @font-size;
line-height: @line-height;
hanging-punctuation: first allow-end;
color: @text-color;
background: @background-color;
transition: all .2s ease;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"grunt-git": "^1.0.0",
"grunt-html-trim": "^0.1.0",
"grunt-jekyll": "^0.4.4",
"grunt-leading-quotes": "0.0.13",
"grunt-minjson": "^0.4.0",
"grunt-newer": "^1.2.0",
"grunt-postcss": "^0.8.0",
Expand Down

0 comments on commit 9a86786

Please sign in to comment.