thebadspace/public/assets/css/front/location.css
ro 9be54fa13c Responsive Part 2, environment changes
Hit the major friction points in the responsive UI. Still have some
polishing to do but there shouldn't be any show stoppers at this points.

Also moved some variable to the env so they can be changed easily when
necessary
2024-02-08 13:07:49 -06:00

85 lines
1.4 KiB
CSS

section[role="location"] {
background: var(--primary);
width: 100%;
max-width: 600px;
padding: 10px;
margin: 0 auto;
color: var(--white);
}
section[role="location"] img {
width: 33%;
border-radius: 3px;
overflow: hidden;
vertical-align: top;
}
div.location-rating {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
width: 98%;
font-weight: 500;
font-size: 0.8em;
color: var(--secondary);
}
div.location-rating > div {
border-radius: 3px;
color: var(--primary);
padding: 5px 5px 0;
}
div.location-rating > div:nth-child(1) {
background: var(--secondary);
}
div.location-rating > div:nth-child(2) {
background: var(--silence);
}
div.location-rating > div:nth-child(3) {
background: var(--suspend);
}
div.location-rating > div > span {
position: relative;
top: 6px;
float: right;
width: 80%;
text-align: center;
}
.rating-icon {
width: 35px;
position: relative;
}
@media only screen and (max-width: 800px) {
div.location-rating {
font-size: 0.65em;
}
div.location-rating > div > span {
width: 75%;
}
}
@media only screen and (max-width: 670px) {
div.location-rating {
grid-template-columns: 1fr 1fr;
font-size: 0.7em;
}
}
@media only screen and (max-width: 480px) {
div.location-rating {
grid-template-columns: 1fr;
font-size: 0.8em;
}
div.location-rating > div > span {
width: 85%;
}
}