Noscript.module.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @import '../../../styles/mixins.scss';
  2. .noscript {
  3. position: fixed;
  4. inset: 0;
  5. display: flex;
  6. justify-content: center;
  7. align-items: center;
  8. text-align: center;
  9. padding: 2em;
  10. font-size: large;
  11. background-color: var(--theme-color-background-main);
  12. z-index: 999;
  13. h2 {
  14. margin-top: 25px;
  15. margin-bottom: 5px;
  16. font-weight: bold;
  17. font-size: inherit;
  18. }
  19. }
  20. // Necessary in case content y-overflows becuase
  21. // align-items: center would otherwise hide some
  22. // of the content
  23. .scrollContainer {
  24. max-height: 100%;
  25. overflow: auto;
  26. }
  27. .content {
  28. max-width: 100%;
  29. width: 70ch;
  30. display: flex;
  31. flex-direction: column;
  32. align-items: center;
  33. }
  34. .logo {
  35. width: 70%;
  36. // For some weir reason, the logo isn't displayed on screens <= 767px.
  37. // This coincides with the tablet breakpoint, but god knows what exactly
  38. // the issue is. Since it's just a design element, just hide the logo on
  39. // those smaller screens. For more information, see
  40. // https://github.com/owncast/owncast/pull/2592
  41. @include screen(tablet) {
  42. display: none;
  43. }
  44. }