base.css 11 KB

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