Skip to content

Commit

Permalink
style: change ".content" to "#content"
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jun 14, 2018
1 parent d210ec0 commit 4a4f8ed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/default-theme/NotFound.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="theme-container">
<div class="content">
<div id="content">
<h1>404</h1>
<blockquote>{{ getMsg() }}</blockquote>
<router-link to="/">Take me home.</router-link>
Expand Down
4 changes: 2 additions & 2 deletions lib/default-theme/styles/code.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@require './config'

.content
#content
code
color lighten($textColor, 20%)
padding 0.25rem 0.5rem
Expand All @@ -9,7 +9,7 @@
background-color rgba(27,31,35,0.05)
border-radius 3px

.content
#content
pre, pre[class*="language-"]
line-height 1.4
padding 1.25rem 1.5rem
Expand Down
2 changes: 1 addition & 1 deletion lib/default-theme/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
#content
div[class*="language-"]
margin 0.85rem -1.5rem
border-radius 0
8 changes: 4 additions & 4 deletions lib/default-theme/styles/theme.styl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ body
border-right 1px solid $borderColor
overflow-y auto

.content:not(.custom)
#content:not(.custom)
@extend $wrapper
> *:first-child
margin-top $navbarHeight
Expand All @@ -67,7 +67,7 @@ body
img
max-width 100%

.content.custom
#content.custom
padding 0
margin 0
img
Expand Down Expand Up @@ -105,7 +105,7 @@ strong
h1, h2, h3, h4, h5, h6
font-weight 600
line-height 1.25
.content:not(.custom) > &
#content:not(.custom) > &
margin-top (0.5rem - $navbarHeight)
padding-top ($navbarHeight + 1rem)
margin-bottom 0
Expand Down Expand Up @@ -171,7 +171,7 @@ th, td
.sidebar-mask
display: block
&.no-navbar
.content:not(.custom) > h1, h2, h3, h4, h5, h6
#content:not(.custom) > h1, h2, h3, h4, h5, h6
margin-top 1.5rem
padding-top 0
.sidebar
Expand Down
2 changes: 1 addition & 1 deletion lib/webpack/markdownLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module.exports = function (src) {

const res = (
`<template>\n` +
`<div class="content">${html}</div>\n` +
`<div id="content">${html}</div>\n` +
`</template>\n` +
(hoistedTags || []).join('\n')
)
Expand Down

0 comments on commit 4a4f8ed

Please sign in to comment.