404.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @import '../../../../../../client/scss/settings';
  2. @import '../../../../../../client/scss/tools';
  3. .page404__bg {
  4. position: fixed;
  5. top: 0;
  6. inset-inline-start: 0;
  7. width: 100vw;
  8. height: 100vh;
  9. background-color: $color-teal-darker;
  10. font-family: $font-sans;
  11. color: $color-white;
  12. }
  13. .page404__wrapper {
  14. position: absolute;
  15. top: 50%;
  16. inset-inline-start: 50%;
  17. transform: translate(-50%, -50%);
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. }
  22. .page404__logo {
  23. float: left;
  24. width: 400px;
  25. height: 500px;
  26. // Media for Windows High Contrast mode
  27. @media (forced-colors: $media-forced-colours) {
  28. background-color: $system-color-link-text;
  29. }
  30. }
  31. .page404__text-container {
  32. float: right;
  33. width: 600px;
  34. height: 500px;
  35. text-align: center;
  36. }
  37. .page404__header {
  38. font-size: 6.8em;
  39. margin-bottom: 0.2em;
  40. color: inherit;
  41. }
  42. .page404__text {
  43. font-size: 2.25em;
  44. line-height: 1.25em;
  45. color: inherit;
  46. }
  47. a.button.page404__button {
  48. // more specific to override standard button styles
  49. font-size: 1.5em;
  50. line-height: 2em;
  51. height: 2.5em;
  52. padding: 0 0.5em;
  53. background-color: $color-teal-darker;
  54. border: 4px solid $color-teal;
  55. color: inherit;
  56. &:hover {
  57. background-color: $color-teal;
  58. }
  59. }
  60. // MOBILE CHANGES:
  61. @include media-breakpoint-down(xs) {
  62. .page404__text-container {
  63. width: 400px;
  64. }
  65. .page404__header {
  66. font-size: 5em;
  67. }
  68. }