gitlab-org--gitlab-foss/app/assets/stylesheets/pages/search.scss

166 lines
2.8 KiB
SCSS
Raw Normal View History

.search-results {
.search-result-row {
border-bottom: 1px solid $border-color;
padding-bottom: $gl-padding;
margin-bottom: $gl-padding;
&:last-child {
border-bottom: none;
}
}
}
.search-holder {
max-width: 600px;
margin: 0 auto;
margin-bottom: 20px;
input {
border-color: #bbb;
font-weight: bold;
}
}
.search {
margin-right: 10px;
margin-left: 10px;
margin-top: ($header-height - 35) / 2;
form {
@extend .form-control;
margin: 0;
padding: 4px;
width: $search-input-width;
2016-03-26 18:51:25 -04:00
line-height: 24px;
}
.location-text {
font-style: normal;
}
.search-input {
border: none;
font-size: 14px;
outline: none;
padding: 0;
2016-03-09 15:52:15 -05:00
margin-left: 5px;
line-height: 25px;
width: 98%;
}
.location-badge {
line-height: 25px;
padding: 0 5px;
2016-03-21 14:29:31 -04:00
border-radius: $border-radius-default;
font-size: 14px;
font-style: normal;
2016-03-21 14:29:31 -04:00
color: $location-badge-color;
display: inline-block;
2016-03-21 14:29:31 -04:00
background-color: $location-badge-bg;
vertical-align: top;
}
.search-input-container {
2016-03-21 14:29:31 -04:00
display: -webkit-flex;
display: flex;
2016-03-26 17:52:16 -04:00
position: relative;
}
.search-location-badge, .search-input-wrap {
// Fallback if flexbox is not supported
display: inline-block;
}
.search-input-wrap {
width: 100%;
2016-03-09 15:52:15 -05:00
2016-03-21 17:00:53 -04:00
.search-icon, .clear-icon {
2016-03-09 15:52:15 -05:00
position: absolute;
right: 5px;
top: 0;
2016-03-21 17:00:53 -04:00
color: $location-icon-color;
2016-03-09 15:52:15 -05:00
&:before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
}
}
2016-03-21 17:00:53 -04:00
.search-icon {
@extend .fa-search;
@include transition(color .15s);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.clear-icon {
@extend .fa-times;
display: none;
}
2016-03-26 17:52:16 -04:00
// Rewrite position. Dropdown menu should be relative to .search-input-container
.dropdown {
position: static;
}
.dropdown-header {
text-transform: uppercase;
font-size: 11px;
2016-03-09 15:52:15 -05:00
}
2016-03-24 14:44:00 -04:00
// Custom dropdown positioning
.dropdown-menu {
top: 30px;
left: -5px;
padding: 0;
ul {
padding: 10px 0;
}
}
.dropdown-content {
2016-03-28 13:06:47 -04:00
max-height: 350px;
2016-03-24 14:44:00 -04:00
}
}
2016-03-21 17:00:53 -04:00
&.search-active {
form {
@extend .form-control:focus;
border-color: $dropdown-input-focus-border;
box-shadow: 0 0 4px $search-input-focus-shadow-color;
2016-03-21 17:00:53 -04:00
}
.location-badge {
@include transition(all .15s);
background-color: $location-badge-active-bg;
2016-03-21 17:00:53 -04:00
color: $white-light;
}
.search-input-wrap {
i {
color: $location-icon-active-color;
2016-03-21 17:00:53 -04:00
}
}
}
2016-03-21 17:00:53 -04:00
&.has-value {
.search-icon {
display: none;
}
2016-03-21 17:00:53 -04:00
.clear-icon {
cursor: pointer;
display: block;
2016-03-21 17:00:53 -04:00
}
}
2016-03-24 13:55:50 -04:00
&.has-location-badge {
.search-input-wrap {
width: 78%;
}
}
}