Skip to content

Commit 4a4f8ed

Browse files
committed
style: change ".content" to "#content"
1 parent d210ec0 commit 4a4f8ed

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

lib/default-theme/NotFound.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="theme-container">
3-
<div class="content">
3+
<div id="content">
44
<h1>404</h1>
55
<blockquote>{{ getMsg() }}</blockquote>
66
<router-link to="/">Take me home.</router-link>

lib/default-theme/styles/code.styl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@require './config'
22

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

12-
.content
12+
#content
1313
pre, pre[class*="language-"]
1414
line-height 1.4
1515
padding 1.25rem 1.5rem

lib/default-theme/styles/mobile.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $mobileSidebarWidth = $sidebarWidth * 0.82
3131
@media (max-width: $MQMobileNarrow)
3232
h1
3333
font-size 1.9rem
34-
.content
34+
#content
3535
div[class*="language-"]
3636
margin 0.85rem -1.5rem
3737
border-radius 0

lib/default-theme/styles/theme.styl

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ body
5454
border-right 1px solid $borderColor
5555
overflow-y auto
5656

57-
.content:not(.custom)
57+
#content:not(.custom)
5858
@extend $wrapper
5959
> *:first-child
6060
margin-top $navbarHeight
@@ -67,7 +67,7 @@ body
6767
img
6868
max-width 100%
6969

70-
.content.custom
70+
#content.custom
7171
padding 0
7272
margin 0
7373
img
@@ -105,7 +105,7 @@ strong
105105
h1, h2, h3, h4, h5, h6
106106
font-weight 600
107107
line-height 1.25
108-
.content:not(.custom) > &
108+
#content:not(.custom) > &
109109
margin-top (0.5rem - $navbarHeight)
110110
padding-top ($navbarHeight + 1rem)
111111
margin-bottom 0
@@ -171,7 +171,7 @@ th, td
171171
.sidebar-mask
172172
display: block
173173
&.no-navbar
174-
.content:not(.custom) > h1, h2, h3, h4, h5, h6
174+
#content:not(.custom) > h1, h2, h3, h4, h5, h6
175175
margin-top 1.5rem
176176
padding-top 0
177177
.sidebar

lib/webpack/markdownLoader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module.exports = function (src) {
8282

8383
const res = (
8484
`<template>\n` +
85-
`<div class="content">${html}</div>\n` +
85+
`<div id="content">${html}</div>\n` +
8686
`</template>\n` +
8787
(hoistedTags || []).join('\n')
8888
)

0 commit comments

Comments
 (0)