Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
79655525
提交
79655525
authored
3月 07, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 样式调整
上级
c1158932
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
54 行增加
和
46 行删除
+54
-46
LayoutContent.vue
frontend/src/components/business/LayoutContent.vue
+1
-1
index.vue
frontend/src/components/business/complex-table/index.vue
+1
-1
index.vue
frontend/src/layout/components/Sidebar/index.vue
+1
-1
main.js
frontend/src/main.js
+2
-2
main.css
frontend/src/metersphere/common/css/main.css
+2
-2
settings.js
frontend/src/store/modules/settings.js
+1
-1
element-variables.scss
frontend/src/styles/element-variables.scss
+0
-31
sidebar.scss
frontend/src/styles/sidebar.scss
+5
-0
topbar.scss
frontend/src/styles/topbar.scss
+8
-4
variables.scss
frontend/src/styles/variables.scss
+32
-2
index.vue
frontend/src/views/login/index.vue
+1
-1
没有找到文件。
frontend/src/components/business/LayoutContent.vue
浏览文件 @
79655525
...
...
@@ -11,7 +11,7 @@ export default {
</
script
>
<
style
lang=
"scss"
>
@import
"~@/styles/
element-
variables"
;
@import
"~@/styles/variables"
;
.content-container
{
transition
:
0
.3s
;
...
...
frontend/src/components/business/complex-table/index.vue
浏览文件 @
79655525
...
...
@@ -64,7 +64,7 @@ export default {
<
style
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/
element-
variables.scss"
;
@import
"~@/styles/variables.scss"
;
.complex-table
{
.complex-table__header
{
@include
flex-row
(
flex-start
,
center
);
...
...
frontend/src/layout/components/Sidebar/index.vue
浏览文件 @
79655525
...
...
@@ -6,7 +6,7 @@
:default-active=
"activeMenu"
:collapse=
"isCollapse"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:unique-opened=
"false"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
...
...
frontend/src/main.js
浏览文件 @
79655525
...
...
@@ -4,8 +4,8 @@ import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import
'@/styles/index.scss'
// global css
import
ElementUI
from
'element-ui'
import
Fit2CloudUI
from
'fit2cloud-ui'
import
'element-ui/lib/theme-chalk/index.css'
import
'./styles/element-
variables.scss'
//
import 'element-ui/lib/theme-chalk/index.css'
// import './styles/
variables.scss'
import
i18n
from
'./lang'
// internationalization
import
App
from
'./App'
...
...
frontend/src/metersphere/common/css/main.css
浏览文件 @
79655525
...
...
@@ -10,11 +10,11 @@
width
:
100%
;
}
body
{
/*
body {
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
font-size: 14px;
margin: 0;
}
}
*/
/* 解决 document.body.clientHeight 为0 */
html
,
body
{
...
...
frontend/src/store/modules/settings.js
浏览文件 @
79655525
import
defaultSettings
from
'@/settings'
import
variables
from
'@/styles/
element-
variables.scss'
import
variables
from
'@/styles/variables.scss'
// const { showSettings, fixedHeader, sidebarLogo } = defaultSettings
const
{
showSettings
,
sidebarLogo
}
=
defaultSettings
const
state
=
{
...
...
frontend/src/styles/element-variables.scss
deleted
100644 → 0
浏览文件 @
c1158932
/**
* I think element-ui's default theme color is too light for long-term use.
* So I modified the default color and you can modify it to your liking.
**/
/* theme color */
$--color-primary
:
#1890ff
;
$--color-success
:
#13ce66
;
$--color-warning
:
#ffba00
;
$--color-danger
:
#ff4949
;
// $--color-info: #1E1E1E;
$--button-font-weight
:
400
;
// $--color-text-regular: #1f2d3d;
$--border-color-light
:
#dfe4ed
;
$--border-color-lighter
:
#e6ebf5
;
$--table-border
:
1px
solid
#dfe6ec
;
/* icon font path, required */
$--font-path
:
"~element-ui/lib/theme-chalk/fonts"
;
@import
"~element-ui/packages/theme-chalk/src/index"
;
@import
"~fit2cloud-ui/src/styles/common/variables"
;
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export
{
theme
:
$--color-primary
;
}
frontend/src/styles/sidebar.scss
浏览文件 @
79655525
...
...
@@ -25,6 +25,7 @@
left
:
0
;
z-index
:
1001
;
overflow
:
hidden
;
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.12
);
// reset element-ui css
.horizontal-collapse-transition
{
...
...
@@ -67,6 +68,10 @@
border
:
none
;
height
:
100%
;
width
:
100%
!
important
;
.is-active
{
background-color
:
$menuHover
;
}
}
// menu hover
...
...
frontend/src/styles/topbar.scss
浏览文件 @
79655525
.top-nav
{
// margin-left: $sideBarWidth;
width
:
100%
;
background-color
:
#304156
;
// background-color: #304156;
background-color
:
$--color-primary
;
position
:
fixed
;
top
:
0
;
left
:
0
;
...
...
@@ -13,18 +14,21 @@
line-height
:
56px
;
font-size
:
24px
;
font-weight
:
bold
;
color
:
rgb
(
191
,
203
,
217
);
// color: rgb(191, 203, 217);
color
:
rgba
(
255
,
255
,
255
,
0
.87
);
float
:
left
;
}
.el-menu
{
float
:
left
;
border
:
none
!
important
;
background-color
:
#304156
;
// background-color: #304156;
background-color
:
$--color-primary
;
.nav-item
{
display
:
inline-block
;
.el-menu-item
{
color
:
rgb
(
191
,
203
,
217
);
// color: rgb(191, 203, 217);
color
:
rgba
(
255
,
255
,
255
,
0
.87
);
&
:hover
{
background-color
:
$subMenuHover
!
important
;
}
...
...
frontend/src/styles/variables.scss
浏览文件 @
79655525
/**
* I think element-ui's default theme color is too light for long-term use.
* So I modified the default color and you can modify it to your liking.
**/
/* theme color */
$--color-primary
:
#1890ff
;
$--color-success
:
#13ce66
;
$--color-warning
:
#ffba00
;
$--color-danger
:
#ff4949
;
// $--color-info: #1E1E1E;
$--button-font-weight
:
400
;
// $--color-text-regular: #1f2d3d;
$--border-color-light
:
#dfe4ed
;
$--border-color-lighter
:
#e6ebf5
;
$--table-border
:
1px
solid
#dfe6ec
;
/* icon font path, required */
$--font-path
:
"~element-ui/lib/theme-chalk/fonts"
;
@import
"~element-ui/packages/theme-chalk/src/index"
;
@import
"~fit2cloud-ui/src/styles/common/variables"
;
// sidebar
$menuText
:
#bfcbd9
;
$menuActiveText
:
#409EFF
;
$subMenuActiveText
:
#f4f4f5
;
//https://github.com/ElemeFE/element/issues/12951
$menuBg
:
#304156
;
$menuHover
:
#263445
;
// $menuBg:#304156;
$menuBg
:
#ffffff
;
// $menuHover:#263445;
$menuHover
:
rgba
(
158
,
158
,
158
,
0
.2
);
$subMenuBg
:
#1f2d3d
;
$subMenuHover
:
#001528
;
...
...
@@ -16,6 +45,7 @@ $contentHeight: calc(100vh - 56px);
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export
{
theme
:
$--color-primary
;
menuText
:
$menuText
;
menuActiveText
:
$menuActiveText
;
subMenuActiveText
:
$subMenuActiveText
;
...
...
frontend/src/views/login/index.vue
浏览文件 @
79655525
...
...
@@ -113,7 +113,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../styles/
element-
variables"
;
@import
"../../styles/variables"
;
@mixin
login-center
{
display
:
flex
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论