feat: add global night mode; 🌟

新增:全局夜晚模式;
This commit is contained in:
iczer
2020-07-06 21:52:36 +08:00
parent 98e02874ed
commit 4063a4f08a
39 changed files with 480 additions and 328 deletions

View File

@@ -107,7 +107,7 @@ export default {
<style lang="less" scoped>
.num-info{
.title{
color: rgba(0,0,0,.45);
color: @text-color-second;
font-size: 14px;
height: 22px;
line-height: 22px;
@@ -118,7 +118,7 @@ export default {
}
.value{
.total{
color: rgba(0,0,0,.85);
color: @title-color;
display: inline-block;
line-height: 32px;
height: 32px;
@@ -126,7 +126,7 @@ export default {
margin-right: 32px;
}
.subtotal{
color: rgba(0,0,0,.45);
color: @text-color-second;
font-size: 16px;
vertical-align: top;
margin-right: 0;

View File

@@ -9,7 +9,7 @@
<head-info class="split-right" :title="$t('ranking')" content="8/24"/>
<head-info class="split-right" :title="$t('visit')" content="2,223"/>
</template>
<div>
<template>
<a-row style="margin: 0 -12px">
<a-col style="padding: 0 12px" :xl="16" :lg="24" :md="24" :sm="24" :xs="24">
<a-card class="project-list" :loading="loading" style="margin-bottom: 24px;" :bordered="false" :title="$t('progress')" :body-style="{padding: 0}">
@@ -20,11 +20,11 @@
<a-card-meta :description="item.desc">
<div slot="title" class="card-title">
<a-avatar size="small" :src="item.logo" />
<a>Alipay</a>
<span>Alipay</span>
</div>
</a-card-meta>
<div class="project-item">
<a href="/#/">科学搬砖组</a>
<a class="group" href="/#/">科学搬砖组</a>
<span class="datetime">9小时前</span>
</div>
</a-card>
@@ -74,7 +74,7 @@
</a-card>
</a-col>
</a-row>
</div>
</template>
</page-layout>
</template>
@@ -146,82 +146,5 @@ export default {
</script>
<style lang="less">
.project-list {
.card-title {
font-size: 0;
a {
color: rgba(0, 0, 0, 0.85);
margin-left: 12px;
line-height: 24px;
height: 24px;
display: inline-block;
vertical-align: top;
font-size: 14px;
&:hover {
color: @primary-color;
}
}
}
.project-item {
display: flex;
margin-top: 8px;
overflow: hidden;
font-size: 12px;
height: 20px;
line-height: 20px;
a {
color: rgba(0, 0, 0, 0.45);
display: inline-block;
flex: 1 1 0;
&:hover {
color: @primary-color;
}
}
.datetime {
color: rgba(0, 0, 0, 0.25);
flex: 0 0 auto;
float: right;
}
}
.ant-card-meta-description {
color: rgba(0, 0, 0, 0.45);
height: 44px;
line-height: 22px;
overflow: hidden;
}
}
.item-group{
padding: 20px 0 8px 24px;
font-size: 0;
a{
color: rgba(0, 0, 0, 0.65);
display: inline-block;
font-size: 14px;
margin-bottom: 13px;
width: 25%;
}
}
.members {
a {
display: block;
margin: 12px 0;
line-height: 24px;
height: 24px;
.member {
font-size: 14px;
color: rgba(0,0,0,.65);
line-height: 24px;
max-width: 100px;
vertical-align: top;
margin-left: 12px;
transition: all 0.3s;
display: inline-block;
}
&:hover {
span {
color: @primary-color;
}
}
}
}
@import "index";
</style>

View File

@@ -0,0 +1,59 @@
.project-list {
.card-title {
span{
vertical-align: middle;
&:last-child{
margin-left: 12px;
}
}
}
.project-item {
display: flex;
justify-content: space-between;
margin-top: 8px;
overflow: hidden;
font-size: 12px;
color: inherit;
.group{
color: @text-color;
flex: 1 1 0;
&:hover {
color: @primary-color;
}
}
.datetime {
color: @text-color-second;
flex: 0 0 auto;
}
}
.ant-card-meta-description {
height: 44px;
line-height: 22px;
overflow: hidden;
}
}
.item-group{
padding: 20px 0 8px 24px;
font-size: 0;
a{
color: inherit;
display: inline-block;
font-size: 14px;
margin-bottom: 13px;
width: 25%;
}
}
.members {
a {
display: block;
margin: 12px 0;
color: @text-color;
&:hover {
color: @primary-color;
}
.member {
vertical-align: middle;
margin-left: 12px;
}
}
}

View File

@@ -199,7 +199,7 @@ export default {
<style lang="less" scoped>
.title {
color: rgba(0,0,0,.85);
color: @title-color;
font-size: 16px;
font-weight: 500;
margin-bottom: 16px;

View File

@@ -19,7 +19,7 @@
import RepositoryForm from './RepositoryForm'
import TaskForm from './TaskForm'
import UserForm from './UserForm'
import FooterToolBar from '../../../components/tool/FooterToolBar'
import FooterToolBar from '@/components/tool/FooterToolBar'
export default {
name: 'AdvancedForm',

View File

@@ -63,7 +63,6 @@ export default {
border-radius: 48px;
}
.new-btn{
background-color: #fff;
border-radius: 2px;
width: 100%;
height: 187px;

View File

@@ -70,7 +70,7 @@ export default {
<style lang="less" scoped>
.list-content-item{
color: rgba(0,0,0,.45);
color: @text-color-second;
display: inline-block;
vertical-align: middle;
font-size: 14px;

View File

@@ -2,7 +2,7 @@
<div>
<div class="search-head">
<div class="search-input">
<a-input-search style="width: 522px" placeholder="请输入..." size="large" enterButton="搜索" />
<a-input-search class="search-ipt" style="width: 522px" placeholder="请输入..." size="large" enterButton="搜索" />
</div>
<div style="padding: 0 24px">
<a-tabs :tabBarStyle="{margin: 0}" @change="navigate" :activeKey="activeKey">
@@ -57,7 +57,7 @@ export default {
<style lang="less" scoped>
.search-head{
background-color: #fff;
background-color: @base-bg-color;
margin: -25px -24px -24px;
.search-input{
text-align: center;

View File

@@ -130,7 +130,7 @@ export default {
}
.title {
font-size: 33px;
color: rgba(0,0,0,.85);
color: @title-color;
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
font-weight: 600;
position: relative;
@@ -139,7 +139,7 @@ export default {
}
.desc {
font-size: 14px;
color: rgba(0,0,0,.45);
color: @text-color-second;
margin-top: 12px;
margin-bottom: 40px;
}
@@ -157,7 +157,7 @@ export default {
}
.icon {
font-size: 24px;
color: rgba(0, 0, 0, 0.2);
color: @text-color-second;
margin-left: 16px;
vertical-align: middle;
cursor: pointer;

View File

@@ -5,7 +5,7 @@
<a-button type="primary" >返回修改</a-button>
</template>
<div>
<div style="fontSize: 16px; color: rgba(0, 0, 0, 0.85); fontWeight: 500; marginBottom: 16px">
<div style="fontSize: 16px; fontWeight: 500; marginBottom: 16px">
您提交的内容有如下错误
</div>
<div style="margin-bottom: 16px">