2015-04-26 12:48:37 +05:30
|
|
|
.search-results {
|
|
|
|
.search-result-row {
|
2016-06-02 11:05:42 +05:30
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
padding-bottom: $gl-padding;
|
|
|
|
margin-bottom: $gl-padding;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.blob-result {
|
|
|
|
margin: 5px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search form:hover,
|
|
|
|
.file-finder-input:hover,
|
|
|
|
.issuable-search-form:hover,
|
|
|
|
.search-text-input:hover,
|
|
|
|
.form-control:hover {
|
|
|
|
border-color: lighten($dropdown-input-focus-border, 20%);
|
|
|
|
box-shadow: 0 0 4px lighten($search-input-focus-shadow-color, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:hover {
|
|
|
|
box-shadow: 0 0 2px 2px lighten($search-input-focus-shadow-color, 20%), 0 0 0 1px lighten($search-input-focus-shadow-color, 20%);
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
line-height: 24px;
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: lighten($dropdown-input-focus-border, 20%);
|
|
|
|
box-shadow: 0 0 4px lighten($search-input-focus-shadow-color, 20%);
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.location-text {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input {
|
|
|
|
border: none;
|
|
|
|
font-size: 14px;
|
2017-08-17 22:00:37 +05:30
|
|
|
padding: 0 20px 0 0;
|
2016-06-02 11:05:42 +05:30
|
|
|
margin-left: 5px;
|
|
|
|
line-height: 25px;
|
|
|
|
width: 98%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.location-badge {
|
|
|
|
line-height: 25px;
|
|
|
|
padding: 0 5px;
|
|
|
|
border-radius: $border-radius-default;
|
|
|
|
font-size: 14px;
|
|
|
|
font-style: normal;
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $note-disabled-comment-color;
|
2016-06-02 11:05:42 +05:30
|
|
|
display: inline-block;
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $gray-normal;
|
2016-06-02 11:05:42 +05:30
|
|
|
vertical-align: top;
|
2016-06-16 23:09:34 +05:30
|
|
|
cursor: default;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.search-input-container {
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.search-input-wrap {
|
2016-06-02 11:05:42 +05:30
|
|
|
// Fallback if flexbox is not supported
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input-wrap {
|
|
|
|
width: 100%;
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.search-icon,
|
|
|
|
.clear-icon {
|
2016-06-02 11:05:42 +05:30
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 0;
|
|
|
|
color: $location-icon-color;
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&::before {
|
2016-06-02 11:05:42 +05:30
|
|
|
font-family: FontAwesome;
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-icon {
|
|
|
|
@extend .fa-search;
|
2016-09-29 09:46:39 +05:30
|
|
|
transition: color 0.15s;
|
2016-06-02 11:05:42 +05:30
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clear-icon {
|
|
|
|
@extend .fa-times;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Rewrite position. Dropdown menu should be relative to .search-input-container
|
|
|
|
.dropdown {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-header {
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Custom dropdown positioning
|
|
|
|
.dropdown-menu {
|
2017-08-17 22:00:37 +05:30
|
|
|
transition-property: opacity, transform;
|
|
|
|
transition-duration: 250ms, 250ms;
|
|
|
|
transition-delay: 0ms, 25ms;
|
|
|
|
transition-timing-function: $dropdown-animation-timing;
|
|
|
|
transform: translateY(0);
|
|
|
|
opacity: 0;
|
|
|
|
display: block;
|
2016-06-02 11:05:42 +05:30
|
|
|
left: -5px;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding: 10px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-content {
|
|
|
|
max-height: 350px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.search-active {
|
|
|
|
form {
|
|
|
|
@extend .form-control:focus;
|
|
|
|
border-color: $dropdown-input-focus-border;
|
|
|
|
box-shadow: 0 0 4px $search-input-focus-shadow-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.location-badge {
|
2016-09-29 09:46:39 +05:30
|
|
|
transition: all 0.15s;
|
2016-06-02 11:05:42 +05:30
|
|
|
background-color: $location-badge-active-bg;
|
|
|
|
color: $white-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-input-wrap {
|
|
|
|
i {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $layout-link-gray;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
}
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
transition-duration: 100ms, 75ms;
|
|
|
|
transition-delay: 75ms, 100ms;
|
|
|
|
transform: translateY(13px);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.has-value {
|
|
|
|
.search-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clear-icon {
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-location-badge {
|
|
|
|
.search-input-wrap {
|
|
|
|
width: 68%;
|
|
|
|
}
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
}
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
.search-holder {
|
2016-06-02 11:05:42 +05:30
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.search-field-holder,
|
|
|
|
.project-filter-form {
|
2016-06-02 11:05:42 +05:30
|
|
|
-webkit-flex: 1 0 auto;
|
|
|
|
flex: 1 0 auto;
|
|
|
|
position: relative;
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.search-icon {
|
|
|
|
position: absolute;
|
|
|
|
left: 10px;
|
|
|
|
top: 10px;
|
|
|
|
color: $gray-darkest;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.search-text-input,
|
|
|
|
.project-filter-form-field {
|
2016-06-02 11:05:42 +05:30
|
|
|
padding-left: $gl-padding + 15px;
|
|
|
|
padding-right: $gl-padding + 15px;
|
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.btn-search,
|
|
|
|
.btn-new {
|
2016-06-02 11:05:42 +05:30
|
|
|
width: 100%;
|
|
|
|
margin-top: 5px;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
width: auto;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
margin-left: 5px;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-menu-toggle {
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 5px;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
2016-08-24 12:49:21 +05:30
|
|
|
width: 180px;
|
2016-06-02 11:05:42 +05:30
|
|
|
margin-top: 0;
|
|
|
|
}
|
2015-09-25 12:07:36 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.search-clear {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 10px;
|
|
|
|
padding: 0;
|
|
|
|
color: $gray-darkest;
|
|
|
|
line-height: 0;
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: $gl-link-color;
|
|
|
|
}
|
|
|
|
}
|