mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
5d59670ac3
no issue - Opted in to use explicit `hisotry.replaceState` and setting iframe's `src` using assignment instead of tracking it through computed property. This allows for tighter control over when iframe's history is updated which was causing problems when `src` was bound to computed property - Added billing page metadata. This way browser history records appear with nicer signature - Removed "update button" iframe and rewrote "global iframe" to not use modals. This allows to have single iframe on a page, which simplifies `postMessage` communication and preserve history inside iframe to be able to navigate it after closure - Added route change handler responding to BMA app route changes. Allows to sync browser URL visible to the user with active route in BMA iframe. The sync is based on `hisory.replaceState` method that makes sure singular history records are kept in the browser history - Added nested wildcard billing route. This is meant to catch all the nested routes inside of BMA iframe
55 lines
851 B
CSS
55 lines
851 B
CSS
.gh-billing {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
z-index: 9999;
|
|
background: var(--main-bg-color);
|
|
}
|
|
|
|
.gh-billing-container {
|
|
position: relative;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.gh-billing.closed {
|
|
display: none;
|
|
}
|
|
|
|
.gh-billing .close {
|
|
position: absolute;
|
|
top: 19px;
|
|
right: 19px;
|
|
z-index: 9999;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: none;
|
|
}
|
|
|
|
.gh-billing .billing-frame {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
.gh-billing-close {
|
|
width: calc(50vw - 200px)
|
|
}
|
|
|
|
.gh-billing-close button {
|
|
stroke: var(--midgrey);
|
|
opacity: 0.6;
|
|
transition: all 0.2s ease-in-out;
|
|
top: 25px;
|
|
}
|