2018-10-30 22:44:49 +08:00
|
|
|
.search-menu {
|
|
|
|
.search-input {
|
|
|
|
position: relative;
|
2019-02-26 22:48:02 +08:00
|
|
|
padding: 0.5em 3px;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-context .show-help {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.heading {
|
|
|
|
padding: 5px 0 5px 5px;
|
|
|
|
.filter {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"] {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: calc(100% - 6px);
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-context {
|
|
|
|
padding: 0 5px;
|
|
|
|
|
|
|
|
label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-context + .results {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.results {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
.list {
|
2019-03-04 17:30:09 +08:00
|
|
|
min-width: 100px;
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.item {
|
|
|
|
.blurb {
|
|
|
|
// https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
-ms-word-break: break-all;
|
|
|
|
word-break: break-all;
|
|
|
|
word-break: break-word;
|
|
|
|
-ms-hyphens: auto;
|
|
|
|
-moz-hyphens: auto;
|
|
|
|
-webkit-hyphens: auto;
|
|
|
|
hyphens: auto;
|
2019-06-28 17:14:38 +08:00
|
|
|
margin-top: 0.25em;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-02 17:26:43 +08:00
|
|
|
.search-result-topic {
|
|
|
|
.second-line {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.discourse-tags {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
display: contents;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.main-results {
|
|
|
|
display: flex;
|
2018-11-06 23:00:53 +08:00
|
|
|
flex: 1 1 auto;
|
2018-12-07 08:22:04 +08:00
|
|
|
.topic-statuses {
|
|
|
|
color: $primary-medium;
|
|
|
|
}
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-results + .secondary-results {
|
|
|
|
border-left: 1px solid $primary-low;
|
|
|
|
margin-left: 1em;
|
|
|
|
padding-left: 1em;
|
|
|
|
max-width: 33%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.secondary-results {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-11-06 23:00:53 +08:00
|
|
|
flex: 1 1 auto;
|
2018-10-30 22:44:49 +08:00
|
|
|
|
2019-03-08 16:23:44 +08:00
|
|
|
.separator {
|
2018-10-30 22:44:49 +08:00
|
|
|
margin-bottom: 1em;
|
2019-03-08 16:23:44 +08:00
|
|
|
margin-top: 1em;
|
|
|
|
height: 1px;
|
|
|
|
background: $primary-low;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-tag {
|
2019-03-08 16:23:44 +08:00
|
|
|
.discourse-tag {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
|
|
|
}
|
2018-10-30 22:44:49 +08:00
|
|
|
|
2019-03-08 16:23:44 +08:00
|
|
|
.search-result-category {
|
|
|
|
.widget-link {
|
|
|
|
margin-bottom: 0;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-04 17:30:09 +08:00
|
|
|
.search-result-group {
|
|
|
|
.search-link {
|
|
|
|
color: $primary-high;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-08 16:23:44 +08:00
|
|
|
.group-result {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.d-icon,
|
|
|
|
.avatar-flair {
|
|
|
|
min-width: 25px;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-03-04 17:30:09 +08:00
|
|
|
|
2019-03-08 16:23:44 +08:00
|
|
|
.avatar-flair-image {
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
min-height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.group-names {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
|
|
|
line-height: $line-height-medium;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.name,
|
|
|
|
.slug {
|
|
|
|
color: $primary-high;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.name,
|
|
|
|
.slug {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slug {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
color: $primary-high;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-category,
|
|
|
|
.search-result-user,
|
|
|
|
.search-result-group,
|
|
|
|
.search-result-tag {
|
|
|
|
.list {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.item {
|
|
|
|
.widget-link.search-link {
|
|
|
|
flex: 1;
|
|
|
|
font-size: $font-0;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2019-03-04 17:30:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.search-result-user {
|
|
|
|
.user-result {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
display: block;
|
|
|
|
min-width: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-titles {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: auto;
|
2018-11-06 23:00:53 +08:00
|
|
|
line-height: $line-height-medium;
|
2018-10-30 22:44:49 +08:00
|
|
|
|
|
|
|
.username,
|
|
|
|
.name {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.username {
|
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
2019-03-08 16:23:44 +08:00
|
|
|
font-size: $font-down-1;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
2019-03-08 16:23:44 +08:00
|
|
|
font-size: $font-0;
|
|
|
|
font-weight: 700;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show-more {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.searching {
|
|
|
|
position: absolute;
|
|
|
|
top: 1.15em;
|
|
|
|
right: 1em;
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-results {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filter {
|
|
|
|
padding: 0;
|
|
|
|
&:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-link {
|
2018-11-06 23:00:53 +08:00
|
|
|
margin-bottom: 0.25em;
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.badge-category-parent {
|
|
|
|
line-height: $line-height-small;
|
|
|
|
}
|
|
|
|
|
2018-11-06 23:00:53 +08:00
|
|
|
.topic {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: $line-height-medium;
|
|
|
|
}
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.topic-title {
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|