Skip to content

Commit

Permalink
refactor($theme-default): clean all .content class names
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jun 2, 2019
1 parent 85ff630 commit 74d3a5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/@vuepress/theme-default/styles/code.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.content
{$contentClass}
code
color lighten($textColor, 20%)
padding 0.25rem 0.5rem
Expand All @@ -12,7 +12,7 @@
&.inserted
color $accentColor

.content
{$contentClass}
pre, pre[class*="language-"]
line-height 1.4
padding 1.25rem 1.5rem
Expand Down
1 change: 1 addition & 0 deletions packages/@vuepress/theme-default/styles/config.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$contentClass = '.theme-default-content'
3 changes: 1 addition & 2 deletions packages/@vuepress/theme-default/styles/index.styl
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
@require './config'
@require './code'
@require './custom-blocks'
@require './arrow'
@require './wrapper'
@require './toc'

$contentClass = '.theme-default-content'

html, body
padding 0
margin 0
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/styles/mobile.styl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $mobileSidebarWidth = $sidebarWidth * 0.82
@media (max-width: $MQMobileNarrow)
h1
font-size 1.9rem
.content
{$contentClass}
div[class*="language-"]
margin 0.85rem -1.5rem
border-radius 0

0 comments on commit 74d3a5c

Please sign in to comment.