Skip to content

Commit

Permalink
style: make landing buttons reactive (#527)
Browse files Browse the repository at this point in the history
The fact that the landing buttons only look nice if I have exactly two of them has been bothering me for a long time.

This patch finally fixes that by making the display of the landing buttons reactive.
  • Loading branch information
ca-d committed Feb 2, 2022
1 parent c6f1e0d commit 8affe8a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/open-scd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,10 @@ export class OpenSCD extends Hosting(
}
.landing {
display: flex;
flex-direction: row;
justify-content: center;
position: absolute;
top: calc(50vh - 82px);
left: calc(50vw - 184px);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.landing_icon:hover {
Expand Down

0 comments on commit 8affe8a

Please sign in to comment.