2018-10-30 22:44:49 +08:00
|
|
|
.search-menu {
|
2021-06-03 12:14:24 +08:00
|
|
|
--search-padding: 0.5em;
|
2020-08-11 04:17:15 +08:00
|
|
|
.menu-panel .panel-body-contents {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.search-input {
|
|
|
|
position: relative;
|
2021-06-03 12:14:24 +08:00
|
|
|
padding: var(--search-padding);
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
2021-06-03 12:14:24 +08:00
|
|
|
.search-context {
|
|
|
|
label {
|
|
|
|
padding: 0.25em var(--search-padding);
|
|
|
|
}
|
|
|
|
.show-help {
|
|
|
|
margin-left: auto;
|
|
|
|
line-height: var(--line-height-medium);
|
|
|
|
}
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.heading {
|
|
|
|
padding: 5px 0 5px 5px;
|
|
|
|
.filter {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"] {
|
|
|
|
box-sizing: border-box;
|
2021-06-03 12:14:24 +08:00
|
|
|
width: 100%;
|
|
|
|
min-height: 32px;
|
|
|
|
margin-bottom: 0;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-context {
|
2021-06-03 12:14:24 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-10-30 22:44:49 +08:00
|
|
|
|
|
|
|
label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-context + .results {
|
2021-06-03 12:14:24 +08:00
|
|
|
margin-top: 1em;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
2021-06-08 03:26:22 +08:00
|
|
|
.first-line {
|
|
|
|
display: block;
|
|
|
|
line-height: $line-height-medium;
|
|
|
|
}
|
|
|
|
|
2019-07-02 17:26:43 +08:00
|
|
|
.second-line {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.discourse-tags {
|
2021-02-12 02:41:43 +08:00
|
|
|
.discourse-tag {
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
2019-07-02 17:26:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-03 12:14:24 +08:00
|
|
|
.search-result-post {
|
|
|
|
.blurb {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-12-07 08:22:04 +08:00
|
|
|
}
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-results + .secondary-results {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-left: 1px solid var(--primary-low);
|
2018-10-30 22:44:49 +08:00
|
|
|
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 {
|
2021-06-03 12:14:24 +08:00
|
|
|
margin: 1em 0.25em;
|
2019-03-08 16:23:44 +08:00
|
|
|
height: 1px;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-03-04 17:30:09 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-03-04 17:30:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-03-08 16:23:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.name,
|
|
|
|
.slug {
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2019-03-08 16:23:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slug {
|
|
|
|
font-size: $font-down-1;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-03-08 16:23:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2021-06-03 12:14:24 +08:00
|
|
|
padding: 0.25em;
|
2019-03-08 16:23:44 +08:00
|
|
|
}
|
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 {
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.username {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high-or-secondary-low);
|
2019-03-08 16:23:44 +08:00
|
|
|
font-size: $font-down-1;
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
2021-04-27 13:52:45 +08:00
|
|
|
.custom-field {
|
|
|
|
color: var(--primary-high-or-secondary-low);
|
|
|
|
font-size: $font-down-2;
|
|
|
|
}
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.name {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high-or-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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-16 23:08:20 +08:00
|
|
|
|
|
|
|
.search-menu-assistant {
|
|
|
|
min-width: 100%;
|
|
|
|
margin-top: -1em;
|
|
|
|
|
|
|
|
.search-menu-assistant-item {
|
|
|
|
> span {
|
|
|
|
vertical-align: baseline;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-item-user .avatar,
|
|
|
|
.search-item-prefix {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2021-08-19 02:14:10 +08:00
|
|
|
|
|
|
|
.search-item-tag {
|
|
|
|
color: var(--primary-high);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-icon-tag {
|
|
|
|
// match category badge styling
|
|
|
|
// tag/category suggestions can be displayed simultaneously
|
|
|
|
font-size: var(--font-down-2);
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
2021-07-16 23:08:20 +08:00
|
|
|
}
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.searching {
|
|
|
|
position: absolute;
|
2021-06-03 12:14:24 +08:00
|
|
|
top: 1.1em;
|
2018-10-30 22:44:49 +08:00
|
|
|
right: 1em;
|
|
|
|
|
|
|
|
.spinner {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
border-width: 2px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-results {
|
2021-06-03 12:14:24 +08:00
|
|
|
padding: var(--search-padding);
|
2018-10-30 22:44:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-link {
|
2021-06-03 12:14:24 +08:00
|
|
|
padding: var(--search-padding);
|
2018-11-06 23:00:53 +08:00
|
|
|
|
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 {
|
2021-06-08 03:26:22 +08:00
|
|
|
display: block;
|
2018-11-06 23:00:53 +08:00
|
|
|
}
|
|
|
|
|
2018-10-30 22:44:49 +08:00
|
|
|
.topic-title {
|
2021-06-04 10:54:22 +08:00
|
|
|
color: var(--tertiary);
|
2020-04-01 08:55:11 +08:00
|
|
|
overflow-wrap: anywhere;
|
2020-04-01 09:57:09 +08:00
|
|
|
@supports not (overflow-wrap: anywhere) {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
2018-10-30 22:44:49 +08:00
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|