base.css 11 KB

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