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;
258 audio:not([controls]) {
281 padding: 0 0 0 1.875rem;
315 padding-left: 1.875rem;
316 margin: 0 0 1.875rem 1.875rem;
317 border-left: solid 2px #474d54;
328 font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
334 background: rgba(0, 0, 0, 0.05);
341 background-color: #333;
343 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
347 padding: 10px 10px 10px 30px;
352 .CodeMirror-gutters {
354 border-right: 1px solid transparent;
357 .enable-diagrams pre.md-fences[lang="sequence"] .code-tooltip,
358 .enable-diagrams pre.md-fences[lang="flow"] .code-tooltip,
359 .enable-diagrams pre.md-fences[lang="mermaid"] .code-tooltip {
374 border-collapse: collapse;
385 -webkit-transition: all .2s ease-in-out;
386 transition: all .2s ease-in-out;
400 text-decoration: underline;
407 .md-inline-math script {
434 border: solid 1px #474d54;
443 padding-left: 1.25rem;
446 .md-task-list-item > input {
450 .md-task-list-item > input:before {
452 display: inline-block;
455 vertical-align: middle;
457 border: 1px solid #b8bfc6;
458 background-color: #363B40;
462 .md-task-list-item > input:checked:before,
463 .md-task-list-item > input[checked]:before {
467 line-height: 0.625rem;
472 .auto-suggest-container {
474 background-color: #525C65;
478 background-color: #525C65;
481 #typora-quick-open input{
482 background-color: #525C65;
484 border-bottom: 1px solid grey;
487 .typora-quick-open-item {
488 background-color: inherit;
492 .typora-quick-open-item.active,
493 .typora-quick-open-item:hover {
494 background-color: #4D8BDB;
498 .typora-quick-open-item:hover {
499 background-color: rgba(77, 139, 219, 0.8);
502 .typora-search-spinner > div {
503 background-color: #fff;
506 #write pre.md-meta-block {
507 border-bottom: 1px dashed #ccc;
508 background: transparent;
509 padding-bottom: 0.6em;
515 background: transparent;
520 border-top: 1px solid gray;
521 background-color: #363B40;
525 background: transparent;
530 background: transparent;
533 .md-expand.md-image>.md-meta {
544 text-decoration: underline;
549 #write>h3.md-focus:before {
553 #write>h4.md-focus:before {
561 #write div.md-toc-tooltip {
562 background-color: #363B40;
565 .dropdown-menu .btn:hover,
566 .dropdown-menu .btn:focus,
574 background: rgba(50, 54, 59, 0.93);
575 border: 1px solid rgba(253, 253, 253, 0.15);
578 #toc-dropmenu .divider {
579 background-color: #9b9b9b;
582 .outline-expander:before {
588 border-right: 1px dashed;
596 #typora-sidebar:hover .outline-title-wrapper {
597 border-left: 1px dashed;
600 .outline-title-wrapper .btn {
604 .outline-item:hover {
605 border-color: #363B40;
606 background-color: #363B40;
610 h1.md-focus .md-attr,
611 h2.md-focus .md-attr,
612 h3.md-focus .md-attr,
613 h4.md-focus .md-attr,
614 h5.md-focus .md-attr,
615 h6.md-focus .md-attr,
616 .md-header-span .md-attr {
626 .md-inline-math svg {
630 #math-inline-preview .md-arrow:after {
635 background: var(--bg-color);
643 .modal-content input {
644 background-color: rgba(26, 21, 21, 0.51);
648 .modal-content .input-group-addon {
653 background-color: rgba(174, 174, 174, 0.7);
656 .modal-content .btn-primary {
657 border-color: var(--primary-color);
660 .md-table-resize-popover {
661 background-color: #333;
664 .form-inline .input-group .input-group-addon {
669 border-bottom: 1px dashed grey;
672 /** UI for electron */
676 #footer-word-count-info {
677 background-color: #42464A;
680 .context-menu.dropdown-menu .divider,
681 .dropdown-menu .divider {
682 background-color: #777777;
689 @media (max-width: 1000px) {
698 #file-info-file-path .file-info-field-value:hover {
699 background-color: #555;
704 .megamenu-opened header {
705 background: var(--bg-color);
708 .megamenu-menu-panel h2,
709 .megamenu-menu-panel h1,
714 .megamenu-menu-panel input[type='text'] {
717 border-bottom: 1px solid;
720 #recent-file-panel-action-btn {
722 border: 1px grey solid;
725 .megamenu-menu-panel .dropdown-menu > li > a {
727 background-color: #2F353A;
728 text-decoration: none;
731 .megamenu-menu-panel table td:nth-child(1) {
736 .megamenu-menu-panel tbody tr:hover td:nth-child(1) {
740 .modal-footer .btn-default,
741 .modal-footer .btn-primary,
742 .modal-footer .btn-default:not(:hover) {
744 border-color: transparent;
747 .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
749 border: 1px solid #ddd;
750 background-color: inherit;
761 #recent-file-panel tbody tr:nth-child(2n-1) {
762 background-color: transparent !important;
765 .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
769 .megamenu-menu-panel .btn {
770 border: 1px solid #eee;
771 background: transparent;
774 .mouse-hover .toolbar-icon.btn:hover,
777 background-color: inherit;
780 .typora-node::-webkit-scrollbar {
784 .typora-node::-webkit-scrollbar-thumb:vertical {
785 background: rgba(250, 250, 250, 0.3);
788 .typora-node::-webkit-scrollbar-thumb:vertical:active {
789 background: rgba(250, 250, 250, 0.5);
793 background-color: #4182c4;
796 #top-titlebar, #top-titlebar * {
797 color: var(--item-hover-text-color);
800 .typora-sourceview-on #toggle-sourceview-btn,
801 #footer-word-count:hover,
802 .ty-show-word-count #footer-word-count {
806 #toggle-sourceview-btn:hover {
812 .on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
813 color: #686868 !important;
816 .on-focus-mode .md-end-block:not(.md-focus) img,
817 .on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
818 opacity: #686868 !important;
821 .on-focus-mode li[cid]:not(.md-focus-container){
825 .on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
826 .on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
827 color: #686868 !important;
830 .on-focus-mode .md-focus,
831 .on-focus-mode .md-focus-container {
835 .on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
836 color: #686868 !important;
841 #write .md-focus .md-diagram-panel {
842 border: 1px solid #ddd;
844 width: calc(100% + 2px);
848 #write .md-focus.md-fences-with-lineno .md-diagram-panel {
852 .md-diagram-panel-error {
856 .active-tab-files #info-panel-tab-file,
857 .active-tab-files #info-panel-tab-file:hover,
858 .active-tab-outline #info-panel-tab-outline,
859 .active-tab-outline #info-panel-tab-outline:hover {
863 .sidebar-footer-item:hover,
869 .ty-side-sort-btn.active,
870 .ty-side-sort-btn:hover,
871 .selected-folder-menu-item a:after {
875 #sidebar-files-menu {
877 box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
878 background-color: var(--bg-color);
885 .file-list-item-summary {
889 .file-list-item.active:first-child {
893 .file-node-background {
897 .file-library-node.active>.file-node-content,
898 .file-list-item.active {
900 color: var(--active-file-text-color);
903 .file-library-node.active>.file-node-background{
904 background-color: rgb(34, 34, 34);
905 background-color: var(--active-file-bg-color);
907 .file-list-item.active {
908 background-color: rgb(34, 34, 34);
909 background-color: var(--active-file-bg-color);
913 background-color: black;
917 .md-task-list-item>input {
920 -webkit-appearance: none;
923 .md-mathjax-midline {
924 background-color: #57616b;
929 border-color: #656565;
932 .ty-preferences .btn-default {
933 background: transparent;
935 .ty-preferences .btn-default:hover {
939 .ty-preferences select {
940 border: 1px solid #989698;
944 .ty-preferences .nav-group-item.active {
945 background: var(--item-hover-bg-color);
948 .ty-preferences input[type="search"] {
956 .ty-preferences input[type="search"]:focus {
960 [data-is-directory="true"] .file-node-content {
968 .html-for-mac .file-node-open-state, .html-for-mac .file-node-icon {
972 ::-webkit-scrollbar-thumb {
973 background: rgba(230, 230, 230, 0.30);
976 ::-webkit-scrollbar-thumb:active {
977 background: rgba(230, 230, 230, 0.50);
980 #typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
981 background: rgba(230, 230, 230, 0.30);
984 .nav-group-item:active {
985 background-color: #474d54;
989 background: rgba(199, 140, 60, 0.81);
997 #md-searchpanel input {
1002 .export-item.active,
1003 .export-items-list-control {