base.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  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. vertical-align: middle;
  312. text-align: center;
  313. }
  314. .header > .item.title h1 {
  315. margin: 0.5em 0;
  316. }
  317. .header > .item.title h1 a {
  318. text-decoration: none;
  319. }
  320. .header > .item.search input {
  321. width: 230px;
  322. }
  323. .header .item.search input:focus {
  324. width: 350px;
  325. }
  326. /*=== Body */
  327. #global {
  328. height: calc(100% - 85px);
  329. }
  330. .aside {
  331. }
  332. .aside.aside_feed {
  333. padding: 10px 0;
  334. text-align: center;
  335. }
  336. .aside.aside_feed .tree {
  337. margin: 10px 0 50px;
  338. }
  339. /*=== Aside main page (categories) */
  340. .aside_feed .tree-folder-title > .title:not([data-unread="0"])::after {
  341. position: absolute;
  342. right: 0;
  343. margin: 10px 0;
  344. padding: 0 10px;
  345. font-size: 0.9rem;
  346. line-height: 1.5;
  347. }
  348. /*=== Aside main page (feeds) */
  349. .feed.item.empty.active {
  350. }
  351. .feed.item.error.active {
  352. }
  353. .feed.item.empty,
  354. .feed.item.empty > a {
  355. }
  356. .feed.item.error,
  357. .feed.item.error > a {
  358. }
  359. .feed.item.empty.active,
  360. .feed.item.error.active,
  361. .feed.item.empty.active > a,
  362. .feed.item.error.active > a {
  363. }
  364. .aside_feed .tree-folder-items .dropdown-menu::after {
  365. left: 2px;
  366. }
  367. .aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  368. .aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
  369. .aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
  370. border-radius: 3px;
  371. }
  372. /*=== Configuration pages */
  373. .post {
  374. padding: 10px 50px;
  375. font-size: 0.9em;
  376. }
  377. .post form {
  378. margin: 10px 0;
  379. }
  380. .post.content {
  381. max-width: 550px;
  382. }
  383. /*=== Prompt (centered) */
  384. .prompt {
  385. text-align: center;
  386. }
  387. .prompt label {
  388. text-align: left;
  389. }
  390. .prompt form {
  391. margin: 10px auto 20px auto;
  392. width: 180px;
  393. }
  394. .prompt input {
  395. margin: 5px auto;
  396. width: 100%;
  397. }
  398. .prompt p {
  399. margin: 20px 0;
  400. }
  401. /*=== New article notification */
  402. #new-article {
  403. text-align: center;
  404. font-size: 0.9em;
  405. }
  406. #new-article > a {
  407. padding: 0.75rem;
  408. font-weight: bold;
  409. }
  410. #new-article > a:hover {
  411. text-decoration: none;
  412. }
  413. /*=== Day indication */
  414. .day {
  415. padding: 0 10px;
  416. font-weight: bold;
  417. line-height: 3;
  418. }
  419. .day span {
  420. line-height: 1.5;
  421. }
  422. #new-article + .day {
  423. }
  424. .day .name {
  425. padding: 0 10px 0 0;
  426. font-size: 1.8em;
  427. opacity: 0.3;
  428. font-style: italic;
  429. text-align: right;
  430. }
  431. /*=== Index menu */
  432. .nav_menu {
  433. text-align: center;
  434. padding: 5px 0;
  435. }
  436. /*=== Feed articles */
  437. .flux {
  438. }
  439. .flux:hover {
  440. }
  441. .flux.current {
  442. }
  443. .flux.not_read {
  444. }
  445. .flux.not_read:not(.current):hover .item.title {
  446. }
  447. .flux.favorite {
  448. }
  449. .flux.favorite:not(.current):hover .item.title {
  450. }
  451. .flux_header {
  452. font-size: 0.8rem;
  453. cursor: pointer;
  454. }
  455. .flux_header .title {
  456. font-size: 0.9rem;
  457. }
  458. .flux .website .favicon {
  459. padding: 5px;
  460. }
  461. .flux .item.date {
  462. font-size: 0.7rem;
  463. }
  464. .flux:not(.current):hover .item.title {
  465. }
  466. .flux .bottom {
  467. font-size: 0.8rem;
  468. text-align: center;
  469. }
  470. /*=== Content of feed articles */
  471. .content {
  472. padding: 20px 10px;
  473. }
  474. .content > h1.title > a {
  475. }
  476. .content hr {
  477. margin: 30px 10px;
  478. height: 1px;
  479. }
  480. .content pre {
  481. margin: 10px auto;
  482. padding: 10px 20px;
  483. overflow: auto;
  484. font-size: 0.9rem;
  485. }
  486. .content code {
  487. padding: 2px 5px;
  488. }
  489. .content pre code {
  490. }
  491. .content blockquote {
  492. margin: 0;
  493. padding: 5px 20px;
  494. display: block;
  495. }
  496. .content blockquote p {
  497. margin: 0;
  498. }
  499. /*=== Notification and actualize notification */
  500. .notification {
  501. }
  502. .notification.good {
  503. }
  504. .notification.bad {
  505. }
  506. .notification.good a.close:hover {
  507. }
  508. .notification.bad a.close:hover {
  509. }
  510. /*=== "Load more" part */
  511. #bigMarkAsRead {
  512. text-align: center;
  513. text-decoration: none;
  514. }
  515. #bigMarkAsRead:hover {
  516. }
  517. #bigMarkAsRead:hover .bigTick {
  518. }
  519. /*=== Navigation menu (for articles) */
  520. #nav_entries {
  521. margin: 0;
  522. text-align: center;
  523. line-height: 3;
  524. table-layout: fixed;
  525. }
  526. /*=== READER VIEW */
  527. /*================*/
  528. #stream.reader .flux {
  529. background-color: #f0f0f0;
  530. color: #333;
  531. }
  532. #stream.reader .flux .content {
  533. background-color: #fff;
  534. border-color: #ddd;
  535. }
  536. #stream.reader .flux .author {
  537. margin: 0 0 10px;
  538. font-size: 90%;
  539. }
  540. /*=== GLOBAL VIEW */
  541. /*================*/
  542. .box.category .box-title .title {
  543. font-weight: normal;
  544. text-decoration: none;
  545. text-align: left;
  546. }
  547. .box.category:not([data-unread="0"]) .box-title {
  548. }
  549. .box.category:not([data-unread="0"]) .box-title:active {
  550. }
  551. .box.category:not([data-unread="0"]) .box-title .title {
  552. font-weight: bold;
  553. }
  554. .box.category .title:not([data-unread="0"])::after {
  555. background: none;
  556. border: 0;
  557. position: absolute;
  558. top: 5px; right: 10px;
  559. font-weight: bold;
  560. box-shadow: none;
  561. text-shadow: none;
  562. }
  563. /*=== DIVERS */
  564. /*===========*/
  565. .aside.aside_feed .nav-form input,
  566. .aside.aside_feed .nav-form select {
  567. width: 140px;
  568. }
  569. .aside.aside_feed .nav-form .dropdown .dropdown-menu {
  570. right: -20px;
  571. }
  572. .aside.aside_feed .nav-form .dropdown .dropdown-menu::after {
  573. right: 33px;
  574. }
  575. /*=== STATISTICS */
  576. /*===============*/
  577. .stat {
  578. margin: 10px 0 20px;
  579. }
  580. .stat th,
  581. .stat td,
  582. .stat tr {
  583. }
  584. .stat > table td,
  585. .stat > table th {
  586. text-align: center;
  587. }
  588. /*=== MOBILE */
  589. /*===========*/
  590. @media (max-width: 840px) {
  591. .aside {
  592. transition: width 200ms linear;
  593. }
  594. .aside .toggle_aside,
  595. #panel .close,
  596. .dropdown-menu .toggle_aside,
  597. #slider .toggle_aside {
  598. background: #fff;
  599. border-bottom-color: #ddd;
  600. }
  601. .aside .toggle_aside:hover,
  602. #panel .close:hover,
  603. .dropdown-menu .toggle_aside:hover,
  604. #slider .toggle_aside:hover {
  605. background-color: #ddd;
  606. }
  607. .aside.aside_feed {
  608. padding: 0;
  609. }
  610. .nav_menu .btn {
  611. margin: 5px 10px;
  612. }
  613. .nav_menu .stick {
  614. margin: 0 10px;
  615. }
  616. .nav_menu .stick .btn {
  617. margin: 5px 0;
  618. }
  619. .nav_menu .search {
  620. display: inline-block;
  621. max-width: 97%;
  622. }
  623. .nav_menu .search input {
  624. max-width: 97%;
  625. width: 90px;
  626. }
  627. .nav_menu .search input:focus {
  628. width: 400px;
  629. }
  630. .day .name {
  631. font-size: 1.1rem;
  632. }
  633. .pagination {
  634. margin: 0 0 3.5em;
  635. }
  636. .notification a.close {
  637. display: block;
  638. left: 0;
  639. }
  640. .notification a.close:hover {
  641. opacity: 0.5;
  642. }
  643. .notification a.close .icon {
  644. display: none;
  645. }
  646. }