2017-12-09 21:03:17 +00:00
|
|
|
body.search-results-shown {
|
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
#search-results {
|
|
|
|
position: relative;
|
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;
|
|
|
|
margin-right: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-results-list {
|
|
|
|
position: relative;
|
|
|
|
min-height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result, .search-result-empty {
|
|
|
|
position: relative;
|
2017-12-10 01:03:04 +00:00
|
|
|
padding: .75rem;
|
|
|
|
min-height: 160px;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result {
|
|
|
|
box-shadow: 1px 1px 10px rgba(0, 0, 0, .5);
|
|
|
|
border-radius: 3px;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result:hover {
|
|
|
|
border-color: #888;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result .lds-spinner, .search-result-empty .lds-spinner {
|
2017-12-10 01:03:04 +00:00
|
|
|
transform: scale(.75);
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-screenshot {
|
|
|
|
height: 140px;
|
|
|
|
width: 100%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-title {
|
|
|
|
font-size: 1.2em;
|
|
|
|
font-weight: 600;
|
2017-12-10 01:03:04 +00:00
|
|
|
margin-bottom: .5em;
|
|
|
|
display: block;
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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-09 21:03:17 +00:00
|
|
|
.search-result-info > div {
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2017-12-10 01:03:04 +00:00
|
|
|
transition: opacity .2s;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
|
|
|
.search-result:hover .search-result-info > div {
|
2017-12-09 21:03:17 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-overlay {
|
2017-12-10 01:03:04 +00:00
|
|
|
bottom: 0;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-info > .actions {
|
2017-12-10 01:03:04 +00:00
|
|
|
bottom: 70px;
|
|
|
|
text-align: center;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.search-result-info > .actions > button {
|
|
|
|
background-color: #fff;
|
2017-12-10 01:03:04 +00:00
|
|
|
box-shadow: 2px 2px 20px #000;
|
|
|
|
white-space: nowrap;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.search-result-info > .actions > button:hover {
|
|
|
|
background-color: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-overlay > * {
|
2017-12-10 01:03:04 +00:00
|
|
|
display: flex;
|
|
|
|
padding: .25rem .5rem;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result-author {
|
|
|
|
max-width: 50%;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-author-link {
|
2017-12-10 01:03:04 +00:00
|
|
|
color: inherit;
|
|
|
|
font-weight: bold;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-author-link:hover {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-description-group {
|
|
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
|
|
align-items: center;
|
|
|
|
padding-right: .25rem;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-description {
|
2017-12-10 01:03:04 +00:00
|
|
|
flex: 1;
|
2017-12-09 21:03:17 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result-meta {
|
|
|
|
background-color: hsla(180, 27%, 37%, 0.85);
|
|
|
|
color: hsl(180, 27%, 80%);
|
|
|
|
justify-content: space-between;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result-meta > * > :first-child {
|
|
|
|
display: block;
|
|
|
|
opacity: .75;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result-meta-rating {
|
|
|
|
text-align: center;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result-meta-install-count {
|
|
|
|
text-align: right;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-rating {
|
|
|
|
font-weight: 600;
|
|
|
|
padding: 1px 2px 1px 2px;
|
|
|
|
color: #fff;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.search-result-rating.good {
|
|
|
|
background-color: darkgreen;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.search-result-rating.okay {
|
|
|
|
background-color: darkorange;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.search-result-rating.bad {
|
|
|
|
background-color: darkred;
|
|
|
|
}
|
2017-12-10 01:03:04 +00:00
|
|
|
|
2017-12-09 21:03:17 +00:00
|
|
|
.search-result-rating.none {
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-install-count {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2017-12-10 01:03:04 +00:00
|
|
|
.search-result-install, .search-result-customize, .search-result-uninstall {
|
2017-12-09 21:03:17 +00:00
|
|
|
width: 40%;
|
|
|
|
margin: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-results-nav {
|
|
|
|
flex-direction: row;
|
|
|
|
text-align: center;
|
|
|
|
word-break: keep-all;
|
|
|
|
opacity: 1.0;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-results-nav label {
|
|
|
|
width: 40px;
|
|
|
|
display: inline-block;
|
|
|
|
word-break: keep-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-results-nav button {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#find-styles-inline-group label {
|
|
|
|
position: relative;
|
|
|
|
padding-left: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* spinner: https://github.com/loadingio/css-spinner */
|
|
|
|
.lds-spinner {
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0;
|
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;
|
|
|
|
animation: fadein 1s;
|
2017-12-09 21:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes lds-spinner {
|
|
|
|
0% {
|
2017-12-10 01:03:04 +00:00
|
|
|
opacity: .5;
|
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;
|
|
|
|
}
|