Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body {
- height: 2500px;
- &.-modal-open {
- overflow: hidden;
- }
- }
- .fixed {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- padding: 20px 0;
- background: #FF0000;
- }
- .modal {
- overflow-x: hidden;
- overflow-y: scroll;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.4);
- opacity: 0;
- transition: opacity .2s ease-in-out;
- body.-modal-open & {
- opacity: 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement