base.css 11 KB

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