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;
51 @media only screen and (min-width: 1400px) {
57 @media only screen and (min-width: 1800px) {
69 div.code-tooltip-content {
71 border-color: transparent;
75 .md-hover-tip .md-arrow:after {
79 .popover.bottom > .arrow:after {
80 border-bottom-color: #333;
89 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
95 margin: 24px 0 !important;
104 font-family: "Lucida Grande", "Corbel", sans-serif;
107 -ms-word-wrap: break-word;
108 word-wrap: break-word;
117 line-height: 2.75rem;
119 margin-bottom: 1.5rem;
121 letter-spacing: -1.5px;
127 line-height: 1.875rem;
129 margin-bottom: 1.5rem;
131 letter-spacing: -1px;
140 margin-bottom: 1.5rem;
142 letter-spacing: -1px;
149 line-height: 1.375rem;
151 margin-bottom: 1.5rem;
159 line-height: 1.25rem;
161 margin-bottom: 1.5rem;
171 margin-bottom: 0.75rem;
175 @media (min-width: 980px) {
181 border: 1px solid #ddd;
184 left: -1.642857143rem;
190 vertical-align: bottom;
215 text-decoration: none;
224 outline: thin dotted;
228 background-color: #555;
233 -ms-word-wrap: break-word;
234 word-wrap: break-word;
248 .wp-video-shortcode {
250 margin-bottom: 1.5rem;
254 audio:not([controls]) {
277 padding: 0 0 0 1.875rem;
311 padding-left: 1.875rem;
312 margin: 0 0 1.875rem 1.875rem;
313 border-left: solid 2px #474d54;
324 font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
330 background: rgba(0, 0, 0, 0.05);
337 background-color: #333;
339 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
343 padding: 10px 10px 10px 30px;
348 .CodeMirror-gutters {
350 border-right: 1px solid transparent;
353 .enable-diagrams pre.md-fences[lang="sequence"] .code-tooltip,
354 .enable-diagrams pre.md-fences[lang="flow"] .code-tooltip,
355 .enable-diagrams pre.md-fences[lang="mermaid"] .code-tooltip {
370 border-collapse: collapse;
381 -webkit-transition: all .2s ease-in-out;
382 transition: all .2s ease-in-out;
396 text-decoration: underline;
403 .md-inline-math script {
430 border: solid 1px #474d54;
439 padding-left: 1.25rem;
442 .md-task-list-item > input {
446 .md-task-list-item > input:before {
448 display: inline-block;
451 vertical-align: middle;
453 border: 1px solid #b8bfc6;
454 background-color: #363B40;
458 .md-task-list-item > input:checked:before,
459 .md-task-list-item > input[checked]:before {
463 line-height: 0.625rem;
468 .auto-suggest-container {
470 background-color: #525C65;
474 background-color: #525C65;
477 #typora-quick-open input{
478 background-color: #525C65;
480 border-bottom: 1px solid grey;
483 .typora-quick-open-item {
484 background-color: inherit;
488 .typora-quick-open-item.active,
489 .typora-quick-open-item:hover {
490 background-color: #4D8BDB;
494 .typora-quick-open-item:hover {
495 background-color: rgba(77, 139, 219, 0.8);
498 .typora-search-spinner > div {
499 background-color: #fff;
502 #write pre.md-meta-block {
503 border-bottom: 1px dashed #ccc;
504 background: transparent;
505 padding-bottom: 0.6em;
511 background: transparent;
516 border-top: 1px solid gray;
517 background-color: #363B40;
521 background: transparent;
526 background: transparent;
529 .md-expand.md-image>.md-meta {
540 text-decoration: underline;
545 #write>h3.md-focus:before {
549 #write>h4.md-focus:before {
557 #write div.md-toc-tooltip {
558 background-color: #363B40;
561 .dropdown-menu .btn:hover,
562 .dropdown-menu .btn:focus,
570 background: rgba(50, 54, 59, 0.93);
571 border: 1px solid rgba(253, 253, 253, 0.15);
574 #toc-dropmenu .divider {
575 background-color: #9b9b9b;
578 .outline-expander:before {
584 border-right: 1px dashed;
592 #typora-sidebar:hover .outline-title-wrapper {
593 border-left: 1px dashed;
596 .outline-title-wrapper .btn {
600 .outline-item:hover {
601 border-color: #363B40;
602 background-color: #363B40;
606 h1.md-focus .md-attr,
607 h2.md-focus .md-attr,
608 h3.md-focus .md-attr,
609 h4.md-focus .md-attr,
610 h5.md-focus .md-attr,
611 h6.md-focus .md-attr,
612 .md-header-span .md-attr {
622 .md-inline-math svg {
626 #math-inline-preview .md-arrow:after {
631 background: var(--bg-color);
639 .modal-content input {
640 background-color: rgba(26, 21, 21, 0.51);
644 .modal-content .input-group-addon {
649 background-color: rgba(174, 174, 174, 0.7);
652 .modal-content .btn-primary {
653 border-color: var(--primary-color);
656 .md-table-resize-popover {
657 background-color: #333;
660 .form-inline .input-group .input-group-addon {
665 border-bottom: 1px dashed grey;
668 /** UI for electron */
672 #footer-word-count-info {
673 background-color: #42464A;
676 .context-menu.dropdown-menu .divider,
677 .dropdown-menu .divider {
678 background-color: #777777;
686 @media (max-width: 1000px) {
695 #file-info-file-path .file-info-field-value:hover {
696 background-color: #555;
701 .megamenu-opened header {
702 background: var(--bg-color);
705 .megamenu-menu-panel h2,
706 .megamenu-menu-panel h1,
711 .megamenu-menu-panel input[type='text'] {
714 border-bottom: 1px solid;
717 #recent-file-panel-action-btn {
719 border: 1px grey solid;
722 .megamenu-menu-panel .dropdown-menu > li > a {
724 background-color: #2F353A;
725 text-decoration: none;
728 .megamenu-menu-panel table td:nth-child(1) {
733 .megamenu-menu-panel tbody tr:hover td:nth-child(1) {
737 .modal-footer .btn-default,
738 .modal-footer .btn-primary,
739 .modal-footer .btn-default:not(:hover) {
741 border-color: transparent;
748 .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
750 border: 1px solid #ddd;
751 background-color: inherit;
762 #recent-file-panel tbody tr:nth-child(2n-1) {
763 background-color: transparent !important;
766 .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
770 .megamenu-menu-panel .btn {
771 border: 1px solid #eee;
772 background: transparent;
775 .mouse-hover .toolbar-icon.btn:hover,
778 background-color: inherit;
781 .typora-node::-webkit-scrollbar {
785 .typora-node::-webkit-scrollbar-thumb:vertical {
786 background: rgba(250, 250, 250, 0.3);
789 .typora-node::-webkit-scrollbar-thumb:vertical:active {
790 background: rgba(250, 250, 250, 0.5);
794 background-color: #4182c4;
797 #top-titlebar, #top-titlebar * {
798 color: var(--item-hover-text-color);
801 .typora-sourceview-on #toggle-sourceview-btn,
802 #footer-word-count:hover,
803 .ty-show-word-count #footer-word-count {
807 #toggle-sourceview-btn:hover {
813 .on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
814 color: #686868 !important;
817 .on-focus-mode .md-end-block:not(.md-focus) img,
818 .on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
819 opacity: #686868 !important;
822 .on-focus-mode li[cid]:not(.md-focus-container){
826 .on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
827 .on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
828 color: #686868 !important;
831 .on-focus-mode .md-focus,
832 .on-focus-mode .md-focus-container {
836 .on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
837 color: #686868 !important;
842 #write .md-focus .md-diagram-panel {
843 border: 1px solid #ddd;
845 width: calc(100% + 2px);
849 #write .md-focus.md-fences-with-lineno .md-diagram-panel {
853 .md-diagram-panel-error {
857 .active-tab-files #info-panel-tab-file,
858 .active-tab-files #info-panel-tab-file:hover,
859 .active-tab-outline #info-panel-tab-outline,
860 .active-tab-outline #info-panel-tab-outline:hover {
864 .sidebar-footer-item:hover,
870 .ty-side-sort-btn.active,
871 .ty-side-sort-btn:hover,
872 .selected-folder-menu-item a:after {
876 #sidebar-files-menu {
878 box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
879 background-color: var(--bg-color);
886 .file-list-item-summary {
890 .file-list-item.active:first-child {
894 .file-node-background {
898 .file-library-node.active>.file-node-content,
899 .file-list-item.active {
901 color: var(--active-file-text-color);
904 .file-library-node.active>.file-node-background{
905 background-color: rgb(34, 34, 34);
906 background-color: var(--active-file-bg-color);
908 .file-list-item.active {
909 background-color: rgb(34, 34, 34);
910 background-color: var(--active-file-bg-color);
914 background-color: black;
918 .md-task-list-item>input {
921 -webkit-appearance: none;
924 .md-mathjax-midline {
925 background-color: #57616b;
930 border-color: #656565;
933 .ty-preferences .btn-default {
934 background: transparent;
936 .ty-preferences .btn-default:hover {
940 .ty-preferences select {
941 border: 1px solid #989698;
945 .ty-preferences .nav-group-item.active {
946 background: var(--item-hover-bg-color);
949 .ty-preferences input[type="search"] {
957 .ty-preferences input[type="search"]:focus {
961 [data-is-directory="true"] .file-node-content {
969 .html-for-mac .file-node-open-state, .html-for-mac .file-node-icon {
973 ::-webkit-scrollbar-thumb {
974 background: rgba(230, 230, 230, 0.30);
977 ::-webkit-scrollbar-thumb:active {
978 background: rgba(230, 230, 230, 0.50);
981 #typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
982 background: rgba(230, 230, 230, 0.30);
985 .nav-group-item:active {
986 background-color: #474d54 !important;
990 background: rgba(199, 140, 60, 0.81);
998 #md-searchpanel input {
1002 .modal-backdrop.in {
1004 backdrop-filter: blur(1px);