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
739422c9
Commit
739422c9
authored
Sep 21, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine all search releated CSS
parent
2414d941
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
110 deletions
+47
-110
app/assets/stylesheets/framework/new-nav.scss
app/assets/stylesheets/framework/new-nav.scss
+2
-74
app/assets/stylesheets/pages/search.scss
app/assets/stylesheets/pages/search.scss
+45
-36
No files found.
app/assets/stylesheets/framework/new-nav.scss
View file @
739422c9
...
@@ -295,75 +295,6 @@ header.navbar-gitlab-new {
...
@@ -295,75 +295,6 @@ header.navbar-gitlab-new {
margin-top
:
4px
;
margin-top
:
4px
;
}
}
.search
{
margin
:
4px
8px
0
;
form
{
height
:
32px
;
border
:
0
;
border-radius
:
$border-radius-default
;
transition
:
border-color
ease-in-out
0
.15s
,
background-color
ease-in-out
0
.15s
;
&
:hover
{
box-shadow
:
none
;
}
}
&
.search-active
form
{
box-shadow
:
none
;
.search-input
{
color
:
$gl-text-color
;
transition
:
color
ease-in-out
0
.15s
;
}
.
search-input
:
:
placeholder
{
color
:
$gl-text-color-tertiary
;
}
.search-input-wrap
{
.search-icon
,
.clear-icon
{
color
:
$gl-text-color-tertiary
;
transition
:
color
ease-in-out
0
.15s
;
}
}
}
.search-input
{
color
:
$white-light
;
background
:
none
;
transition
:
color
ease-in-out
0
.15s
;
}
.
search-input
:
:
placeholder
{
transition
:
color
ease-in-out
0
.15s
;
}
.location-badge
{
font-size
:
12px
;
margin
:
-4px
4px
-4px
-4px
;
line-height
:
25px
;
padding
:
4px
8px
;
border-radius
:
2px
0
0
2px
;
height
:
32px
;
transition
:
border-color
ease-in-out
0
.15s
;
}
&
.search-active
{
.location-badge
{
background-color
:
$nav-badge-bg
;
border-color
:
$border-color
;
}
.search-input-wrap
{
.clear-icon
{
color
:
$white-light
;
}
}
}
}
.breadcrumbs
{
.breadcrumbs
{
display
:
flex
;
display
:
flex
;
min-height
:
48px
;
min-height
:
48px
;
...
@@ -375,6 +306,8 @@ header.navbar-gitlab-new {
...
@@ -375,6 +306,8 @@ header.navbar-gitlab-new {
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
position
:
relative
;
position
:
relative
;
padding-top
:
$gl-padding
;
padding-bottom
:
$gl-padding
;
align-items
:
center
;
align-items
:
center
;
border-bottom
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
}
}
...
@@ -386,11 +319,6 @@ header.navbar-gitlab-new {
...
@@ -386,11 +319,6 @@ header.navbar-gitlab-new {
align-self
:
center
;
align-self
:
center
;
color
:
$gl-text-color-secondary
;
color
:
$gl-text-color-secondary
;
@media
(
max-width
:
$screen-xs-max
)
{
padding-left
:
17px
;
border-left
:
1px
solid
$gl-text-color-quaternary
;
}
.avatar-tile
{
.avatar-tile
{
margin-right
:
4px
;
margin-right
:
4px
;
border
:
1px
solid
$border-color
;
border
:
1px
solid
$border-color
;
...
...
app/assets/stylesheets/pages/search.scss
View file @
739422c9
...
@@ -28,9 +28,7 @@ input[type="checkbox"]:hover {
...
@@ -28,9 +28,7 @@ input[type="checkbox"]:hover {
}
}
.search
{
.search
{
margin-right
:
10px
;
margin
:
4px
8px
0
;
margin-left
:
10px
;
margin-top
:
(
$header-height
-
35
)
/
2
;
form
{
form
{
@extend
.form-control
;
@extend
.form-control
;
...
@@ -38,15 +36,24 @@ input[type="checkbox"]:hover {
...
@@ -38,15 +36,24 @@ input[type="checkbox"]:hover {
padding
:
4px
;
padding
:
4px
;
width
:
$search-input-width
;
width
:
$search-input-width
;
line-height
:
24px
;
line-height
:
24px
;
height
:
32px
;
border
:
0
;
border-radius
:
$border-radius-default
;
transition
:
border-color
ease-in-out
0
.15s
,
background-color
ease-in-out
0
.15s
;
&
:hover
{
&
:hover
{
border-color
:
lighten
(
$dropdown-input-focus-border
,
20%
);
box-shadow
:
none
;
box-shadow
:
0
0
4px
lighten
(
$search-input-focus-shadow-color
,
20%
);
}
}
}
}
.location-text
{
.location-badge
{
font-style
:
normal
;
font-size
:
12px
;
margin
:
-4px
4px
-4px
-4px
;
line-height
:
25px
;
padding
:
4px
8px
;
border-radius
:
2px
0
0
2px
;
height
:
32px
;
transition
:
border-color
ease-in-out
0
.15s
;
}
}
.search-input
{
.search-input
{
...
@@ -56,41 +63,26 @@ input[type="checkbox"]:hover {
...
@@ -56,41 +63,26 @@ input[type="checkbox"]:hover {
margin-left
:
5px
;
margin-left
:
5px
;
line-height
:
25px
;
line-height
:
25px
;
width
:
98%
;
width
:
98%
;
color
:
$white-light
;
background
:
none
;
transition
:
color
ease-in-out
0
.15s
;
}
}
.location-badge
{
.
search-input
:
:
placeholder
{
line-height
:
25px
;
transition
:
color
ease-in-out
0
.15s
;
padding
:
0
5px
;
border-radius
:
$border-radius-default
;
font-size
:
14px
;
font-style
:
normal
;
color
:
$note-disabled-comment-color
;
display
:
inline-block
;
background-color
:
$gray-normal
;
vertical-align
:
top
;
cursor
:
default
;
}
}
.search-input-container
{
.search-input-container
{
display
:
-
webkit-flex
;
display
:
flex
;
display
:
flex
;
position
:
relative
;
position
:
relative
;
}
}
.search-input-wrap
{
.search-input-wrap
{
// Fallback if flexbox is not supported
display
:
inline-block
;
}
.search-input-wrap
{
width
:
100%
;
.search-icon
,
.search-icon
,
.clear-icon
{
.clear-icon
{
position
:
absolute
;
position
:
absolute
;
right
:
5px
;
right
:
5px
;
top
:
0
;
top
:
0
;
color
:
$location-icon-color
;
&
:
:
before
{
&
:
:
before
{
font-family
:
FontAwesome
;
font-family
:
FontAwesome
;
...
@@ -148,21 +140,32 @@ input[type="checkbox"]:hover {
...
@@ -148,21 +140,32 @@ input[type="checkbox"]:hover {
form
{
form
{
@extend
.form-control
:focus
;
@extend
.form-control
:focus
;
border-color
:
$dropdown-input-focus-border
;
border-color
:
$dropdown-input-focus-border
;
box-shadow
:
0
0
4px
$search-input-focus-shadow-color
;
box-shadow
:
none
;
.search-input-wrap
{
.search-icon
,
.clear-icon
{
color
:
$gl-text-color-tertiary
;
transition
:
color
ease-in-out
0
.15s
;
}
}
}
.location-badge
{
.search-input
{
transition
:
all
0
.15s
;
color
:
$gl-text-color
;
background-color
:
$location-badge-active-bg
;
transition
:
color
ease-in-out
0
.15s
;
color
:
$white-light
;
}
}
.search-input-wrap
{
.
search-input
:
:
placeholder
{
i
{
color
:
$gl-text-color-tertiary
;
color
:
$layout-link-gray
;
}
}
}
}
.location-badge
{
transition
:
all
0
.15s
;
background-color
:
$nav-badge-bg
;
border-color
:
$border-color
;
}
.dropdown-menu
{
.dropdown-menu
{
transition-duration
:
100ms
,
75ms
;
transition-duration
:
100ms
,
75ms
;
transition-delay
:
75ms
,
100ms
;
transition-delay
:
75ms
,
100ms
;
...
@@ -187,6 +190,12 @@ input[type="checkbox"]:hover {
...
@@ -187,6 +190,12 @@ input[type="checkbox"]:hover {
width
:
68%
;
width
:
68%
;
}
}
}
}
}
.search
{
}
}
.search-holder
{
.search-holder
{
...
...
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