404.scss 1.6 KB

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