Developing a legal IDE based on Atom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
2.4 KiB

  1. // Global Markdown Preview styles
  2. .markdown-preview {
  3. atom-text-editor {
  4. // only show scrollbars on hover
  5. .scrollbars-visible-always & {
  6. .vertical-scrollbar,
  7. .horizontal-scrollbar {
  8. visibility: hidden;
  9. }
  10. }
  11. .scrollbars-visible-always &:hover {
  12. .vertical-scrollbar,
  13. .horizontal-scrollbar {
  14. visibility: visible;
  15. }
  16. }
  17. user-select: auto;
  18. }
  19. // move task list checkboxes
  20. .task-list-item input[type=checkbox] {
  21. position: absolute;
  22. margin: .25em 0 0 -1.4em;
  23. }
  24. .task-list-item {
  25. list-style-type: none;
  26. }
  27. }
  28. .markdown-spinner {
  29. margin: auto;
  30. background-image: url(images/octocat-spinner-128.gif);
  31. background-repeat: no-repeat;
  32. background-size: 64px;
  33. background-position: top center;
  34. padding-top: 70px;
  35. text-align: center;
  36. }
  37. // style the background color of the tree view
  38. .tree-view {
  39. // background-color: whitesmoke;
  40. }
  41. // style the background and foreground colors on the atom-text-editor-element itself
  42. atom-text-editor {
  43. // color: white;
  44. // background-color: hsl(180, 24%, 12%);
  45. }
  46. // To style other content in the text editor's shadow DOM, use the ::shadow expression
  47. atom-text-editor::shadow .cursor {
  48. // border-color: red;
  49. }
  50. .markdown-preview-custom {
  51. // please write your custom style here
  52. // eg:
  53. // color: blue; // change font color
  54. // font-size: 14px; // change font size
  55. //
  56. // custom pdf output style
  57. h1 {
  58. counter-increment: h1counter;
  59. counter-reset: h2counter;
  60. }
  61. h2 {
  62. counter-increment: h2counter;
  63. counter-reset: h3counter;
  64. }
  65. h3 {
  66. counter-increment: h3counter;
  67. counter-reset: h4counter;
  68. }
  69. h4 {
  70. counter-increment: h4counter;
  71. counter-reset: h5counter;
  72. }
  73. h1:before {
  74. content: counter(h1counter) ". ";
  75. }
  76. h2:before {
  77. content: counter(h1counter) "." counter(h2counter) ". ";
  78. }
  79. h3:before {
  80. content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) ". ";
  81. }
  82. h4:before {
  83. content: counter(h1counter) "." counter(h2counter) "." counter(h3counter) "." counter(h4counter) ". ";
  84. }
  85. @media print {
  86. }
  87. // custom phantomjs png/jpeg export style
  88. &.phantomjs-image {
  89. }
  90. //custom phantomjs pdf export style
  91. &.phantomjs-pdf {
  92. }
  93. // custom presentation style
  94. .preview-slides .slide,
  95. &[data-presentation-mode] {
  96. // eg
  97. // background-color: #000;
  98. }
  99. }
  100. .markdown-preview {
  101. .markdown-preview-custom() !important;
  102. }