base.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. /* stylelint-disable block-no-empty */
  2. @charset "UTF-8";
  3. /*=== GENERAL */
  4. /*============*/
  5. html, body {
  6. height: 100%;
  7. color: black;
  8. font-family: "OpenSans", "Cantarell", "Helvetica", "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
  9. }
  10. /*=== Links */
  11. a, button.as-link {
  12. color: blue;
  13. outline: none;
  14. }
  15. /*=== Forms */
  16. legend {
  17. margin: 20px 0 5px;
  18. padding: 5px 0;
  19. font-size: 1.4em;
  20. }
  21. label {
  22. min-height: 25px;
  23. padding: 5px 0;
  24. cursor: pointer;
  25. }
  26. textarea {
  27. width: 360px;
  28. height: 100px;
  29. }
  30. input, select, textarea {
  31. padding: 7px;
  32. vertical-align: middle;
  33. }
  34. option {
  35. padding: 0 .5em;
  36. }
  37. input:focus, select:focus, textarea:focus {
  38. }
  39. input:invalid, select:invalid {
  40. }
  41. input:disabled, select:disabled {
  42. }
  43. input.extend {
  44. transition: width 200ms linear;
  45. }
  46. /*=== Tables */
  47. table {
  48. border-collapse: collapse;
  49. }
  50. th, td {
  51. }
  52. th {
  53. }
  54. form td,
  55. form th {
  56. font-weight: normal;
  57. text-align: center;
  58. }
  59. /*=== COMPONENTS */
  60. /*===============*/
  61. /*=== Forms */
  62. .form-group.form-actions {
  63. padding: 5px 0;
  64. }
  65. .form-group.form-actions .btn {
  66. margin: 0 10px;
  67. }
  68. .form-group .group-name {
  69. padding: 10px 0;
  70. text-align: right;
  71. }
  72. .form-group .group-controls {
  73. min-height: 25px;
  74. padding: 5px 0;
  75. }
  76. /*=== Buttons */
  77. .stick input,
  78. .stick .btn {
  79. }
  80. .stick .btn:first-child,
  81. .stick input:first-child {
  82. }
  83. .stick .btn-important:first-child {
  84. }
  85. .stick .btn:last-child,
  86. .stick input:last-child {
  87. }
  88. .stick .btn + .btn,
  89. .stick .btn + input,
  90. .stick .btn + .dropdown > .btn,
  91. .stick input + .btn,
  92. .stick input + input,
  93. .stick input + .dropdown > .btn,
  94. .stick .dropdown + .btn,
  95. .stick .dropdown + input,
  96. .stick .dropdown + .dropdown > .btn {
  97. }
  98. .stick input + .btn {
  99. }
  100. .stick .btn + .dropdown > .btn {
  101. }
  102. .btn {
  103. margin: 0;
  104. padding: 5px 10px;
  105. display: inline-block;
  106. min-height: 37px;
  107. min-width: 15px;
  108. font-size: 0.9rem;
  109. line-height: 1.7;
  110. vertical-align: middle;
  111. cursor: pointer;
  112. overflow: hidden;
  113. }
  114. a.btn {
  115. min-height: 25px;
  116. }
  117. .btn:hover {
  118. text-decoration: none;
  119. }
  120. .btn.active,
  121. .btn:active,
  122. .dropdown-target:target ~ .btn.dropdown-toggle {
  123. }
  124. .btn-important {
  125. font-weight: normal;
  126. }
  127. .btn-important:hover {
  128. }
  129. .btn-important:active {
  130. }
  131. .btn-attention {
  132. }
  133. .btn-attention:hover {
  134. }
  135. .btn-attention:active {
  136. }
  137. /*=== Navigation */
  138. .nav-list .nav-header,
  139. .nav-list .item {
  140. line-height: 2.5;
  141. font-size: 0.9rem;
  142. }
  143. .nav-list .item:hover {
  144. }
  145. .nav-list .item:hover a {
  146. }
  147. .nav-list .item.active {
  148. }
  149. .nav-list .item.active a {
  150. }
  151. .nav-list .item > a {
  152. padding: 0 10px;
  153. }
  154. .nav-list a:hover {
  155. text-decoration: none;
  156. }
  157. .nav-list .nav-header {
  158. padding: 0 10px;
  159. font-weight: bold;
  160. }
  161. .nav-list .nav-form {
  162. padding: 3px;
  163. text-align: center;
  164. }
  165. /*=== Dropdown */
  166. .dropdown-menu {
  167. margin: 5px 0 0;
  168. padding: 5px 0;
  169. font-size: 0.8rem;
  170. text-align: left;
  171. }
  172. .dropdown-menu::after {
  173. position: absolute;
  174. top: -6px;
  175. right: 13px;
  176. width: 10px;
  177. height: 10px;
  178. z-index: -10;
  179. transform: rotate(45deg);
  180. }
  181. .dropdown-header {
  182. padding: 0 5px 5px;
  183. font-weight: bold;
  184. text-align: left;
  185. }
  186. .dropdown-menu > .item {
  187. }
  188. .dropdown-menu > .item > a,
  189. .dropdown-menu > .item > span,
  190. .dropdown-menu > .item > .as-link {
  191. padding: 0 22px;
  192. line-height: 2.5;
  193. }
  194. .dropdown-menu > .item:hover {
  195. }
  196. .dropdown-menu > .item[aria-checked="true"] > a::before {
  197. font-weight: bold;
  198. margin: 0 0 0 -14px;
  199. }
  200. .dropdown-menu > .item:hover > a {
  201. text-decoration: none;
  202. }
  203. .dropdown-menu .input select,
  204. .dropdown-menu .input input {
  205. margin: 0 auto 5px;
  206. padding: 2px 5px;
  207. }
  208. /*=== Alerts */
  209. .alert {
  210. font-size: 0.9em;
  211. }
  212. .alert-head {
  213. font-size: 1.15em;
  214. }
  215. .alert > a {
  216. text-decoration: underline;
  217. }
  218. .alert-warn {
  219. }
  220. .alert-success {
  221. }
  222. .alert-error {
  223. }
  224. /*=== Pagination */
  225. .pagination {
  226. text-align: center;
  227. font-size: 0.8em;
  228. }
  229. .content .pagination {
  230. margin: 0;
  231. padding: 0;
  232. }
  233. .pagination .item.pager-current {
  234. font-weight: bold;
  235. font-size: 1.5em;
  236. }
  237. .pagination .item a {
  238. display: block;
  239. font-style: italic;
  240. line-height: 3;
  241. text-decoration: none;
  242. }
  243. .pagination .item a:hover {
  244. }
  245. .pagination:first-child .item {
  246. }
  247. .pagination:last-child .item {
  248. }
  249. #load_more.loading,
  250. #load_more.loading:hover {
  251. font-size: 0;
  252. }
  253. /*=== Boxes */
  254. .box {
  255. }
  256. .box .box-title {
  257. margin: 0;
  258. padding: 5px 10px;
  259. }
  260. .box .box-content {
  261. max-height: 260px;
  262. }
  263. .box .box-content .item {
  264. padding: 0 10px;
  265. font-size: 0.9rem;
  266. line-height: 2.5;
  267. }
  268. /*=== Tree */
  269. .tree {
  270. margin: 10px 0;
  271. }
  272. .tree-folder-title {
  273. position: relative;
  274. padding: 0 10px;
  275. line-height: 2.5;
  276. font-size: 1rem;
  277. }
  278. .tree-folder-title .title {
  279. background: inherit;
  280. }
  281. .tree-folder-title .title:hover {
  282. text-decoration: none;
  283. }
  284. .tree-folder.active .tree-folder-title {
  285. font-weight: bold;
  286. }
  287. .tree-folder.active .tree-folder-title .title {
  288. }
  289. .tree-folder-items {
  290. }
  291. .tree-folder-items > .item {
  292. font-size: 0.8rem;
  293. }
  294. .tree-folder-items > .item.active {
  295. }
  296. .tree-folder-items > .item > a {
  297. text-decoration: none;
  298. }
  299. .tree-folder-items > .item.active > a {
  300. }
  301. /*=== STRUCTURE */
  302. /*===============*/
  303. /*=== Header */
  304. .header {
  305. height: 85px;
  306. }
  307. .header > .item {
  308. vertical-align: middle;
  309. text-align: center;
  310. }
  311. .header > .item.title h1 {
  312. margin: 0.5em 0;
  313. }
  314. .header > .item.title h1 a {
  315. text-decoration: none;
  316. }
  317. .header > .item.search input {
  318. width: 230px;
  319. }
  320. .header .item.search input:focus {
  321. width: 350px;
  322. }
  323. /*=== Body */
  324. #global {
  325. height: calc(100% - 85px);
  326. }
  327. .aside {
  328. }
  329. .aside.aside_feed {
  330. padding: 10px 0;
  331. text-align: center;
  332. }
  333. .aside.aside_feed .tree {
  334. margin: 10px 0 50px;
  335. }
  336. /*=== Aside main page (categories) */
  337. .aside_feed .tree-folder-title > .title:not([data-unread="0"])::after {
  338. position: absolute;
  339. right: 0;
  340. margin: 10px 0;
  341. padding: 0 10px;
  342. font-size: 0.9rem;
  343. line-height: 1.5;
  344. }
  345. /*=== Aside main page (feeds) */
  346. .feed.item.empty.active {
  347. }
  348. .feed.item.error.active {
  349. }
  350. .feed.item.empty,
  351. .feed.item.empty > a {
  352. }
  353. .feed.item.error,
  354. .feed.item.error > a {
  355. }
  356. .feed.item.empty.active,
  357. .feed.item.error.active,
  358. .feed.item.empty.active > a,
  359. .feed.item.error.active > a {
  360. }
  361. .aside_feed .tree-folder-items .dropdown-menu::after {
  362. left: 2px;
  363. }
  364. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  365. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  366. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  367. border-radius: 3px;
  368. }
  369. /*=== Configuration pages */
  370. .post {
  371. padding: 10px 50px;
  372. font-size: 0.9em;
  373. }
  374. .post form {
  375. margin: 10px 0;
  376. }
  377. .post.content {
  378. max-width: 550px;
  379. }
  380. /*=== Prompt (centered) */
  381. .prompt {
  382. text-align: center;
  383. }
  384. .prompt label {
  385. text-align: left;
  386. }
  387. .prompt form {
  388. margin: 10px auto 20px auto;
  389. width: 180px;
  390. }
  391. .prompt input {
  392. margin: 5px auto;
  393. width: 100%;
  394. }
  395. .prompt p {
  396. margin: 20px 0;
  397. }
  398. /*=== New article notification */
  399. #new-article {
  400. text-align: center;
  401. font-size: 0.9em;
  402. }
  403. #new-article > a {
  404. padding: 0.75rem;
  405. font-weight: bold;
  406. }
  407. #new-article > a:hover {
  408. text-decoration: none;
  409. }
  410. /*=== Day indication */
  411. .day {
  412. padding: 0 10px;
  413. font-weight: bold;
  414. line-height: 3;
  415. }
  416. .day span {
  417. line-height: 1.5;
  418. }
  419. #new-article + .day {
  420. }
  421. .day .name {
  422. padding: 0 10px 0 0;
  423. font-size: 1.8em;
  424. opacity: 0.3;
  425. font-style: italic;
  426. text-align: right;
  427. }
  428. /*=== Index menu */
  429. .nav_menu {
  430. text-align: center;
  431. padding: 5px 0;
  432. }
  433. /*=== Feed articles */
  434. .flux {
  435. }
  436. .flux:hover {
  437. }
  438. .flux.current {
  439. }
  440. .flux.not_read {
  441. }
  442. .flux.not_read:not(.current):hover .item.title {
  443. }
  444. .flux.favorite {
  445. }
  446. .flux.favorite:not(.current):hover .item.title {
  447. }
  448. .flux_header {
  449. font-size: 0.8rem;
  450. cursor: pointer;
  451. }
  452. .flux_header .title {
  453. font-size: 0.9rem;
  454. }
  455. .flux .website .favicon {
  456. padding: 5px;
  457. }
  458. .flux .item.date {
  459. font-size: 0.7rem;
  460. }
  461. .flux:not(.current):hover .item.title {
  462. }
  463. .flux .bottom {
  464. font-size: 0.8rem;
  465. text-align: center;
  466. }
  467. /*=== Content of feed articles */
  468. .content {
  469. padding: 20px 10px;
  470. }
  471. .content > h1.title > a {
  472. }
  473. .content hr {
  474. margin: 30px 10px;
  475. height: 1px;
  476. }
  477. .content pre {
  478. margin: 10px auto;
  479. padding: 10px 20px;
  480. overflow: auto;
  481. font-size: 0.9rem;
  482. }
  483. .content code {
  484. padding: 2px 5px;
  485. }
  486. .content pre code {
  487. }
  488. .content blockquote {
  489. margin: 0;
  490. padding: 5px 20px;
  491. display: block;
  492. }
  493. .content blockquote p {
  494. margin: 0;
  495. }
  496. /*=== Notification and actualize notification */
  497. .notification {
  498. }
  499. .notification.good {
  500. }
  501. .notification.bad {
  502. }
  503. .notification.good a.close:hover {
  504. }
  505. .notification.bad a.close:hover {
  506. }
  507. /*=== "Load more" part */
  508. #bigMarkAsRead {
  509. text-align: center;
  510. text-decoration: none;
  511. }
  512. #bigMarkAsRead:hover {
  513. }
  514. #bigMarkAsRead:hover .bigTick {
  515. }
  516. /*=== Navigation menu (for articles) */
  517. #nav_entries {
  518. margin: 0;
  519. text-align: center;
  520. line-height: 3;
  521. table-layout: fixed;
  522. }
  523. /*=== READER VIEW */
  524. /*================*/
  525. #stream.reader .flux {
  526. background-color: #f0f0f0;
  527. color: #333;
  528. }
  529. #stream.reader .flux .content {
  530. background-color: #fff;
  531. border-color: #ddd;
  532. }
  533. #stream.reader .flux .author {
  534. margin: 0 0 10px;
  535. font-size: 90%;
  536. }
  537. /*=== GLOBAL VIEW */
  538. /*================*/
  539. .box.category .box-title .title {
  540. font-weight: normal;
  541. text-decoration: none;
  542. text-align: left;
  543. }
  544. .box.category:not([data-unread="0"]) .box-title {
  545. }
  546. .box.category:not([data-unread="0"]) .box-title:active {
  547. }
  548. .box.category:not([data-unread="0"]) .box-title .title {
  549. font-weight: bold;
  550. }
  551. .box.category .title:not([data-unread="0"])::after {
  552. background: none;
  553. border: 0;
  554. position: absolute;
  555. top: 5px; right: 10px;
  556. font-weight: bold;
  557. box-shadow: none;
  558. text-shadow: none;
  559. }
  560. /*=== DIVERS */
  561. /*===========*/
  562. .aside.aside_feed .nav-form input,
  563. .aside.aside_feed .nav-form select {
  564. width: 140px;
  565. }
  566. .aside.aside_feed .nav-form .dropdown .dropdown-menu {
  567. right: -20px;
  568. }
  569. .aside.aside_feed .nav-form .dropdown .dropdown-menu::after {
  570. right: 33px;
  571. }
  572. /*=== STATISTICS */
  573. /*===============*/
  574. .stat {
  575. margin: 10px 0 20px;
  576. }
  577. .stat th,
  578. .stat td,
  579. .stat tr {
  580. }
  581. .stat > table td,
  582. .stat > table th {
  583. text-align: center;
  584. }
  585. /*=== MOBILE */
  586. /*===========*/
  587. @media (max-width: 840px) {
  588. .aside {
  589. transition: width 200ms linear;
  590. }
  591. .aside .toggle_aside,
  592. #panel .close,
  593. .dropdown-menu .toggle_aside,
  594. #slider .toggle_aside {
  595. background: #fff;
  596. border-bottom-color: #ddd;
  597. }
  598. .aside .toggle_aside:hover,
  599. #panel .close:hover,
  600. .dropdown-menu .toggle_aside:hover,
  601. #slider .toggle_aside:hover {
  602. background-color: #ddd;
  603. }
  604. .aside.aside_feed {
  605. padding: 0;
  606. }
  607. .nav_menu .btn {
  608. margin: 5px 10px;
  609. }
  610. .nav_menu .stick {
  611. margin: 0 10px;
  612. }
  613. .nav_menu .stick .btn {
  614. margin: 5px 0;
  615. }
  616. .nav_menu .search {
  617. display: inline-block;
  618. max-width: 97%;
  619. }
  620. .nav_menu .search input {
  621. max-width: 97%;
  622. width: 90px;
  623. }
  624. .nav_menu .search input:focus {
  625. width: 400px;
  626. }
  627. .day .name {
  628. font-size: 1.1rem;
  629. }
  630. .pagination {
  631. margin: 0 0 3.5em;
  632. }
  633. .notification a.close {
  634. display: block;
  635. left: 0;
  636. }
  637. .notification a.close:hover {
  638. opacity: 0.5;
  639. }
  640. .notification a.close .icon {
  641. display: none;
  642. }
  643. }