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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
e290ebf1
Commit
e290ebf1
authored
Oct 30, 2018
by
Simon Knox
Committed by
Filipa Lacerda
Oct 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport ee 7203 sticky logs topbar
parent
5c6f55ba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
74 deletions
+100
-74
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+94
-0
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+5
-73
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+1
-1
No files found.
app/assets/stylesheets/framework/mixins.scss
View file @
e290ebf1
...
@@ -250,6 +250,100 @@
...
@@ -250,6 +250,100 @@
max-width
:
100%
;
max-width
:
100%
;
}
}
/*
* Mixin that handles the container for the job logs (CI/CD and kubernetes pod logs)
*/
@mixin
build-trace
{
background
:
$black
;
color
:
$gray-darkest
;
white-space
:
pre
;
overflow-x
:
auto
;
font-size
:
12px
;
border-radius
:
0
;
border
:
0
;
padding
:
$grid-size
;
.bash
{
display
:
block
;
}
&
.build-trace-rounded
{
border-radius
:
$border-radius-base
;
}
}
@mixin
build-trace-top-bar
(
$height
)
{
height
:
$height
;
min-height
:
$height
;
background
:
$gray-light
;
border
:
1px
solid
$border-color
;
color
:
$gl-text-color
;
position
:
sticky
;
position
:
-
webkit-sticky
;
top
:
$header-height
;
padding
:
$grid-size
;
.with-performance-bar
&
{
top
:
$header-height
+
$performance-bar-height
;
}
}
/*
* Mixin that handles the position of the controls placed on the top bar
*/
@mixin
build-controllers
(
$control-font-size
,
$flex-direction
,
$with-grow
,
$flex-grow-size
)
{
display
:
flex
;
font-size
:
$control-font-size
;
justify-content
:
$flex-direction
;
align-items
:
center
;
align-self
:
baseline
;
@if
$with-grow
{
flex-grow
:
$flex-grow-size
;
}
svg
{
width
:
15px
;
height
:
15px
;
display
:
block
;
fill
:
$gl-text-color
;
}
.controllers-buttons
{
color
:
$gl-text-color
;
margin
:
0
$grid-size
;
&
:last-child
{
margin-right
:
0
;
}
}
.btn-scroll.animate
{
.first-triangle
{
animation
:
blinking-scroll-button
1s
ease
infinite
;
animation-delay
:
0
.3s
;
}
.second-triangle
{
animation
:
blinking-scroll-button
1s
ease
infinite
;
animation-delay
:
0
.2s
;
}
.third-triangle
{
animation
:
blinking-scroll-button
1s
ease
infinite
;
}
&
:disabled
{
opacity
:
1
;
}
}
.btn-scroll
:disabled
,
.btn-refresh
:disabled
{
opacity
:
0
.35
;
cursor
:
not
-
allowed
;
}
}
@mixin
build-loader-animation
{
@mixin
build-loader-animation
{
position
:
relative
;
position
:
relative
;
white-space
:
initial
;
white-space
:
initial
;
...
...
app/assets/stylesheets/pages/builds.scss
View file @
e290ebf1
...
@@ -50,35 +50,13 @@
...
@@ -50,35 +50,13 @@
position
:
relative
;
position
:
relative
;
}
}
.build-trace
{
background
:
$black
;
color
:
$gray-darkest
;
white-space
:
pre
;
overflow-x
:
auto
;
font-size
:
12px
;
border-radius
:
0
;
border
:
0
;
padding
:
$grid-size
;
.bash
{
display
:
block
;
}
&
.build-trace-rounded
{
.build-trace
{
border-radius
:
$border-radius-base
;
@include
build-trace
();
}
}
}
.top-bar
{
.top-bar
{
height
:
35px
;
@include
build-trace-top-bar
(
35px
);
min-height
:
35px
;
background
:
$gray-light
;
border
:
1px
solid
$border-color
;
color
:
$gl-text-color
;
position
:
sticky
;
position
:
-
webkit-sticky
;
top
:
$header-height
;
padding
:
$grid-size
;
&
.affix
{
&
.affix
{
top
:
$header-height
;
top
:
$header-height
;
...
@@ -116,49 +94,7 @@
...
@@ -116,49 +94,7 @@
}
}
.controllers
{
.controllers
{
display
:
flex
;
@include
build-controllers
(
15px
,
center
,
false
,
0
);
justify-content
:
center
;
align-items
:
center
;
svg
{
height
:
15px
;
display
:
block
;
fill
:
$gl-text-color
;
}
.controllers-buttons
{
color
:
$gl-text-color
;
margin
:
0
$grid-size
;
&
:last-child
{
margin-right
:
0
;
}
}
.btn-scroll.animate
{
.first-triangle
{
animation
:
blinking-scroll-button
1s
ease
infinite
;
animation-delay
:
0
.3s
;
}
.second-triangle
{
animation
:
blinking-scroll-button
1s
ease
infinite
;
animation-delay
:
0
.2s
;
}
.third-triangle
{
animation
:
blinking-scroll-button
1s
ease
infinite
;
}
&
:disabled
{
opacity
:
1
;
}
}
.btn-scroll
:disabled
{
opacity
:
0
.35
;
cursor
:
not
-
allowed
;
}
}
}
}
}
...
@@ -183,12 +119,8 @@
...
@@ -183,12 +119,8 @@
}
}
.with-performance-bar
.build-page
{
.with-performance-bar
.build-page
{
.top-bar
{
.top-bar
.affix
{
top
:
$header-height
+
$performance-bar-height
;
top
:
$header-height
+
$performance-bar-height
;
&
.affix
{
top
:
$header-height
+
$performance-bar-height
;
}
}
}
}
}
...
...
app/views/layouts/header/_default.html.haml
View file @
e290ebf1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
-
else
-
else
-
search_path_url
=
search_path
-
search_path_url
=
search_path
%header
.navbar.navbar-gitlab.qa-navbar.navbar-expand-sm
%header
.navbar.navbar-gitlab.qa-navbar.navbar-expand-sm
.js-navbar
%a
.sr-only.gl-accessibility
{
href:
"#content-body"
,
tabindex:
"1"
}
Skip to content
%a
.sr-only.gl-accessibility
{
href:
"#content-body"
,
tabindex:
"1"
}
Skip to content
.container-fluid
.container-fluid
.header-content
.header-content
...
...
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