base.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  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. #load_more.loading,
  290. #load_more.loading:hover {
  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. /*=== Tree */
  309. .tree {
  310. margin: 10px 0;
  311. }
  312. .tree-folder-title {
  313. position: relative;
  314. padding: 0 10px;
  315. line-height: 2.5rem;
  316. font-size: 1rem;
  317. }
  318. .tree-folder-title .title {
  319. background: inherit;
  320. }
  321. .tree-folder-title .title:hover {
  322. text-decoration: none;
  323. }
  324. .tree-folder.active .tree-folder-title {
  325. font-weight: bold;
  326. }
  327. .tree-folder.active .tree-folder-title .title {
  328. }
  329. .tree-folder-items {
  330. }
  331. .tree-folder-items > .item {
  332. padding: 0 10px;
  333. line-height: 2.5rem;
  334. font-size: 0.8rem;
  335. }
  336. .tree-folder-items > .item.active {
  337. }
  338. .tree-folder-items > .item > a {
  339. text-decoration: none;
  340. }
  341. .tree-folder-items > .item.active > a {
  342. }
  343. /*=== STRUCTURE */
  344. /*===============*/
  345. /*=== Header */
  346. .header {
  347. height: 85px;
  348. }
  349. .header > .item {
  350. padding: 10px;
  351. vertical-align: middle;
  352. text-align: center;
  353. }
  354. .header > .item.title {
  355. width: 230px;
  356. }
  357. .header > .item.title h1 {
  358. margin: 0.5em 0;
  359. }
  360. .header > .item.title h1 a {
  361. text-decoration: none;
  362. }
  363. .header > .item.search input {
  364. width: 230px;
  365. }
  366. .header .item.search input:focus {
  367. width: 350px;
  368. }
  369. /*=== Body */
  370. #global {
  371. height: calc(100% - 85px);
  372. }
  373. .aside {
  374. }
  375. .aside.aside_feed {
  376. padding: 10px 0;
  377. text-align: center;
  378. }
  379. .aside.aside_feed .tree {
  380. margin: 10px 0 50px;
  381. }
  382. /*=== Aside main page (categories) */
  383. .aside_feed .tree-folder-title > .title:not([data-unread="0"])::after {
  384. position: absolute;
  385. right: 0;
  386. margin: 10px 0;
  387. padding: 0 10px;
  388. font-size: 0.9rem;
  389. line-height: 1.5rem;
  390. }
  391. /*=== Aside main page (feeds) */
  392. .feed.item.empty.active {
  393. }
  394. .feed.item.error.active {
  395. }
  396. .feed.item.empty,
  397. .feed.item.empty > a {
  398. }
  399. .feed.item.error,
  400. .feed.item.error > a {
  401. }
  402. .feed.item.empty.active,
  403. .feed.item.error.active,
  404. .feed.item.empty.active > a,
  405. .feed.item.error.active > a {
  406. }
  407. .aside_feed .tree-folder-items .dropdown-menu::after {
  408. left: 2px;
  409. }
  410. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  411. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  412. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  413. border-radius: 3px;
  414. }
  415. /*=== Configuration pages */
  416. .post {
  417. padding: 10px 50px;
  418. font-size: 0.9em;
  419. }
  420. .post form {
  421. margin: 10px 0;
  422. }
  423. .post.content {
  424. max-width: 550px;
  425. }
  426. /*=== Prompt (centered) */
  427. .prompt {
  428. text-align: center;
  429. }
  430. .prompt label {
  431. text-align: left;
  432. }
  433. .prompt form {
  434. margin: 10px auto 20px auto;
  435. width: 180px;
  436. }
  437. .prompt input {
  438. margin: 5px auto;
  439. width: 100%;
  440. }
  441. .prompt p {
  442. margin: 20px 0;
  443. }
  444. /*=== New article notification */
  445. #new-article {
  446. text-align: center;
  447. font-size: 0.9em;
  448. }
  449. #new-article > a {
  450. line-height: 3em;
  451. font-weight: bold;
  452. }
  453. #new-article > a:hover {
  454. text-decoration: none;
  455. }
  456. /*=== Day indication */
  457. .day {
  458. padding: 0 10px;
  459. font-weight: bold;
  460. line-height: 3em;
  461. }
  462. #new-article + .day {
  463. }
  464. .day .name {
  465. padding: 0 10px 0 0;
  466. font-size: 1.8em;
  467. opacity: 0.3;
  468. font-style: italic;
  469. text-align: right;
  470. }
  471. /*=== Index menu */
  472. .nav_menu {
  473. text-align: center;
  474. padding: 5px 0;
  475. }
  476. /*=== Feed articles */
  477. .flux {
  478. }
  479. .flux:hover {
  480. }
  481. .flux.current {
  482. }
  483. .flux.not_read {
  484. }
  485. .flux.not_read:not(.current):hover .item.title {
  486. }
  487. .flux.favorite {
  488. }
  489. .flux.favorite:not(.current):hover .item.title {
  490. }
  491. .flux_header {
  492. font-size: 0.8rem;
  493. cursor: pointer;
  494. }
  495. .flux_header .title {
  496. font-size: 0.9rem;
  497. }
  498. .flux .website .favicon {
  499. padding: 5px;
  500. }
  501. .flux .item.date {
  502. font-size: 0.7rem;
  503. }
  504. .flux:not(.current):hover .item.title {
  505. }
  506. .flux .bottom {
  507. font-size: 0.8rem;
  508. text-align: center;
  509. }
  510. /*=== Content of feed articles */
  511. .content {
  512. padding: 20px 10px;
  513. }
  514. .content > h1.title > a {
  515. }
  516. .content hr {
  517. margin: 30px 10px;
  518. height: 1px;
  519. }
  520. .content pre {
  521. margin: 10px auto;
  522. padding: 10px 20px;
  523. overflow: auto;
  524. font-size: 0.9rem;
  525. }
  526. .content code {
  527. padding: 2px 5px;
  528. }
  529. .content pre code {
  530. }
  531. .content blockquote {
  532. margin: 0;
  533. padding: 5px 20px;
  534. display: block;
  535. }
  536. .content blockquote p {
  537. margin: 0;
  538. }
  539. /*=== Notification and actualize notification */
  540. .notification {
  541. padding: 0 0 0 5px;
  542. text-align: center;
  543. font-weight: bold;
  544. font-size: 0.9em;
  545. line-height: 3em;
  546. z-index: 10;
  547. vertical-align: middle;
  548. }
  549. .notification.good {
  550. }
  551. .notification.bad {
  552. }
  553. .notification a.close {
  554. padding: 0 15px;
  555. line-height: 3em;
  556. }
  557. .notification.good a.close:hover {
  558. }
  559. .notification.bad a.close:hover {
  560. }
  561. .notification#actualizeProgress {
  562. line-height: 2em;
  563. }
  564. /*=== "Load more" part */
  565. #bigMarkAsRead {
  566. text-align: center;
  567. text-decoration: none;
  568. }
  569. #bigMarkAsRead:hover {
  570. }
  571. #bigMarkAsRead:hover .bigTick {
  572. }
  573. /*=== Navigation menu (for articles) */
  574. #nav_entries {
  575. margin: 0;
  576. text-align: center;
  577. line-height: 3em;
  578. table-layout: fixed;
  579. }
  580. /*=== READER VIEW */
  581. /*================*/
  582. #stream.reader .flux {
  583. padding: 0 0 50px;
  584. }
  585. #stream.reader .flux .author {
  586. margin: 0 0 10px;
  587. font-size: 90%;
  588. }
  589. /*=== GLOBAL VIEW */
  590. /*================*/
  591. .box.category .box-title .title {
  592. font-weight: normal;
  593. text-decoration: none;
  594. text-align: left;
  595. }
  596. .box.category:not([data-unread="0"]) .box-title {
  597. }
  598. .box.category:not([data-unread="0"]) .box-title:active {
  599. }
  600. .box.category:not([data-unread="0"]) .box-title .title {
  601. font-weight: bold;
  602. }
  603. .box.category .title:not([data-unread="0"])::after {
  604. background: none;
  605. border: 0;
  606. position: absolute;
  607. top: 5px; right: 10px;
  608. font-weight: bold;
  609. box-shadow: none;
  610. text-shadow: none;
  611. }
  612. .box.category .item.feed {
  613. padding: 2px 10px;
  614. font-size: 0.8rem;
  615. }
  616. /*=== DIVERS */
  617. /*===========*/
  618. .aside.aside_feed .nav-form input,
  619. .aside.aside_feed .nav-form select {
  620. width: 140px;
  621. }
  622. .aside.aside_feed .nav-form .dropdown .dropdown-menu {
  623. right: -20px;
  624. }
  625. .aside.aside_feed .nav-form .dropdown .dropdown-menu::after {
  626. right: 33px;
  627. }
  628. /*=== STATISTICS */
  629. /*===============*/
  630. .stat {
  631. margin: 10px 0 20px;
  632. }
  633. .stat th,
  634. .stat td,
  635. .stat tr {
  636. }
  637. .stat > table td,
  638. .stat > table th {
  639. text-align: center;
  640. }
  641. .stat > .horizontal-list {
  642. margin: 0 0 5px;
  643. }
  644. .stat > .horizontal-list .item {
  645. overflow: hidden;
  646. white-space: nowrap;
  647. text-overflow: ellipsis;
  648. }
  649. .stat > .horizontal-list .item:first-child {
  650. width: 250px;
  651. }
  652. /*=== LOGS */
  653. /*=========*/
  654. .loglist {
  655. overflow: hidden;
  656. }
  657. .log {
  658. padding: 5px 10px;
  659. font-size: 0.8rem;
  660. }
  661. .log+.log {
  662. }
  663. .log .date {
  664. display: block;
  665. font-weight: bold;
  666. }
  667. .log.error {
  668. }
  669. .log.warning {
  670. }
  671. .log.notice {
  672. }
  673. .log.debug {
  674. }
  675. /*=== MOBILE */
  676. /*===========*/
  677. @media (max-width: 840px) {
  678. .aside {
  679. transition: width 200ms linear;
  680. }
  681. .aside .toggle_aside,
  682. #panel .close {
  683. display: block;
  684. width: 100%;
  685. height: 50px;
  686. line-height: 50px;
  687. text-align: center;
  688. }
  689. .aside.aside_feed {
  690. padding: 0;
  691. }
  692. .nav_menu .btn {
  693. margin: 5px 10px;
  694. }
  695. .nav_menu .stick {
  696. margin: 0 10px;
  697. }
  698. .nav_menu .stick .btn {
  699. margin: 5px 0;
  700. }
  701. .nav_menu .search {
  702. display: inline-block;
  703. max-width: 97%;
  704. }
  705. .nav_menu .search input {
  706. max-width: 97%;
  707. width: 90px;
  708. }
  709. .nav_menu .search input:focus {
  710. width: 400px;
  711. }
  712. .day .name {
  713. font-size: 1.1rem;
  714. }
  715. .pagination {
  716. margin: 0 0 3.5em;
  717. }
  718. .notification a.close {
  719. display: block;
  720. left: 0;
  721. }
  722. .notification a.close:hover {
  723. opacity: 0.5;
  724. }
  725. .notification a.close .icon {
  726. display: none;
  727. }
  728. }