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
Léo-Paul Géneau
gitlab-ce
Commits
4ccdecb1
Commit
4ccdecb1
authored
Sep 05, 2017
by
Annabel Dunstone Gray
Committed by
Ruben Davila
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish adding dark theme
parent
d5b0e901
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
179 additions
and
98 deletions
+179
-98
app/assets/stylesheets/framework/gitlab-theme.scss
app/assets/stylesheets/framework/gitlab-theme.scss
+150
-23
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+0
-1
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+12
-0
app/assets/stylesheets/new_nav.scss
app/assets/stylesheets/new_nav.scss
+17
-74
No files found.
app/assets/stylesheets/framework/gitlab-theme.scss
View file @
4ccdecb1
...
...
@@ -2,15 +2,157 @@
* Styles the GitLab application with a specific color theme
*/
@mixin
gitlab-theme
(
$color-200
,
$color-500
,
$color-700
,
$color-800
,
$color-900
)
{
@mixin
gitlab-theme
(
$color-100
,
$color-200
,
$color-500
,
$color-700
,
$color-800
,
$color-900
)
{
// Header
header
.navbar-gitlab-new
{
background
:
linear-gradient
(
to
right
,
$color-900
,
$color-800
);
.navbar-collapse
{
color
:
$color-200
;
}
.container-fluid
{
.navbar-toggle
{
border-left
:
1px
solid
lighten
(
$color-700
,
10%
);
}
}
.navbar-sub-nav
,
.navbar-nav
{
>
li
{
>
a
:hover
,
>
a
:focus
{
background-color
:
rgba
(
$color-200
,
.2
);
}
&
.active
>
a
,
&
.dropdown.open
>
a
{
color
:
$color-900
;
background-color
:
$white-light
;
svg
{
fill
:
currentColor
;
}
}
&
.line-separator
{
border-left
:
1px
solid
rgba
(
$color-200
,
.2
);
}
}
}
.navbar-sub-nav
{
color
:
$color-200
;
}
.nav
{
>
li
{
color
:
$color-200
;
>
a
{
svg
{
fill
:
$color-200
;
}
&
.header-user-dropdown-toggle
{
.header-user-avatar
{
border-color
:
$color-200
;
}
}
&
:hover
,
&
:focus
{
@media
(
min-width
:
$screen-sm-min
)
{
background-color
:
rgba
(
$color-200
,
.2
);
}
svg
{
fill
:
currentColor
;
}
}
}
&
.active
>
a
,
&
.dropdown.open
>
a
{
color
:
$color-900
;
&
:hover
{
svg
{
fill
:
$color-900
;
}
}
}
.impersonated-user
,
.impersonated-user
:hover
{
svg
{
fill
:
$color-900
;
}
}
}
}
}
.title
{
>
a
{
&
:hover
,
&
:focus
{
background-color
:
rgba
(
$color-200
,
.2
);
}
}
}
.search
{
form
{
background-color
:
rgba
(
$color-200
,
.2
);
&
:hover
{
background-color
:
rgba
(
$color-200
,
.3
);
}
}
.location-badge
{
color
:
$color-100
;
background-color
:
rgba
(
$color-200
,
.1
);
border-right
:
1px
solid
$color-800
;
}
.
search-input
:
:
placeholder
{
color
:
rgba
(
$color-200
,
.8
);
}
.search-input-wrap
{
.search-icon
,
.clear-icon
{
color
:
rgba
(
$color-200
,
.8
);
}
}
&
.search-active
{
form
{
background-color
:
$white-light
;
}
.location-badge
{
color
:
$gl-text-color
;
}
.search-input-wrap
{
.search-icon
{
color
:
rgba
(
$color-200
,
.8
);
}
}
}
}
.btn-sign-in
{
background-color
:
$color-100
;
color
:
$color-900
;
}
// Sidebar
.nav-sidebar
li
.active
{
box-shadow
:
inset
4px
0
0
$color-700
;
...
...
@@ -22,33 +164,18 @@
fill
:
$color-900
;
}
}
}
$dark-50
:
#fafafa
;
$dark-100
:
#f2f2f2
;
$dark-200
:
#dfdfdf
;
$dark-300
:
#cccccc
;
$dark-400
:
#bababa
;
$dark-500
:
#a7a7a7
;
$dark-600
:
#949494
;
$dark-700
:
#707070
;
$dark-800
:
#4f4f4f
;
$dark-900
:
#2e2e2e
;
$dark-950
:
#1f1f1f
;
$indigo-200
:
#d1d1f0
;
$indigo-500
:
#6666c4
;
$indigo-700
:
#4b4ba3
;
$indigo-800
:
#393982
;
$indigo-900
:
#292961
;
body
{
&
.ui_indigo
{
@include
gitlab-theme
(
$indigo-200
,
$indigo-500
,
$indigo-700
,
$indigo-800
,
$indigo-900
);
@include
gitlab-theme
(
$indigo-
100
,
$indigo-
200
,
$indigo-500
,
$indigo-700
,
$indigo-800
,
$indigo-900
);
}
&
.ui_dark
{
@include
gitlab-theme
(
$dark-200
,
$dark-500
,
$dark-700
,
$dark-800
,
$dark-900
);
@include
gitlab-theme
(
$dark-
100
,
$dark-
200
,
$dark-500
,
$dark-700
,
$dark-800
,
$dark-900
);
}
}
app/assets/stylesheets/framework/header.scss
View file @
4ccdecb1
...
...
@@ -111,7 +111,6 @@ header {
svg
{
height
:
16px
;
width
:
23px
;
fill
:
currentColor
;
}
}
...
...
app/assets/stylesheets/framework/variables.scss
View file @
4ccdecb1
...
...
@@ -86,6 +86,18 @@ $indigo-800: #393982;
$indigo-900
:
#292961
;
$indigo-950
:
#1a1a40
;
$dark-50
:
#fafafa
;
$dark-100
:
#f2f2f2
;
$dark-200
:
#dfdfdf
;
$dark-300
:
#cccccc
;
$dark-400
:
#bababa
;
$dark-500
:
#a7a7a7
;
$dark-600
:
#949494
;
$dark-700
:
#707070
;
$dark-800
:
#4f4f4f
;
$dark-900
:
#2e2e2e
;
$dark-950
:
#1f1f1f
;
$black
:
#000
;
$black-transparent
:
rgba
(
0
,
0
,
0
,
0
.3
);
$almost-black
:
#242424
;
...
...
app/assets/stylesheets/new_nav.scss
View file @
4ccdecb1
...
...
@@ -9,7 +9,6 @@
header
.navbar-gitlab-new
{
color
:
$white-light
;
background
:
linear-gradient
(
to
right
,
$indigo-900
,
$indigo-800
);
border-bottom
:
0
;
min-height
:
$new-navbar-height
;
...
...
@@ -65,11 +64,6 @@ header.navbar-gitlab-new {
fill
:
$white-light
;
}
}
&
:hover
,
&
:focus
{
background-color
:
rgba
(
$indigo-200
,
.2
);
}
}
}
...
...
@@ -106,7 +100,6 @@ header.navbar-gitlab-new {
.navbar-collapse
{
padding-left
:
0
;
color
:
$indigo-200
;
box-shadow
:
0
;
@media
(
max-width
:
$screen-xs-max
)
{
...
...
@@ -132,7 +125,6 @@ header.navbar-gitlab-new {
font-size
:
14px
;
text-align
:
center
;
color
:
currentColor
;
border-left
:
1px
solid
lighten
(
$indigo-700
,
10%
);
&
:hover
,
&
:focus
,
...
...
@@ -167,42 +159,27 @@ header.navbar-gitlab-new {
will-change
:
color
;
margin
:
4px
2px
;
padding
:
6px
8px
;
color
:
$indigo-200
;
height
:
32px
;
@media
(
max-width
:
$screen-xs-max
)
{
padding
:
0
;
}
svg
{
fill
:
$indigo-200
;
}
&
.header-user-dropdown-toggle
{
margin-left
:
2px
;
.header-user-avatar
{
border-color
:
$indigo-200
;
margin-right
:
0
;
}
}
}
.header-new-dropdown-toggle
{
margin-right
:
0
;
}
>
a
:hover
,
>
a
:focus
{
&
:hover
,
&
:focus
{
text-decoration
:
none
;
outline
:
0
;
opacity
:
1
;
color
:
$white-light
;
@media
(
min-width
:
$screen-sm-min
)
{
background-color
:
rgba
(
$indigo-200
,
.2
);
}
svg
{
fill
:
currentColor
;
}
...
...
@@ -213,6 +190,11 @@ header.navbar-gitlab-new {
}
}
}
}
.header-new-dropdown-toggle
{
margin-right
:
0
;
}
.impersonated-user
,
.impersonated-user
:hover
{
...
...
@@ -220,10 +202,6 @@ header.navbar-gitlab-new {
background-color
:
$white-light
;
border-top-right-radius
:
0
;
border-bottom-right-radius
:
0
;
svg
{
fill
:
$indigo-900
;
}
}
.impersonation-btn
,
...
...
@@ -241,7 +219,6 @@ header.navbar-gitlab-new {
&
.active
>
a
,
&
.dropdown.open
>
a
{
color
:
$indigo-900
;
background-color
:
$white-light
;
svg
{
...
...
@@ -273,17 +250,6 @@ header.navbar-gitlab-new {
text-decoration
:
none
;
outline
:
0
;
color
:
$white-light
;
background-color
:
rgba
(
$indigo-200
,
.2
);
svg
{
fill
:
currentColor
;
}
}
&
.active
>
a
,
&
.dropdown.open
>
a
{
color
:
$indigo-900
;
background-color
:
$white-light
;
svg
{
fill
:
currentColor
;
...
...
@@ -308,7 +274,6 @@ header.navbar-gitlab-new {
}
&
.line-separator
{
border-left
:
1px
solid
rgba
(
$indigo-200
,
.2
);
margin
:
8px
;
}
}
...
...
@@ -338,17 +303,14 @@ header.navbar-gitlab-new {
height
:
32px
;
border
:
0
;
border-radius
:
$border-radius-default
;
background-color
:
rgba
(
$indigo-200
,
.2
);
transition
:
border-color
ease-in-out
0
.15s
,
background-color
ease-in-out
0
.15s
;
&
:hover
{
background-color
:
rgba
(
$indigo-200
,
.3
);
box-shadow
:
none
;
}
}
&
.search-active
form
{
background-color
:
$white-light
;
box-shadow
:
none
;
.search-input
{
...
...
@@ -376,43 +338,26 @@ header.navbar-gitlab-new {
}
.
search-input
:
:
placeholder
{
color
:
rgba
(
$indigo-200
,
.8
);
transition
:
color
ease-in-out
0
.15s
;
}
.location-badge
{
font-size
:
12px
;
color
:
$indigo-100
;
background-color
:
rgba
(
$indigo-200
,
.1
);
will-change
:
color
;
margin
:
-4px
4px
-4px
-4px
;
line-height
:
25px
;
padding
:
4px
8px
;
border-radius
:
2px
0
0
2px
;
border-right
:
1px
solid
$indigo-800
;
height
:
32px
;
transition
:
border-color
ease-in-out
0
.15s
;
}
.search-input-wrap
{
.search-icon
,
.clear-icon
{
color
:
rgba
(
$indigo-200
,
.8
);
}
}
&
.search-active
{
.location-badge
{
color
:
$gl-text-color
;
background-color
:
$nav-badge-bg
;
border-color
:
$border-color
;
}
.search-input-wrap
{
.search-icon
{
color
:
rgba
(
$indigo-200
,
.8
);
}
.clear-icon
{
color
:
$white-light
;
}
...
...
@@ -526,8 +471,6 @@ header.navbar-gitlab-new {
.btn-sign-in
{
margin-top
:
3px
;
background-color
:
$indigo-100
;
color
:
$indigo-900
;
font-weight
:
$gl-font-weight-bold
;
&
:hover
{
...
...
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