2021-01-01 14:27:58 +00:00
|
|
|
/* IMPORTANT!
|
|
|
|
This file is loaded dynamically when the inline search is invoked.
|
|
|
|
So don't put main popup's stuff here. */
|
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
body.search-results-shown {
|
2017-12-11 10:03:03 +00:00
|
|
|
overflow-y: auto;
|
2017-12-09 21:03:17 +00:00
|
|
|
overflow-x: hidden;
|
2017-12-11 10:03:03 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 20:25:41 +00:00
|
|
|
#search-results:not([data-empty]):before {
|
2017-12-11 10:03:03 +00:00
|
|
|
background-image: linear-gradient(transparent, rgba(0, 0, 0, .3) 200px);
|
|
|
|
content: "";
|
|
|
|
top: -50px;
|
|
|
|
left: -1000px;
|
|
|
|
right: -1000px;
|
|
|
|
bottom: -12px;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
animation: fadein 1s;
|
|
|
|
animation-fill-mode: both;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
#search-results {
|
|
|
|
position: relative;
|
2017-12-11 10:03:03 +00:00
|
|
|
margin-top: -1em;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#search-results-error {
|
|
|
|
background-color: rgba(255, 0, 0, 0.4);
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 5px;
|
|
|
|
text-align: center;
|
2018-01-03 11:07:18 +00:00
|
|
|
margin: 0 0 var(--outer-padding);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#search-results-list {
|
|
|
|
position: relative;
|
2017-12-11 10:03:03 +00:00
|
|
|
min-height: 224px;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 02:20:59 +00:00
|
|
|
.search-result,
|
|
|
|
.search-result-empty {
|
2020-11-23 12:45:00 +00:00
|
|
|
--pad: 8px;
|
2017-12-09 21:03:17 +00:00
|
|
|
position: relative;
|
2020-11-23 12:45:00 +00:00
|
|
|
padding: var(--pad) var(--pad) 21px;
|
2017-12-10 01:03:04 +00:00
|
|
|
min-height: 160px;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result {
|
2017-12-11 04:35:23 +00:00
|
|
|
box-shadow: 1px 1px 10px rgba(0, 0, 0, .75);
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 1px solid #555;
|
|
|
|
margin-bottom: 24px;
|
|
|
|
background-color: #eee;
|
2017-12-10 01:03:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result:hover {
|
2017-12-11 04:35:23 +00:00
|
|
|
border-color: #000;
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
2020-10-04 05:30:02 +00:00
|
|
|
#search-results .lds-spinner {
|
2017-12-11 04:35:23 +00:00
|
|
|
transform: scale(.5);
|
2017-12-11 05:31:15 +00:00
|
|
|
filter: invert(1) drop-shadow(1px 1px 3px #000);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2020-10-04 05:30:02 +00:00
|
|
|
#search-results .search-result-empty .lds-spinner {
|
2017-12-11 05:31:15 +00:00
|
|
|
filter: opacity(.2);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-screenshot {
|
|
|
|
height: 140px;
|
|
|
|
width: 100%;
|
|
|
|
object-fit: cover;
|
2017-12-11 04:35:23 +00:00
|
|
|
cursor: pointer;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-title {
|
2017-12-10 01:03:04 +00:00
|
|
|
margin-bottom: .5em;
|
|
|
|
display: block;
|
2017-12-11 10:03:03 +00:00
|
|
|
color: #555;
|
2017-12-10 07:06:21 +00:00
|
|
|
overflow-wrap: break-word;
|
2017-12-10 01:03:04 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 09:00:40 +00:00
|
|
|
.search-result-title span {
|
2017-12-11 10:03:03 +00:00
|
|
|
font-size: 12px;
|
2017-12-10 09:00:40 +00:00
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result:hover .search-result-title {
|
|
|
|
color: initial;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-info {
|
|
|
|
position: relative;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-11 19:26:33 +00:00
|
|
|
.search-result[data-installed] .search-result-status {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
line-height: 18px;
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
2017-12-19 02:30:40 +00:00
|
|
|
background-color: hsla(180, 100%, 27%, .75);
|
2017-12-11 19:26:33 +00:00
|
|
|
color: #fff;
|
2017-12-19 02:30:40 +00:00
|
|
|
transition: background-color .5s;
|
|
|
|
pointer-events: none;
|
2017-12-11 19:26:33 +00:00
|
|
|
}
|
|
|
|
|
2017-12-19 02:30:40 +00:00
|
|
|
.search-result-screenshot:hover ~ .search-result-status {
|
|
|
|
background-color: hsla(180, 100%, 27%, 1);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-actions {
|
|
|
|
bottom: 20px;
|
2017-12-10 01:03:04 +00:00
|
|
|
text-align: center;
|
2017-12-11 04:35:23 +00:00
|
|
|
z-index: 10;
|
2017-12-11 10:03:03 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2017-12-19 02:30:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result:not([data-installed]) .search-result-actions {
|
|
|
|
opacity: 0;
|
2017-12-11 10:03:03 +00:00
|
|
|
transition: opacity .5s;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-19 02:30:40 +00:00
|
|
|
.search-result:not([data-installed]):hover .search-result-actions {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2017-12-19 05:46:30 +00:00
|
|
|
.search-result-actions button {
|
2017-12-10 01:03:04 +00:00
|
|
|
box-shadow: 2px 2px 20px #000;
|
|
|
|
white-space: nowrap;
|
2017-12-11 10:03:03 +00:00
|
|
|
margin: 3px;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta {
|
|
|
|
background-color: hsla(0, 0%, 93%, 0.75);
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
bottom: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 16px;
|
|
|
|
margin: 0;
|
2017-12-11 19:26:33 +00:00
|
|
|
padding-bottom: 3px;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result:hover .search-result-meta {
|
|
|
|
background-color: hsla(0, 0%, 100%, 0.75);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta dt {
|
|
|
|
display: none;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta dd {
|
|
|
|
margin: 0;
|
2017-12-10 01:03:04 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="author"] {
|
|
|
|
max-width: 30%;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="author"] a {
|
|
|
|
color: inherit;
|
|
|
|
font-weight: bold;
|
2017-12-09 21:03:17 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2017-12-11 10:03:03 +00:00
|
|
|
display: block;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="rating"] dd {
|
2017-12-10 01:03:04 +00:00
|
|
|
text-align: center;
|
2017-12-11 10:03:03 +00:00
|
|
|
font-weight: bold;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="rating"][data-class="good"] dd {
|
|
|
|
color: darkgreen;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="rating"][data-class="okay"] dd {
|
2017-12-11 04:35:23 +00:00
|
|
|
color: darkgreen;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="rating"][data-class="bad"] dd {
|
|
|
|
color: darkred;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="rating"][data-class="none"] dd {
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="weekly"],
|
|
|
|
.search-result-meta [data-type="total"] {
|
|
|
|
text-align: right;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-meta [data-type="weekly"] dd,
|
|
|
|
.search-result-meta [data-type="total"] dd {
|
|
|
|
font-weight: bold;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-result-description {
|
|
|
|
padding: 0;
|
|
|
|
font-size: 90%;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 4px;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2020-11-23 12:45:00 +00:00
|
|
|
.not-matching-explainer {
|
|
|
|
padding: var(--pad);
|
|
|
|
margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--pad);
|
|
|
|
border-bottom: 2px solid hsla(25, 100%, 60%, .5);
|
|
|
|
background-color: hsla(25, 100%, 60%, .2);
|
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-results-nav {
|
2017-12-09 21:03:17 +00:00
|
|
|
flex-direction: row;
|
|
|
|
text-align: center;
|
|
|
|
word-break: keep-all;
|
2017-12-11 04:35:23 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-results-nav[data-type="top"] {
|
|
|
|
padding-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
2017-12-11 04:35:23 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
.search-results-nav[data-type="bottom"] {
|
|
|
|
margin-top: -1em;
|
|
|
|
margin-bottom: 1em;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
#search-results .search-results-nav button {
|
2017-12-11 02:20:59 +00:00
|
|
|
background: none;
|
|
|
|
border: none;
|
2017-12-12 14:09:42 +00:00
|
|
|
padding: 0 1rem;
|
2017-12-11 02:20:59 +00:00
|
|
|
margin: 0 .5rem;
|
2017-12-12 14:09:42 +00:00
|
|
|
font-size: 150%;
|
2017-12-11 04:35:23 +00:00
|
|
|
line-height: 24px;
|
|
|
|
vertical-align: middle;
|
|
|
|
cursor: pointer;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 10:03:03 +00:00
|
|
|
#search-results .search-results-nav button:disabled {
|
|
|
|
cursor: auto;
|
2017-12-11 20:25:41 +00:00
|
|
|
opacity: .25;
|
2017-12-11 10:03:03 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-results .search-results-nav button:not(:disabled):hover {
|
|
|
|
text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2020-10-04 05:30:02 +00:00
|
|
|
#search-params {
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
2020-10-10 11:25:43 +00:00
|
|
|
margin-top: -.5rem;
|
2020-10-04 05:30:02 +00:00
|
|
|
margin-bottom: 1.25rem;
|
2020-10-10 11:25:43 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-params > * {
|
|
|
|
margin-top: .5rem;
|
2020-10-04 05:30:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#search-query {
|
|
|
|
min-width: 3em;
|
|
|
|
margin-right: .5em;
|
2020-10-10 11:25:43 +00:00
|
|
|
flex: 1 1 0;
|
2020-10-04 05:30:02 +00:00
|
|
|
}
|
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
/* spinner: https://github.com/loadingio/css-spinner */
|
|
|
|
.lds-spinner {
|
|
|
|
-moz-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
2017-12-10 01:03:04 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 200px; /* don't change! use "transform: scale(.75)" */
|
|
|
|
height: 200px; /* don't change! use "transform: scale(.75)" */
|
|
|
|
margin: auto;
|
2017-12-11 02:20:59 +00:00
|
|
|
animation: lds-spinner 1s reverse;
|
|
|
|
animation-fill-mode: both;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes lds-spinner {
|
|
|
|
0% {
|
2017-12-11 04:35:23 +00:00
|
|
|
opacity: 1;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div {
|
|
|
|
left: 94px;
|
|
|
|
top: 23px;
|
|
|
|
position: absolute;
|
|
|
|
animation: lds-spinner linear 1s infinite;
|
2017-12-10 01:03:04 +00:00
|
|
|
animation-direction: reverse;
|
2017-12-09 21:03:17 +00:00
|
|
|
background: currentColor;
|
|
|
|
width: 12px;
|
|
|
|
height: 34px;
|
|
|
|
border-radius: 20%;
|
|
|
|
transform-origin: 6px 77px;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(1) {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
animation-delay: -0.916666666666667s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(2) {
|
|
|
|
transform: rotate(30deg);
|
|
|
|
animation-delay: -0.833333333333333s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(3) {
|
|
|
|
transform: rotate(60deg);
|
|
|
|
animation-delay: -0.75s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(4) {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
animation-delay: -0.666666666666667s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(5) {
|
|
|
|
transform: rotate(120deg);
|
|
|
|
animation-delay: -0.583333333333333s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(6) {
|
|
|
|
transform: rotate(150deg);
|
|
|
|
animation-delay: -0.5s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(7) {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
animation-delay: -0.416666666666667s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(8) {
|
|
|
|
transform: rotate(210deg);
|
|
|
|
animation-delay: -0.333333333333333s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(9) {
|
|
|
|
transform: rotate(240deg);
|
|
|
|
animation-delay: -0.25s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(10) {
|
|
|
|
transform: rotate(270deg);
|
|
|
|
animation-delay: -0.166666666666667s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(11) {
|
|
|
|
transform: rotate(300deg);
|
|
|
|
animation-delay: -0.083333333333333s;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.lds-spinner div:nth-child(12) {
|
|
|
|
transform: rotate(330deg);
|
|
|
|
animation-delay: 0s;
|
|
|
|
}
|