Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
2fa560d6
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 搜索 >>
提交
2fa560d6
编写于
8月 26, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Align header with content container
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
0276e903
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
67 addition
and
81 deletion
+67
-81
CHANGELOG
CHANGELOG
+1
-0
app/assets/stylesheets/generic/header.scss
app/assets/stylesheets/generic/header.scss
+6
-60
app/assets/stylesheets/generic/sidebar.scss
app/assets/stylesheets/generic/sidebar.scss
+43
-0
app/assets/stylesheets/themes/gitlab-theme.scss
app/assets/stylesheets/themes/gitlab-theme.scss
+11
-15
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+5
-0
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+1
-6
未找到文件。
CHANGELOG
浏览文件 @
2fa560d6
...
...
@@ -17,6 +17,7 @@ v 8.0.0 (unreleased)
- Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries (Stan Hu)
- Improve abuse reports management from admin area
- Move dashboard activity to separate page
- Limit content width to 1200px for most of pages to improve readability on big screens
v 7.14.1 (unreleased)
- Only include base URL in OmniAuth full_host parameter (Stan Hu)
...
...
app/assets/stylesheets/generic/header.scss
浏览文件 @
2fa560d6
...
...
@@ -20,16 +20,16 @@ header {
}
&
.navbar-gitlab
{
padding
:
0
20px
;
z-index
:
100
;
margin-bottom
:
0
;
min-height
:
$header-height
;
border
:
none
;
width
:
100%
;
border-bottom
:
1px
solid
#EEE
;
.container
{
.container
-fluid
{
background
:
#FFF
;
width
:
100%
!
important
;
padding
:
0
;
filter
:
none
;
.nav
>
li
>
a
{
...
...
@@ -64,55 +64,11 @@ header {
}
}
.header-logo
{
border-bottom
:
1px
solid
transparent
;
float
:
left
;
height
:
$header-height
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
a
{
float
:
left
;
height
:
$header-height
;
width
:
100%
;
padding
:
(
$header-height
-
36
)
/
2
8px
;
overflow
:
hidden
;
img
{
width
:
36px
;
height
:
36px
;
float
:
left
;
}
.gitlab-text-container
{
width
:
230px
;
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
14px
;
font-size
:
18px
;
line-height
:
$header-height
-
14
;
font-weight
:
normal
;
}
}
}
&
:hover
{
background-color
:
#EEE
;
}
}
.header-content
{
border-bottom
:
1px
solid
#EEE
;
padding-right
:
35px
;
height
:
$header-height
;
.title
{
margin
:
0
;
padding
:
0
15px
0
35px
;
overflow
:
hidden
;
font-size
:
18px
;
line-height
:
$header-height
;
...
...
@@ -168,15 +124,7 @@ header {
}
@mixin
collapsed-header
{
.header-logo
{
width
:
$sidebar_collapsed_width
;
}
.header-content
{
.title
{
margin-left
:
30px
;
}
}
margin-left
:
$sidebar_collapsed_width
;
}
@media
(
max-width
:
$screen-md-max
)
{
...
...
@@ -191,16 +139,14 @@ header {
}
.header-expanded
{
margin-left
:
$sidebar_width
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
header
.container
{
header
.container
-fluid
{
font-size
:
18px
;
.title
{
}
.navbar-nav
{
margin
:
0px
;
float
:
none
!
important
;
...
...
app/assets/stylesheets/generic/sidebar.scss
浏览文件 @
2fa560d6
...
...
@@ -188,3 +188,46 @@
width
:
$sidebar_width
-
2
*
10px
;
}
}
.sidebar-wrapper
{
.header-logo
{
border-bottom
:
1px
solid
transparent
;
float
:
left
;
height
:
$header-height
;
width
:
$sidebar_width
;
overflow
:
hidden
;
transition-duration
:
.3s
;
a
{
float
:
left
;
height
:
$header-height
;
width
:
100%
;
padding
:
(
$header-height
-
36
)
/
2
8px
;
overflow
:
hidden
;
img
{
width
:
36px
;
height
:
36px
;
float
:
left
;
}
.gitlab-text-container
{
width
:
230px
;
h3
{
width
:
158px
;
float
:
left
;
margin
:
0
;
margin-left
:
14px
;
font-size
:
18px
;
line-height
:
$header-height
-
14
;
font-weight
:
normal
;
}
}
}
&
:hover
{
background-color
:
#EEE
;
}
}
}
app/assets/stylesheets/themes/gitlab-theme.scss
浏览文件 @
2fa560d6
...
...
@@ -7,27 +7,23 @@
* $color-dark -
*/
@mixin
gitlab-theme
(
$color-light
,
$color
,
$color-darker
,
$color-dark
)
{
header
{
&
.navbar-gitlab
{
.header-logo
{
background-color
:
$color-darker
;
border-color
:
$color-darker
;
.page-with-sidebar
{
.header-logo
{
background-color
:
$color-darker
;
border-color
:
$color-darker
;
a
{
color
:
$color-light
;
}
a
{
color
:
$color-light
;
}
&
:hover
{
background-color
:
$color-dark
;
a
{
color
:
#FFF
;
}
&
:hover
{
background-color
:
$color-dark
;
a
{
color
:
#FFF
;
}
}
}
}
.page-with-sidebar
{
.collapse-nav
a
{
color
:
#FFF
;
background
:
$color
;
...
...
app/views/layouts/_page.html.haml
浏览文件 @
2fa560d6
.page-with-sidebar
{
class:
nav_sidebar_class
}
=
render
"layouts/broadcast"
.sidebar-wrapper.nicescroll
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
brand_header_logo
.gitlab-text-container
%h3
GitLab
-
if
defined?
(
sidebar
)
&&
sidebar
=
render
"layouts/nav/
#{
sidebar
}
"
-
elsif
current_user
...
...
app/views/layouts/header/_default.html.haml
浏览文件 @
2fa560d6
%header
.navbar.navbar-fixed-top.navbar-gitlab
{
class:
nav_header_class
}
.container
.header-logo
=
link_to
root_path
,
class:
'home'
,
title:
'Dashboard'
,
id:
'js-shortcuts-home'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
brand_header_logo
.gitlab-text-container
%h3
GitLab
%div
{
class:
fluid_layout
?
"container-fluid"
:
"container-fluid container-limited"
}
.header-content
%button
.navbar-toggle
{
type:
'button'
}
%span
.sr-only
Toggle navigation
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录