stylus/popup/search-results.css
derv82 8ae669bd12 Detects Customization. Prefetches "category" when popup is loaded.
* Fetches 'category' for the current URL when popup is first loaded.
* Customizable styles have "Customize" button next to "Install"
* "Customize" button opens a new tab to the style page.
* Removed all console.log() statements (except when `catch()`ing errors).
2017-12-02 23:12:27 -08:00

130 lines
2.1 KiB
CSS
Executable File

#disable-all-wrapper {
border-bottom: solid 1px #000;
margin-bottom: 5px;
}
#searchResults,
#find-styles {
display: block;
}
#searchResults.hidden,
#searchResults-error.hidden,
#find-styles.hidden,
#open-search.hidden,
.searchResult-customize.hidden {
display: none;
}
#searchResults-error {
background-color: rgba(255, 0, 0, 0.4);
font-weight: bold;
padding: 5px;
text-align: center;
margin-right: 20px;
}
#searchResults, #searchResults-list {
max-width: 200px;
overflow: hidden;
}
.searchResult {
padding: 5px;
}
.searchResult:hover {
background-color: rgba(50, 150, 255, 0.5);
}
.searchResult.loading {
opacity: 0.5;
}
.searchResult img {
display: block;
max-width: 180px;
max-height: 180px;
}
.searchResult-screenshot.no-screenshot {
width: 180px;
height: 40px;
}
.searchResult-title {
display: block;
font-weight: bold;
}
.searchResult-description {
overflow: hidden;
font-style: italic;
}
.searchResult > * {
overflow-x: hidden;
white-space: nowrap;
}
.searchResult-author {
display: none;
}
.searchResult-meta {
display: table;
width: 100%;
}
.searchResult-metaRating, .searchResult-metaInstallCount {
display: table-cell;
}
.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-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;
}
#searchResultsNav-prev[disabled],
#searchResultsNav-next[disabled] {
cursor: not-allowed;
background-image: linear-gradient(rgba(90, 90, 90, 0.5), rgba(90, 90, 90, 0.5));
}