Skip to content

Commit 6b8987c

Browse files
authored
Top banner xx (#8850)
* enhance(placement): nicer top banner * hacking notes * fancy button * use correct color for no * clean up
1 parent fea62a7 commit 6b8987c

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

Diff for: client/src/ui/organisms/placement/index.scss

+22-12
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,15 @@ section.place {
6767
display: grid;
6868
font-size: 0.625rem;
6969

70-
grid-template-areas: "pong pong pong" "no space note";
70+
grid-template-areas: "pong cta" "no note";
7171
height: var(--top-banner-height);
7272
margin: 0 auto;
7373
width: 100%;
74+
align-items: center;
7475

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

8081
.pong-box {
@@ -86,7 +87,6 @@ section.place {
8687
color: var(--place-top-color);
8788
flex-direction: row;
8889
grid-area: pong;
89-
max-width: 30rem;
9090
padding: 0.125rem;
9191
text-decoration: none;
9292

@@ -110,25 +110,35 @@ section.place {
110110
color: var(--place-top-cta-color);
111111
font-size: var(--type-smaller-font-size);
112112
grid-area: cta;
113-
margin: 0.125rem auto;
114113
padding: 0.25rem 1rem;
115114
text-align: center;
116-
width: 100%;
115+
height: fit-content;
116+
margin-right: auto;
117117
}
118118

119119
.pong-note {
120-
color: var(--place-top-color);
121120
grid-area: note;
122-
margin: auto 0.5rem 0 auto;
123-
width: 4rem;
124-
width: auto;
121+
border: 1px solid var(--border-primary);
122+
border-top: none;
123+
padding: 0 0.5rem 0.125rem;
124+
margin: 0 0 auto auto;
125+
color: var(--background-secondary);
126+
background-color: var(--text-primary);
127+
border-radius: 0 0 0.5rem 0.5rem;
128+
text-decoration: none;
129+
130+
&:hover,
131+
&:focus,
132+
&:active {
133+
text-decoration: underline;
134+
}
125135
}
126136
}
127137

128138
.no-pong {
129-
color: var(--place-top-color);
130139
grid-area: no;
131-
margin: auto 0.5rem 0;
140+
color: var(--place-top-color);
141+
margin: auto 0 0 2rem;
132142
}
133143
}
134144
}

0 commit comments

Comments
 (0)