base.css 11 KB

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