base.css 11 KB

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