1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/app/whats-new-popup/index.scss
vthomas13 40e4a3653f
Updating Terms of Use, Adding popover and onboarding flow check (#18221)
* WIP commit

* Moving copy out of messages.json, styling changes

* handling scroll button click and disable logic

* moving scrollButton up to popover component, adding logic for accepting terms of use in popover and onboarding flows

* adding terms of use to e2e wallet creation/import

* adjusting failing unit test

* fixing QR code e2e

* updating welcome test

* setting app state in fixtures

* Update app/scripts/controllers/app-state.js

removing console log

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>

* Update ui/components/app/terms-of-use-popup/terms-of-use-popup.stories.js

adding args to ToU popup storybook

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>

* Update ui/components/app/terms-of-use-popup/terms-of-use-popup.js

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>

* updating DS components in terms of use

* popover styling changes

* adding metametrics tracking

* editing scrollbutton behavior

* adding unit test

* code fencing

---------

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-04-14 12:51:13 -04:00

81 lines
1.2 KiB
SCSS

.whats-new-popup {
&__notifications {
display: flex;
flex-direction: column;
}
&__notification,
&__first-notification {
display: flex;
flex-direction: column;
margin: 0 16px 16px 16px;
border-bottom: 1px solid var(--color-border-muted);
position: relative;
}
&__last-notification {
> * {
&:nth-last-child(2) {
margin-bottom: 0;
};
}
.whats-new-popup__intersection-observable {
bottom: 8px;
}
}
&__notification {
&:last-child {
border-bottom: none;
}
}
&__notification-image {
align-self: center;
margin-bottom: 16px;
}
&__description-and-date {
margin-bottom: 16px;
}
&__notification-date {
color: var(--color-text-alternative);
}
&__button {
margin-right: auto;
}
&__button,
&__link {
margin-bottom: 24px;
}
&__link {
@include H6;
color: var(--color-primary-default);
cursor: pointer;
}
&__intersection-observable {
bottom: 22px;
position: absolute;
height: 1px;
width: 100%;
}
}
.popover-wrap.whats-new-popup__popover {
@include screen-sm-min {
max-height: 750px;
width: 500px;
}
@include screen-sm-max {
max-height: 568px;
}
}