base.css 11 KB

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