mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-05-04 05:29:15 -04:00
Fix About Background Not filling up full viewport under certain circumstances
It is now based on vw/vh instead of px. It can also easily be adjusted, mostly. There is no way it will not fill up the viewport.
This commit is contained in:
parent
3c2e73fc0c
commit
7e1de4b8c9
1 changed files with 6 additions and 4 deletions
|
@ -1144,10 +1144,12 @@ button::-moz-focus-inner {
|
|||
|
||||
#about x-background {
|
||||
position: absolute;
|
||||
top: calc(28px - 250px);
|
||||
right: calc(36px - 250px);
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
--size: max(max(23vw, 23vh), calc((22.5vh + 22.5vw) / 1.5));
|
||||
--size-half: calc(var(--size)/2);
|
||||
top: calc(28px - var(--size-half));
|
||||
right: calc(36px - var(--size-half));
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
border-radius: 50%;
|
||||
background: var(--primary-color);
|
||||
transform: scale(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue