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
54e7db1d
Commit
54e7db1d
authored
Jul 03, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add trial banner styles
parent
0b2f4b9d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
3 deletions
+33
-3
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+27
-0
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+6
-3
No files found.
app/assets/stylesheets/framework/header.scss
View file @
54e7db1d
...
@@ -55,6 +55,10 @@ header {
...
@@ -55,6 +55,10 @@ header {
}
}
}
}
&
.has-trial-banner
{
top
:
50px
;
}
.container-fluid
{
.container-fluid
{
width
:
100%
!
important
;
width
:
100%
!
important
;
filter
:
none
;
filter
:
none
;
...
@@ -314,6 +318,29 @@ header {
...
@@ -314,6 +318,29 @@ header {
}
}
}
}
.gitlab-ee-trial-banner
{
padding
:
15px
;
text-align
:
center
;
p
{
margin
:
0
;
display
:
inline-block
;
a
{
font-weight
:
bold
;
}
}
.close-trial-banner
{
float
:
right
;
margin-top
:
2px
;
&
:hover
{
cursor
:
pointer
;
}
}
}
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
header
.container-fluid
{
header
.container-fluid
{
font-size
:
18px
;
font-size
:
18px
;
...
...
app/views/layouts/header/_default.html.haml
View file @
54e7db1d
%header
.navbar.navbar-gitlab
{
class:
nav_header_class
}
-
if
license_message
.
present?
.gitlab-ee-trial-banner
%p
=
license_message
%button
.btn.btn-default.close.close-trial-banner.js-close-trial-banner
{
type:
'button'
,
'aria-label'
=>
'Dismiss banner'
}
=
icon
(
'times'
,
'aria-hidden'
=>
'true'
)
%header
.navbar.navbar-gitlab
{
class:
"#{nav_header_class} #{ 'has-trial-banner' if trial_license_message.present?}"
}
.navbar-border
.navbar-border
%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
-
if
current_license
&
.
trial?
&&
license_message
.
present?
%p
.text-center
=
license_message
.header-content
.header-content
.dropdown.global-dropdown
.dropdown.global-dropdown
%button
.global-dropdown-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%button
.global-dropdown-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
...
...
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