base.css 11 KB

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