Skip to content

Commit

Permalink
fix($default-theme): remove custom layout legacy. (close: #935)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 17, 2018
1 parent 7759d54 commit 1f345d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 1 addition & 8 deletions packages/@vuepress/theme-default/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@
/>
</Sidebar>

<div
class="custom-layout"
v-if="$page.frontmatter.layout"
>
<component :is="$page.frontmatter.layout"/>
</div>

<Home v-else-if="$page.frontmatter.home"/>
<Home v-if="$page.frontmatter.home"/>

<Page
v-else
Expand Down
5 changes: 0 additions & 5 deletions packages/@vuepress/theme-default/styles/theme.styl
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ th, td
border 1px solid #dfe2e5
padding .6em 1em

.custom-layout
padding-top $navbarHeight

.theme-container
&.sidebar-open
.sidebar-mask
Expand All @@ -175,8 +172,6 @@ th, td
padding-top 0
.sidebar
top 0
.custom-layout
padding-top 0


@media (min-width: ($MQMobile + 1px))
Expand Down

0 comments on commit 1f345d1

Please sign in to comment.