base.css 10 KB

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