_editor-overlay.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. @mixin overlay-processing-style($additionalSelector, $contentFontSize: inherit, $contentPadding: inherit) {
  2. .overlay.#{$additionalSelector} {
  3. background: rgba(255, 255, 255, 0.5);
  4. .overlay-content {
  5. padding: $contentPadding;
  6. font-size: $contentFontSize;
  7. color: $gray-700;
  8. background: rgba(200, 200, 200, 0.5);
  9. }
  10. }
  11. }
  12. // overlay in .editor-container
  13. .editor-container {
  14. .overlay {
  15. position: absolute;
  16. top: 0;
  17. right: 0;
  18. bottom: 0;
  19. left: 0;
  20. z-index: 7; // forward than .CodeMirror-vscrollbar
  21. display: flex;
  22. align-items: center;
  23. justify-content: center;
  24. }
  25. // loading keymap
  26. @include overlay-processing-style(overlay-loading-keymap, 2.5em, 0.3em);
  27. // cheat sheat
  28. .overlay.overlay-gfm-cheatsheet {
  29. align-items: flex-end;
  30. justify-content: flex-end;
  31. pointer-events: none;
  32. .card.gfm-cheatsheet {
  33. box-shadow: unset;
  34. opacity: 0.6;
  35. .card-body {
  36. min-width: 30em;
  37. padding-bottom: 0;
  38. font-family: monospace;
  39. color: $text-muted;
  40. }
  41. ul > li {
  42. list-style: none;
  43. }
  44. }
  45. .gfm-cheatsheet-modal-link {
  46. color: $text-muted;
  47. pointer-events: all;
  48. cursor: pointer;
  49. background-color: transparent;
  50. border: none;
  51. opacity: 0.6;
  52. &:hover,
  53. &:focus {
  54. opacity: 1;
  55. }
  56. }
  57. }
  58. }
  59. .modal-gfm-cheatsheet .modal-body {
  60. .hljs {
  61. font-family: $font-family-monospace;
  62. }
  63. }