Skip to content

Commit

Permalink
Revert: add a class to center the main window (#1366)
Browse files Browse the repository at this point in the history
* Revert: add a class to center the main window

This reverts 1344 due to inconsistent vertical centering.

* 🤖 Selenium screenshots auto-update

* Trigger CI

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Frederik Rothenberger and github-actions[bot] authored Mar 27, 2023
1 parent 3cbdaf7 commit a78ec40
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 8 deletions.
Binary file modified screenshots/desktop/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/confirmSeedPhrase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/constructing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/displaySeedPhrase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/displayUserNumber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/promptCaptcha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/promptCaptchaReady.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/confirmSeedPhrase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/constructing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/displaySeedPhrase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/displayUserNumber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/promptCaptcha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/promptCaptchaReady.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/frontend/src/flows/register/construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const constructingContentSlot = ({

const constructingContent = (props: { message?: string }) =>
mainWindow({
additionalContainerClasses: ["t-centered", "l-container--centered"],
additionalContainerClasses: ["t-centered"],
showFooter: false,
showLogo: false,
slot: constructingContentSlot(props),
Expand Down
37 changes: 30 additions & 7 deletions src/frontend/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,6 @@ a:hover,
max-width: 60rem;
}

.l-container--centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.l-divider {
display: block;
margin-top: calc(var(--vs-stack) * 2);
Expand Down Expand Up @@ -702,6 +695,36 @@ a:hover,
}
}

.c-card--background::before {
position: absolute;
content: "";
z-index: -2;
top: 50%;
left: 50%;
width: 100%;
aspect-ratio: 1;
border-radius: 50%;
background-image: linear-gradient(170deg, var(--rg-brand));
background-size: 200% 200%;
filter: blur(120px);
opacity: 0.75;
pointer-events: none;
transform: translate3d(-50%, -50%, 0);

animation: 20s bganim linear infinite;
}

@keyframes bganim {
0%,
100% {
background-position: 0% 0%;
}

50% {
background-position: 0% -200%;
}
}

@media (max-width: 512px) {
.c-card--highlight {
border: none;
Expand Down

0 comments on commit a78ec40

Please sign in to comment.