1 @import "night/mermaid.dark.css";
2 @import "night/codeblock.dark.css";
3 @import "night/sourcemode.dark.css";
7 --side-bar-bg-color: #2E3033;
10 --select-text-bg-color:#4a89dc;
12 --item-hover-bg-color: #0a0d16;
13 --control-text-color: #b7b7b7;
14 --control-text-hover-color: #eee;
15 --window-border: 1px solid #555;
17 --active-file-bg-color: rgb(34, 34, 34);
18 --active-file-border-color: #8d8df0;
20 --primary-color: #a3d5fe;
22 --active-file-text-color: white;
23 --item-hover-bg-color: #70717d;
24 --item-hover-text-color: white;
25 --primary-color: #6dc1e7;
27 --rawblock-edit-panel-bd: #333;
29 --search-select-bg-color: #428bca;
38 -webkit-text-size-adjust: 100%;
39 -ms-text-size-adjust: 100%;
41 background: var(--bg-color);
43 line-height: 1.625rem;
56 div.code-tooltip-content {
58 border-color: transparent;
62 .md-hover-tip .md-arrow:after {
66 .popover.bottom > .arrow:after {
67 border-bottom-color: #333;
76 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
82 margin: 24px 0 !important;
91 font-family: "Lucida Grande", "Corbel", sans-serif;
94 -ms-word-wrap: break-word;
95 word-wrap: break-word;
104 line-height: 2.75rem;
106 margin-bottom: 1.5rem;
108 letter-spacing: -1.5px;
114 line-height: 1.875rem;
116 margin-bottom: 1.5rem;
118 letter-spacing: -1px;
127 margin-bottom: 1.5rem;
129 letter-spacing: -1px;
136 line-height: 1.375rem;
138 margin-bottom: 1.5rem;
146 line-height: 1.25rem;
148 margin-bottom: 1.5rem;
158 margin-bottom: 0.75rem;
162 @media (min-width: 980px) {
168 border: 1px solid #ddd;
171 left: -1.642857143rem;
177 vertical-align: bottom;
202 text-decoration: none;
211 outline: thin dotted;
215 background-color: #555;
220 -ms-word-wrap: break-word;
221 word-wrap: break-word;
235 .wp-video-shortcode {
237 margin-bottom: 1.5rem;
245 audio:not([controls]) {
268 padding: 0 0 0 1.875rem;
302 padding-left: 1.875rem;
303 margin: 0 0 1.875rem 1.875rem;
304 border-left: solid 2px #474d54;
314 background: rgba(0, 0, 0, 0.05);
316 font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
323 background-color: #333;
325 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
329 padding: 10px 10px 10px 30px;
334 .CodeMirror-gutters {
336 border-right: 1px solid transparent;
339 .enable-diagrams pre.md-fences[lang="sequence"] .code-tooltip,
340 .enable-diagrams pre.md-fences[lang="flow"] .code-tooltip,
341 .enable-diagrams pre.md-fences[lang="mermaid"] .code-tooltip {
356 border-collapse: collapse;
367 -webkit-transition: all .2s ease-in-out;
368 transition: all .2s ease-in-out;
382 text-decoration: underline;
389 .md-inline-math script {
416 border: solid 1px #474d54;
425 padding-left: 1.25rem;
428 .md-task-list-item > input {
432 .md-task-list-item > input:before {
434 display: inline-block;
437 vertical-align: middle;
439 border: 1px solid #b8bfc6;
440 background-color: #363B40;
444 .md-task-list-item > input:checked:before,
445 .md-task-list-item > input[checked]:before {
449 line-height: 0.625rem;
454 .auto-suggest-container {
456 background-color: #525C65;
460 background-color: #525C65;
463 #typora-quick-open input{
464 background-color: #525C65;
466 border-bottom: 1px solid grey;
469 .typora-quick-open-item {
470 background-color: inherit;
474 .typora-quick-open-item.active,
475 .typora-quick-open-item:hover {
476 background-color: #4D8BDB;
480 .typora-quick-open-item:hover {
481 background-color: rgba(77, 139, 219, 0.8);
484 .typora-search-spinner > div {
485 background-color: #fff;
488 #write pre.md-meta-block {
489 border-bottom: 1px dashed #ccc;
490 background: transparent;
491 padding-bottom: 0.6em;
497 background: transparent;
502 border-top: 1px solid gray;
503 background-color: #363B40;
507 background: transparent;
512 background: transparent;
515 .md-expand.md-image>.md-meta {
526 text-decoration: underline;
531 #write>h3.md-focus:before {
535 #write>h4.md-focus:before {
543 #write div.md-toc-tooltip {
544 background-color: #363B40;
547 .dropdown-menu .btn:hover,
548 .dropdown-menu .btn:focus,
556 background: rgba(50, 54, 59, 0.93);
557 border: 1px solid rgba(253, 253, 253, 0.15);
560 #toc-dropmenu .divider {
561 background-color: #9b9b9b;
564 .outline-expander:before {
570 border-right: 1px dashed;
578 #typora-sidebar:hover .outline-title-wrapper {
579 border-left: 1px dashed;
582 .outline-title-wrapper .btn {
586 .outline-item:hover {
587 border-color: #363B40;
588 background-color: #363B40;
592 h1.md-focus .md-attr,
593 h2.md-focus .md-attr,
594 h3.md-focus .md-attr,
595 h4.md-focus .md-attr,
596 h5.md-focus .md-attr,
597 h6.md-focus .md-attr,
598 .md-header-span .md-attr {
609 .md-inline-math svg {
610 stroke: #b8bfc6 !important;
611 fill: #b8bfc6 !important;
614 [md-inline='inline_math'] {
618 #math-inline-preview .md-arrow:after {
623 background: var(--bg-color);
631 .modal-content input {
632 background-color: rgba(26, 21, 21, 0.51);
636 .modal-content .input-group-addon {
641 background-color: rgba(174, 174, 174, 0.7);
644 .modal-content .btn-primary {
645 border-color: var(--primary-color);
648 .md-table-resize-popover {
649 background-color: #333;
652 .form-inline .input-group .input-group-addon {
657 border-bottom: 1px dashed grey;
660 /** UI for electron */
664 #footer-word-count-info {
665 background-color: #42464A;
668 .context-menu.dropdown-menu .divider,
669 .dropdown-menu .divider {
670 background-color: #777777;
677 @media (max-width: 1000px) {
686 #file-info-file-path .file-info-field-value:hover {
687 background-color: #555;
692 .megamenu-opened header {
693 background: var(--bg-color);
696 .megamenu-menu-panel h2,
697 .megamenu-menu-panel h1,
702 .megamenu-menu-panel input[type='text'] {
705 border-bottom: 1px solid;
708 #recent-file-panel-action-btn {
710 border: 1px grey solid;
713 .megamenu-menu-panel .dropdown-menu > li > a {
715 background-color: #2F353A;
716 text-decoration: none;
719 .megamenu-menu-panel table td:nth-child(1) {
724 .megamenu-menu-panel tbody tr:hover td:nth-child(1) {
728 .modal-footer .btn-default,
729 .modal-footer .btn-primary,
730 .modal-footer .btn-default:not(:hover) {
732 border-color: transparent;
735 .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
737 border: 1px solid #ddd;
738 background-color: inherit;
749 #recent-file-panel tbody tr:nth-child(2n-1) {
750 background-color: transparent !important;
753 .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
757 .megamenu-menu-panel .btn {
758 border: 1px solid #eee;
759 background: transparent;
762 .mouse-hover .toolbar-icon.btn:hover,
765 background-color: inherit;
768 .typora-node::-webkit-scrollbar {
772 .typora-node::-webkit-scrollbar-thumb:vertical {
773 background: rgba(250, 250, 250, 0.3);
776 .typora-node::-webkit-scrollbar-thumb:vertical:active {
777 background: rgba(250, 250, 250, 0.5);
781 background-color: #4182c4;
784 #top-titlebar, #top-titlebar * {
785 color: var(--item-hover-text-color);
788 .typora-sourceview-on #toggle-sourceview-btn,
789 #footer-word-count:hover,
790 .ty-show-word-count #footer-word-count {
794 #toggle-sourceview-btn:hover {
800 .on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
801 color: #686868 !important;
804 .on-focus-mode .md-end-block:not(.md-focus) img,
805 .on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
806 opacity: #686868 !important;
809 .on-focus-mode li[cid]:not(.md-focus-container){
813 .on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
814 .on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
815 color: #686868 !important;
818 .on-focus-mode .md-focus,
819 .on-focus-mode .md-focus-container {
823 .on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
824 color: #686868 !important;
829 #write .md-focus .md-diagram-panel {
830 border: 1px solid #ddd;
832 width: calc(100% + 2px);
836 #write .md-focus.md-fences-with-lineno .md-diagram-panel {
840 .md-diagram-panel-error {
844 .active-tab-files #info-panel-tab-file,
845 .active-tab-files #info-panel-tab-file:hover,
846 .active-tab-outline #info-panel-tab-outline,
847 .active-tab-outline #info-panel-tab-outline:hover {
851 .sidebar-footer-item:hover,
857 .ty-side-sort-btn.active,
858 .ty-side-sort-btn:hover,
859 .selected-folder-menu-item a:after {
863 #sidebar-files-menu {
865 box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
866 background-color: var(--bg-color);
873 .file-list-item-summary {
877 .file-list-item.active:first-child {
881 .file-node-background {
885 .file-library-node.active>.file-node-content,
886 .file-list-item.active {
888 color: var(--active-file-text-color);
891 .file-library-node.active>.file-node-background{
892 background-color: rgb(34, 34, 34);
893 background-color: var(--active-file-bg-color);
895 .file-list-item.active {
896 background-color: rgb(34, 34, 34);
897 background-color: var(--active-file-bg-color);
901 background-color: black;
905 .md-task-list-item>input {
908 -webkit-appearance: none;
911 .md-mathjax-midline {
912 background-color: #57616b;
917 border-color: #656565;
920 .ty-preferences .btn-default {
921 background: transparent;
923 .ty-preferences .btn-default:hover {
927 .ty-preferences select {
928 border: 1px solid #989698;
932 .ty-preferences .nav-group-item.active {
933 background: var(--item-hover-bg-color);
936 .ty-preferences input[type="search"] {
944 .ty-preferences input[type="search"]:focus {
948 [data-is-directory="true"] .file-node-content {
956 .html-for-mac .file-node-open-state, .html-for-mac .file-node-icon {
960 ::-webkit-scrollbar-thumb {
961 background: rgba(230, 230, 230, 0.30);
964 ::-webkit-scrollbar-thumb:active {
965 background: rgba(230, 230, 230, 0.50);
968 #typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
969 background: rgba(230, 230, 230, 0.30);
972 .nav-group-item:active {
973 background-color: #474d54;
977 background-color: rgba(199, 140, 60, 0.81);
985 #md-searchpanel input {