Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
d3059c7d
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
d3059c7d
编写于
4月 21, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New colorful design of sidebar
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
76aade28
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
93 addition
and
83 deletion
+93
-83
app/assets/stylesheets/base/mixins.scss
app/assets/stylesheets/base/mixins.scss
+0
-7
app/assets/stylesheets/generic/nav_sidebar.scss
app/assets/stylesheets/generic/nav_sidebar.scss
+0
-24
app/assets/stylesheets/pages/header.scss
app/assets/stylesheets/pages/header.scss
+22
-6
app/assets/stylesheets/themes/dark-theme.scss
app/assets/stylesheets/themes/dark-theme.scss
+70
-29
app/assets/stylesheets/themes/ui_basic.scss
app/assets/stylesheets/themes/ui_basic.scss
+0
-17
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+1
-0
未找到文件。
app/assets/stylesheets/base/mixins.scss
浏览文件 @
d3059c7d
...
...
@@ -50,13 +50,6 @@
@include
box-shadow
(
0
0
0
3px
#f1f1f1
);
}
@mixin
header-font
{
color
:
$style_color
;
font-size
:
16px
;
line-height
:
44px
;
font-weight
:
normal
;
}
@mixin
md-typography
{
font-size
:
15px
;
line-height
:
1
.5
;
...
...
app/assets/stylesheets/generic/nav_sidebar.scss
浏览文件 @
d3059c7d
...
...
@@ -6,7 +6,6 @@
top
:
0
;
left
:
0
;
height
:
100%
;
border-right
:
1px
solid
$border-color
;
}
}
...
...
@@ -38,28 +37,10 @@
}
.nav-sidebar
li
{
&
.active
a
{
color
:
$text-color
;
background
:
#FFF
!
important
;
font-weight
:
bold
;
border
:
1px
solid
#EEE
;
border-right
:
1px
solid
transparent
;
border-left
:
3px
solid
$style_color
;
&
.no-highlight
{
background
:
none
!
important
;
border
:
none
;
}
i
{
color
:
$text-color
;
}
}
}
.nav-sidebar
li
{
&
.separate-item
{
border-top
:
1px
solid
$border-color
;
padding-top
:
10px
;
margin-top
:
10px
;
}
...
...
@@ -75,8 +56,6 @@
&
:hover
{
text-decoration
:
none
;
color
:
$text-color
;
background
:
$border-color
;
}
&
:active
,
&
:focus
{
...
...
@@ -158,9 +137,6 @@
left
:
198px
;
font-size
:
13px
;
background
:
transparent
;
color
:
black
;
border-left
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
}
.collapse-nav
a
:hover
{
...
...
app/assets/stylesheets/pages/header.scss
浏览文件 @
d3059c7d
...
...
@@ -11,9 +11,23 @@ header {
width
:
100%
;
.navbar-inner
{
background
:
#FFF
;
border-bottom
:
1px
solid
#DDD
;
filter
:
none
;
.title
{
color
:
#555
;
a
{
color
:
#555
;
&
:hover
{
text-decoration
:
underline
;
}
}
}
.nav
>
li
>
a
{
color
:
#666
;
font-size
:
14px
;
line-height
:
32px
;
padding
:
6px
10px
;
...
...
@@ -100,10 +114,8 @@ header {
a
{
float
:
left
;
padding
:
5px
0
;
height
:
46px
;
width
:
52px
;
text-align
:
center
;
width
:
100%
;
img
{
width
:
36px
;
...
...
@@ -124,8 +136,11 @@ header {
position
:
relative
;
float
:
left
;
margin
:
0
;
margin-left
:
5px
;
@include
header-font
;
margin-left
:
25px
;
font-size
:
18px
;
line-height
:
44px
;
font-weight
:
normal
;
@include
str-truncated
(
37%
);
}
...
...
@@ -164,9 +179,10 @@ header {
padding-left
:
25px
;
font-size
:
13px
;
@include
border-radius
(
3px
);
border
:
1px
solid
#
c6c6c6
;
border
:
1px
solid
#
DDD
;
box-shadow
:
none
;
@include
transition
(
all
0
.15s
ease-in
0s
);
background-color
:
#f5f5f5
;
}
}
}
...
...
app/assets/stylesheets/themes/dark-theme.scss
浏览文件 @
d3059c7d
...
...
@@ -2,60 +2,101 @@
header
{
&
.navbar-gitlab
{
.navbar-inner
{
background
:
$color
;
.navbar-toggle
{
color
:
#FFF
;
}
.app_logo
,
.navbar-toggle
{
a
{
color
:
$color-light
;
}
background-color
:
$color-darker
;
&
:hover
{
background-color
:
$color-darker
;
background-color
:
$color-dark
;
a
{
color
:
#FFF
;
}
}
}
.app_logo
{
background-color
:
$color-dark
;
}
.title
{
color
:
#FFF
;
@media
(
max-width
:
$screen-md-max
)
{
width
:
52px
;
h3
{
display
:
none
;
}
}
border-bottom
:
1px
solid
transparent
;
margin-bottom
:
-1px
;
a
{
color
:
#FFF
;
&
:hover
{
text-decoration
:
underline
;
padding
:
5px
8px
;
img
{
float
:
left
;
}
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
20px
;
font-size
:
18px
;
line-height
:
34px
;
font-weight
:
normal
;
}
}
}
}
}
}
.search
{
.search-input
{
background-color
:
$color-light
;
background-color
:
rgba
(
255
,
255
,
255
,
0
.5
);
border
:
1px
solid
$color-light
;
.page-with-sidebar
{
background
:
$color-darker
;
&
:focus
{
background-color
:
white
;
}
}
.collapse-nav
a
{
color
:
#FFF
;
background
:
$color
;
}
.sidebar-wrapper
{
background
:
$color-darker
;
border-right
:
1px
solid
$color-darker
;
}
.nav-sidebar
li
{
a
{
color
:
$color-light
;
&
:hover
,
&
:focus
,
&
:active
{
background
:
$color-dark
;
}
.
search-input
:
:-
webkit-input-placeholder
{
color
:
#666
;
i
{
color
:
$color-light
;
}
.
nav
>
li
>
a
{
.
count
{
color
:
$color-light
;
background
:
$color-dark
;
}
}
&
:hover
,
&
:focus
,
&
:active
{
background
:
none
;
color
:
#FFF
;
}
&
.separate-item
{
border-top
:
1px
solid
$color
;
}
&
.active
a
{
color
:
#FFF
;
font-weight
:
bold
;
&
.no-highlight
{
border
:
none
;
}
.search-input
{
border-color
:
$color-light
;
i
{
color
:
#FFF
}
}
}
...
...
app/assets/stylesheets/themes/ui_basic.scss
浏览文件 @
d3059c7d
...
...
@@ -7,23 +7,6 @@
header
{
&
.navbar-gitlab
{
.navbar-inner
{
background
:
#F1F1F1
;
border-bottom
:
1px
solid
#DDD
;
.title
{
color
:
#555
;
a
{
color
:
#555
;
&
:hover
{
text-decoration
:
underline
;
}
}
}
.nav
>
li
>
a
{
color
:
$style_color
;
}
}
}
}
...
...
app/views/layouts/_head_panel.html.haml
浏览文件 @
d3059c7d
...
...
@@ -4,6 +4,7 @@
%div
.app_logo
=
link_to
root_path
,
class:
"home has_bottom_tooltip"
,
title:
"Dashboard"
do
=
brand_header_logo
%h3
GitLab
%h1
.title
=
title
%button
.navbar-toggle
{
"data-target"
=>
".navbar-collapse"
,
"data-toggle"
=>
"collapse"
,
type:
"button"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录