error-pages.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .full-height {
  2. height: 100%;
  3. padding: 0;
  4. }
  5. .error-container {
  6. display: flex;
  7. align-items: center;
  8. }
  9. .error-container.full-height when (@is-overleaf = true) {
  10. margin-top: -(@header-height + @content-margin-vertical) / 2;
  11. }
  12. .error-figure {
  13. display: none;
  14. flex: 0 0 50%;
  15. padding: @line-height-computed * 2;
  16. @media (min-width: @screen-sm-min) {
  17. display: block;
  18. }
  19. }
  20. .error-figure when (@is-overleaf = true) {
  21. display: none;
  22. }
  23. .error-figure-500 {
  24. &::before {
  25. content: '';
  26. display: block;
  27. position: fixed;
  28. top: 0;
  29. bottom: 0;
  30. left: 0;
  31. right: 80%;
  32. background-image: url(/img/brand/500-visual-plug.svg);
  33. background-size: 400px;
  34. background-repeat: no-repeat;
  35. background-position: right 70%;
  36. pointer-events: none;
  37. }
  38. &::after {
  39. content: '';
  40. display: block;
  41. position: fixed;
  42. top: 0;
  43. bottom: 0;
  44. left: 0;
  45. right: 50%;
  46. background-image: url(/img/brand/500-visual-tail.svg);
  47. background-size: 100px;
  48. background-repeat: no-repeat;
  49. background-position: 90% bottom;
  50. pointer-events: none;
  51. }
  52. }
  53. .error-img {
  54. display: block;
  55. max-width: 380px;
  56. height: auto;
  57. margin: 0 auto;
  58. }
  59. .error-details {
  60. flex: 0 1 50%;
  61. padding: @line-height-computed * 2;
  62. }
  63. .error-details when (@is-overleaf = true) {
  64. flex-grow: 1;
  65. }
  66. .error-status {
  67. font-family: @font-family-serif;
  68. margin-bottom: (@line-height-computed / 4);
  69. color: @gray-dark;
  70. font-size: @font-size-h1;
  71. }
  72. .error-description {
  73. font-family: @font-family-serif;
  74. font-size: @font-size-h3;
  75. color: @gray;
  76. margin-bottom: @line-height-computed * 2;
  77. }
  78. .error-btn when (@is-overleaf = false) {
  79. color: @navbar-default-link-color;
  80. border: 2px solid @navbar-default-link-color;
  81. border-radius: @border-radius-base;
  82. font-weight: 700;
  83. line-height: 1;
  84. padding: @padding-base-vertical @padding-base-horizontal;
  85. &:hover,
  86. &:focus {
  87. text-decoration: none;
  88. color: #fff;
  89. background-color: @navbar-default-link-hover-bg;
  90. border: 2px solid @navbar-default-link-hover-color;
  91. }
  92. }
  93. .error-btn when (@is-overleaf = true) {
  94. .btn;
  95. .btn-primary;
  96. display: block;
  97. @media (min-width: @screen-sm-min) {
  98. display: inline-block;
  99. }
  100. }