Skip to content

Commit d8ea243

Browse files
committed
theme movie style
1 parent 1e93e71 commit d8ea243

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

themes/movie/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const LayoutBase = props => {
7575
'relative mx-auto justify-center md:flex items-start py-8 px-2'
7676
}>
7777
{/* 内容 */}
78-
<div className={`w-full ${fullWidth ? '' : ''} xl:px-32 lg:px-4`}>
78+
<div className={`w-full ${fullWidth ? '' : ''} px-4 max-w-[90rem] mx-auto`}>
7979
<Transition
8080
show={!onLoading}
8181
appear={true}
@@ -157,7 +157,7 @@ const LayoutSlug = props => {
157157

158158
// 创建一个新的容器元素
159159
const videoWrapper = document.createElement('div')
160-
videoWrapper.className = 'video-wrapper p-2 bg-gray-100 dark:bg-hexo-black-gray max-w-4xl mx-auto'
160+
videoWrapper.className = 'video-wrapper py-1 px-3 bg-gray-100 dark:bg-white dark:text-black mx-auto'
161161

162162
// 创建一个新的容器元素
163163
const carouselWrapper = document.createElement('div')
@@ -234,7 +234,7 @@ const LayoutSlug = props => {
234234

235235
setTimeout(() => {
236236
combineVideo()
237-
}, 100)
237+
}, 2000)
238238

239239
// 404
240240
if (!post) {
@@ -266,7 +266,7 @@ const LayoutSlug = props => {
266266
return (
267267
<>
268268
{!lock ? (
269-
<div id='article-wrapper' className='px-2 max-w-5xl mx-auto'>
269+
<div id='article-wrapper' className='px-2 max-w-6xl mx-auto'>
270270
{/* 标题 */}
271271
<ArticleInfo post={post} />
272272
{/* 页面元素 */}

themes/simple/components/NavBar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function NavBar(props) {
2525

2626
const onKeyUp = e => {
2727
if (e.keyCode === 13) {
28-
const search = document.getElementById('theme-simple-search').value
28+
const search = document.getElementById('simple-search').value
2929
if (search) {
3030
router.push({ pathname: '/search/' + search })
3131
}
@@ -43,7 +43,7 @@ export default function NavBar(props) {
4343
{showSearchInput && (
4444
<input
4545
autoFocus
46-
id="theme-simple-search"
46+
id="simple-search"
4747
onKeyUp={onKeyUp}
4848
className="float-left w-full outline-none h-full px-4"
4949
aria-label="Submit search"

0 commit comments

Comments
 (0)