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;
34 -webkit-font-smoothing: antialiased;
39 -webkit-text-size-adjust: 100%;
40 -ms-text-size-adjust: 100%;
42 background: var(--bg-color);
44 line-height: 1.625rem;
52 @media only screen and (min-width: 1400px) {
58 @media only screen and (min-width: 1800px) {
70 div.code-tooltip-content {
72 border-color: transparent;
76 .md-hover-tip .md-arrow:after {
80 .native-window #md-notification {
81 border: 1px solid #70717d;
84 .popover.bottom > .arrow:after {
85 border-bottom-color: #333;
94 font-family: "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif;
100 margin: 24px 0 !important;
109 font-family: "Lucida Grande", "Corbel", sans-serif;
112 -ms-word-wrap: break-word;
113 word-wrap: break-word;
122 line-height: 2.75rem;
124 margin-bottom: 1.5rem;
126 letter-spacing: -1.5px;
132 line-height: 1.875rem;
134 margin-bottom: 1.5rem;
136 letter-spacing: -1px;
145 margin-bottom: 1.5rem;
147 letter-spacing: -1px;
154 line-height: 1.375rem;
156 margin-bottom: 1.5rem;
164 line-height: 1.25rem;
166 margin-bottom: 1.5rem;
176 margin-bottom: 0.75rem;
180 @media (min-width: 980px) {
186 border: 1px solid #ddd;
189 left: -1.642857143rem;
195 vertical-align: bottom;
220 text-decoration: none;
229 outline: thin dotted;
233 background-color: #555;
238 -ms-word-wrap: break-word;
239 word-wrap: break-word;
253 .wp-video-shortcode {
255 margin-bottom: 1.5rem;
259 audio:not([controls]) {
282 padding: 0 0 0 1.875rem;
316 padding-left: 1.875rem;
317 margin: 0 0 1.875rem 1.875rem;
318 border-left: solid 2px #474d54;
329 font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
335 background: rgba(0, 0, 0, 0.05);
342 background-color: #333;
344 box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
348 padding: 10px 10px 10px 30px;
353 .CodeMirror-gutters {
355 border-right: 1px solid transparent;
358 .enable-diagrams pre.md-fences[lang="sequence"] .code-tooltip,
359 .enable-diagrams pre.md-fences[lang="flow"] .code-tooltip,
360 .enable-diagrams pre.md-fences[lang="mermaid"] .code-tooltip {
375 border-collapse: collapse;
386 -webkit-transition: all .2s ease-in-out;
387 transition: all .2s ease-in-out;
401 text-decoration: underline;
408 .md-inline-math script {
435 border: solid 1px #474d54;
444 padding-left: 1.25rem;
447 .md-task-list-item > input {
451 .md-task-list-item > input:before {
453 display: inline-block;
456 vertical-align: middle;
458 border: 1px solid #b8bfc6;
459 background-color: #363B40;
463 .md-task-list-item > input:checked:before,
464 .md-task-list-item > input[checked]:before {
468 line-height: 0.625rem;
473 .auto-suggest-container {
475 background-color: #525C65;
479 background-color: #525C65;
482 #typora-quick-open input{
483 background-color: #525C65;
485 border-bottom: 1px solid grey;
488 .typora-quick-open-item {
489 background-color: inherit;
493 .typora-quick-open-item.active,
494 .typora-quick-open-item:hover {
495 background-color: #4D8BDB;
499 .typora-quick-open-item:hover {
500 background-color: rgba(77, 139, 219, 0.8);
503 .typora-search-spinner > div {
504 background-color: #fff;
507 #write pre.md-meta-block {
508 border-bottom: 1px dashed #ccc;
509 background: transparent;
510 padding-bottom: 0.6em;
516 background: transparent;
521 border-top: 1px solid gray;
522 background-color: #363B40;
526 background: transparent;
531 background: transparent;
534 .md-expand.md-image>.md-meta {
545 text-decoration: underline;
550 #write>h3.md-focus:before {
554 #write>h4.md-focus:before {
562 #write div.md-toc-tooltip {
563 background-color: #363B40;
566 .dropdown-menu .btn:hover,
567 .dropdown-menu .btn:focus,
575 background: rgba(50, 54, 59, 0.93);
576 border: 1px solid rgba(253, 253, 253, 0.15);
579 #toc-dropmenu .divider {
580 background-color: #9b9b9b;
583 .outline-expander:before {
589 border-right: 1px dashed;
597 #typora-sidebar:hover .outline-title-wrapper {
598 border-left: 1px dashed;
601 .outline-title-wrapper .btn {
605 .outline-item:hover {
606 border-color: #363B40;
607 background-color: #363B40;
611 h1.md-focus .md-attr,
612 h2.md-focus .md-attr,
613 h3.md-focus .md-attr,
614 h4.md-focus .md-attr,
615 h5.md-focus .md-attr,
616 h6.md-focus .md-attr,
617 .md-header-span .md-attr {
627 .md-inline-math svg {
631 #math-inline-preview .md-arrow:after {
636 background: var(--bg-color);
644 .modal-content input {
645 background-color: rgba(26, 21, 21, 0.51);
649 .modal-content .input-group-addon {
654 background-color: rgba(174, 174, 174, 0.7);
657 .modal-content .btn-primary {
658 border-color: var(--primary-color);
661 .md-table-resize-popover {
662 background-color: #333;
665 .form-inline .input-group .input-group-addon {
670 border-bottom: 1px dashed grey;
673 /** UI for electron */
677 #footer-word-count-info {
678 background-color: #42464A;
681 .context-menu.dropdown-menu .divider,
682 .dropdown-menu .divider {
683 background-color: #777777;
691 @media (max-width: 1000px) {
700 #file-info-file-path .file-info-field-value:hover {
701 background-color: #555;
706 .megamenu-opened header {
707 background: var(--bg-color);
710 .megamenu-menu-panel h2,
711 .megamenu-menu-panel h1,
716 .megamenu-menu-panel input[type='text'] {
719 border-bottom: 1px solid;
722 #recent-file-panel-action-btn {
724 border: 1px grey solid;
727 .megamenu-menu-panel .dropdown-menu > li > a {
729 background-color: #2F353A;
730 text-decoration: none;
733 .megamenu-menu-panel table td:nth-child(1) {
738 .megamenu-menu-panel tbody tr:hover td:nth-child(1) {
742 .modal-footer .btn-default,
743 .modal-footer .btn-primary,
744 .modal-footer .btn-default:not(:hover) {
746 border-color: transparent;
753 .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
755 border: 1px solid #ddd;
756 background-color: inherit;
767 #recent-file-panel tbody tr:nth-child(2n-1) {
768 background-color: transparent !important;
771 .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
775 .megamenu-menu-panel .btn {
776 border: 1px solid #eee;
777 background: transparent;
780 .mouse-hover .toolbar-icon.btn:hover,
783 background-color: inherit;
786 .typora-node::-webkit-scrollbar {
790 .typora-node::-webkit-scrollbar-thumb:vertical {
791 background: rgba(250, 250, 250, 0.3);
794 .typora-node::-webkit-scrollbar-thumb:vertical:active {
795 background: rgba(250, 250, 250, 0.5);
799 background-color: #4182c4;
802 #top-titlebar, #top-titlebar * {
803 color: var(--item-hover-text-color);
806 .typora-sourceview-on #toggle-sourceview-btn,
807 #footer-word-count:hover,
808 .ty-show-word-count #footer-word-count {
812 #toggle-sourceview-btn:hover {
818 .on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
819 color: #686868 !important;
822 .on-focus-mode .md-end-block:not(.md-focus) img,
823 .on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
824 opacity: #686868 !important;
827 .on-focus-mode li[cid]:not(.md-focus-container){
831 .on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
832 .on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
833 color: #686868 !important;
836 .on-focus-mode .md-focus,
837 .on-focus-mode .md-focus-container {
841 .on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
842 color: #686868 !important;
847 #write .md-focus .md-diagram-panel {
848 border: 1px solid #ddd;
850 width: calc(100% + 2px);
854 #write .md-focus.md-fences-with-lineno .md-diagram-panel {
858 .md-diagram-panel-error {
862 .active-tab-files #info-panel-tab-file,
863 .active-tab-files #info-panel-tab-file:hover,
864 .active-tab-outline #info-panel-tab-outline,
865 .active-tab-outline #info-panel-tab-outline:hover {
869 .sidebar-footer-item:hover,
875 .ty-side-sort-btn.active,
876 .ty-side-sort-btn:hover,
877 .selected-folder-menu-item a:after {
881 #sidebar-files-menu {
883 box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
884 background-color: var(--bg-color);
891 .file-list-item-summary {
895 .file-list-item.active:first-child {
899 .file-node-background {
903 .file-library-node.active>.file-node-content,
904 .file-list-item.active {
906 color: var(--active-file-text-color);
909 .file-library-node.active>.file-node-background{
910 background-color: rgb(34, 34, 34);
911 background-color: var(--active-file-bg-color);
913 .file-list-item.active {
914 background-color: rgb(34, 34, 34);
915 background-color: var(--active-file-bg-color);
919 background-color: black;
923 .md-task-list-item>input {
926 -webkit-appearance: none;
929 .md-mathjax-midline {
930 background-color: #57616b;
935 border-color: #656565;
938 .ty-preferences .btn-default {
939 background: transparent;
941 .ty-preferences .btn-default:hover {
945 .ty-preferences select {
946 border: 1px solid #989698;
950 .ty-preferences .nav-group-item.active,
952 .export-items-list-control,
954 background: var(--item-hover-bg-color);
957 .ty-preferences input[type="search"] {
965 .ty-preferences input[type="search"]:focus {
969 [data-is-directory="true"] .file-node-content {
977 .html-for-mac .file-node-open-state, .html-for-mac .file-node-icon {
981 ::-webkit-scrollbar-thumb {
982 background: rgba(230, 230, 230, 0.30);
985 ::-webkit-scrollbar-thumb:active {
986 background: rgba(230, 230, 230, 0.50);
989 #typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
990 background: rgba(230, 230, 230, 0.30);
993 .nav-group-item:active {
994 background-color: #474d54 !important;
998 background: rgba(199, 140, 60, 0.81);
1006 #md-searchpanel input {
1010 .modal-backdrop.in {
1012 backdrop-filter: blur(1px);