Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
d5b0e901
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d5b0e901
编写于
8月 31, 2017
作者:
A
Annabel Dunstone Gray
提交者:
Ruben Davila
9月 06, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Start CSS for dark theme
上级
3c815f97
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
31 addition
and
107 deletion
+31
-107
app/assets/stylesheets/framework/gitlab-theme.scss
app/assets/stylesheets/framework/gitlab-theme.scss
+31
-99
app/assets/stylesheets/new_nav.scss
app/assets/stylesheets/new_nav.scss
+0
-1
app/assets/stylesheets/new_sidebar.scss
app/assets/stylesheets/new_sidebar.scss
+0
-7
未找到文件。
app/assets/stylesheets/framework/gitlab-theme.scss
浏览文件 @
d5b0e901
/**
* Styles the GitLab application with a specific color theme
*
* $color-light -
* $color -
* $color-darker -
* $color-dark -
*/
@mixin
gitlab-theme
(
$color-light
,
$color
,
$color-darker
,
$color-dark
)
{
@mixin
gitlab-theme
(
$color-200
,
$color-500
,
$color-700
,
$color-800
,
$color-900
)
{
header
.navbar-gitlab-new
{
background
:
linear-gradient
(
to
right
,
$color-darker
,
$color
);
}
.page-with-sidebar
{
.toggle-nav-collapse
,
.pin-nav-btn
{
color
:
$color-light
;
&
:hover
{
color
:
$white-light
;
}
}
.sidebar-wrapper
{
background
:
$color-darker
;
}
.sidebar-action-buttons
{
color
:
$color-light
;
background-color
:
lighten
(
$color-darker
,
5%
);
}
.nav-sidebar
{
li
{
a
{
color
:
$color-light
;
&
:hover
,
&
:focus
,
&
:active
{
background
:
$color-dark
;
background
:
linear-gradient
(
to
right
,
$color-900
,
$color-800
);
}
i
{
color
:
$color-light
;
.navbar-sub-nav
{
color
:
$color-200
;
}
path
,
polygon
{
fill
:
$color-light
;
}
.nav-sidebar
li
.active
{
box-shadow
:
inset
4px
0
0
$color-700
;
.count
{
color
:
$color-light
;
background
:
$color-dark
;
>
a
{
color
:
$color-900
;
}
svg
{
position
:
relative
;
top
:
3px
;
}
}
&
.separate-item
{
border-top
:
1px
solid
$color
;
}
&
.active
a
{
color
:
$white-light
;
background
:
$color-dark
;
&
.no-highlight
{
border
:
none
;
}
i
{
color
:
$white-light
;
}
path
,
polygon
{
fill
:
$white-light
;
}
fill
:
$color-900
;
}
}
.about-gitlab
{
color
:
$color-light
;
}
}
}
}
$theme-black-light
:
#979797
;
$theme-black
:
#373737
;
$theme-black-dark
:
#272727
;
$theme-black-darker
:
#222
;
$theme-indigo-light
:
#98c
;
$theme-indigo
:
#548
;
$theme-indigo-dark
:
#436
;
$theme-indigo-darker
:
#325
;
$dark-50
:
#fafafa
;
$dark-100
:
#f2f2f2
;
$dark-200
:
#dfdfdf
;
$dark-300
:
#cccccc
;
$dark-400
:
#bababa
;
$dark-500
:
#a7a7a7
;
$dark-600
:
#949494
;
$dark-700
:
#707070
;
$dark-800
:
#4f4f4f
;
$dark-900
:
#2e2e2e
;
$dark-950
:
#1f1f1f
;
$indigo-200
:
#d1d1f0
;
$indigo-500
:
#6666c4
;
$indigo-700
:
#4b4ba3
;
$indigo-800
:
#393982
;
$indigo-900
:
#292961
;
body
{
&
.ui_indigo
{
@include
gitlab-theme
(
$
theme-indigo-light
,
$theme-indigo
,
$theme-indigo-dark
,
$theme-indigo-darker
);
@include
gitlab-theme
(
$
indigo-200
,
$indigo-500
,
$indigo-700
,
$indigo-800
,
$indigo-900
);
}
&
.ui_dark
{
@include
gitlab-theme
(
$
theme-black-light
,
$theme-black
,
$theme-black-dark
,
$theme-black-darker
);
@include
gitlab-theme
(
$
dark-200
,
$dark-500
,
$dark-700
,
$dark-800
,
$dark-900
);
}
}
app/assets/stylesheets/new_nav.scss
浏览文件 @
d5b0e901
...
...
@@ -256,7 +256,6 @@ header.navbar-gitlab-new {
display
:
-
webkit-flex
;
display
:
flex
;
margin
:
0
0
0
6px
;
color
:
$indigo-200
;
.dropdown-chevron
{
position
:
relative
;
...
...
app/assets/stylesheets/new_sidebar.scss
浏览文件 @
d5b0e901
...
...
@@ -154,16 +154,9 @@ $new-sidebar-collapsed-width: 50px;
}
li
.active
{
box-shadow
:
inset
4px
0
0
$active-border
;
>
a
{
color
:
$active-color
;
font-weight
:
$gl-font-weight-bold
;
}
svg
{
fill
:
$active-color
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录