Flarum中文社区以往样式

{collapse}
{collapse-item label=”FlarumCN 2021 样式 – 默认蓝色”}
记录社区样式的更新和CSS内容,以年份和具体主题名称命名,
欢迎大家在浏览社区的同时反馈样式 Bug,可在此文章/QQ群/Github中留言,
同时,也可以在 Github 中查看 FlarumCN样式 历史版本:
https://github.com/yannisme/FlarumCN-CSS-Style / https://github.com/FFans/FlarumCN-Site-Backup

目前,社区的样式有如下:

FlarumCN 2021 样式 | 优化更新于2021/3/22

2021/3/15 V1.1 版本
2021/3/18 V1.2 版本 – 个人设置按钮样式修復 – 感谢 @”轻抚三下”#3478
2021/3/22 V1.3 版本 – 已适配移动端 ?
此样式默认支持夜间模式

外观颜色分别设置为 #276bb0 ; #6699cc – 默认蓝色,可自行更改颜色

颜色 -> 选择两种颜色作为论坛主色调。第一种作为突出显示颜色,第二种作为背景等元素的颜色。

将以下样式代码复制提交即可,可根据需求自行修改调整

自定义样式 -> 添加 LESS/CSS 代码以自定义论坛外观样式,此设置将覆盖 Flarum 默认样式

body{font-family:'Microsoft YaHei',"Open Sans","Clear Sans","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.6}
.DiscussionListItem-title{font-family:-apple-system,SF UI Display,Arial,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:@config-primary-color}
::-webkit-scrollbar-track{background:@config-secondary-color}
.IndexPage .DiscussionListItem-title,.UserPage .DiscussionListItem-title{margin-right:155px;font-size:18px}
.IndexPage .DiscussionListItem-info>.item-tags,.UserPage .DiscussionListItem-info>.item-tags{position:inherit!important;-webkit-mask-image:none!important;margin-top:-7px;float:right;padding-right:unset!important}
.DiscussionListItem{border-bottom:1px solid rgba(0,0,0,.0625)}
.DiscussionListItem-author{display:none}
.DiscussionPage-list .DiscussionListItem-content{padding-left:8px;padding-right:15px}
.DiscussionListItem-content{padding-left:5px;padding-right:5px}
.DiscussionListItem-count{display:none}
.DiscussionHero-items{text-align:left}
.DiscussionListItem-badges{float:right}
.IndexPage .DiscussionListItem-badges{margin-top:5px}
.PostUser-badges{float:right;position:initial}
.Badge{margin:2px!important;width:auto;height:auto;background:0 0;color:#276bb0;display:unset;vertical-align:middle;text-align:center;-webkit-box-shadow:none;box-shadow:none}
span.Badge{background:0 0!important}
.Button.active,.Button.focus,.IndexPage .Button:focus,.IndexPage-results .DiscussionList-discussions .Button:hover,.IndexPage-results .DiscussionList-discussions .open>.Dropdown-toggle.Button,.UserPage .Button:focus,.UserPage .Button:hover,.UserPage .open>.Dropdown-toggle.Button{background:0 0!important}
.Button.active,.Button:active,.open>.Button.Dropdown-toggle{box-shadow:none}
.DiscussionHero .item-title{display:unset!important}
.DiscussionPage .DiscussionHero-items li.item-tags{float:right}
header.Hero.DiscussionHero.DiscussionHero--colored{background:@hero-bg!important}
h2.DiscussionHero-title{color:@muted-color}
.DiscussionHero--colored,.DiscussionHero--colored a{color:@hero-color!important}
.DiscussionPage-list button.Dropdown-toggle.Button.Button--icon.Button--flat.Slidable-underneath.Slidable-underneath--right{display:none}
.item-discussion-views{position:unset!important}
.DiscussionPage-list .DiscussionListItem-info>li,.UserPage .DiscussionListItem-info>li{display:none}
.DiscussionPage-list .DiscussionListItem-badges{float:left;padding-right:3px;margin-left:4px;width:auto}
.affix .DiscussionPage-list{overflow-x:hidden}
.affix .App-header{border-top:3px solid @config-primary-color}
.EventPost-icon{text-align:end;width:77px;margin-top:2px;font-size:14px}
.darkenBackground .UserCard-profile i.icon{color:#fff}
.PostUser-avatar{vertical-align:middle;position:relative;left:-7px;top:-2px;width:2.5em;height:2.5em;font-size:1em;line-height:2.5em}
.Post{padding-left:30px}
.PostUser-avatar{border-width:2px!important}
.PostStream-timeGap{padding:10px}
.unread .DiscussionListItem-title:after{font-weight:500;content:'New';color:#f26c4f;transform:scale(.6)}
.item-discussion-views,.item-discussion-views:before{content:' · 查看'!important;color:@muted-more-color!important;font-size:12px!important}
.UserPage .PostsUserPage-discussion a{font-style:normal;font-size:18px;background:@body-bg;margin-left:-20px}
.UserPage .Post-header{display:none}
.PostsUserPage .PostsUserPage-list .Post{padding:0 0 10px 18px}
.PostsUserPage aside.Post-actions{display:none}
.scroll-up{height:auto!important;background-color:#5eacfb!important}
.scroll-up:focus,.scroll-up:hover{background-color:@config-primary-color!important}
.topicStarter{padding:1px 5px 1px 5px!important;font-weight:600;float:right;position:inherit;margin-left:-35px!important;z-index:99;font-size:12px!important}
.DiscussionListItem-info .fa,.DiscussionListItem-info .fas{display:none}
.IndexPage-results.sideNavOffset .DiscussionList.DiscussionList--searchResults li.item-discussion-views{display:none}
@media (max-width:767px){
.DiscussionListItem-content{padding-left:20px;padding-right:20px}
.IndexPage .DiscussionListItem-info>.item-tags{margin-top:unset}
.IndexPage .DiscussionListItem-title{margin-right:auto}
.item-discussion-views{background:@body-bg!important}
}
.DiscussionList:not(.DiscussionList--searchResults) .unread .DiscussionListItem-title{font-weight:500}
.NotificationsDropdown-unread,.new .NotificationsDropdown-unread{background:@muted-color!important}
.Post--BestAnswer{z-index:999}
.SettingsPage legend{float:unset}
.UserPage .SettingsPage .Button--primary.active,.UserPage .SettingsPage .Button--primary:active,.UserPage .SettingsPage .Button:focus,.UserPage .SettingsPage .Button:hover,.UserPage .SettingsPage .open>.Dropdown-toggle.Button,.UserPage .SettingsPage .open>.Dropdown-toggle.Button--primary{background:@config-primary-color!important}

搭配使用”沙发、椅子、地板”美化样式CSS:

/*沙发*/
div.PostStream-item[data-index="1"] article.CommentPost.Post header.Post-header ul:not(ul.PostUser-badges.badges):not(ul.UserCard-badges.badges,ul.UserCard-info)::after{content:"沙发"}
/*板凳*/
div.PostStream-item[data-index="2"] article.CommentPost.Post header.Post-header ul:not(ul.PostUser-badges.badges):not(ul.UserCard-badges.badges,ul.UserCard-info)::after{content:"椅子"}
/*地板*/
div.PostStream-item[data-index="3"] article.CommentPost.Post header.Post-header ul:not(ul.PostUser-badges.badges):not(ul.UserCard-badges.badges,ul.UserCard-info)::after{content:"地板"}
/*美化样式*/
div.PostStream-item[data-index="1"] article.CommentPost.Post header.Post-header ul:not(ul.PostUser-badges.badges):not(ul.UserCard-badges.badges,ul.UserCard-info)::after,div.PostStream-item[data-index="2"] article.CommentPost.Post header.Post-header ul:not(ul.PostUser-badges.badges):not(ul.UserCard-badges.badges,ul.UserCard-info)::after,div.PostStream-item[data-index="3"] article.CommentPost.Post header.Post-header ul:not(ul.PostUser-badges.badges):not(ul.UserCard-badges.badges,ul.UserCard-info)::after{position:relative;z-index:2;background:@hero-bg;padding:1px 5px 1px 5px;color:@link-color;border-radius:4px;font-size:12px;font-weight:600;float:right}
div.PostStream-item[data-index="1"] article.CommentPost.Post.Post--by-start-user .Post-body,div.PostStream-item[data-index="2"] article.CommentPost.Post.Post--by-start-user .Post-body,div.PostStream-item[data-index="3"] article.CommentPost.Post.Post--by-start-user .Post-body{clear:both}

{/collapse-item}

{collapse-item label=”FlarumCN 2020 样式 – 默认橙红色”}
你可以在 Github 中查看 FlarumCN样式 版本历史 https://github.com/yannisme/FlarumCN-CSS-Style

FlarumCN 2020 样式 | 优化更新于2021/3/27

此样式默认支持夜间模式

外观颜色分别设置为 #ea715d ; #999 – 默认红色,可自行更改颜色

颜色 -> 选择两种颜色作为论坛主色调。第一种作为突出显示颜色,第二种作为背景等元素的颜色。

将以下样式代码复制提交即可,可根据需求自行修改调整

自定义样式 -> 添加 LESS/CSS 代码以自定义论坛外观样式,此设置将覆盖 Flarum 默认样式

::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-thumb{background:@config-primary-color}
::-webkit-scrollbar-track{background:fade(@config-secondary-color,30%)}
.Avatar{border-radius:20%!important}
.affix .DiscussionPage-list{overflow-x:hidden}
.PostUser-avatar{position:relative;left:-7px;top:-4px;width:20px;height:20px;font-size:16px;line-height:19px;border-width:2px!important}
.PostUser{top:-1px}
.PostUser-badges{position:initial;width:auto;padding-right:12px;margin-top:-3px;margin-left:unset}
.IndexPage .TagLabel-text i.icon{display:none}
.IndexPage .DiscussionListItem-author{display:block}
.IndexPage .DiscussionListItem-info>.item-tags,.UserPage .DiscussionListItem-info>.item-tags{position:inherit!important;-webkit-mask-image:none!important;padding-right:10px}
.IndexPage-nav .item-newDiscussion .Button{width:auto}
.topbutton i{padding:5px}
.topbutton a{color:#fff;text-decoration:unset}
.Flagrow-Ads-fake-poststream-item{border:0!important}
.PostStream-item:not(:last-child){border:0}
.scroll-up{background-color:#ea725d}
.UserPage .darkenBackground{background:@config-primary-color}
.UserPage .PostsUserPage-discussion a{font-style:normal;font-size:18px;background:@body-bg;margin-left:-20px}
.PostsUserPage .PostsUserPage-list .Post{padding-top:0}
.PostsUserPage .Post-flagged{margin-left:-18px}
.Post-body blockquote{border-radius:0;border:0;border-left-color:@link-color;border-left-width:5PX;border-left-style:solid;padding:10px 10px 10px 19px;margin:1rem 0}
.Post--hidden .Post-header .Button--more{margin-top:-4px}
.Post-warning-summary{color:@config-primary-color!important}
.EventPost-icon,.UserPage .DiscussionListItem-info>.item-tags,.UserPage .Post-header{display:none}
.EventPost-info{padding-left:10px;border-left:5px solid @config-primary-color}
.DiscussionStickiedPost .EventPost-icon,.DiscussionStickiedPost .EventPost-info,.DiscussionStickiedPost .EventPost-info a,.EventPost,.EventPost a{color:@link-color!important}
.UserPage .Post-footer{margin-bottom:-20px}
.UserPage .Post-actions,.UserPage span.DiscussionListItem-count,.UserPage.DiscussionListItem-info>li{display:none}
.ReplyPlaceholder,.UserPage .CommentPost:not(.Post--hidden){min-height:auto}
.UserCard-info{margin:8px 0 0!important}
.UserCard-info .item-bio{margin:auto!important}
.UserCard.UserCard--popover.in .UserCard-avatar{float:left;margin-left:-130px;margin-top:-41px}
.ComposerBody-content .DiscussionPage-list .TagLabel,.ComposerBody-content .TagLabel,.DiscussionPage-list .TagLabel,.IndexPage .TagLabel,.TagsInput-tag .DiscussionPage-list .TagLabel,.TagsInput-tag .TagLabel{background:fade(@primary-color,10%)!important;color:@config-primary-color!important}
.ComposerBody-content .Slidable-content .TagLabel.colored .TagLabel-text,.Slidable-content .TagLabel.colored .TagLabel-text,.TagsInput-tag .Slidable-content .TagLabel.colored .TagLabel-text{color:@config-primary-color!important}
.TagsLabel .TagLabel{margin-right:5px}
.TagsLabel .TagLabel:first-child,.TagsLabel .TagLabel:first-child:last-child,.TagsLabel .TagLabel:last-child{border-radius:4px!important}
.Post{padding-left:18px}
.Settings-privacy legend{position:absolute;display:none}
li.item-settings.social-button{margin-top:-15px!important;position:absolute!important}
button.Button.Button--icon.Button--link.hasIcon{color:#c9c9c9}
.NotificationsDropdown-unread,.new .NotificationsDropdown-unread{background:#fff;position:absolute;z-index:3!important}
.Hero-close{display:none}
.Hero.DiscussionHero.DiscussionHero--colored{background:fade(@primary-color,98.5%)!important}
.Hero .container{padding-top:15px;padding-bottom:15px}
.Hero{border-bottom:2px solid @config-primary-color}
.Post-header{text-align:left;border-bottom:1px solid fade(@text-color,10%)}
.DiscussionHero-items{text-align:left}
.Badge,.Badge .Badge-icon{font-size:12px}
.UserBio{margin:2px 0 20px -10px!important}
.Post--BestAnswer{padding:0 4px!important;position:absolute;margin-top:-1px;right:0!important;text-align:left;width:auto;z-index:999}
.DiscussionListItem{border-bottom:1px solid rgba(0,0,0,.0625)}
.DiscussionListItem-author{display:none}
.DiscussionListItem-info .item-excerpt{margin:0 0 8px!important;font-size:13px!important;line-height:24px!important}
.DiscussionPage-list .DiscussionListItem-content{padding-left:25px;padding-right:15px}
.DiscussionPage-list button.Dropdown-toggle.Button.Button--icon.Button--flat.Slidable-underneath.Slidable-underneath--right{display:none}
.DiscussionPage-list .DiscussionListItem-info>li,.UserPage .DiscussionListItem-info>li{display:none}
.DiscussionPage-list .DiscussionListItem-badges{float:left;padding-right:3px;margin-left:4px;width:auto}
@media (min-width:1300px){.PostStream-timeGap{padding:0}}

01
03.png
04.png

搭配首页横条提醒代码:

.IndexPage-toolbar::after {
    content: "Beta 15 及 Sticky 扩展发布安全更新,详情查看置顶主题。";
    padding: 3px 5px 3px 5px;
    background-color: @hero-bg;
    color: @link-color;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    display: block;
    margin: 5px 0;
    white-space: pre-wrap;
}

{/collapse-item}
{/collapse}

{collapse}
{collapse-item label=”FlarumCN 2019 样式 – 活力橙”}

前往最新样式查看内容 https://discuss.flarum.org.cn/d/2404

写在最前 | FRONT

关键词:FlarumCN 样式,FlarumCN 活力橙 CSS,Flarum 中文社区样式

与 Flarum 中文社区的样式有细微差别,基于中文社区样式进行优化,
新增样式表外部调用,避免复制冗长代码片段,加重维护、误删和回档的压力。
简化排版,前置中文,去除部分英文说明。

演示地址 Demohttps://discuss.flarum.org.cn/ | https://flarum.pro/d/18-flarumcn-yang-shi

请遵循 CC-BY-NC-SA 4.0.!

其他:如果您对 !important 介意或有偏执,请不要使用或声讨以及后续的反馈,谢谢!
非安装方式达到覆盖效果,需要 !important 才可生效,暂不支持 Composer 安装。


内容更新 | UPDATING

遇到了错位或 BUG,欢迎留言反馈。在等待的这期间,您可以检查是否是由插件扩展带来的冲突,謝謝。

  • 新增活力橙?配色 – 7/19/2020
  • 优化气泡遮挡问题 – 6/4/2020
    .new .NotificationsDropdown-unread { background: #fff; position: absolute; z-index: 3; }
  • 插件扩展冲突,选择性使用 – 6/4/2020

    • Footer遮挡问题,导致管理员菜单溢出DEBUG:

    .App { overflow-x: visible!important; }


致谢 | THANKS

  • Yannis – Me.!
  • FlarumCN – BOSS 🙂 .!
  • CodingNet – 托管 CSS 样式表~

如何使用样式 | HOT TO DO

  • 复制样式内容片段至后台中:外观>>自定义样式
    copy this code to your Appearance >> Custom Styles
  • 外部调用行代码,复制至: 外观>>自定义页眉

默认配色 ?
<link rel="stylesheet" type="text/css" href="https://css.yannis.cn/flarumcn.css">

活力橙? 配色
<link rel="stylesheet" type="text/css" href="https://css.yannis.cn/flarumcn_orange.css">

PS: 外部调用需要考虑到链接阻塞问题,建议您在本地备份,失效时可替代。
偶尔可能会出现短暂失效问题,还请耐心等待,不必太担心。国外线路请选择性调用,謝謝。


样式内容 | CSS STYLE-SHEET

颜色

第一种作为突出显示颜色,第二种作为背景元素样式。
The first will be used as a highlight color, while the second will be used to style background elements.
颜色参数: #4D698E , #4D698E

样式
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-thumb{background:#4D698E} //@config-primary-color
::-webkit-scrollbar-track{background:#e8ecf3}
.App{overflow-x:visible!important}
.Avatar{border-radius:20%!important}
.App-header .Button.active,.App-header .Button.focus,.App-header .Button:active,.App-header .Button:focus,.App-header .Button:hover,.App-header .open>.Dropdown-toggle.Button,.ButtonGroup>.Dropdown-toggle:hover,.open>.Button.Dropdown-toggle{border-radius:10%!important}
.DiscussionList-loadMore .Button,.UserDirectoryList-loadMore .Button{background:#e0e0e0;color:#828282}
i.icon.fas.fa-check.Button-icon{color:#4D698E} //@config-primary-color
.TagDiscussionModal-form i.icon.fas.fa-check.Button-icon{color:#b8c3d2!important}
@media (min-width:769px){
body{background-image:linear-gradient(to bottom,#f2f2f2,#ebebeb);background-repeat:no-repeat;background:#ebebeb}
.IndexPage h3.DiscussionListItem-title{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.DiscussionHero .TagsLabel .TagLabel{color:#4d698e;font-size:16px!important}
h3.DiscussionListItem-title{padding-bottom:3px}
.UserCard.Hero.UserHero{background:#7ca6e1!important}
.DiscussionListItem{margin-top:10px}
.DiscussionListItem-info{color:#888}
.EventPost-icon{text-align:center;margin-left:-19px;width:64px;font-size:22px}
.DiscussionListItem:hover{background:#f7f7f7}
.DiscussionList:not(.DiscussionList--searchResults) .read .DiscussionListItem-title{color:#1b2028}
.DiscussionHero .TagsLabel .TagLabel.colored .TagLabel-text{color:inherit!important;font-size:16px}
.Scrubber-handle{background-color:transparent!important}
.kuoxo{py:yannis!important}
.Hero{background:#fff!important;margin-bottom:15px}
.Hero h2{font-size:2em;font-weight:bolder;color:#191919}
.Hero-subtitle{color:#000;font-size:15px;margin:8px 0 0;line-height:1.5em}
.App-header .Button,.App-header .Button:hover{color:#fff}
.UserPage .Hero h2{color:#fff}
.Post-body{font-size:14px;line-height:1.7;position:relative;overflow:auto;overflow-wrap:break-word;border-radius:5px;margin-top:0;border:1px solid #d6d6d6;box-shadow:0 3px 9px 1px rgba(0,0,0,.1)!important;background:#fff;padding:20px;min-height:80px}
.Post-body pre{font-size:80%;border-radius:0;border-left-color:#959ea9;border-left-width:5px;border-left-style:solid}
.Post-body>:first-child,.Post-preview>:first-child{margin-top:0!important}
.Post-actions{margin-top:5px}
.Post-footer{margin-top:10px;margin-bottom:0}
.Post-header{margin-bottom:10px;color:grey}
.PostStream-item{border: 0!important}
.PostStream-timeGap{padding-top:0;padding-bottom:0}
.Select-caret{margin-left:5px}
.Post{padding-bottom:10px}
.PostStream-timeGap span{margin-top:-10px;position:absolute}
.UserPage .Post-body{box-shadow:none!important}
.tooltip.right{margin-left:-29px;margin-top:-18px;padding:0}
}.Post-body blockquote { color: #2c3e50; background-color: #f3f5f7; border-radius: 0; border: 0; border-left-color: #42b983; border-left-width: 5px; border-left-style: solid; padding: 0 15px; margin: 1rem 0; }
.new .NotificationsDropdown-unread{background:#fff;position:absolute;z-index:3}

截图 | PICTURE

即得即所见


活力橙?配色 – (兼容夜间模式)

如果之前使用调用方法,请覆盖替换

<link rel="stylesheet" type="text/css" href="https://css.yannis.cn/flarumcn_orange.css">

如果是直接复制 CSS 样式,请作如下修改

配色:#f38761#ff8100

body{background-image:linear-gradient(to bottom,#f2f2f2,#ebebeb);background-repeat:no-repeat;background:#ebebeb}
.Hero{background:#fff!important;margin-bottom:15px}

需要在默认基础上将如上内容覆盖为以下样式

body{background:#f6f6f6 url(https://css.yannis.cn/img/flarumcn_orange/new_bodybg.png) 10px fixed}
.Hero{background:#63584f0d!important;margin-bottom:15px}

并增添如下样式

.App:before{background: linear-gradient(to right,#fb9b47,#f48663,#ee757a)}
@media (min-width:769px) {
.DiscussionPage-discussion{background:url(https://css.yannis.cn/img/flarumcn_orange/topright_bodybg.png) no-repeat right -275px}
.touch i.icon.fas.fa-check.Button-icon{color:#facfc0 !important}
}

欢迎反应BUG,夜间模式样式问题优先

夜间模式需要加入以下样式,可配合 FoF 夜间模式 插件使用

body.dark a{border:none}
body.dark p{color:#fff}
body.dark h3.DiscussionListItem-title{color:#ab9681!important}
body.dark h2.DiscussionHero-title{color:#ad957e}
body.dark li.item-bestAnswerPost{background:0 0}
body.dark span.BestAnswer--User .username{color:#fff}
body.dark .PostStream-timeGap{padding:0 0 15px 0}
body.dark .PostStream-timeGap span{margin-top:-20px;border-bottom:2px solid #f38761}
body.dark .Hero-subtitle,body.dark h2.Hero-title{color:#93806c}
body.dark .Post-body{border:0;box-shadow:none!important;background:none}

活力橙 ? Debug Log

7/19/2020
取消页头使用图片,增加流量负担,改用颜色代替,其他正在代替中…
.App:before{background: linear-gradient(to right,#fb9b47,#f48663,#ee757a)}

修复间隔错位 Bug .PostStream-item{border: 0!important}

7/23/2020
手机端消息已读插件颜色冲突
.touch i.icon.fas.fa-check.Button-icon{color:#facfc0 !important}

{/collapse-item}

{collapse-item label=”FlarumCN 2019 样式 – 原初版OXO”}

date: 2019-12-07 01:42:17

A COAT,U CAN TAKE IT OFF ANYTIME , BECAUSE IT’S JUST A PIECE OF CSS, ISN’T IT?
这是一件衣服,你可以随时穿上或者脱下来,因为它只是一段代码,很方便对吧!?


HOT TO INSTALLATION | 如何使用该风格

copy this code to your Appearance >> Custom Header or Custom Footer
复制这些片段的代码至你的后台管理中的外观>>自定义页眉/页脚

why not Custom Styles, because I CANNOT write it (“@media (xxx){xxx}”) here !!
为什么不放在自定义样式中,因为无法将@media写在其中

Demo Link: https://bbs.kuoxo.com/ | https://bbs.kuoxo.com/d/301-oxo-flarum-themes
Link: https://discuss.flarum.org/d/22245-oxo-flarum-themes-by-yannisme


UPDATING | 内容更新

Welcome to give me some inspiration or a bug, I will do it all day.
谢谢你能给我一些建议或者BUG,我会仔细check的!Great??

  • Dec. 12, 2019 第一版发布
  • Jan. 15, 2020 进行细节优化,更至第二版

[AINFO] 主题暂未适配边栏友情链接,后续会优化不同分辨率下的适配问题,包含手机端。
@media可以写在自定义样式里面了,会对其优化、整理,请耐心等待…[/AINFO]


CONTRIBUTING | 贡献

Flarum – Without you, nothing exist
没有你,就没有这个主题的存在
Yannisme – Just me ?
这就是我 ?


SUGGESTIONS | 建议

Colors #b59e8c , #444
颜色搭配,第一种作为突出显示颜色,第二种作为背景元素样式。

Colored Header
✅ 勾选 彩色页眉

I suggest use the following fonts
同时,建议使用以下网页字体,有利于阅读和缓解视觉疲劳

1. font-family: "Arial","Microsoft YaHei","黑体","宋体",sans-serif;
2. font: 12px/1.5 Tahoma,Helvetica,Arial,'宋体',sans-serif;
3. font: 12px/1 Tahoma,Helvetica,Arial,"\5b8b\4f53",sans-serif;

CONTENT | 主题代码内容

Dec. 12, 2019

body {
   font-family:Arial,"Microsoft YaHei","黑体","宋体",sans-serif;
   background:-moz-linear-gradient(to bottom,#f2f2f2,#ebebeb)
}
.Search-input:before {
   display:inline-block;
   font-size:inherit;
   text-rendering:auto;
   content:"\f002";
   float:left;
   margin-right:-36px;
   width:36px;
   font-size:14px;
   text-align:center;
   position:relative;
   padding:7px 0;
   line-height:1.5;
   pointer-events:none;
   background:rgba(0,0,0,.11);
   color:#fff;
   border-radius:4px 0 0 4px
}
.Search-input input {
   float:left;
   width:225px;
   padding-left:50px;
   padding-right:32px;
   -webkit-transition:all .4s;
   -o-transition:all .4s;
   transition:all .4s;
   box-sizing:inherit!important
}
.Post-body table {
   box-shadow:0 -1px 5px -2px #515151!important
}
@media (min-width:768px) {
   .DiscussionListItem {
   position:relative;
   margin:0;
   padding:0;
   border-radius:5px;
   margin-top:18px;
}
.UserPage .sideNavOffset,.sideNav .Dropdown--select {
   display:block;
   background:#fff;
   padding:15px;
   padding-top:5px;
   padding-bottom:5px;
   box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
   border-radius:6px
}
.DiscussionListItem-count {
   margin-top:5px
}
body {
   background-image:linear-gradient(to bottom,#f2f2f2,#ebebeb);
   background-repeat:no-repeat
}
.IndexPage-results sideNavOffset .Post.CommentPost {
   background-color:#fff!important;
   border-radius:5px;
   margin-top:20px;
   -webkit-box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
   box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important
}
.Scrubber-handle {
   background-color:transparent!important
}
bbs.kuoxo.com {
   author:yannisme
}
.DiscussionHero .TagsLabel .TagLabel.colored {
   margin-right:5px;
   background:#fff!important;
   color:#667c99
}
.DiscussionHero .TagsLabel .TagLabel.colored .TagLabel-text {
   color:inherit!important
}
.Hero {
   box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
   background-color:#fff!important;
   margin-bottom:15px
}
.Hero h2 {
   font-size:2em;
   font-weight:bolder;
   color:#191919;
}
.Hero-subtitle {
   color:#000;
   font-size:15px;
   margin:8px 0 0;
   line-height:1.5em
}
.DiscussionHero .TagsLabel .TagLabel {
   color:#4d698e;
   font-size:18px!important
}
.App-header .Button,.App-header .Button:hover {
   color:#fff
}
.IndexPage-results .DiscussionListItem-content {
   padding-left:80px;
   padding-right:80px;
   padding-top:10px;
   border-radius:5px;
   padding-bottom:10px;
   background-color:#fff!important;
   -webkit-box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
   box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important
}
.UserPage .DiscussionListItem-content {
   padding-left:80px;
   padding-right:80px;
   padding-top:10px;
   padding-bottom:10px;
   background-color:#fff!important;
   border-bottom:1px solid #ebebeb
}
.UserPage .Hero h2 {
   color:#fff
}
.DiscussionPage .CommentPost {
   border-radius:5px;
   margin-top:20px;
   box-shadow:0 4px 30px 0 rgba(0,0,0,.1)!important;
   background:#fff
}
}

[ASUCCESS]Jan. 15, 2020 ? 推荐 [/ASUCCESS]

body {
    font-family:"Arial","Microsoft YaHei","黑体","宋体",sans-serif;
    background:-moz-linear-gradient(to bottom,#f2f2f2,#ebebeb);
}
.Search-input:before {
    display:inline-block;
    font-size:inherit;
    text-rendering:auto;
    content:"\f002";
    float:left;
    margin-right:-36px;
    width:36px;
    font-size:14px;
    text-align:center;
    position:relative;
    padding:7px 0;
    line-height:1.5;
    pointer-events:none;
    background:rgba(0,0,0,0.11);
    color:#fff;
    border-radius:4px 0 0 4px;
}
.Search-input input {
    float:left;
    width:225px;
    padding-left:50px;
    padding-right:32px;
    -webkit-transition:all .4s;
    -o-transition:all .4s;
    transition:all .4s;
    box-sizing:inherit !important;
}
.Post-body table {
    box-shadow:0px -1px 5px -2px #515151!important;
}
@media (max-width:767px) {
    #yqlj {
    display:none;
}}
@media (min-width:768px) {
    body {
    background-image:linear-gradient(to bottom,#f2f2f2,#ebebeb);
    background-repeat:no-repeat;
}
.DiscussionListItem {
    position:relative;
    margin:0;
    padding:0;
    border-radius:5px;
    margin-top:18px;
}
.IndexPage .DiscussionListItem-info>.item-tags {
    margin-right:0;
    position:absolute;
    left:80px;
    top:38px;
    max-width:150px;
    white-space:nowrap;
    overflow:inherit;
    transition:max-width .2s ease-in-out,-webkit-mask-image .2s;
    -webkit-mask-image:none;
    font-size:12px;
}
.IndexPage .DiscussionListItem-controls {
    right:32px;
    top:38px;
}
.IndexPage .DiscussionListItem-title {
    margin-right:155px;
    padding-bottom:30px;
}
.IndexPage .DiscussionListItem-author .Avatar {
    width:48px;
    height:48px;
    position:absolute;
    left:17px;
    border-radius:48px;
    top:20px;
}
.UserPage .DiscussionListItem-content {
    padding-left:80px;
    padding-right:80px;
    padding-top:10px;
    padding-bottom:10px;
    background-color:#fff!important;
    border-bottom:1px solid #ebebeb;
}
.IndexPage-results .DiscussionListItem-content {
    padding-left:80px;
    padding-right:80px;
    padding-top:0;
    border-radius:5px;
    background-color:#fff!important;
    -webkit-box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
    box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
}
.sideNav .Dropdown--select,.UserPage .sideNavOffset {
    display:block;
    background:#fff;
    padding-left:15px;
    padding-right:15px;
    padding-top:5px;
    padding-bottom:5px;
    box-shadow:0 1px 5px 0 rgba(151,158,181,.28)!important;
    border-radius:6px;
}
.Scrubber-handle {
    background-color:transparent!important;
}
bbs.kuoxo.com {
    author:yannisme;
}
.DiscussionHero .TagsLabel .TagLabel.colored {
    margin-right:5px;
    background:#fff!important;
    color:#667c99;
}
.DiscussionHero .TagsLabel .TagLabel.colored .TagLabel-text {
    color:inherit!important;
}
.DiscussionHero .TagsLabel .TagLabel {
    color:#4d698e;
    font-size:18px!important;
}
.Hero {
    box-shadow:0 1px 10px 0 rgba(151,158,181,.28)!important;
    background-color:#fff!important;
    margin-bottom:15px;
}
.Hero h2 {
    font-size:2em;
    font-weight:bolder;
    color:#191919;
}
.Hero-subtitle {
    color:#000;
    font-size:15px;
    margin:8px 0 0;
    line-height:1.5em;
}
.App-header .Button,.App-header .Button:hover {
    color:#ffffff;
}
.UserPage .Hero h2 {
    color:#ffffff;
}
.Post-body {
    font-size:14px;
    line-height:1.7;
    position:relative;
    overflow:auto;
    overflow-wrap:break-word;
    border-radius:5px;
    margin-top:0;
    box-shadow:0 8px 9px 0 rgba(0,0,0,0.1) !important;
    background:#fff;
    padding:20px;
    min-height:80px;
}
.Post-body>*:first-child,.Post-preview>*:first-child {
    margin-top:0 !important;
    margin-bottom:0;
}
.Post-actions {
    margin-top:5px;
}
.Post-footer {
    margin-top:10px;
    margin-bottom:0;
}
.Post-header {
    margin-bottom:10px;
    color:#808080;
}
.PostStream-timeGap {
    padding-top:0;
    padding-bottom:0;
}
.Select-caret {
    margin-left:5px;
}
.Post {
    padding-bottom:10px;
}
.PostStream-timeGap span {
    margin-top:-10px;
    position:absolute;
}
.UserPage .Post-body {
    box-shadow:none!important;
}
.tooltip.right {
    margin-left:-29px;
    margin-top:-18px;
    padding:0;
}}

SCREENSHOTS | 效果截图

Dec. 12, 2019

image.png

Jan. 15, 2020

image.png

{/collapse-item}
{/collapse}

发表回复