2021-09-20 22:01:11 +08:00
|
|
|
@mixin search-page-spacing {
|
2022-02-11 02:32:21 +08:00
|
|
|
padding: 1rem 10%;
|
2021-10-18 21:36:30 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
@include breakpoint(medium) {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
}
|
2021-10-18 21:36:30 +08:00
|
|
|
|
2021-06-03 12:14:24 +08:00
|
|
|
.search-highlight {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2018-04-09 23:51:09 +08:00
|
|
|
.search-container {
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-header {
|
|
|
|
@include search-page-spacing();
|
|
|
|
background: var(--primary-very-low);
|
|
|
|
}
|
2019-07-02 09:21:52 +08:00
|
|
|
.warning {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--danger-medium);
|
2019-07-02 09:21:52 +08:00
|
|
|
padding: 5px 8px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--secondary);
|
2019-07-02 09:21:52 +08:00
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-page-heading {
|
|
|
|
font-size: var(--font-up-3);
|
|
|
|
|
|
|
|
// spans can be in different orders depending of locale
|
|
|
|
span + span {
|
|
|
|
margin-left: 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.term {
|
|
|
|
background: var(--tertiary-low);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-09 23:51:09 +08:00
|
|
|
.search-bar {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2021-01-28 05:17:08 +08:00
|
|
|
align-items: stretch;
|
2021-09-20 22:01:11 +08:00
|
|
|
background: var(--primary-very-low);
|
2018-04-09 23:51:09 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
input.search-query {
|
|
|
|
flex: 1 0 60%;
|
|
|
|
margin: 0 1em 0 0;
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.select-kit {
|
|
|
|
margin-right: 1em;
|
|
|
|
flex: 1 0 20%;
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
@include breakpoint(mobile-extra-large) {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
input.search-query,
|
|
|
|
.select-kit {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-advanced {
|
|
|
|
position: relative;
|
2018-04-09 23:51:09 +08:00
|
|
|
.search-actions,
|
|
|
|
.search-title,
|
|
|
|
.search-bar {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-results {
|
|
|
|
@include search-page-spacing();
|
|
|
|
}
|
|
|
|
|
2018-04-09 23:51:09 +08:00
|
|
|
.search-info {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2022-02-11 02:32:21 +08:00
|
|
|
padding: 1em 10%;
|
|
|
|
background-color: var(--secondary);
|
2020-08-04 10:57:10 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2022-02-11 02:32:21 +08:00
|
|
|
@include breakpoint(medium) {
|
|
|
|
padding: 0.5em 0;
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
&.bulk-select-visible {
|
|
|
|
@include sticky;
|
|
|
|
top: 60px;
|
|
|
|
z-index: 10;
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sort-by {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
button {
|
2022-02-11 02:32:21 +08:00
|
|
|
margin: 0 0.5em 0 0;
|
|
|
|
@include breakpoint(medium) {
|
|
|
|
margin: 0 0.5em 0.5em 0;
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
2021-04-06 11:11:43 +08:00
|
|
|
|
|
|
|
#bulk-select {
|
2021-09-20 22:01:11 +08:00
|
|
|
position: relative;
|
2021-04-06 11:11:43 +08:00
|
|
|
right: unset;
|
|
|
|
margin: 0;
|
2021-09-20 22:01:11 +08:00
|
|
|
padding: 0;
|
|
|
|
display: inline;
|
2021-04-06 11:11:43 +08:00
|
|
|
button {
|
2021-09-20 22:01:11 +08:00
|
|
|
margin-right: 0.5em;
|
2021-04-06 11:11:43 +08:00
|
|
|
}
|
|
|
|
}
|
2022-02-11 02:32:21 +08:00
|
|
|
|
|
|
|
.sort-by.inline-form label {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
#search-sort-by {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-notice .fps-invalid {
|
|
|
|
padding: 0.5em;
|
|
|
|
background-color: var(--danger-low);
|
|
|
|
border: 1px solid var(--danger-medium);
|
|
|
|
color: var(--danger);
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-context {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
2021-10-18 21:36:30 +08:00
|
|
|
.user-items {
|
|
|
|
display: grid;
|
|
|
|
gap: 2em 1em;
|
2022-05-10 09:48:01 +08:00
|
|
|
grid: auto-flow / repeat(4, minmax(0, 1fr));
|
2021-10-18 21:36:30 +08:00
|
|
|
|
|
|
|
@include breakpoint(medium) {
|
|
|
|
grid: auto-flow / repeat(3, 1fr);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
grid: auto-flow / 1fr 1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
grid: auto-flow / 1fr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-filters {
|
|
|
|
background: var(--primary-very-low);
|
2018-04-09 23:51:09 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
details.advanced-filters,
|
|
|
|
details.search-advanced-additional-options {
|
|
|
|
margin-top: 1em;
|
|
|
|
> summary {
|
|
|
|
color: var(--tertiary);
|
|
|
|
cursor: pointer;
|
2022-08-15 09:36:55 +08:00
|
|
|
padding-top: 0.25em;
|
|
|
|
padding-bottom: 0.25em;
|
|
|
|
&:focus-visible {
|
|
|
|
background-color: var(--tertiary-very-low);
|
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
}
|
|
|
|
&[open] > summary {
|
|
|
|
color: var(--primary);
|
|
|
|
margin-bottom: 1em;
|
2022-08-15 09:36:55 +08:00
|
|
|
&:focus-visible {
|
|
|
|
background-color: var(--tertiary-very-low);
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
details.search-advanced-additional-options {
|
|
|
|
> summary {
|
|
|
|
font-size: var(--font-down-1);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.combo-box:not(#postTime),
|
|
|
|
.control-group,
|
|
|
|
.multi-select {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 100%;
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-advanced-filters {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-very-low);
|
2021-09-20 22:01:11 +08:00
|
|
|
|
|
|
|
@include breakpoint(mobile-extra-large, min-width) {
|
|
|
|
.search-advanced-options {
|
|
|
|
column-count: 2;
|
|
|
|
column-gap: 2em;
|
|
|
|
.control-group {
|
|
|
|
break-inside: avoid;
|
|
|
|
}
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
|
|
|
|
@include breakpoint(medium, min-width) {
|
|
|
|
.search-advanced-options {
|
|
|
|
column-gap: 5em;
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
|
2018-07-13 04:38:51 +08:00
|
|
|
@include breakpoint(medium) {
|
2018-06-08 17:49:31 +08:00
|
|
|
.choices,
|
|
|
|
.select-kit.multi-select {
|
|
|
|
// overriding inline width from JS
|
2018-04-09 23:51:09 +08:00
|
|
|
width: 100% !important;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
.select-kit {
|
|
|
|
min-width: unset;
|
|
|
|
}
|
|
|
|
}
|
2020-09-28 18:36:48 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.control-group {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2020-09-29 00:04:16 +08:00
|
|
|
.count-group {
|
2021-09-20 22:01:11 +08:00
|
|
|
input[type="number"] {
|
|
|
|
width: 8em;
|
2020-09-28 18:36:48 +08:00
|
|
|
}
|
2021-09-20 22:01:11 +08:00
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-left: 0.25em;
|
|
|
|
margin-right: 0.25em;
|
2020-09-28 18:36:48 +08:00
|
|
|
}
|
|
|
|
}
|
2018-04-09 23:51:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-10 03:11:58 +08:00
|
|
|
.fps-invalid {
|
2021-09-20 22:01:11 +08:00
|
|
|
margin-top: 1em;
|
2016-08-10 03:11:58 +08:00
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2015-07-27 14:13:11 +08:00
|
|
|
.fps-result {
|
2018-04-09 23:51:09 +08:00
|
|
|
display: flex;
|
2022-02-11 02:32:21 +08:00
|
|
|
padding: 0 0.5em 0 0;
|
2021-09-20 22:01:11 +08:00
|
|
|
margin-bottom: 2em;
|
|
|
|
max-width: 100%;
|
2020-08-11 02:17:41 +08:00
|
|
|
word-break: break-word;
|
2021-09-20 22:01:11 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&.bulk-select-enabled {
|
|
|
|
padding-left: 3em;
|
|
|
|
}
|
2020-03-25 12:45:35 +08:00
|
|
|
|
2016-06-18 08:05:29 +08:00
|
|
|
.author {
|
2016-06-20 12:03:48 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2020-07-21 12:04:07 +08:00
|
|
|
padding-top: 0.15em;
|
|
|
|
padding-left: 0.15em;
|
|
|
|
margin-right: 1em;
|
2016-06-18 08:05:29 +08:00
|
|
|
}
|
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
.topic {
|
|
|
|
padding-bottom: 0.25em;
|
|
|
|
display: grid;
|
|
|
|
grid-template-areas:
|
|
|
|
"bulk-select title"
|
|
|
|
"meta meta";
|
|
|
|
grid-template-columns: auto 1fr;
|
2022-02-18 09:12:47 +08:00
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
.bulk-select {
|
2021-09-20 22:01:11 +08:00
|
|
|
position: absolute;
|
2022-02-11 02:32:21 +08:00
|
|
|
left: 0.5em;
|
|
|
|
top: 0.75em;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
background-color: var(--tertiary-low);
|
2022-02-18 09:12:47 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
input[type="checkbox"] {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-07-21 12:04:07 +08:00
|
|
|
}
|
2022-02-18 09:12:47 +08:00
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
.search-link {
|
2022-02-18 09:12:47 +08:00
|
|
|
align-items: baseline;
|
|
|
|
display: flex;
|
2020-07-21 12:04:07 +08:00
|
|
|
grid-area: title;
|
|
|
|
}
|
2022-02-18 09:12:47 +08:00
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
.search-category {
|
|
|
|
grid-area: meta;
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2015-09-18 15:16:10 +08:00
|
|
|
}
|
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
.search-category {
|
|
|
|
max-width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
margin-top: 0.25em;
|
|
|
|
.badge-wrapper {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2015-07-27 17:28:10 +08:00
|
|
|
}
|
|
|
|
|
2020-12-16 21:10:58 +08:00
|
|
|
.discourse-tags {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
display: inline-flex;
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
.discourse-tag.simple {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-21 12:04:07 +08:00
|
|
|
.blurb {
|
|
|
|
font-size: $font-0;
|
|
|
|
line-height: $line-height-large;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2020-07-21 12:04:07 +08:00
|
|
|
.date {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2020-07-21 12:04:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-highlight {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2020-07-21 12:04:07 +08:00
|
|
|
}
|
2015-07-27 14:13:11 +08:00
|
|
|
}
|
2020-07-21 12:04:07 +08:00
|
|
|
|
|
|
|
.like-count {
|
|
|
|
display: block;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2020-07-21 12:04:07 +08:00
|
|
|
margin-top: 0.25em;
|
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--love);
|
2020-07-21 12:04:07 +08:00
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
2015-07-27 14:13:11 +08:00
|
|
|
}
|
2020-07-21 12:04:07 +08:00
|
|
|
|
2022-02-24 03:24:26 +08:00
|
|
|
a.search-link.visited .topic-title {
|
2021-05-26 06:08:34 +08:00
|
|
|
color: var(--primary-medium);
|
2015-09-08 09:03:51 +08:00
|
|
|
}
|
2015-07-27 14:13:11 +08:00
|
|
|
.search-link {
|
2018-06-08 17:49:31 +08:00
|
|
|
.topic-title {
|
2021-05-27 08:36:21 +08:00
|
|
|
font-size: $font-up-1;
|
2018-12-07 08:22:04 +08:00
|
|
|
line-height: $line-height-medium;
|
2021-05-26 06:08:34 +08:00
|
|
|
color: var(--primary);
|
2015-07-27 14:13:11 +08:00
|
|
|
}
|
2015-09-08 09:03:51 +08:00
|
|
|
.topic-statuses {
|
|
|
|
display: inline-block;
|
2022-02-18 09:12:47 +08:00
|
|
|
flex-shrink: 0;
|
2018-12-07 08:22:04 +08:00
|
|
|
font-size: 1.3em;
|
2018-12-14 10:49:43 +08:00
|
|
|
line-height: $line-height-medium;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-12-07 08:22:04 +08:00
|
|
|
span {
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2015-09-08 09:03:51 +08:00
|
|
|
}
|
2015-07-27 14:13:11 +08:00
|
|
|
}
|
2020-12-08 23:05:46 +08:00
|
|
|
|
|
|
|
.discourse-tag.simple {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
2015-07-27 14:13:11 +08:00
|
|
|
}
|
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.no-results-suggestion,
|
|
|
|
.google-search-form {
|
|
|
|
margin-top: 1em;
|
2017-08-15 06:07:49 +08:00
|
|
|
}
|
2020-07-21 12:04:07 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
// temporary
|
2015-09-08 09:03:51 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.search-results {
|
|
|
|
.fps-user-item {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2021-10-18 21:36:30 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.avatar {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
min-width: 25px;
|
2022-05-10 09:48:01 +08:00
|
|
|
flex: 0 0 auto;
|
2021-09-20 22:01:11 +08:00
|
|
|
}
|
|
|
|
.user-titles {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 300px;
|
2022-05-10 09:48:01 +08:00
|
|
|
overflow: hidden;
|
2021-09-20 22:01:11 +08:00
|
|
|
.name {
|
|
|
|
color: var(--primary-high-or-secondary-low);
|
|
|
|
font-size: var(--font-0);
|
|
|
|
font-weight: 700;
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
.username {
|
|
|
|
color: var(--primary-high-or-secondary-low);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-18 15:16:10 +08:00
|
|
|
|
2021-09-20 22:01:11 +08:00
|
|
|
.category-items,
|
|
|
|
.tag-items {
|
|
|
|
margin-bottom: 1.5em;
|
|
|
|
.fps-category-item,
|
|
|
|
.fps-tag-item {
|
|
|
|
margin-bottom: 1.5em;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2017-08-15 06:07:49 +08:00
|
|
|
}
|