Skip to content

Commit

Permalink
Set inset on player listing img so it works in all contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Jul 29, 2024
1 parent 074e8ac commit 97df75f
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions public/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

font-size: 14px;
}

@media (prefers-color-scheme: dark) {
--bg-img: url(/static/img2/2021-BG-dark.webp);
--color-navy: #6caeed;
Expand Down Expand Up @@ -115,7 +115,7 @@ button.g-link-button {
padding: 0;
margin: 0;
display: inline;

&:hover {
text-decoration: underline;
}
Expand Down Expand Up @@ -153,7 +153,7 @@ section {
// border-bottom: solid 1px var(--color-border);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
z-index: 1;

@media (prefers-color-scheme: dark) {
background-color: var(--color-bg);
background-image: url(/static/img2/2021-Top-Banner-BG-dark.png);
Expand All @@ -164,7 +164,7 @@ section {
color: inherit;
font-weight: 400;
}

a.logo {
position: absolute;
top: 0;
Expand All @@ -188,7 +188,7 @@ section {
> * {
margin: 0 0.5rem;
}

> .g-player-listing {
&::after {
content: '';
Expand All @@ -208,7 +208,7 @@ section {
}
}
}

> menu {
display: none;
position: absolute;
Expand All @@ -219,7 +219,7 @@ section {
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
list-style: none;
padding: 0.5rem 0;

a {
padding: 0 2rem;
}
Expand All @@ -243,7 +243,7 @@ section {
box-shadow: 0 2px 6px #0003;
font-size: 0.75rem;
line-height: 1.5;

&::before {
content: ' ';
display: block;
Expand All @@ -255,11 +255,11 @@ section {
width: 2rem;
height: 1rem;
}

p {
margin: 0;
}

button {
float: right;
}
Expand Down Expand Up @@ -318,7 +318,7 @@ hr {
margin: 0;
padding: 0;
flex: 1 1;

> li {
display: inline-block;
margin-right: 10px;
Expand Down Expand Up @@ -357,7 +357,7 @@ button, a.g-small-button {
background: var(--color-navy-highlight);
}
}

.g-big-button {
font-size: 1.5rem;
background: var(--color-bg-inv);
Expand Down Expand Up @@ -408,12 +408,12 @@ button, a.g-small-button {
flex: none;
line-height: 1.5rem;
}

.rank {
flex: none;
font-weight: lighter;
font-size: smaller;

&:before {
content: '(';
}
Expand Down Expand Up @@ -447,6 +447,10 @@ button, a.g-small-button {
position: absolute;
width: 100%;
height: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
}
}

0 comments on commit 97df75f

Please sign in to comment.