2
0

_editor-overlay.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. background: rgba(200,200,200,0.5);
  6. color: #444;
  7. font-size: $contentFontSize;
  8. padding: $contentPadding;
  9. }
  10. }
  11. }
  12. // overlay in .editor-container
  13. .editor-container {
  14. .overlay {
  15. // layout
  16. display: flex;
  17. justify-content: center;
  18. align-items: center;
  19. position: absolute;
  20. z-index: 7; // forward than .CodeMirror-vscrollbar
  21. top: 0;
  22. right: 0;
  23. bottom: 0;
  24. left: 0;
  25. .overlay-content {
  26. padding: 0.5em;
  27. right: 0;
  28. bottom: 0;
  29. }
  30. }
  31. // loading keymap
  32. @include overlay-processing-style(overlay-loading-keymap, 2.5em, 0.3em);
  33. // cheat sheat
  34. .overlay.overlay-gfm-cheatsheat {
  35. justify-content: end;
  36. align-items: end;
  37. pointer-events: none;
  38. float: right;
  39. height: 400px;
  40. width: 320px;
  41. border: solid 1.5px lightgray;
  42. margin: auto;
  43. .overlay-content {
  44. color: $text-muted;
  45. }
  46. ul{
  47. list-style: none;
  48. }
  49. .markdown-help{
  50. text-align: center;
  51. padding: 0.3em;
  52. font-size: 1.2em;
  53. font-family: 'Verdana';
  54. }
  55. }
  56. @media screen and (max-width: 400px) {
  57. .overlay-gfm-cheatsheat {
  58. visibility: hidden;
  59. }
  60. }
  61. }