iwm_browser/iwm_browser/static/search/searchResults.css
magmaus3 5f4a08f3ad
Some small updates
- Show 100% clears (also shows if a 100% clear is impossible (no gems in
  the level))
- Show the type in the title if `type` param is set (it might conflict
  with search query)
- Pass the same search query to the prev/next page
- Shows some 0.822 info (if gems are in the level and replay visibility
  status)
- Add a (hidden by default) table with the server response
- (incomplete) pulse when copying instead of using an alert
2023-04-09 18:06:58 +02:00

181 lines
2.8 KiB
CSS

.searchResults {
display: grid;
align-self: start;
align-content: start;
}
.fullResponse {
font-size: small;
overflow: scroll;
max-width: 20rem;
}
.fullResponse table, .fullResponse table td {
border: 1px solid gray;
border-collapse: collapse;
}
.searchResultCard {
display: grid;
margin: 4px;
margin-top: 8px;
margin-bottom: 8px;
padding: 0.5em;
/*font-size: 0.8rem;*/
font-size: medium;
outline: 1px solid white;
max-width: 50rem;
grid-template-columns: 0.9fr 1fr;
column-gap: 0.5rem;
}
@media screen and (max-width: 550px) {
.searchResults {
font-size: small;
}
.times {
font-size: smaller;
}
}
.searchResultCard .thumbnail {
display: grid;
justify-self: left;
background-color: transparent;
justify-content: center;
max-width: 100%;
height: fit-content
}
.searchResultCard .thumbnail img {
width: 100%;
height: auto;
}
.searchResultCard .details {
display: grid;
border-left: 1px solid white;
padding: 0.5rem;
column-gap: 1em;
justify-content: left;
text-align: left;
grid-template-columns: 1fr;
grid-template-areas: "basic";
}
.searchResultCard .basic {
align-self: left;
justify-content: left;
}
.levelRating {
justify-self: left;
margin-top: 0.5em;
}
.levelTitle {
justify-self: left;
text-align: left;
font-size: large;
font-weight: bold;
margin-bottom: 0.3rem;
}
.levelTitle a:link, a:visited {
color: inherit;
text-decoration: initial;
cursor: auto;
}
.levelTitle a:hover {
outline: 2px dotted blue;
}
.levelTitle a:link:active {
color: inherit;
outline: 2px dotted blue;
}
.creatorName {
justify-self: left;
text-align: left;
/*font-size: 0.8rem;*/
}
.levelDescription {
overflow-x: scroll;
text-align: left;
background-color: #30303a;
padding: 0.5rem;
font-size: small;
/* justify-self: right;
width: 100%;
padding: 0.5em;
outline: 1px dashed pink; */
}
@keyframes pulse {
from {
border: 2px solid initial;
color: inherit;
}
to {
border: 2px solid lime;
color: lime
}
}
.levelCode {
margin-top: 0.5em;
}
.levelCode input {
background-color: transparent;
color: white;
font-family: monospace;
width: 6rem;
text-align: center;
border: 1px solid #505050;
}
.levelCode input:focus {
outline: none;
background-color: #00FFFF10;
}
.levelCode:active, .levelCode input:active {
animation: pulse 0.5s 1 ease-out;
}
.illegal {
color: red;
}
/*
.levelDifficulty {
display: flex;
justify-self: right;
/* z-index: 1; * /
}
.levelDifficulty span {
text-align: end;
justify-self: right;
font-size: 2em;
overflow: hidden;
}*/