base.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  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. /*=== 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:hover {
  450. }
  451. #new-article > a {
  452. line-height: 3em;
  453. font-weight: bold;
  454. }
  455. #new-article > a:hover {
  456. text-decoration: none;
  457. }
  458. /*=== Day indication */
  459. .day {
  460. padding: 0 10px;
  461. font-weight: bold;
  462. line-height: 3em;
  463. }
  464. #new-article + .day {
  465. }
  466. .day .name {
  467. padding: 0 10px 0 0;
  468. font-size: 1.8em;
  469. opacity: 0.3;
  470. font-style: italic;
  471. text-align: right;
  472. }
  473. /*=== Index menu */
  474. .nav_menu {
  475. text-align: center;
  476. padding: 5px 0;
  477. }
  478. /*=== Feed articles */
  479. .flux {
  480. }
  481. .flux:hover {
  482. }
  483. .flux.current {
  484. }
  485. .flux.not_read {
  486. }
  487. .flux.not_read:not(.current):hover .item.title {
  488. }
  489. .flux.favorite {
  490. }
  491. .flux.favorite:not(.current):hover .item.title {
  492. }
  493. .flux_header {
  494. font-size: 0.8rem;
  495. cursor: pointer;
  496. }
  497. .flux_header .title {
  498. font-size: 0.9rem;
  499. }
  500. .flux .website .favicon {
  501. padding: 5px;
  502. }
  503. .flux .item.date {
  504. font-size: 0.7rem;
  505. }
  506. .flux:not(.current):hover .item.title {
  507. }
  508. .flux .bottom {
  509. font-size: 0.8rem;
  510. text-align: center;
  511. }
  512. /*=== Content of feed articles */
  513. .content {
  514. padding: 20px 10px;
  515. }
  516. .content > h1.title > a {
  517. }
  518. .content hr {
  519. margin: 30px 10px;
  520. height: 1px;
  521. }
  522. .content pre {
  523. margin: 10px auto;
  524. padding: 10px 20px;
  525. overflow: auto;
  526. font-size: 0.9rem;
  527. }
  528. .content code {
  529. padding: 2px 5px;
  530. }
  531. .content pre code {
  532. }
  533. .content blockquote {
  534. margin: 0;
  535. padding: 5px 20px;
  536. display: block;
  537. }
  538. .content blockquote p {
  539. margin: 0;
  540. }
  541. /*=== Notification and actualize notification */
  542. .notification {
  543. padding: 0 0 0 5px;
  544. text-align: center;
  545. font-weight: bold;
  546. font-size: 0.9em;
  547. line-height: 3em;
  548. z-index: 10;
  549. vertical-align: middle;
  550. }
  551. .notification.good {
  552. }
  553. .notification.bad {
  554. }
  555. .notification a.close {
  556. padding: 0 15px;
  557. line-height: 3em;
  558. }
  559. .notification.good a.close:hover {
  560. }
  561. .notification.bad a.close:hover {
  562. }
  563. .notification#actualizeProgress {
  564. line-height: 2em;
  565. }
  566. /*=== "Load more" part */
  567. #bigMarkAsRead {
  568. text-align: center;
  569. text-decoration: none;
  570. }
  571. #bigMarkAsRead:hover {
  572. }
  573. #bigMarkAsRead:hover .bigTick {
  574. }
  575. /*=== Navigation menu (for articles) */
  576. #nav_entries {
  577. margin: 0;
  578. text-align: center;
  579. line-height: 3em;
  580. table-layout: fixed;
  581. }
  582. /*=== READER VIEW */
  583. /*================*/
  584. #stream.reader .flux {
  585. padding: 0 0 50px;
  586. }
  587. #stream.reader .flux .author {
  588. margin: 0 0 10px;
  589. font-size: 90%;
  590. }
  591. /*=== GLOBAL VIEW */
  592. /*================*/
  593. .box.category .box-title .title {
  594. font-weight: normal;
  595. text-decoration: none;
  596. text-align: left;
  597. }
  598. .box.category:not([data-unread="0"]) .box-title {
  599. }
  600. .box.category:not([data-unread="0"]) .box-title:active {
  601. }
  602. .box.category:not([data-unread="0"]) .box-title .title {
  603. font-weight: bold;
  604. }
  605. .box.category .title:not([data-unread="0"])::after {
  606. background: none;
  607. border: 0;
  608. position: absolute;
  609. top: 5px; right: 10px;
  610. font-weight: bold;
  611. box-shadow: none;
  612. text-shadow: none;
  613. }
  614. .box.category .item.feed {
  615. padding: 2px 10px;
  616. font-size: 0.8rem;
  617. }
  618. /*=== DIVERS */
  619. /*===========*/
  620. .aside.aside_feed .nav-form input,
  621. .aside.aside_feed .nav-form select {
  622. width: 140px;
  623. }
  624. .aside.aside_feed .nav-form .dropdown .dropdown-menu {
  625. right: -20px;
  626. }
  627. .aside.aside_feed .nav-form .dropdown .dropdown-menu::after {
  628. right: 33px;
  629. }
  630. /*=== STATISTICS */
  631. /*===============*/
  632. .stat {
  633. margin: 10px 0 20px;
  634. }
  635. .stat th,
  636. .stat td,
  637. .stat tr {
  638. }
  639. .stat > table td,
  640. .stat > table th {
  641. text-align: center;
  642. }
  643. .stat > .horizontal-list {
  644. margin: 0 0 5px;
  645. }
  646. .stat > .horizontal-list .item {
  647. overflow: hidden;
  648. white-space: nowrap;
  649. text-overflow: ellipsis;
  650. }
  651. .stat > .horizontal-list .item:first-child {
  652. width: 250px;
  653. }
  654. /*=== LOGS */
  655. /*=========*/
  656. .loglist {
  657. overflow: hidden;
  658. }
  659. .log {
  660. padding: 5px 10px;
  661. font-size: 0.8rem;
  662. }
  663. .log+.log {
  664. }
  665. .log .date {
  666. display: block;
  667. font-weight: bold;
  668. }
  669. .log.error {
  670. }
  671. .log.warning {
  672. }
  673. .log.notice {
  674. }
  675. .log.debug {
  676. }
  677. /*=== MOBILE */
  678. /*===========*/
  679. @media (max-width: 840px) {
  680. .aside {
  681. transition: width 200ms linear;
  682. }
  683. .aside .toggle_aside,
  684. #panel .close {
  685. display: block;
  686. width: 100%;
  687. height: 50px;
  688. line-height: 50px;
  689. text-align: center;
  690. }
  691. .aside.aside_feed {
  692. padding: 0;
  693. }
  694. .nav_menu .btn {
  695. margin: 5px 10px;
  696. }
  697. .nav_menu .stick {
  698. margin: 0 10px;
  699. }
  700. .nav_menu .stick .btn {
  701. margin: 5px 0;
  702. }
  703. .nav_menu .search {
  704. display: inline-block;
  705. max-width: 97%;
  706. }
  707. .nav_menu .search input {
  708. max-width: 97%;
  709. width: 90px;
  710. }
  711. .nav_menu .search input:focus {
  712. width: 400px;
  713. }
  714. .day .name {
  715. font-size: 1.1rem;
  716. }
  717. .pagination {
  718. margin: 0 0 3.5em;
  719. }
  720. .notification a.close {
  721. display: block;
  722. left: 0;
  723. }
  724. .notification a.close:hover {
  725. opacity: 0.5;
  726. }
  727. .notification a.close .icon {
  728. display: none;
  729. }
  730. }