feat: test floating button
This commit is contained in:
parent
b8e17331cc
commit
91938efe35
19
src/App.css
19
src/App.css
@ -105,10 +105,9 @@ h3 {
|
|||||||
|
|
||||||
button {
|
button {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-size: large;
|
||||||
color: ghostwhite;
|
color: ghostwhite;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
border: 4px solid black;
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: black;
|
outline: black;
|
||||||
@ -118,6 +117,22 @@ button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.submit_text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.submit {
|
||||||
|
position: fixed;
|
||||||
|
right: 16px;
|
||||||
|
bottom: 16px;
|
||||||
|
padding: 0px;
|
||||||
|
background-color: unset;
|
||||||
|
font-size: xx-large;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
::backdrop {
|
::backdrop {
|
||||||
background-image: linear-gradient(
|
background-image: linear-gradient(
|
||||||
45deg,
|
45deg,
|
||||||
|
@ -252,7 +252,9 @@ export function MVP({ user, players }: PlayerInfoProps) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button onClick={() => handleSubmit()}>submit</button>
|
<button className="submit" onClick={() => handleSubmit()}>
|
||||||
|
💾 <span className="submit_text">submit</span>
|
||||||
|
</button>
|
||||||
<dialog
|
<dialog
|
||||||
id="MVPDialog"
|
id="MVPDialog"
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user