Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ee03b94e
Commit
ee03b94e
authored
Mar 26, 2018
by
André Luís
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add styles for system header and system footer
parent
5d5be457
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
0 deletions
+81
-0
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+2
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+6
-0
ee/app/assets/stylesheets/framework/system_messages.scss
ee/app/assets/stylesheets/framework/system_messages.scss
+73
-0
No files found.
app/assets/stylesheets/framework/variables.scss
View file @
ee03b94e
...
...
@@ -261,6 +261,8 @@ $general-hover-transition-duration: 100ms;
$general-hover-transition-curve
:
linear
;
$highlight-changes-color
:
rgb
(
235
,
255
,
232
);
$performance-bar-height
:
35px
;
$system-header-height
:
35px
;
$system-footer-height
:
$system-header-height
;
$flash-height
:
52px
;
$context-header-height
:
60px
;
$breadcrumb-min-height
:
48px
;
...
...
app/helpers/application_helper.rb
View file @
ee03b94e
...
...
@@ -283,10 +283,16 @@ module ApplicationHelper
end
end
def
appearance
@appearance
||=
Appearance
.
current
end
def
page_class
class_names
=
[]
class_names
<<
'issue-boards-page'
if
current_controller?
(
:boards
)
class_names
<<
'with-performance-bar'
if
performance_bar_enabled?
class_names
<<
'with-system-header'
if
appearance
.
show_header?
class_names
<<
'with-system-footer'
if
appearance
.
show_footer?
class_names
end
...
...
ee/app/assets/stylesheets/framework/system_messages.scss
0 → 100644
View file @
ee03b94e
.header-message
,
.footer-message
{
padding
:
0
15px
;
border
:
1px
solid
transparent
;
border-radius
:
0
;
position
:
fixed
;
left
:
0
;
width
:
100%
;
text-align
:
center
;
margin
:
0
;
z-index
:
1000
;
p
{
@include
str-truncated
(
100%
);
margin-top
:
0
;
margin-bottom
:
0
;
}
}
.header-message
{
top
:
0
;
height
:
$system-header-height
;
line-height
:
$system-header-height
;
}
.footer-message
{
bottom
:
0
;
height
:
$system-footer-height
;
line-height
:
$system-footer-height
;
}
.with-performance-bar
{
.header-message
{
top
:
$performance-bar-height
;
}
}
// System Header
.with-system-header
{
.navbar-gitlab
{
top
:
$system-header-height
;
}
.nav-sidebar
,
.right-sidebar
{
top
:
$system-header-height
+
$header-height
;
}
}
// System Footer
.with-system-footer
{
.nav-sidebar
,
.right-sidebar
{
bottom
:
$system-footer-height
;
}
}
// Performance Bar
// System Header
.with-system-header.with-performance-bar
{
header
.navbar-gitlab
{
top
:
$performance-bar-height
+
$system-header-height
;
}
.layout-page
{
margin-top
:
$header-height
+
$performance-bar-height
+
$system-header-height
;
}
.nav-sidebar
,
.right-sidebar
{
top
:
$header-height
+
$performance-bar-height
+
$system-header-height
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment