* i18n text and titles for all labels. * Clicking a search result opens the page for that style. * Descriptions are truncated with (i) info button; expands description when clicked * Simplified/fixed setLoader() + lds-spinner functionality.
260 lines
5.1 KiB
CSS
Executable File
260 lines
5.1 KiB
CSS
Executable File
body.search-results-shown {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
#disable-all-wrapper {
|
|
border-bottom: solid 1px #000;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
#searchResults-error {
|
|
background-color: rgba(255, 0, 0, 0.4);
|
|
font-weight: bold;
|
|
padding: 5px;
|
|
text-align: center;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.searchResult {
|
|
padding: 5px;
|
|
}
|
|
.searchResult:hover {
|
|
background-color: rgba(50, 150, 255, 0.5);
|
|
}
|
|
.searchResult.loading {
|
|
background-color: rgba(90, 90, 90, 0.5);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.searchResult-screenshot {
|
|
max-height: 120px;
|
|
width: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.searchResult-title {
|
|
padding: 3px;
|
|
margin: 0;
|
|
}
|
|
|
|
.searchResult-description {
|
|
width: 90%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: inline-block;
|
|
}
|
|
|
|
.searchResult-description.expanded {
|
|
width: 100%;
|
|
white-space: pre-wrap;
|
|
overflow: auto;
|
|
text-overflow: unset;
|
|
display: block;
|
|
}
|
|
|
|
.searchResult-description-info {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
width: 16px;
|
|
height: 14px;
|
|
}
|
|
|
|
.searchResult-author {
|
|
display: none;
|
|
}
|
|
|
|
.searchResult-meta {
|
|
display: table;
|
|
width: 100%;
|
|
}
|
|
|
|
.searchResult-metaRating, .searchResult-metaInstallCount {
|
|
display: table-cell;
|
|
text-align: center;
|
|
}
|
|
|
|
.searchResult-rating {
|
|
font-weight: 600;
|
|
padding: 1px 2px 1px 2px;
|
|
color: #fff;
|
|
}
|
|
.searchResult-rating.good {
|
|
background-color: darkgreen;
|
|
}
|
|
.searchResult-rating.okay {
|
|
background-color: darkorange;
|
|
}
|
|
.searchResult-rating.bad {
|
|
background-color: darkred;
|
|
}
|
|
.searchResult-rating.none {
|
|
background-color: #333;
|
|
}
|
|
|
|
.searchResult-installCount {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.searchResult-install {
|
|
width: 100%;
|
|
}
|
|
.searchResult-install.customize, .searchResult-customize {
|
|
width: 50%;
|
|
}
|
|
|
|
#searchResultsNav {
|
|
flex-direction: row;
|
|
text-align: center;
|
|
word-break: keep-all;
|
|
opacity: 1.0;
|
|
}
|
|
#searchResultsNav.loading {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
#searchResultsNav label {
|
|
width: 40px;
|
|
display: inline-block;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
#searchResultsNav 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;
|
|
}
|
|
|
|
@keyframes lds-spinner {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@-webkit-keyframes lds-spinner {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.lds-spinner {
|
|
position: absolute;
|
|
width: 200px;
|
|
height: 200px;
|
|
top: 50px;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
opacity: .2;
|
|
transition: opacity .5s;
|
|
}
|
|
.lds-spinner div {
|
|
left: 94px;
|
|
top: 23px;
|
|
position: absolute;
|
|
-webkit-animation: lds-spinner linear 1s infinite;
|
|
animation: lds-spinner linear 1s infinite;
|
|
background: currentColor;
|
|
width: 12px;
|
|
height: 34px;
|
|
border-radius: 20%;
|
|
-webkit-transform-origin: 6px 77px;
|
|
transform-origin: 6px 77px;
|
|
}
|
|
.lds-spinner div:nth-child(1) {
|
|
-webkit-transform: rotate(0deg);
|
|
transform: rotate(0deg);
|
|
-webkit-animation-delay: -0.916666666666667s;
|
|
animation-delay: -0.916666666666667s;
|
|
}
|
|
.lds-spinner div:nth-child(2) {
|
|
-webkit-transform: rotate(30deg);
|
|
transform: rotate(30deg);
|
|
-webkit-animation-delay: -0.833333333333333s;
|
|
animation-delay: -0.833333333333333s;
|
|
}
|
|
.lds-spinner div:nth-child(3) {
|
|
-webkit-transform: rotate(60deg);
|
|
transform: rotate(60deg);
|
|
-webkit-animation-delay: -0.75s;
|
|
animation-delay: -0.75s;
|
|
}
|
|
.lds-spinner div:nth-child(4) {
|
|
-webkit-transform: rotate(90deg);
|
|
transform: rotate(90deg);
|
|
-webkit-animation-delay: -0.666666666666667s;
|
|
animation-delay: -0.666666666666667s;
|
|
}
|
|
.lds-spinner div:nth-child(5) {
|
|
-webkit-transform: rotate(120deg);
|
|
transform: rotate(120deg);
|
|
-webkit-animation-delay: -0.583333333333333s;
|
|
animation-delay: -0.583333333333333s;
|
|
}
|
|
.lds-spinner div:nth-child(6) {
|
|
-webkit-transform: rotate(150deg);
|
|
transform: rotate(150deg);
|
|
-webkit-animation-delay: -0.5s;
|
|
animation-delay: -0.5s;
|
|
}
|
|
.lds-spinner div:nth-child(7) {
|
|
-webkit-transform: rotate(180deg);
|
|
transform: rotate(180deg);
|
|
-webkit-animation-delay: -0.416666666666667s;
|
|
animation-delay: -0.416666666666667s;
|
|
}
|
|
.lds-spinner div:nth-child(8) {
|
|
-webkit-transform: rotate(210deg);
|
|
transform: rotate(210deg);
|
|
-webkit-animation-delay: -0.333333333333333s;
|
|
animation-delay: -0.333333333333333s;
|
|
}
|
|
.lds-spinner div:nth-child(9) {
|
|
-webkit-transform: rotate(240deg);
|
|
transform: rotate(240deg);
|
|
-webkit-animation-delay: -0.25s;
|
|
animation-delay: -0.25s;
|
|
}
|
|
.lds-spinner div:nth-child(10) {
|
|
-webkit-transform: rotate(270deg);
|
|
transform: rotate(270deg);
|
|
-webkit-animation-delay: -0.166666666666667s;
|
|
animation-delay: -0.166666666666667s;
|
|
}
|
|
.lds-spinner div:nth-child(11) {
|
|
-webkit-transform: rotate(300deg);
|
|
transform: rotate(300deg);
|
|
-webkit-animation-delay: -0.083333333333333s;
|
|
animation-delay: -0.083333333333333s;
|
|
}
|
|
.lds-spinner div:nth-child(12) {
|
|
-webkit-transform: rotate(330deg);
|
|
transform: rotate(330deg);
|
|
-webkit-animation-delay: 0s;
|
|
animation-delay: 0s;
|
|
}
|