Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MiracuLousXY
开源百科
提交
abc5081d
开
开源百科
项目概览
MiracuLousXY
/
开源百科
与 Fork 源项目一致
Fork自
gitcode_dev / 开源百科
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
开
开源百科
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
abc5081d
编写于
11月 29, 2021
作者:
李少辉-开发者
🎧
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
upgrade dark css
Signed-off-by:
lish
<
lish@csdn.net
>
上级
2d8ce65a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
5 deletion
+11
-5
src/components/fixbar/index.component.ts
src/components/fixbar/index.component.ts
+1
-3
src/dark.scss
src/dark.scss
+7
-1
src/view/index/sim/index.component.html
src/view/index/sim/index.component.html
+1
-1
src/view/index/sim/index.component.ts
src/view/index/sim/index.component.ts
+2
-0
未找到文件。
src/components/fixbar/index.component.ts
浏览文件 @
abc5081d
...
...
@@ -70,7 +70,6 @@ export class FixbarComponent {
if
(
this
.
isDark
)
{
document
.
documentElement
.
classList
.
add
(
'
dark-container
'
)
}
const
url
=
this
.
router
.
url
.
split
(
'
?
'
)[
0
]
this
.
themeList
=
this
.
themeList
.
filter
(
t
=>
{
return
t
.
url
!==
url
...
...
@@ -133,8 +132,7 @@ export class FixbarComponent {
mitt
.
emit
(
'
dark
'
,
this
.
isDark
)
window
.
localStorage
.
setItem
(
STORAGE_KEY_MAP
.
isDark
,
String
(
Number
(
this
.
isDark
)))
document
.
documentElement
.
classList
.
toggle
(
'
dark-container
'
)
if
(
this
.
isDark
)
{
if
(
this
.
isDark
)
{
this
.
removeBackground
()
}
else
{
const
{
data
}
=
this
.
activatedRoute
.
snapshot
...
...
src/dark.scss
浏览文件 @
abc5081d
...
...
@@ -3,6 +3,12 @@
// <html>
.dark-container
{
.ant-card-bordered.ant-card
{
background
:
#0d1117
;
}
.wallpaper
{
background-color
:
rgba
(
25
,
29
,
34
,
1
)
!
important
;
}
.dark
{
&
-primary
{
color
:
#58a6ff
!
important
;
...
...
@@ -35,7 +41,7 @@
}
&
-text
{
color
:
#
6e7681
!
important
;
color
:
#
cccccc
!
important
;
}
&
-text-active
{
...
...
src/view/index/sim/index.component.html
浏览文件 @
abc5081d
<div
class=
"sim"
>
<div
*ngIf=
"posterImageUrls"
class=
"wallpaper"
[ngStyle]=
"{ 'background':'url(' + posterImageUrls + '),rgba(0, 129, 255, 0.9)'
}"
>
<div
*ngIf=
"posterImageUrls"
id=
"search-banner"
class=
"wallpaper"
[ngStyle]=
"{ 'background': background, 'background-color': bgColor
}"
>
<h1
class=
"title dark-title"
>
{{ title }}
</h1>
<h2
class=
"description dark-text-active"
[innerHTML]=
"description"
></h2>
<app-search-engine></app-search-engine>
...
...
src/view/index/sim/index.component.ts
浏览文件 @
abc5081d
...
...
@@ -35,6 +35,8 @@ export default class SimComponent {
gitRepoUrl
:
string
=
gitRepoUrl
title
:
string
=
title
posterImageUrls
?:
string
=
simThemeConfig
.
posterImageUrls
[
0
]
bgColor
:
string
=
'
rgba(0, 129, 255, 0.9)
'
background
:
string
=
`url('
${
this
.
posterImageUrls
}
')`
description
:
string
=
simThemeConfig
.
description
.
replace
(
'
${total}
'
,
String
(
totalWeb
()))
isLogin
=
isLogin
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录