docbrown/app/assets/stylesheets/runtime-banner.scss
Fernando Valverde 7845423bb9
Remove :runtime_banner feature flag (#13662)
* Removes :runtime_banner feature flag + repositioning

* Switch to https://udl.forem.com + fix spec

* Fix URL specs

* Adds data_update_script to remove feature flag

* Fix banner overlay on reactions for small screens + iPad max width

* Append -only to Runtime Filter CSS

* Add import to fix assets:precompile

* Implement design update

* Apply suggestions from code review

Co-authored-by: Lisa Sy <lisasyis@gmail.com>

* Add ;

* Trigger Travis

Co-authored-by: Lisa Sy <lisasyis@gmail.com>
2021-05-28 15:10:15 -06:00

77 lines
1.6 KiB
SCSS

@import 'variables';
@import '_mixins';
@import 'config/import';
.runtime-banner {
display: flex;
margin: 0 auto;
left: var(--su-4);
right: var(--su-4);
position: fixed;
bottom: calc(var(--su-2) + env(safe-area-inset-bottom));
flex-flow: row nowrap;
align-items: center;
padding: var(--su-3);
max-width: calc(min(100% - var(--su-4) * 2, 750px));
z-index: var(--z-popover);
border-radius: var(--radius);
background: #012026;
color: var(--snackbar-color);
font-size: var(--fs-s);
:any-link {
color: inherit;
}
a {
svg {
border: 1px solid #ffffff;
box-sizing: border-box;
border-radius: 3px;
}
div > span:first-child {
font-size: 16px;
line-height: 16px;
color: #ffffff;
margin-bottom: var(--su-1);
}
div > span:last-child {
font-size: 14px;
line-height: 14px;
color: #ffffff;
opacity: 0.65;
}
}
// Close button
button > svg {
color: #ffffff;
}
}
// Larger devices (i.e. iPad) display the reactions to the left instead of the
// bottom of the screen. Because of this we only need to move the banner higher
// up to avoid blocking the reaction buttons when size is <= $breakpoint-m
@media (max-width: $breakpoint-m) {
div[data-current-page='stories-show'] .runtime-banner {
bottom: calc(var(--su-9) + env(safe-area-inset-bottom));
}
}
.mobile-deep-link-banner {
margin: 30px;
text-align: center;
.crayons-card {
max-width: 500px;
margin: 30px auto;
}
}
#mobile-deep-link-spinner {
svg {
margin: 30px auto;
}
}