From 5f49932fef1f40d75750a0a11a1dd2cd0eda29c4 Mon Sep 17 00:00:00 2001 From: xjh22222228 Date: Sat, 19 Dec 2020 17:29:43 +0800 Subject: [PATCH] fix: light --- README.md | 11 +++-- src/view/index/light/index.component.html | 2 +- src/view/index/light/index.component.scss | 60 +---------------------- src/view/index/light/index.component.ts | 2 +- 4 files changed, 10 insertions(+), 65 deletions(-) diff --git a/README.md b/README.md index 1f086f5..71daf79 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Thank you for your [contribution](https://github.com/xjh22222228/nav/issues), me -## 构建设置 +## 开发构建 ``` bash # 下载 git clone --depth=1 https://github.com/xjh22222228/nav.git @@ -100,7 +100,7 @@ npm run build ``` -## 如何部署? +## 部署 推荐使用 `github pages` 服务, 这样就不需要提供服务器, 并且项目里自带了自动化部署服务,像数 `321` 一样简单。 1、Fork 当前项目。 @@ -132,6 +132,10 @@ server { ``` +## 配置 +所有可配置位于文件 `config/index.ts`。 + + ## 更新数据 只需要关注根目录 `data` 文件夹, 如果你使用了上面教程提供的自动化部署服务,那么当更新数据后大概5分钟即可看到。 @@ -158,9 +162,6 @@ server { -## 配置 -所有可配置位于文件 `config/index.ts`。 - ## 图标 图标是支持继承的,每一级的 `icon` 字段都是可选,如果当前没有就会继承上一级Icon, diff --git a/src/view/index/light/index.component.html b/src/view/index/light/index.component.html index 795ac32..ba30c61 100644 --- a/src/view/index/light/index.component.html +++ b/src/view/index/light/index.component.html @@ -80,7 +80,7 @@
- + diff --git a/src/view/index/light/index.component.scss b/src/view/index/light/index.component.scss index 4c8770b..8969050 100644 --- a/src/view/index/light/index.component.scss +++ b/src/view/index/light/index.component.scss @@ -140,62 +140,6 @@ font-size: 12px; } - .mark { - z-index: 28; - position: absolute; - bottom: -50px; - left: 0; - width: 100%; - padding: 10px 0 5px 0px; - background: #fbfbfb; - cursor: auto; - display: flex; - justify-content: center; - align-content: center; - transition: .1s linear; - - .button-box { - width: 100%; - text-align: center; - } - - a { - display: inline-block; - position: relative; - width: 50px; - font-size: 12px; - padding: 3px 0; - border: none; - background: #2db7f5; - color: #fff; - border-radius: 3px; - overflow: hidden; - - &:not(:nth-last-child(1)) { - margin-right: 10px; - } - - &:after { - content: ""; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: #000; - opacity: 0; - } - - &:active:after { - opacity: .2; - } - } - - .zh { - background: #26a2ff; - } - } - .title-wrapper { border-bottom: 1px solid #ccc; padding: 10px 30px 10px 15px; @@ -240,8 +184,8 @@ &:hover { - .mark { - bottom: 0; + ::ng-deep .mark { + bottom: 0 !important; } } } diff --git a/src/view/index/light/index.component.ts b/src/view/index/light/index.component.ts index d88df4a..932d392 100644 --- a/src/view/index/light/index.component.ts +++ b/src/view/index/light/index.component.ts @@ -32,7 +32,7 @@ export default class HomeComponent { showInput = false GIT_REPO_URL: string = GIT_REPO_URL - ngOnInit () { + ngOnInit() { randomBgImg() const initList = () => { -- GitLab