Skip to content

Commit

Permalink
Top banner xx (#8850)
Browse files Browse the repository at this point in the history
* enhance(placement): nicer top banner

* hacking notes

* fancy button

* use correct color for no

* clean up
  • Loading branch information
fiji-flo authored May 12, 2023
1 parent fea62a7 commit 6b8987c
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions client/src/ui/organisms/placement/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ section.place {
display: grid;
font-size: 0.625rem;

grid-template-areas: "pong pong pong" "no space note";
grid-template-areas: "pong cta" "no note";
height: var(--top-banner-height);
margin: 0 auto;
width: 100%;
align-items: center;

@media screen and (min-width: $screen-md) {
grid-template-areas: "pong cta cta" "pong no note";
grid-template-columns: 1fr 10rem 4rem;
grid-template-areas: "pong cta note" "pong cta no";
grid-template-columns: fit-content(100%) auto fit-content(100%);
}

.pong-box {
Expand All @@ -86,7 +87,6 @@ section.place {
color: var(--place-top-color);
flex-direction: row;
grid-area: pong;
max-width: 30rem;
padding: 0.125rem;
text-decoration: none;

Expand All @@ -110,25 +110,35 @@ section.place {
color: var(--place-top-cta-color);
font-size: var(--type-smaller-font-size);
grid-area: cta;
margin: 0.125rem auto;
padding: 0.25rem 1rem;
text-align: center;
width: 100%;
height: fit-content;
margin-right: auto;
}

.pong-note {
color: var(--place-top-color);
grid-area: note;
margin: auto 0.5rem 0 auto;
width: 4rem;
width: auto;
border: 1px solid var(--border-primary);
border-top: none;
padding: 0 0.5rem 0.125rem;
margin: 0 0 auto auto;
color: var(--background-secondary);
background-color: var(--text-primary);
border-radius: 0 0 0.5rem 0.5rem;
text-decoration: none;

&:hover,
&:focus,
&:active {
text-decoration: underline;
}
}
}

.no-pong {
color: var(--place-top-color);
grid-area: no;
margin: auto 0.5rem 0;
color: var(--place-top-color);
margin: auto 0 0 2rem;
}
}
}
Expand Down

0 comments on commit 6b8987c

Please sign in to comment.