-
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add InstallWindow component for addon installation
- Loading branch information
Showing
3 changed files
with
198 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
.popup { | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
background-color: rgb(0, 0, 0); | ||
padding: 20px; | ||
box-shadow: 0 0 10px rgba(252, 252, 252, 0.534); | ||
z-index: 1000; | ||
opacity: 1; | ||
border-radius: var(--borderRadius); | ||
transition: opacity 0.3s ease-in-out; | ||
width: 50%; | ||
max-width: 500px; | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.popup { | ||
width: 90%; | ||
} | ||
} | ||
|
||
.popup.hidden { | ||
opacity: 0; | ||
pointer-events: none; | ||
} | ||
|
||
.installButtons { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
gap: 20px; | ||
} | ||
|
||
.installButton { | ||
background-color: #ffffff; /* Green */ | ||
border: none; | ||
color: black; | ||
padding: 15px 32px; | ||
text-align: center; | ||
text-decoration: none; | ||
display: inline-block; | ||
font-size: 16px; | ||
margin: 4px 2px; | ||
cursor: pointer; | ||
border-radius: var(--borderRadius); | ||
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.111); | ||
transition: | ||
transform 0.2s, | ||
box-shadow 0.2s, | ||
opacity 0.2s, | ||
background-color 0.2s; | ||
} | ||
|
||
@media (pointer: fine) { | ||
.installButton:hover { | ||
transform: scale(1.02); | ||
box-shadow: 0 8px 16px rgba(255, 255, 255, 0.225); | ||
} | ||
} | ||
|
||
.installButton:active { | ||
transform: scale(0.98); | ||
} | ||
|
||
.installButton:disabled { | ||
opacity: 0.5; | ||
cursor: not-allowed; | ||
transform: none; | ||
box-shadow: none; | ||
background-color: #ddddddbe; | ||
} |
Oops, something went wrong.