base.css 12 KB

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