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
0c5a0740
Commit
0c5a0740
authored
Aug 04, 2020
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tz-critical-css-poc' into 'master'
Startup.CSS See merge request gitlab-org/gitlab!38052
parents
0b8c8c7b
20cf7041
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
4 deletions
+29
-4
.scss-lint.yml
.scss-lint.yml
+1
-0
app/assets/stylesheets/application.scss
app/assets/stylesheets/application.scss
+6
-0
app/assets/stylesheets/startup/startup-general.scss
app/assets/stylesheets/startup/startup-general.scss
+1
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+12
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+6
-3
config/application.rb
config/application.rb
+2
-0
package.json
package.json
+1
-1
No files found.
.scss-lint.yml
View file @
0c5a0740
...
@@ -7,6 +7,7 @@ scss_files:
...
@@ -7,6 +7,7 @@ scss_files:
exclude
:
exclude
:
-
'
app/assets/stylesheets/pages/emojis.scss'
-
'
app/assets/stylesheets/pages/emojis.scss'
-
'
app/assets/stylesheets/startup/startup-general.scss'
linters
:
linters
:
# Reports when you use improper spacing around ! (the "bang") in !default,
# Reports when you use improper spacing around ! (the "bang") in !default,
...
...
app/assets/stylesheets/application.scss
View file @
0c5a0740
...
@@ -51,3 +51,9 @@
...
@@ -51,3 +51,9 @@
@media
print
{
@media
print
{
@import
'print'
;
@import
'print'
;
}
}
/* Rules for overriding cloaking in startup-general.scss */
.container-limited
,
.modal-dialog
{
display
:
block
;
}
app/assets/stylesheets/startup/startup-general.scss
0 → 100644
View file @
0c5a0740
@charset
"UTF-8"
;
*,
:
:
after
,::
before
{
box-sizing
:border-box
}
html
{
font-family
:sans-serif
;
line-height
:
1
.15
;
overflow-y
:scroll
}
header
,
nav
{
display
:block
}
body
{
margin
:
0
;
font-family
:
-
apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Noto Sans"
,
Ubuntu
,
Cantarell
,
"Helvetica Neue"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
font-weight
:
400
;
line-height
:
1
.5
;
color
:
#303030
;
text-align
:left
;
background-color
:
#fff
}
hr
{
box-sizing
:content-box
;
height
:
0
;
margin-top
:
.5rem
;
margin-bottom
:
.5rem
;
border
:
0
;
border-top
:
1px
solid
rgba
(
0
,
0
,
0
,.
1
);
overflow
:hidden
;
margin
:
24px
0
;
border-top
:
1px
solid
#eee
}
p
,
ul
{
margin-top
:
0
;
margin-bottom
:
1rem
}
ul
ul
{
margin-bottom
:
0
}
strong
{
font-weight
:
700
}
a
{
text-decoration
:none
;
background-color
:transparent
;
color
:
#1068bf
}
a
:not
([
href
])
{
color
:inherit
;
text-decoration
:none
}
code
{
font-family
:
"Menlo"
,
"DejaVu Sans Mono"
,
"Liberation Mono"
,
"Consolas"
,
"Ubuntu Mono"
,
"Courier New"
,
"andale mono"
,
"lucida console"
,
monospace
;
font-size
:
90%
;
word-wrap
:break-word
;
padding
:
2px
4px
;
color
:
#1f1f1f
;
background-color
:
#f0f0f0
;
border-radius
:
4px
}
img
{
vertical-align
:middle
;
border-style
:none
}
svg
{
overflow
:hidden
;
vertical-align
:baseline
;
fill
:currentColor
}
button
{
border-radius
:
0
;
text-transform
:none
}
button
,
input
{
margin
:
0
;
font-family
:inherit
;
font-size
:inherit
;
line-height
:inherit
;
overflow
:visible
}
[
type
=
button
]
:not
(
:disabled
),
button
:not
(
:disabled
)
{
cursor
:pointer
}
[
type
=
button
]
::-moz-focus-inner
,
button
::-moz-focus-inner
{
padding
:
0
;
border-style
:none
}
[
type
=
search
]
{
outline-offset
:
-2px
}
summary
{
display
:list-item
;
cursor
:pointer
}
[
hidden
]
{
display
:none
!
important
}
.h1
,
h1
{
margin-bottom
:
.25rem
;
font-weight
:
600
;
line-height
:
1
.2
;
color
:
#303030
;
font-size
:
2
.1875rem
}
.list-unstyled
{
padding-left
:
0
;
list-style
:none
}
a
>
code
{
color
:inherit
}
.container
{
width
:
100%
;
padding-right
:
15px
;
padding-left
:
15px
;
margin-right
:auto
;
margin-left
:auto
}
@media
(
min-width
:
576px
){
.container
{
max-width
:
540px
}}
@media
(
min-width
:
768px
){
.container
{
max-width
:
720px
}}
@media
(
min-width
:
992px
){
.container
{
max-width
:
960px
}}
@media
(
min-width
:
1200px
){
.container
{
max-width
:
1140px
}}
.container-fluid
{
width
:
100%
;
padding-right
:
15px
;
padding-left
:
15px
;
margin-right
:auto
;
margin-left
:auto
}
@media
(
min-width
:
576px
){
.container
{
max-width
:
540px
}}
@media
(
min-width
:
768px
){
.container
{
max-width
:
720px
}}
@media
(
min-width
:
992px
){
.container
{
max-width
:
960px
}}
@media
(
min-width
:
1200px
){
.container
{
max-width
:
1140px
}}
.search
form
{
display
:block
;
padding
:
.375rem
.75rem
;
font-weight
:
400
;
color
:
#303030
;
background-color
:
#fff
;
background-clip
:padding-box
;
border-radius
:
.25rem
}
.
search
form
:
:-
ms-expand
{
background-color
:transparent
;
border
:
0
}
.
search
form
:
-
moz-focusring
{
color
:transparent
;
text-shadow
:
0
0
0
#303030
}
.
search
form
:
:
placeholder
{
opacity
:
1
;
color
:
#919191
}
.search
form
:disabled
{
background-color
:
#fafafa
;
opacity
:
1
}
.form-inline
{
display
:flex
;
flex-flow
:row
wrap
;
align-items
:center
}
@media
(
min-width
:
576px
){
.form-inline
.search
form
,
.search
.form-inline
form
{
display
:inline-block
;
width
:auto
;
vertical-align
:middle
}}
.btn
{
display
:inline-block
;
text-align
:center
;
vertical-align
:middle
;
cursor
:pointer
;
user-select
:none
;
border
:
1px
solid
transparent
;
padding
:
.375rem
.75rem
;
line-height
:
20px
;
border-radius
:
.25rem
}
.btn
:disabled
{
opacity
:
.65
}
.btn-success
{
color
:
#fff
;
background-color
:
#108548
;
border-color
:
#108548
}
.btn-success
:disabled
{
color
:
#fff
;
background-color
:
#108548
;
border-color
:
#108548
}
.btn-success
:not
(
:disabled
)
:not
(
.disabled
)
.active
,
.btn-success
:not
(
:disabled
)
:not
(
.disabled
)
:active
,
.show
>
.btn-success.dropdown-menu-toggle
{
color
:
#fff
;
background-color
:
#0b572f
;
border-color
:
#094c29
}
.btn-sm
{
padding
:
.25rem
.5rem
;
font-size
:
.875rem
;
line-height
:
1
.5
;
border-radius
:
.2rem
}
.collapse
:not
(
.show
)
{
display
:none
}
.
dropdown-menu-toggle
:
:
after
{
margin-left
:
.255em
;
vertical-align
:
.255em
;
content
:
""
;
border-top
:
.3em
solid
;
border-right
:
.3em
solid
transparent
;
border-bottom
:
0
;
border-left
:
.3em
solid
transparent
}
.dropdown-menu-toggle
:empty::after
{
margin-left
:
0
}
.dropdown-menu
{
left
:
0
;
float
:left
;
min-width
:
10rem
;
padding
:
.5rem
0
;
margin
:
.125rem
0
0
;
font-size
:
1rem
;
color
:
#303030
;
text-align
:left
;
list-style
:none
;
background-clip
:padding-box
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,.
15
)}
.dropdown-menu-right
{
right
:
0
;
left
:auto
}
.divider
{
height
:
0
;
margin
:
4px
0
;
overflow
:hidden
;
border-top
:
1px
solid
#dbdbdb
}
.dropdown-menu.show
{
display
:block
}
.nav
{
display
:flex
;
flex-wrap
:wrap
;
padding-left
:
0
;
margin-bottom
:
0
;
list-style
:none
}
.navbar
{
position
:relative
;
padding
:
.25rem
.5rem
}
.navbar
,
.navbar
.container
,
.navbar
.container-fluid
{
display
:flex
;
flex-wrap
:wrap
;
align-items
:center
;
justify-content
:space-between
}
.navbar-nav
{
display
:flex
;
flex-direction
:column
;
padding-left
:
0
;
margin-bottom
:
0
;
list-style
:none
}
.navbar-nav
.dropdown-menu
{
float
:none
}
.navbar-collapse
{
flex-basis
:
100%
;
flex-grow
:
1
;
align-items
:center
}
.navbar-toggler
{
padding
:
.25rem
.75rem
;
font-size
:
1
.25rem
;
line-height
:
1
;
background-color
:transparent
;
border
:
1px
solid
transparent
;
border-radius
:
.25rem
}
@media
(
max-width
:
575
.98px
){
.navbar-expand-sm
>
.container
,
.navbar-expand-sm
>
.container-fluid
{
padding-right
:
0
;
padding-left
:
0
}}
@media
(
min-width
:
576px
){
.navbar-expand-sm
{
flex-flow
:row
nowrap
;
justify-content
:flex-start
}
.navbar-expand-sm
.navbar-nav
{
flex-direction
:row
}
.navbar-expand-sm
.navbar-nav
.dropdown-menu
{
position
:absolute
}
.navbar-expand-sm
>
.container
,
.navbar-expand-sm
>
.container-fluid
{
flex-wrap
:nowrap
}
.navbar-expand-sm
.navbar-collapse
{
display
:flex
!
important
;
flex-basis
:auto
}
.navbar-expand-sm
.navbar-toggler
{
display
:none
}}
.badge
,
.card
{
border-radius
:
.25rem
}
.card
{
position
:relative
;
display
:flex
;
flex-direction
:column
;
min-width
:
0
;
word-wrap
:break-word
;
background-color
:
#fff
;
background-clip
:border-box
;
border
:
1px
solid
#dbdbdb
}
.card
>
hr
{
margin-right
:
0
;
margin-left
:
0
}
.badge
{
display
:inline-block
;
padding
:
.25em
.4em
;
font-size
:
75%
;
font-weight
:
600
;
line-height
:
1
;
text-align
:center
;
white-space
:nowrap
;
vertical-align
:baseline
}
.badge
:empty
{
display
:none
}
.btn
.badge
{
position
:relative
;
top
:
-1px
}
.badge-pill
{
padding-right
:
.6em
;
padding-left
:
.6em
;
border-radius
:
10rem
}
.close
{
float
:right
;
font-size
:
1
.5rem
;
font-weight
:
600
;
line-height
:
1
;
color
:
#000
;
text-shadow
:
0
1px
0
#fff
;
opacity
:
.5
}
button
.close
{
padding
:
0
;
background-color
:transparent
;
border
:
0
;
appearance
:none
}
.bg-transparent
{
background-color
:transparent
!
important
}
.border
{
border
:
1px
solid
#dbdbdb
!
important
}
.rounded
{
border-radius
:
.25rem
!
important
}
.d-none
{
display
:none
!
important
}
.d-inline-block
{
display
:inline-block
!
important
}
.d-block
{
display
:block
!
important
}
@media
(
min-width
:
576px
){
.d-sm-none
{
display
:none
!
important
}}
@media
(
min-width
:
768px
){
.d-md-block
{
display
:block
!
important
}}
@media
(
min-width
:
992px
){
.d-lg-none
{
display
:none
!
important
}
.d-lg-block
{
display
:block
!
important
}}
@media
(
min-width
:
1200px
){
.d-xl-block
{
display
:block
!
important
}}
.float-right
{
float
:right
!
important
}
.sr-only
{
white-space
:nowrap
}
.m-auto
{
margin
:auto
!
important
}
.text-nowrap
{
white-space
:nowrap
!
important
}
.search
form
,
body
{
font-size
:
.875rem
}
[
role
=
button
],
button
,
html
[
type
=
button
]
{
cursor
:pointer
}
.h1
,
h1
{
margin-top
:
20px
;
margin-bottom
:
10px
}
input
[
type
=
file
]
{
line-height
:
1
}
.code
>
code
{
background-color
:inherit
;
padding
:unset
}
.hidden
{
display
:none
!
important
;
visibility
:hidden
!
important
}
.
dropdown-menu-toggle
:
:
after
,.
hide
{
display
:none
}
.badge
:not
(
.gl-badge
)
{
padding
:
4px
5px
;
font-size
:
12px
;
font-style
:normal
;
font-weight
:
400
;
display
:inline-block
}
.toggle-sidebar-button
.collapse-text
,
.toggle-sidebar-button
.icon-chevron-double-lg-left
,
.toggle-sidebar-button
.icon-chevron-double-lg-right
{
color
:
#707070
}
body
{
text-decoration-skip
:ink
}
.container
{
padding-top
:
0
;
z-index
:
5
}
.container
.content
{
margin
:
0
}
@media
(
max-width
:
575
.98px
){
.container
.content
{
margin-top
:
20px
}
.container
.container
.title
{
padding-left
:
15px
!
important
}}
.btn
{
border-radius
:
4px
;
font-size
:
.875rem
;
font-weight
:
400
;
padding
:
6px
10px
;
background-color
:
#fff
;
border-color
:
#dbdbdb
;
color
:
#303030
;
white-space
:nowrap
}
.btn
:active
{
box-shadow
:none
}
.btn.active
,
.btn
:active
{
box-shadow
:rgba
(
0
,
0
,
0
,
.16
)
;
background-color
:
#eaeaea
;
border-color
:
#e3e3e3
;
color
:
#303030
}
.btn.btn-sm
{
padding
:
4px
10px
;
font-size
:
13px
;
line-height
:
18px
}
.btn.btn-success
{
background-color
:
#108548
;
border-color
:
#217645
;
color
:
#fff
}
.btn.btn-success.active
,
.btn.btn-success
:active
{
box-shadow
:rgba
(
0
,
0
,
0
,
.16
)
;
background-color
:
#24663b
;
border-color
:
#0d532a
;
color
:
#fff
}
.btn
svg
{
height
:
15px
;
width
:
15px
;
position
:relative
;
top
:
2px
}
.btn
.fa
:not
(
:last-child
),
.btn
svg
:not
(
:last-child
)
{
margin-right
:
5px
}
.badge.badge-pill
:not
(
.gl-badge
)
{
font-weight
:
400
;
background-color
:rgba
(
0
,
0
,
0
,
.07
)
;
color
:
#4f4f4f
;
vertical-align
:baseline
}
.loading
{
margin
:
20px
auto
;
height
:
40px
;
color
:
#555
;
font-size
:
32px
;
text-align
:center
}
.chart
{
overflow
:hidden
;
height
:
220px
}
.center
{
text-align
:center
}
.flex
{
display
:flex
}
.dropdown
{
position
:relative
}
.show.dropdown
.dropdown-menu
{
transform
:translateY
(
0
)
;
display
:block
;
min-height
:
40px
;
max-height
:
312px
;
overflow-y
:auto
}
@media
(
max-width
:
575
.98px
){
.show.dropdown
.dropdown-menu
{
width
:
100%
}}
.show.dropdown
.dropdown-menu-toggle
{
border-color
:
#c4c4c4
}
.search-input-container
.dropdown-menu
{
margin-top
:
11px
}
.dropdown-menu
,
.dropdown-menu-toggle
{
font-size
:
14px
;
background-color
:
#fff
;
border
:
1px
solid
#dbdbdb
;
border-radius
:
.25rem
}
.dropdown-menu-toggle
{
color
:
#303030
;
text-align
:left
;
white-space
:nowrap
;
padding
:
6px
25px
6px
10px
;
position
:relative
;
width
:
160px
;
text-overflow
:ellipsis
;
overflow
:hidden
}
.no-outline.dropdown-menu-toggle
,
.show.dropdown
[
data-toggle
=
dropdown
]
{
outline
:
0
}
.dropdown-menu-toggle
.fa
{
color
:
#c4c4c4
;
position
:absolute
}
.dropdown-menu
{
display
:none
;
position
:absolute
;
width
:auto
;
top
:
100%
;
z-index
:
300
;
min-width
:
240px
;
max-width
:
500px
;
margin-top
:
4px
;
margin-bottom
:
24px
;
font-weight
:
400
;
padding
:
8px
0
;
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,.
1
)}
.dropdown-menu
ul
{
margin
:
0
;
padding
:
0
}
.dropdown-menu
li
{
display
:block
;
text-align
:left
;
list-style
:none
;
padding
:
0
1px
}
.dropdown-menu
li
button
,
.dropdown-menu
li
>
a
{
background
:
0
0
;
border
:
0
;
border-radius
:
0
;
box-shadow
:none
;
display
:block
;
font-weight
:
400
;
position
:relative
;
padding
:
8px
12px
;
color
:
#303030
;
line-height
:
16px
;
white-space
:normal
;
overflow
:hidden
;
text-align
:left
;
width
:
100%
}
.dropdown-menu
li
button
:active
,
.dropdown-menu
li
>
a
:active
{
background-color
:
#eee
;
color
:
#303030
;
outline
:
0
;
text-decoration
:none
}
.dropdown-menu
li
button
:active
.avatar
,
.dropdown-menu
li
>
a
:active
.avatar
{
border-color
:
#fff
}
.dropdown-menu
li
button
:active
.badge.badge-pill
,
.dropdown-menu
li
>
a
:active
.badge.badge-pill
{
background-color
:
#d3e7f9
}
.dropdown-menu
.divider
{
height
:
1px
;
margin
:
.25rem
0
;
padding
:
0
;
background-color
:
#dbdbdb
}
.dropdown-menu
.badge.badge-pill
+
span
:not
(
.badge.badge-pill
)
{
margin-right
:
40px
}
.dropdown-select
{
width
:
300px
}
@media
(
max-width
:
767
.98px
){
.dropdown-select
{
width
:
100%
}}
.dropdown-content
{
max-height
:
252px
;
overflow-y
:auto
}
.dropdown-loading
{
position
:absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
display
:none
;
z-index
:
9
;
background-color
:rgba
(
255
,
255
,
255
,
.6
)
;
font-size
:
28px
}
.dropdown-loading
.fa
{
position
:absolute
;
top
:
50%
;
left
:
50%
;
margin-top
:
-14px
;
margin-left
:
-14px
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
li
.dropdown
{
position
:static
}
header
.navbar-gitlab
.dropdown
.dropdown-menu
{
width
:
100%
;
min-width
:
100%
}}
@media
(
max-width
:
767
.98px
){
.dropdown-menu-toggle
{
width
:
100%
}}
input
{
border-radius
:
.25rem
;
color
:
#303030
;
background-color
:
#fff
}
.search
form
{
margin
:
0
;
padding
:
4px
;
width
:
200px
;
line-height
:
24px
;
height
:
32px
;
border
:
0
;
border-radius
:
4px
}
body
.ui-indigo
.navbar-gitlab
{
background-color
:
#292961
}
body
.ui-indigo
.navbar-gitlab
.nav
>
li
,
body
.ui-indigo
.navbar-gitlab
.navbar-collapse
,
body
.ui-indigo
.navbar-gitlab
.navbar-sub-nav
{
color
:
#d1d1f0
}
body
.ui-indigo
.navbar-gitlab
.container-fluid
.navbar-toggler
{
border-left
:
1px
solid
#6868b9
}
body
.ui-indigo
.navbar-gitlab
.container-fluid
.navbar-toggler
svg
{
fill
:
#d1d1f0
}
body
.ui-indigo
.navbar-gitlab
.nav
>
li
.active
>
a
,
body
.ui-indigo
.navbar-gitlab
.nav
>
li
.dropdown.show
>
a
,
body
.ui-indigo
.navbar-gitlab
.navbar-nav
>
li
.active
>
a
,
body
.ui-indigo
.navbar-gitlab
.navbar-nav
>
li
.active
>
button
,
body
.ui-indigo
.navbar-gitlab
.navbar-nav
>
li
.dropdown.show
>
a
,
body
.ui-indigo
.navbar-gitlab
.navbar-nav
>
li
.dropdown.show
>
button
,
body
.ui-indigo
.navbar-gitlab
.navbar-sub-nav
>
li
.active
>
a
,
body
.ui-indigo
.navbar-gitlab
.navbar-sub-nav
>
li
.active
>
button
,
body
.ui-indigo
.navbar-gitlab
.navbar-sub-nav
>
li
.dropdown.show
>
a
,
body
.ui-indigo
.navbar-gitlab
.navbar-sub-nav
>
li
.dropdown.show
>
button
{
color
:
#292961
;
background-color
:
#fff
}
body
.ui-indigo
.navbar-gitlab
.nav
>
li
>
a
.header-user-dropdown-toggle
.header-user-avatar
{
border-color
:
#d1d1f0
}
body
.ui-indigo
.search
form
{
background-color
:rgba
(
209
,
209
,
240
,
.2
)
}
body
.
ui-indigo
.
search
.
search-input
:
:
placeholder
{
color
:rgba
(
209
,
209
,
240
,
.8
)
}
body
.ui-indigo
.search
.search-input-wrap
.clear-icon
,
body
.ui-indigo
.search
.search-input-wrap
.search-icon
{
fill
:rgba
(
209
,
209
,
240
,
.8
)
}
body
.ui-indigo
.nav-sidebar
li
.active
{
box-shadow
:inset
4px
0
0
#4b4ba3
}
body
.ui-indigo
.nav-sidebar
li
.active
>
a
,
body
.ui-indigo
.sidebar-top-level-items
>
li
.active
.badge.badge-pill
{
color
:
#393982
}
body
.ui-indigo
.nav-sidebar
li
.active
.nav-icon-container
svg
{
fill
:
#393982
}
.navbar-gitlab
{
padding
:
0
16px
;
z-index
:
1000
;
margin-bottom
:
0
;
min-height
:
40px
;
border
:
0
;
border-bottom
:
1px
solid
#dbdbdb
;
position
:fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
border-radius
:
0
}
.navbar-gitlab
.logo-text
{
line-height
:initial
}
.navbar-gitlab
.logo-text
svg
{
width
:
55px
;
height
:
14px
;
margin
:
0
;
fill
:
#fff
}
.navbar-gitlab
.close-icon
{
display
:none
}
.navbar-gitlab
.header-content
{
width
:
100%
;
display
:flex
;
justify-content
:space-between
;
position
:relative
;
min-height
:
40px
;
padding-left
:
0
}
.navbar-gitlab
.header-content
.title-container
{
display
:flex
;
align-items
:stretch
;
flex
:
1
1
auto
;
padding-top
:
0
;
overflow
:visible
}
.navbar-gitlab
.header-content
.title
{
padding-right
:
0
;
color
:currentColor
;
display
:flex
;
position
:relative
;
margin
:
0
;
font-size
:
18px
;
vertical-align
:top
;
white-space
:nowrap
}
.navbar-gitlab
.header-content
.title
img
{
height
:
28px
}
.navbar-gitlab
.header-content
.title
img
+
.logo-text
{
margin-left
:
8px
}
.navbar-gitlab
.header-content
.title
a
{
display
:flex
;
align-items
:center
;
padding
:
2px
8px
;
margin
:
5px
2px
5px
-8px
;
border-radius
:
4px
}
.navbar-gitlab
.header-content
.dropdown.open
>
a
{
border-bottom-color
:
#fff
}
.navbar-gitlab
.header-content
.navbar-collapse
>
ul
.nav
>
li
:not
(
.d-none
)
{
margin
:
0
2px
}
.navbar-gitlab
.navbar-collapse
{
flex
:
0
0
auto
;
border-top
:
0
;
padding
:
0
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
.navbar-collapse
{
flex
:
1
1
auto
}}
.navbar-gitlab
.navbar-collapse
.nav
{
flex-wrap
:nowrap
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
.navbar-collapse
.nav
>
li
:not
(
.d-none
)
a
{
margin-left
:
0
}}
.navbar-gitlab
.container-fluid
{
padding
:
0
}
.navbar-gitlab
.container-fluid
.user-counter
svg
{
margin-right
:
3px
}
.navbar-gitlab
.container-fluid
.navbar-toggler
{
position
:relative
;
right
:
-10px
;
border-radius
:
0
;
min-width
:
45px
;
padding
:
0
;
margin
:
8px
-7px
8px
0
;
font-size
:
14px
;
text-align
:center
;
color
:currentColor
}
.navbar-gitlab
.container-fluid
.navbar-toggler.active
{
color
:currentColor
;
background-color
:transparent
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
.container-fluid
.navbar-nav
{
display
:flex
;
padding-right
:
10px
;
flex-direction
:row
}}
.navbar-gitlab
.container-fluid
.navbar-nav
li
.badge.badge-pill
{
box-shadow
:none
;
font-weight
:
600
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
.container-fluid
.nav
>
li
.header-user
{
padding-left
:
10px
}}
.navbar-gitlab
.container-fluid
.nav
>
li
>
a
{
will-change
:color
;
margin
:
4px
0
;
padding
:
6px
8px
;
height
:
32px
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
.container-fluid
.nav
>
li
>
a
{
padding
:
0
}}
.navbar-gitlab
.container-fluid
.nav
>
li
>
a
.header-user-dropdown-toggle
{
margin-left
:
2px
}
.navbar-gitlab
.container-fluid
.nav
>
li
.header-new-dropdown-toggle
,
.navbar-gitlab
.container-fluid
.nav
>
li
>
a
.header-user-dropdown-toggle
.header-user-avatar
{
margin-right
:
0
}
.navbar-nav
>
li
>
a
,
.navbar-nav
>
li
>
button
,
.navbar-sub-nav
>
li
>
a
,
.navbar-sub-nav
>
li
>
button
{
display
:flex
;
align-items
:center
;
justify-content
:center
;
padding
:
6px
8px
;
margin
:
4px
2px
;
font-size
:
12px
;
color
:currentColor
;
border-radius
:
4px
;
height
:
32px
;
font-weight
:
600
}
.navbar-nav
>
li
>
button
,
.navbar-sub-nav
>
li
>
button
{
background
:
0
0
;
border
:
0
}
.navbar-nav
.dropdown-menu
,
.navbar-sub-nav
.dropdown-menu
{
position
:absolute
}
.navbar-sub-nav
{
display
:flex
;
margin
:
0
0
0
6px
}
.btn
.caret-down
,
.caret-down
{
top
:
0
;
height
:
11px
;
width
:
11px
;
margin-left
:
4px
;
fill
:currentColor
}
.header-new
.dropdown-menu
,
.header-user
.dropdown-menu
{
margin-top
:
4px
}
.btn-sign-in
{
background-color
:
#ebebfa
;
color
:
#292961
;
font-weight
:
600
;
line-height
:
18px
;
margin
:
4px
0
4px
2px
}
.navbar-nav
.badge.badge-pill
,
.title-container
.badge.badge-pill
{
position
:inherit
;
font-weight
:
400
;
margin-left
:
-6px
;
font-size
:
11px
;
color
:
#fff
;
padding
:
0
5px
;
line-height
:
12px
;
border-radius
:
7px
;
box-shadow
:
0
1px
0
rgba
(
76
,
78
,
84
,.
2
)}
.navbar-nav
.badge.badge-pill.green-badge
,
.title-container
.badge.badge-pill.green-badge
{
background-color
:
#108548
}
.navbar-nav
.badge.badge-pill.merge-requests-count
,
.title-container
.badge.badge-pill.merge-requests-count
{
background-color
:
#de7e00
}
.navbar-nav
.badge.badge-pill.todos-count
,
.title-container
.badge.badge-pill.todos-count
{
background-color
:
#1f75cb
}
.navbar-nav
.canary-badge
.badge
,
.title-container
.canary-badge
.badge
{
font-size
:
12px
;
line-height
:
16px
;
padding
:
0
.5rem
}
@media
(
max-width
:
575
.98px
){
.navbar-gitlab
.container-fluid
{
font-size
:
18px
}
.navbar-gitlab
.container-fluid
.navbar-nav
{
table-layout
:fixed
;
width
:
100%
;
margin
:
0
;
text-align
:right
}
.navbar-gitlab
.container-fluid
.navbar-collapse
{
margin-left
:
-8px
;
margin-right
:
-10px
}
.navbar-gitlab
.container-fluid
.navbar-collapse
.nav
>
li
:not
(
.d-none
)
{
flex
:
1
}
.header-user-dropdown-toggle
{
text-align
:center
}
.header-user-avatar
{
float
:none
}}
.header-user.show
.dropdown-menu
{
margin-top
:
4px
;
color
:
#303030
;
left
:auto
;
max-height
:
445px
}
.header-user.show
.dropdown-menu
svg
{
vertical-align
:text-top
}
.header-user-avatar
{
float
:left
;
margin-right
:
5px
;
border-radius
:
50%
;
border
:
1px
solid
#f5f5f5
}
.media
{
display
:flex
;
align-items
:flex-start
}
.card
{
margin-bottom
:
16px
}
@media
(
min-width
:
768px
){
.page-with-contextual-sidebar
{
padding-left
:
50px
}}
@media
(
min-width
:
1200px
){
.page-with-contextual-sidebar
{
padding-left
:
220px
}}
.context-header
{
position
:relative
;
margin-right
:
2px
;
width
:
220px
}
.context-header
>
a
,
.context-header
>
button
{
font-weight
:
600
;
display
:flex
;
width
:
100%
;
align-items
:center
;
padding
:
10px
16px
10px
10px
;
color
:
#303030
;
background-color
:transparent
;
border
:
0
;
text-align
:left
}
.context-header
.avatar-container
{
flex
:
0
0
40px
;
background-color
:
#fff
}
.context-header
.sidebar-context-title
{
overflow
:hidden
;
text-overflow
:ellipsis
}
.context-header
.sidebar-context-title.text-secondary
{
font-weight
:
400
;
font-size
:
.8em
}
.nav-sidebar
{
position
:fixed
;
z-index
:
600
;
width
:
220px
;
top
:
40px
;
bottom
:
0
;
left
:
0
;
background-color
:
#fafafa
;
box-shadow
:inset
-1px
0
0
#dbdbdb
;
transform
:translate3d
(
0
,
0
,
0
)
}
@media
(
min-width
:
576px
)
and
(
max-width
:
576px
){
.nav-sidebar
:not
(
.sidebar-collapsed-desktop
)
{
box-shadow
:inset
-1px
0
0
#dbdbdb
,
2px
1px
3px
rgba
(
0
,
0
,
0
,
.1
)
}}
.nav-sidebar
a
{
text-decoration
:none
}
.nav-sidebar
ul
{
padding-left
:
0
;
list-style
:none
}
.nav-sidebar
li
{
white-space
:nowrap
}
.nav-sidebar
li
a
{
display
:flex
;
align-items
:center
;
padding
:
12px
16px
;
color
:
#707070
}
.nav-sidebar
li
.nav-item-name
{
flex
:
1
}
.nav-sidebar
li
.active
>
a
,
.sidebar-top-level-items
>
li
.active
.badge.badge-pill
{
font-weight
:
600
}
@media
(
max-width
:
767
.98px
){
.nav-sidebar
{
left
:
-220px
}}
.nav-sidebar
.nav-icon-container
{
display
:flex
;
margin-right
:
8px
}
.nav-sidebar
.fly-out-top-item
{
display
:none
}
.nav-sidebar
svg
{
height
:
16px
;
width
:
16px
}
@media
(
min-width
:
768px
)
and
(
max-width
:
1199px
){
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
{
width
:
50px
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.nav-sidebar-inner-scroll
{
overflow-x
:hidden
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.badge.badge-pill
:not
(
.fly-out-badge
),
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.nav-item-name
,
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.sidebar-context-title
{
border
:
0
;
clip
:rect
(
0
,
0
,
0
,
0
)
;
height
:
1px
;
margin
:
-1px
;
overflow
:hidden
;
padding
:
0
;
position
:absolute
;
white-space
:nowrap
;
width
:
1px
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.sidebar-top-level-items
>
li
>
a
{
min-height
:
45px
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.fly-out-top-item
{
display
:block
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.avatar-container
{
margin
:
0
auto
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.context-header
{
height
:
60px
;
width
:
50px
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.context-header
a
{
padding
:
10px
4px
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.sidebar-top-level-items
>
li
.sidebar-sub-level-items
:not
(
.flyout-list
),
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.toggle-sidebar-button
.collapse-text
,
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.toggle-sidebar-button
.icon-chevron-double-lg-left
{
display
:none
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.nav-icon-container
{
margin-right
:
0
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.toggle-sidebar-button
{
padding
:
16px
;
width
:
49px
}
.nav-sidebar
:not
(
.sidebar-expanded-mobile
)
.toggle-sidebar-button
.icon-chevron-double-lg-right
{
display
:block
;
margin
:
0
}}
.nav-sidebar-inner-scroll
{
height
:
100%
;
width
:
100%
;
overflow
:auto
}
.sidebar-sub-level-items
{
display
:none
;
padding-bottom
:
8px
}
.sidebar-sub-level-items
>
li
a
{
padding
:
8px
16px
8px
40px
}
.sidebar-sub-level-items
>
li
.active
a
,
.sidebar-top-level-items
>
li
.active
{
background
:rgba
(
0
,
0
,
0
,
.04
)
}
.sidebar-top-level-items
{
margin-bottom
:
60px
}
@media
(
min-width
:
576px
){
.sidebar-top-level-items
>
li
>
a
{
margin-right
:
1px
}}
.sidebar-top-level-items
>
li
.badge.badge-pill
{
background-color
:rgba
(
0
,
0
,
0
,
.08
)
;
color
:
#707070
}
.sidebar-top-level-items
>
li
.active
>
a
{
margin-left
:
4px
;
padding-left
:
12px
}
.sidebar-top-level-items
>
li
.active
.sidebar-sub-level-items
:not
(
.is-fly-out-only
)
{
display
:block
}
.close-nav-button
,
.toggle-sidebar-button
{
width
:
219px
;
position
:fixed
;
height
:
48px
;
bottom
:
0
;
padding
:
0
16px
;
background-color
:
#fafafa
;
border
:
0
;
border-top
:
1px
solid
#dbdbdb
;
color
:
#707070
;
display
:flex
;
align-items
:center
}
.close-nav-button
svg
,
.toggle-sidebar-button
svg
{
margin-right
:
8px
}
.close-nav-button
.icon-chevron-double-lg-right
,
.toggle-sidebar-button
.icon-chevron-double-lg-right
{
display
:none
}
.collapse-text
{
white-space
:nowrap
;
overflow
:hidden
}
.fly-out-top-item
>
a
{
display
:flex
}
.fly-out-top-item
.fly-out-badge
{
margin-left
:
8px
}
.fly-out-top-item-name
{
flex
:
1
}
.close-nav-button
{
display
:none
}
@media
(
max-width
:
767
.98px
){
.close-nav-button
{
display
:flex
}
.toggle-sidebar-button
{
display
:none
}}
input
:
:-
moz-placeholder
{
color
:
#919191
;
opacity
:
1
}
input
:
-
ms-input-placeholder
,
input
::-
ms-input-placeholder
{
color
:
#919191
}
svg
.s12
{
width
:
12px
;
height
:
12px
}
svg
.s16
{
width
:
16px
;
height
:
16px
}
svg
.s18
{
width
:
18px
;
height
:
18px
}
.feature-highlight-popover-sub-content
{
padding
:
16px
12px
}
.sr-only
{
position
:absolute
;
width
:
1px
;
height
:
1px
;
padding
:
0
;
margin
:
-1px
;
overflow
:hidden
;
clip
:rect
(
0
,
0
,
0
,
0
)
;
border
:
0
}
.color-label
{
padding
:
0
.5rem
;
line-height
:
16px
;
border-radius
:
100px
;
color
:
#fff
}
.label-link
{
display
:inline-flex
;
vertical-align
:text-bottom
}
.milestones
{
padding
:
8px
;
margin-top
:
8px
;
border-radius
:
4px
;
background-color
:
#dbdbdb
}
.search
{
margin
:
0
8px
}
@media
(
min-width
:
1200px
){
.search
form
{
width
:
320px
}}
.search
.search-input
{
border
:
0
;
font-size
:
14px
;
padding
:
0
20px
0
0
;
margin-left
:
5px
;
line-height
:
25px
;
width
:
98%
;
color
:
#fff
;
background
:
0
0
}
.search
.search-input-container
{
display
:flex
;
position
:relative
}
.search
.search-input-wrap
{
width
:
100%
}
.search
.search-input-wrap
.clear-icon
,
.search
.search-input-wrap
.search-icon
{
position
:absolute
;
right
:
5px
;
top
:
4px
}
.search
.search-input-wrap
.search-icon
{
-moz-user-select
:none
;
user-select
:none
}
.search
.search-input-wrap
.clear-icon
{
display
:none
}
.search
.search-input-wrap
.dropdown
{
position
:static
}
.search
.search-input-wrap
.dropdown-menu
{
left
:
-5px
;
max-height
:
400px
;
overflow
:auto
}
@media
(
min-width
:
1200px
){
.search
.search-input-wrap
.dropdown-menu
{
width
:
320px
}}
.search
.search-input-wrap
.dropdown-content
{
max-height
:
382px
}
.search
.identicon
{
flex-basis
:
16px
;
flex-shrink
:
0
;
margin-right
:
4px
}
.settings
{
border-top
:
1px
solid
#dbdbdb
}
.settings
:first-of-type
{
margin-top
:
10px
;
border
:
0
}
.settings
+
div
.settings
:first-of-type
{
margin-top
:
0
;
border-top
:
1px
solid
#dbdbdb
}
.avatar
,
.avatar-container
{
float
:left
;
margin-right
:
16px
;
border-radius
:
50%
;
border
:
1px
solid
#f5f5f5
}
.s16.avatar
,
.s16.avatar-container
{
width
:
16px
;
height
:
16px
;
margin-right
:
8px
}
.s18.avatar
,
.s18.avatar-container
{
width
:
18px
;
height
:
18px
;
margin-right
:
8px
}
.s40.avatar
,
.s40.avatar-container
{
width
:
40px
;
height
:
40px
;
margin-right
:
8px
}
.avatar
{
transition-property
:none
;
width
:
40px
;
height
:
40px
;
padding
:
0
;
background
:
#fdfdfd
;
overflow
:hidden
;
border-color
:rgba
(
0
,
0
,
0
,
.1
)
}
.avatar.center
{
font-size
:
14px
;
line-height
:
1
.8em
;
text-align
:center
}
.avatar.avatar-tile
{
border-radius
:
0
;
border
:
0
}
.identicon
{
text-align
:center
;
vertical-align
:top
;
color
:
#4f4f4f
;
background-color
:
#eee
}
.identicon.s16
{
font-size
:
10px
;
line-height
:
16px
}
.identicon.s40
{
font-size
:
16px
;
line-height
:
38px
}
.avatar-container
{
overflow
:hidden
;
display
:flex
}
.avatar-container
a
{
width
:
100%
;
height
:
100%
;
display
:flex
;
text-decoration
:none
}
.avatar-container
.avatar
{
border-radius
:
0
;
border
:
0
;
height
:auto
;
width
:
100%
;
margin
:
0
;
align-self
:center
}
.avatar-container.s40
{
min-width
:
40px
;
min-height
:
40px
}
.rect-avatar
,
.rect-avatar.s16
,
.rect-avatar.s18
{
border-radius
:
2px
}
.rect-avatar.s40
{
border-radius
:
4px
}
.tab-width-8
{
-moz-tab-size
:
8
;
tab-size
:
8
}
.gl-sr-only
{
border
:
0
;
clip
:rect
(
0
,
0
,
0
,
0
)
;
height
:
1px
;
margin
:
-1px
;
overflow
:hidden
;
padding
:
0
;
position
:absolute
;
white-space
:nowrap
;
width
:
1px
}
.gl-ml-3
{
margin-left
:
.5rem
}
.container-limited
,
.modal-dialog
{
display
:none
}
\ No newline at end of file
app/helpers/application_helper.rb
View file @
0c5a0740
...
@@ -231,6 +231,18 @@ module ApplicationHelper
...
@@ -231,6 +231,18 @@ module ApplicationHelper
"
#{
request
.
path
}
?
#{
options
.
compact
.
to_param
}
"
"
#{
request
.
path
}
?
#{
options
.
compact
.
to_param
}
"
end
end
def
use_startup_css?
params
[
:startup_css
]
==
'true'
||
cookies
[
'startup_css'
]
==
'true'
end
def
stylesheet_link_tag_defer
(
path
)
if
use_startup_css?
stylesheet_link_tag
(
path
,
media:
"print"
,
onload:
"this.onload=null;this.media='all'"
)
else
stylesheet_link_tag
(
path
,
media:
"all"
)
end
end
def
outdated_browser?
def
outdated_browser?
browser
.
ie?
browser
.
ie?
end
end
...
...
app/views/layouts/_head.html.haml
View file @
0c5a0740
...
@@ -49,14 +49,17 @@
...
@@ -49,14 +49,17 @@
=
favicon_link_tag
favicon
,
id:
'favicon'
,
data:
{
original_href:
favicon
},
type:
'image/png'
=
favicon_link_tag
favicon
,
id:
'favicon'
,
data:
{
original_href:
favicon
},
type:
'image/png'
-
if
use_startup_css?
%style
{
type:
"text/css"
}
=
Rails
.
application
.
assets_manifest
.
find_sources
(
'startup/startup-general.css'
).
first
.
to_s
.
html_safe
-
if
user_application_theme
==
'gl-dark'
-
if
user_application_theme
==
'gl-dark'
=
stylesheet_link_tag
"application_dark"
,
media:
"all
"
=
stylesheet_link_tag
_defer
"application_dark
"
-
else
-
else
=
stylesheet_link_tag
"application"
,
media:
"all
"
=
stylesheet_link_tag
_defer
"application
"
=
stylesheet_link_tag
"disable_animations"
,
media:
"all"
if
Rails
.
env
.
test?
||
Gitlab
.
config
.
gitlab
[
'disable_animations'
]
=
stylesheet_link_tag
"disable_animations"
,
media:
"all"
if
Rails
.
env
.
test?
||
Gitlab
.
config
.
gitlab
[
'disable_animations'
]
=
stylesheet_link_tag
'performance_bar'
if
performance_bar_enabled?
=
stylesheet_link_tag
'performance_bar'
if
performance_bar_enabled?
=
stylesheet_link_tag
"highlight/themes/
#{
user_color_scheme
}
"
,
media:
"all
"
=
stylesheet_link_tag
_defer
"highlight/themes/
#{
user_color_scheme
}
"
=
Gon
::
Base
.
render_data
(
nonce:
content_security_policy_nonce
)
=
Gon
::
Base
.
render_data
(
nonce:
content_security_policy_nonce
)
...
...
config/application.rb
View file @
0c5a0740
...
@@ -169,6 +169,8 @@ module Gitlab
...
@@ -169,6 +169,8 @@ module Gitlab
config
.
assets
.
precompile
<<
"application_dark.css"
config
.
assets
.
precompile
<<
"application_dark.css"
config
.
assets
.
precompile
<<
"startup/*.css"
config
.
assets
.
precompile
<<
"print.css"
config
.
assets
.
precompile
<<
"print.css"
config
.
assets
.
precompile
<<
"mailer.css"
config
.
assets
.
precompile
<<
"mailer.css"
config
.
assets
.
precompile
<<
"mailer_client_specific.css"
config
.
assets
.
precompile
<<
"mailer_client_specific.css"
...
...
package.json
View file @
0c5a0740
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
"prettier-staged-save"
:
"node ./scripts/frontend/prettier.js save"
,
"prettier-staged-save"
:
"node ./scripts/frontend/prettier.js save"
,
"prettier-all"
:
"node ./scripts/frontend/prettier.js check-all"
,
"prettier-all"
:
"node ./scripts/frontend/prettier.js check-all"
,
"prettier-all-save"
:
"node ./scripts/frontend/prettier.js save-all"
,
"prettier-all-save"
:
"node ./scripts/frontend/prettier.js save-all"
,
"stylelint"
:
"yarn stylelint-file 'app/assets/stylesheets/**/*.*' 'ee/app/assets/stylesheets/**/*.*' '!**/vendors/**'"
,
"stylelint"
:
"yarn stylelint-file 'app/assets/stylesheets/**/*.*' 'ee/app/assets/stylesheets/**/*.*' '!
app/assets/stylesheets/startup/startup-general.scss' '!
**/vendors/**'"
,
"stylelint-file"
:
"BROWSERSLIST_IGNORE_OLD_DATA=true node node_modules/stylelint/bin/stylelint.js"
,
"stylelint-file"
:
"BROWSERSLIST_IGNORE_OLD_DATA=true node node_modules/stylelint/bin/stylelint.js"
,
"stylelint-create-utility-map"
:
"node scripts/frontend/stylelint/stylelint-utility-map.js"
,
"stylelint-create-utility-map"
:
"node scripts/frontend/stylelint/stylelint-utility-map.js"
,
"test"
:
"node scripts/frontend/test"
,
"test"
:
"node scripts/frontend/test"
,
...
...
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