my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

611 lines
10 KiB

  1. /* meyer reset -- http://meyerweb.com/eric/tools/css/reset/ , v2.0 | 20110126 | License: none (public domain) */
  2. @include-when-export url(https://fonts.loli.net/css?family=PT+Serif:400,400italic,700,700italic&subset=latin,cyrillic-ext,cyrillic,latin-ext);
  3. /* =========== */
  4. /* pt-serif-regular - latin */
  5. @font-face {
  6. font-family: 'PT Serif';
  7. font-style: normal;
  8. font-weight: normal;
  9. src: local('PT Serif'), local('PTSerif-Regular'), url('./newsprint/pt-serif-v11-latin-regular.woff2') format('woff2');
  10. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  11. }
  12. /* pt-serif-italic - latin */
  13. @font-face {
  14. font-family: 'PT Serif';
  15. font-style: italic;
  16. font-weight: normal;
  17. src: local('PT Serif Italic'), local('PTSerif-Italic'), url('./newsprint/pt-serif-v11-latin-italic.woff2') format('woff2');
  18. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  19. }
  20. /* pt-serif-700 - latin */
  21. @font-face {
  22. font-family: 'PT Serif';
  23. font-style: normal;
  24. font-weight: bold;
  25. src: local('PT Serif Bold'), local('PTSerif-Bold'), url('./newsprint/pt-serif-v11-latin-700.woff2') format('woff2');
  26. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  27. }
  28. /* pt-serif-700italic - latin */
  29. @font-face {
  30. font-family: 'PT Serif';
  31. font-style: italic;
  32. font-weight: bold;
  33. src: local('PT Serif Bold Italic'), local('PTSerif-BoldItalic'), url('./newsprint/pt-serif-v11-latin-700italic.woff2') format('woff2');
  34. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  35. }
  36. :root {
  37. --active-file-bg-color: #dadada;
  38. --active-file-bg-color: rgba(32, 43, 51, 0.63);
  39. --active-file-text-color: white;
  40. --bg-color: #f3f2ee;
  41. --text-color: #1f0909;
  42. --control-text-color: #444;
  43. --rawblock-edit-panel-bd: #e5e5e5;
  44. --select-text-bg-color: rgba(32, 43, 51, 0.63);
  45. --select-text-font-color: white;
  46. }
  47. pre {
  48. --select-text-bg-color: #36284e;
  49. --select-text-font-color: #fff;
  50. }
  51. html {
  52. font-size: 16px;
  53. -webkit-font-smoothing: antialiased;
  54. }
  55. html, body {
  56. background-color: #f3f2ee;
  57. font-family: "PT Serif", 'Times New Roman', Times, serif;
  58. color: #1f0909;
  59. line-height: 1.5em;
  60. }
  61. /*#write {
  62. overflow-x: auto;
  63. max-width: initial;
  64. padding-left: calc(50% - 17em);
  65. padding-right: calc(50% - 17em);
  66. }
  67. @media (max-width: 36em) {
  68. #write {
  69. padding-left: 1em;
  70. padding-right: 1em;
  71. }
  72. }*/
  73. #write {
  74. max-width: 40em;
  75. }
  76. @media only screen and (min-width: 1400px) {
  77. #write {
  78. max-width: 914px;
  79. }
  80. }
  81. ol li {
  82. list-style-type: decimal;
  83. list-style-position: outside;
  84. }
  85. ul li {
  86. list-style-type: disc;
  87. list-style-position: outside;
  88. }
  89. ol,
  90. ul {
  91. list-style: none;
  92. }
  93. blockquote,
  94. q {
  95. quotes: none;
  96. }
  97. blockquote:before,
  98. blockquote:after,
  99. q:before,
  100. q:after {
  101. content: '';
  102. content: none;
  103. }
  104. table {
  105. border-collapse: collapse;
  106. border-spacing: 0;
  107. }
  108. /* styles */
  109. /* ====== */
  110. /* headings */
  111. h1,
  112. h2,
  113. h3,
  114. h4,
  115. h5,
  116. h6 {
  117. font-weight: bold;
  118. }
  119. h1 {
  120. font-size: 1.875em;
  121. /*30 / 16*/
  122. line-height: 1.6em;
  123. /* 48 / 30*/
  124. margin-top: 2em;
  125. }
  126. h2,
  127. h3 {
  128. font-size: 1.3125em;
  129. /*21 / 16*/
  130. line-height: 1.15;
  131. /*24 / 21*/
  132. margin-top: 2.285714em;
  133. /*48 / 21*/
  134. margin-bottom: 1.15em;
  135. /*24 / 21*/
  136. }
  137. h3 {
  138. font-weight: normal;
  139. }
  140. h4 {
  141. font-size: 1.125em;
  142. /*18 / 16*/
  143. margin-top: 2.67em;
  144. /*48 / 18*/
  145. }
  146. h5,
  147. h6 {
  148. font-size: 1em;
  149. /*16*/
  150. }
  151. h1 {
  152. border-bottom: 1px solid;
  153. margin-bottom: 1.875em;
  154. padding-bottom: 0.8125em;
  155. }
  156. /* links */
  157. a {
  158. text-decoration: none;
  159. color: #065588;
  160. }
  161. a:hover,
  162. a:active {
  163. text-decoration: underline;
  164. }
  165. /* block spacing */
  166. p,
  167. blockquote,
  168. .md-fences {
  169. margin-bottom: 1.5em;
  170. }
  171. h1,
  172. h2,
  173. h3,
  174. h4,
  175. h5,
  176. h6 {
  177. margin-bottom: 1.5em;
  178. }
  179. /* blockquote */
  180. blockquote {
  181. font-style: italic;
  182. border-left: 5px solid;
  183. margin-left: 2em;
  184. padding-left: 1em;
  185. }
  186. /* lists */
  187. ul,
  188. ol {
  189. margin: 0 0 1.5em 1.5em;
  190. }
  191. /* tables */
  192. .md-meta,.md-before, .md-after {
  193. color:#999;
  194. }
  195. table {
  196. margin-bottom: 1.5em;
  197. /*24 / 16*/
  198. font-size: 1em;
  199. /* width: 100%; */
  200. }
  201. thead th,
  202. tfoot th {
  203. padding: .25em .25em .25em .4em;
  204. text-transform: uppercase;
  205. }
  206. th {
  207. text-align: left;
  208. }
  209. td {
  210. vertical-align: top;
  211. padding: .25em .25em .25em .4em;
  212. }
  213. code,
  214. .md-fences {
  215. background-color: #dadada;
  216. }
  217. code {
  218. padding-left: 2px;
  219. padding-right: 2px;
  220. }
  221. .md-fences {
  222. margin-left: 2em;
  223. margin-bottom: 3em;
  224. padding-left: 1ch;
  225. padding-right: 1ch;
  226. }
  227. pre,
  228. code,
  229. tt {
  230. font-size: .875em;
  231. line-height: 1.714285em;
  232. }
  233. /* some fixes */
  234. h1 {
  235. line-height: 1.3em;
  236. font-weight: normal;
  237. margin-bottom: 0.5em;
  238. }
  239. p + ul,
  240. p + ol{
  241. margin-top: .5em;
  242. }
  243. h3 + ul,
  244. h4 + ul,
  245. h5 + ul,
  246. h6 + ul,
  247. h3 + ol,
  248. h4 + ol,
  249. h5 + ol,
  250. h6 + ol {
  251. margin-top: .5em;
  252. }
  253. li > ul,
  254. li > ol {
  255. margin-top: inherit;
  256. margin-bottom: 0;
  257. }
  258. li ol>li {
  259. list-style-type: lower-alpha;
  260. }
  261. li li ol>li{
  262. list-style-type: lower-roman;
  263. }
  264. h2,
  265. h3 {
  266. margin-bottom: .75em;
  267. }
  268. hr {
  269. border-top: none;
  270. border-right: none;
  271. border-bottom: 1px solid;
  272. border-left: none;
  273. }
  274. h1 {
  275. border-color: #c5c5c5;
  276. }
  277. blockquote {
  278. border-color: #bababa;
  279. color: #656565;
  280. }
  281. blockquote ul,
  282. blockquote ol {
  283. margin-left:0;
  284. }
  285. .ty-table-edit {
  286. background-color: transparent;
  287. }
  288. thead {
  289. background-color: #dadada;
  290. }
  291. tr:nth-child(even) {
  292. background: #e8e7e7;
  293. }
  294. hr {
  295. border-color: #c5c5c5;
  296. }
  297. .task-list{
  298. padding-left: 1rem;
  299. }
  300. .md-task-list-item {
  301. padding-left: 1.5rem;
  302. list-style-type: none;
  303. }
  304. .md-task-list-item > input:before {
  305. content: '\221A';
  306. display: inline-block;
  307. width: 1.25rem;
  308. height: 1.6rem;
  309. vertical-align: middle;
  310. text-align: center;
  311. color: #ddd;
  312. background-color: #F3F2EE;
  313. }
  314. .md-task-list-item > input:checked:before,
  315. .md-task-list-item > input[checked]:before{
  316. color: inherit;
  317. }
  318. #write pre.md-meta-block {
  319. min-height: 1.875rem;
  320. color: #555;
  321. border: 0px;
  322. background: transparent;
  323. margin-top: -4px;
  324. margin-left: 1em;
  325. margin-top: 1em;
  326. }
  327. .md-image>.md-meta {
  328. color: #9B5146;
  329. }
  330. .md-image>.md-meta{
  331. font-family: Menlo, 'Ubuntu Mono', Consolas, 'Courier New', 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', serif;
  332. }
  333. #write>h3.md-focus:before{
  334. left: -1.5rem;
  335. color:#999;
  336. border-color:#999;
  337. }
  338. #write>h4.md-focus:before{
  339. left: -1.5rem;
  340. top: .25rem;
  341. color:#999;
  342. border-color:#999;
  343. }
  344. #write>h5.md-focus:before{
  345. left: -1.5rem;
  346. top: .0.3125rem;
  347. color:#999;
  348. border-color:#999;
  349. }
  350. #write>h6.md-focus:before{
  351. left: -1.5rem;
  352. top: 0.3125rem;
  353. color:#999;
  354. border-color:#999;
  355. }
  356. .md-toc:focus .md-toc-content{
  357. margin-top: 19px;
  358. }
  359. .md-toc-content:empty:before{
  360. color: #065588;
  361. }
  362. .md-toc-item {
  363. color: #065588;
  364. }
  365. #write div.md-toc-tooltip {
  366. background-color: #f3f2ee;
  367. }
  368. #typora-sidebar {
  369. background-color: #f3f2ee;
  370. -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);
  371. box-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);
  372. }
  373. .pin-outline #typora-sidebar {
  374. background: inherit;
  375. box-shadow: none;
  376. border-right: 1px dashed;
  377. }
  378. .pin-outline #typora-sidebar:hover .outline-title-wrapper {
  379. border-left:1px dashed;
  380. }
  381. .outline-item:hover {
  382. background-color: #dadada;
  383. border-left: 28px solid #dadada;
  384. border-right: 18px solid #dadada;
  385. }
  386. .typora-node .outline-item:hover {
  387. border-right: 28px solid #dadada;
  388. }
  389. .outline-expander:before {
  390. content: "\f0da";
  391. font-family: FontAwesome;
  392. font-size:14px;
  393. top: 1px;
  394. }
  395. .outline-expander:hover:before,
  396. .outline-item-open>.outline-item>.outline-expander:before {
  397. content: "\f0d7";
  398. }
  399. .modal-content {
  400. background-color: #f3f2ee;
  401. }
  402. .auto-suggest-container ul li {
  403. list-style-type: none;
  404. }
  405. /** UI for electron */
  406. .megamenu-menu,
  407. #top-titlebar, #top-titlebar *,
  408. .megamenu-content {
  409. background: #f3f2ee;
  410. color: #1f0909;
  411. }
  412. .megamenu-menu-header {
  413. border-bottom: 1px dashed #202B33;
  414. }
  415. .megamenu-menu {
  416. box-shadow: none;
  417. border-right: 1px dashed;
  418. }
  419. header, .context-menu, .megamenu-content, footer {
  420. font-family: "PT Serif", 'Times New Roman', Times, serif;
  421. color: #1f0909;
  422. }
  423. #megamenu-back-btn {
  424. color: #1f0909;
  425. border-color: #1f0909;
  426. }
  427. .megamenu-menu-header #megamenu-menu-header-title:before {
  428. color: #1f0909;
  429. }
  430. .megamenu-menu-list li a:hover, .megamenu-menu-list li a.active {
  431. color: inherit;
  432. background-color: #e8e7df;
  433. }
  434. .long-btn:hover {
  435. background-color: #e8e7df;
  436. }
  437. #recent-file-panel tbody tr:nth-child(2n-1) {
  438. background-color: transparent !important;
  439. }
  440. .megamenu-menu-panel tbody tr:hover td:nth-child(2) {
  441. color: inherit;
  442. }
  443. .megamenu-menu-panel .btn {
  444. background-color: #D2D1D1;
  445. }
  446. .btn-default {
  447. background-color: transparent;
  448. }
  449. .typora-sourceview-on #toggle-sourceview-btn,
  450. .ty-show-word-count #footer-word-count {
  451. background: #c7c5c5;
  452. }
  453. #typora-quick-open {
  454. background-color: inherit;
  455. }
  456. .md-diagram-panel {
  457. margin-top: 8px;
  458. }
  459. .file-list-item-file-name {
  460. font-weight: initial;
  461. }
  462. .file-list-item-summary {
  463. opacity: 1;
  464. }
  465. .file-list-item {
  466. color: #777;
  467. }
  468. .file-list-item.active {
  469. background-color: inherit;
  470. color: black;
  471. }
  472. .ty-side-sort-btn.active {
  473. background-color: inherit;
  474. }
  475. .file-list-item.active .file-list-item-file-name {
  476. font-weight: bold;
  477. }
  478. .file-list-item{
  479. opacity:1 !important;
  480. }
  481. .file-library-node.active>.file-node-background{
  482. background-color: rgba(32, 43, 51, 0.63);
  483. background-color: var(--active-file-bg-color);
  484. }
  485. .file-tree-node.active>.file-node-content{
  486. color: white;
  487. color: var(--active-file-text-color);
  488. }
  489. .md-task-list-item>input {
  490. margin-left: -1.7em;
  491. margin-top: calc(1rem - 12px);
  492. }
  493. input {
  494. border: 1px solid #aaa;
  495. }
  496. .megamenu-menu-header #megamenu-menu-header-title,
  497. .megamenu-menu-header:hover,
  498. .megamenu-menu-header:focus {
  499. color: inherit;
  500. }
  501. .dropdown-menu .divider {
  502. border-color: #e5e5e5;
  503. opacity: 1;
  504. }
  505. /* https://github.com/typora/typora-issues/issues/2046 */
  506. .os-windows-7 strong,
  507. .os-windows-7 strong {
  508. font-weight: 760;
  509. }
  510. .ty-preferences .btn-default {
  511. background: transparent;
  512. }
  513. .ty-preferences .window-header {
  514. border-bottom: 1px dashed #202B33;
  515. box-shadow: none;
  516. }
  517. #sidebar-loading-template, #sidebar-loading-template.file-list-item {
  518. color: #777;
  519. }
  520. .searchpanel-search-option-btn.active {
  521. background: #777;
  522. color: white;
  523. }