Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有custom.styl文件 #1162

Closed
5 of 11 tasks
ning2510 opened this issue Sep 9, 2019 · 19 comments
Closed
5 of 11 tasks

没有custom.styl文件 #1162

ning2510 opened this issue Sep 9, 2019 · 19 comments

Comments

@ning2510
Copy link

ning2510 commented Sep 9, 2019

I agree and want to create new issue


Expected behavior

想更改页面背景

Actual behavior

themes\next\source\css这个路径中没有 _custom文件夹和custom.styl文件

Steps to reproduce the behavior

  • Link to demo site with this issue: 无
  • Link(s) to source code or any usefull link(s): 无

Node.js and NPM Information

Noje.ds: 10.16.3

Package dependencies Information

不太清楚

Hexo Information

Hexo version

v3.9.0 

Hexo Configuration

不太清楚

NexT Information

NexT Version:

  • Latest Master branch
  • Latest Release version
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini

# Automatically excerpt (Not recommend).
# Use <!-- more --> in the post to control excerpt accurately.
auto_excerpt:
  enable: true
  length: 10

Other Information

themes\next\source\css这个路径中没有 _custom文件夹和custom.styl文件

@ning2510 ning2510 added the Custom label Sep 9, 2019
@welcome
Copy link

welcome bot commented Sep 9, 2019

Thanks for opening this issue, maintainers will get back to you as soon as possible!

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label Feature Request to this issue, with a confidence of 0.78. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@stevenjoezhang
Copy link
Contributor

[ x] I have searched for current issues which does not help me.

#1010
#982

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

谢谢,背景图片会换了
怎么才能把文字外面的框变得透明一点呢,在网上查了好像是不透明度
还请大佬教我 谢谢

@stevenjoezhang
Copy link
Contributor

能具体说一下是哪种框吗?对应的CSS关键词是opacity

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

https://www.jianshu.com/p/30bf702f533c
在这个网站看到的效果,就是白色框内是透明的那种

简书
欢迎移步到这里浏览 如果觉得next的空白主题看腻了或者太多人用觉得不够个性化,那么不妨试试自动更新背景图片。 实现的原理 图片来源 自动更换背景的实现是修改添加背景的css样式实现。图片来源是...

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

又在网上查了查,大概就是文字背景透明化
原来也是在这里的theme/next/source/css/_custom/custom.styl
现在没有这个了,蒟蒻表示有点懵,不会换了.

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Sep 9, 2019

这个也是类似的:#973 (comment)

.main-inner { 
    margin-top: 60px;
    padding: 60px 60px 60px 60px;
    background: #fff;
    opacity: 0.8;
    min-height: 500px;
}

放进source/_data/styles.styl文件中即可

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

也就是说就是之前要更改theme/next/source/css/_custom/custom.styl这个路径的文件
现在的话只需要在source/_data/styles.styl这个路径的文件添加即可,请问是这个意思吗?

@stevenjoezhang
Copy link
Contributor

是的,没错,具体看这个:#973 (comment)

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Sep 9, 2019

可以加一下telegram群,交流更方便:https://t.me/theme_next_chinese

Telegram
一款风格优雅的高质量 Hexo 主题

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

这个网站我进不去呀...

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

非常感谢 之前我也是不会换背景图片的,就是看了您给我发的链接才学会的
再次感谢

@stevenjoezhang
Copy link
Contributor

这个需要魔法上网(

@stevenjoezhang
Copy link
Contributor

不客气,有其他问题的话欢迎新开Issue讨论

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

我也是刚接触这方面,实在不好意思
我太多东西不懂,也不明白您说的这个是什么意思...

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

好的, 再次感谢

@ning2510
Copy link
Author

ning2510 commented Sep 9, 2019

不好意思,我刚又遇到一个问题,还是白色框的问题
https://ning2510.github.io/
这是我的博客,还请您进去看一下
那个白色的框框挡住了 Home 和 Archives 两个按钮
还请您看一下 我学习断电,电脑也没电了,估计明天才能回复您,还请见谅

凉生
Just do it.

@stevenjoezhang
Copy link
Contributor

更新说明加到这里了,欢迎关注:https://github.com/theme-next/hexo-theme-next/issues/1217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants