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 {
608 .md-inline-math svg {
612 #math-inline-preview .md-arrow:after {
617 background: var(--bg-color);
625 .modal-content input {
626 background-color: rgba(26, 21, 21, 0.51);
630 .modal-content .input-group-addon {
635 background-color: rgba(174, 174, 174, 0.7);
638 .modal-content .btn-primary {
639 border-color: var(--primary-color);
642 .md-table-resize-popover {
643 background-color: #333;
646 .form-inline .input-group .input-group-addon {
651 border-bottom: 1px dashed grey;
654 /** UI for electron */
658 #footer-word-count-info {
659 background-color: #42464A;
662 .context-menu.dropdown-menu .divider,
663 .dropdown-menu .divider {
664 background-color: #777777;
671 @media (max-width: 1000px) {
680 #file-info-file-path .file-info-field-value:hover {
681 background-color: #555;
686 .megamenu-opened header {
687 background: var(--bg-color);
690 .megamenu-menu-panel h2,
691 .megamenu-menu-panel h1,
696 .megamenu-menu-panel input[type='text'] {
699 border-bottom: 1px solid;
702 #recent-file-panel-action-btn {
704 border: 1px grey solid;
707 .megamenu-menu-panel .dropdown-menu > li > a {
709 background-color: #2F353A;
710 text-decoration: none;
713 .megamenu-menu-panel table td:nth-child(1) {
718 .megamenu-menu-panel tbody tr:hover td:nth-child(1) {
722 .modal-footer .btn-default,
723 .modal-footer .btn-primary,
724 .modal-footer .btn-default:not(:hover) {
726 border-color: transparent;
729 .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
731 border: 1px solid #ddd;
732 background-color: inherit;
743 #recent-file-panel tbody tr:nth-child(2n-1) {
744 background-color: transparent !important;
747 .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
751 .megamenu-menu-panel .btn {
752 border: 1px solid #eee;
753 background: transparent;
756 .mouse-hover .toolbar-icon.btn:hover,
759 background-color: inherit;
762 .typora-node::-webkit-scrollbar {
766 .typora-node::-webkit-scrollbar-thumb:vertical {
767 background: rgba(250, 250, 250, 0.3);
770 .typora-node::-webkit-scrollbar-thumb:vertical:active {
771 background: rgba(250, 250, 250, 0.5);
775 background-color: #4182c4;
778 #top-titlebar, #top-titlebar * {
779 color: var(--item-hover-text-color);
782 .typora-sourceview-on #toggle-sourceview-btn,
783 #footer-word-count:hover,
784 .ty-show-word-count #footer-word-count {
788 #toggle-sourceview-btn:hover {
794 .on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
795 color: #686868 !important;
798 .on-focus-mode .md-end-block:not(.md-focus) img,
799 .on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
800 opacity: #686868 !important;
803 .on-focus-mode li[cid]:not(.md-focus-container){
807 .on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
808 .on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
809 color: #686868 !important;
812 .on-focus-mode .md-focus,
813 .on-focus-mode .md-focus-container {
817 .on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
818 color: #686868 !important;
823 #write .md-focus .md-diagram-panel {
824 border: 1px solid #ddd;
826 width: calc(100% + 2px);
830 #write .md-focus.md-fences-with-lineno .md-diagram-panel {
834 .md-diagram-panel-error {
838 .active-tab-files #info-panel-tab-file,
839 .active-tab-files #info-panel-tab-file:hover,
840 .active-tab-outline #info-panel-tab-outline,
841 .active-tab-outline #info-panel-tab-outline:hover {
845 .sidebar-footer-item:hover,
851 .ty-side-sort-btn.active,
852 .ty-side-sort-btn:hover,
853 .selected-folder-menu-item a:after {
857 #sidebar-files-menu {
859 box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
860 background-color: var(--bg-color);
867 .file-list-item-summary {
871 .file-list-item.active:first-child {
875 .file-node-background {
879 .file-library-node.active>.file-node-content,
880 .file-list-item.active {
882 color: var(--active-file-text-color);
885 .file-library-node.active>.file-node-background{
886 background-color: rgb(34, 34, 34);
887 background-color: var(--active-file-bg-color);
889 .file-list-item.active {
890 background-color: rgb(34, 34, 34);
891 background-color: var(--active-file-bg-color);
895 background-color: black;
899 .md-task-list-item>input {
902 -webkit-appearance: none;
905 .md-mathjax-midline {
906 background-color: #57616b;
911 border-color: #656565;
914 .ty-preferences .btn-default {
915 background: transparent;
917 .ty-preferences .btn-default:hover {
921 .ty-preferences select {
922 border: 1px solid #989698;
926 .ty-preferences .nav-group-item.active {
927 background: var(--item-hover-bg-color);
930 .ty-preferences input[type="search"] {
938 .ty-preferences input[type="search"]:focus {
942 [data-is-directory="true"] .file-node-content {
950 .html-for-mac .file-node-open-state, .html-for-mac .file-node-icon {
954 ::-webkit-scrollbar-thumb {
955 background: rgba(230, 230, 230, 0.30);
958 ::-webkit-scrollbar-thumb:active {
959 background: rgba(230, 230, 230, 0.50);
962 #typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
963 background: rgba(230, 230, 230, 0.30);
966 .nav-group-item:active {
967 background-color: #474d54;
971 background: rgba(199, 140, 60, 0.81);
979 #md-searchpanel input {