base.css 12 KB

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