error-pages.less 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-details {
  13. flex: 0 1 50%;
  14. padding: @line-height-computed * 2;
  15. }
  16. .error-details when (@is-overleaf = true) {
  17. flex-grow: 1;
  18. }
  19. .error-status {
  20. font-family: @font-family-serif;
  21. margin-bottom: (@line-height-computed / 4);
  22. color: @gray-dark;
  23. font-size: @font-size-h1;
  24. }
  25. .error-description {
  26. font-family: @font-family-serif;
  27. font-size: @font-size-h3;
  28. color: @gray;
  29. margin-bottom: @line-height-computed * 2;
  30. }
  31. .error-btn when (@is-overleaf = false) {
  32. color: @navbar-default-link-color;
  33. border: 2px solid @navbar-default-link-color;
  34. border-radius: @border-radius-base;
  35. font-weight: 700;
  36. line-height: 1;
  37. padding: @padding-base-vertical @padding-base-horizontal;
  38. &:hover,
  39. &:focus {
  40. text-decoration: none;
  41. color: #fff;
  42. background-color: @navbar-default-link-hover-bg;
  43. border: 2px solid @navbar-default-link-hover-color;
  44. }
  45. }
  46. .error-btn when (@is-overleaf = true) {
  47. .btn;
  48. .btn-primary;
  49. display: block;
  50. @media (min-width: @screen-sm-min) {
  51. display: inline-block;
  52. }
  53. }