template.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. @charset "UTF-8";
  2. /*=== GENERAL */
  3. /*============*/
  4. html, body {
  5. margin: 0;
  6. padding: 0;
  7. font-size: 100%;
  8. }
  9. /*=== Links */
  10. a {
  11. text-decoration: none;
  12. }
  13. a:hover {
  14. text-decoration: underline;
  15. }
  16. /*=== Lists */
  17. ul, ol, dd {
  18. margin: 0;
  19. padding: 0;
  20. }
  21. /*=== Titles */
  22. h1 {
  23. margin: 0.6em 0 0.3em;
  24. font-size: 1.5em;
  25. line-height: 1.6em;
  26. }
  27. h2 {
  28. margin: 0.5em 0 0.25em;
  29. font-size: 1.3em;
  30. line-height: 2em;
  31. }
  32. h3 {
  33. margin: 0.5em 0 0.25em;
  34. font-size: 1.1em;
  35. line-height: 2em;
  36. }
  37. /*=== Paragraphs */
  38. p {
  39. margin: 1em 0 0.5em;
  40. font-size: 1em;
  41. }
  42. /*=== Images */
  43. img {
  44. height: auto;
  45. max-width: 100%;
  46. }
  47. img.favicon {
  48. height: 16px;
  49. width: 16px;
  50. vertical-align: middle;
  51. }
  52. /*=== Videos */
  53. iframe, embed, object, video {
  54. max-width: 100%;
  55. }
  56. /*=== Forms */
  57. legend {
  58. display: block;
  59. width: 100%;
  60. clear: both;
  61. }
  62. label {
  63. display: block;
  64. }
  65. input {
  66. width: 180px;
  67. }
  68. textarea {
  69. width: 300px;
  70. }
  71. input, select, textarea {
  72. display: inline-block;
  73. max-width: 100%;
  74. }
  75. input[type="radio"],
  76. input[type="checkbox"] {
  77. width: 15px !important;
  78. min-height: 15px !important;
  79. }
  80. input.extend:focus {
  81. width: 300px;
  82. }
  83. button.as-link,
  84. button.as-link:hover,
  85. button.as-link:active {
  86. background: transparent;
  87. border: none;
  88. color: inherit;
  89. cursor: pointer;
  90. font-size: 1.1em;
  91. text-align: left;
  92. }
  93. /*=== Tables */
  94. table {
  95. max-width: 100%;
  96. }
  97. th.numeric,
  98. td.numeric {
  99. text-align: center;
  100. }
  101. /*=== COMPONENTS */
  102. /*===============*/
  103. /*=== Forms */
  104. .form-group:after {
  105. content: "";
  106. display: block;
  107. clear: both;
  108. }
  109. .form-group.form-actions {
  110. min-width: 250px;
  111. }
  112. .form-group .group-name {
  113. display: block;
  114. float: left;
  115. width: 200px;
  116. }
  117. .form-group .group-controls {
  118. min-width: 250px;
  119. margin: 0 0 0 220px;
  120. }
  121. .form-group .group-controls .control {
  122. display: block;
  123. }
  124. /*=== Buttons */
  125. .stick {
  126. display: inline-block;
  127. white-space: nowrap;
  128. }
  129. .btn,
  130. a.btn {
  131. display: inline-block;
  132. cursor: pointer;
  133. overflow: hidden;
  134. }
  135. .btn-important {
  136. font-weight: bold;
  137. }
  138. /*=== Navigation */
  139. .nav-list .nav-header,
  140. .nav-list .item {
  141. display: block;
  142. }
  143. .nav-list .item,
  144. .nav-list .item > a {
  145. display: block;
  146. overflow: hidden;
  147. white-space: nowrap;
  148. text-overflow: ellipsis;
  149. }
  150. .nav-head {
  151. display: block;
  152. }
  153. .nav-head .item {
  154. display: inline-block;
  155. }
  156. /*=== Horizontal-list */
  157. .horizontal-list {
  158. display: table;
  159. table-layout: fixed;
  160. width: 100%;
  161. }
  162. .horizontal-list .item {
  163. display: table-cell;
  164. }
  165. /*=== Dropdown */
  166. .dropdown {
  167. position: relative;
  168. display: inline-block;
  169. }
  170. .dropdown-target {
  171. display: none;
  172. }
  173. .dropdown-menu {
  174. display: none;
  175. min-width: 200px;
  176. margin: 0;
  177. position: absolute;
  178. right: 0;
  179. background: #fff;
  180. border: 1px solid #aaa;
  181. }
  182. .dropdown-header {
  183. display: block;
  184. }
  185. .dropdown-menu > .item {
  186. display: block;
  187. }
  188. .dropdown-menu > .item > a,
  189. .dropdown-menu > .item > .as-link,
  190. .dropdown-menu > .item > span {
  191. display: block;
  192. min-width: 200px;
  193. }
  194. .dropdown-menu > .item[aria-checked="true"] > a:before {
  195. content: '✓';
  196. }
  197. .dropdown-menu .input {
  198. display: block;
  199. }
  200. .dropdown-menu .input select,
  201. .dropdown-menu .input input {
  202. display: block;
  203. max-width: 95%;
  204. }
  205. .dropdown-target:target ~ .dropdown-menu {
  206. display: block;
  207. z-index: 10;
  208. }
  209. .dropdown-close {
  210. display: inline;
  211. }
  212. .dropdown-close a {
  213. font-size: 0;
  214. position: fixed;
  215. top: 0; bottom: 0;
  216. left: 0; right: 0;
  217. display: block;
  218. z-index: -10;
  219. }
  220. .separator {
  221. display: block;
  222. height: 0;
  223. border-bottom: 1px solid #aaa;
  224. }
  225. /*=== Alerts */
  226. .alert {
  227. display: block;
  228. width: 90%;
  229. }
  230. .group-controls .alert {
  231. width: 100%
  232. }
  233. .alert-head {
  234. margin: 0;
  235. font-weight: bold;
  236. }
  237. .alert ul {
  238. margin: 5px 20px;
  239. }
  240. /*=== Icons */
  241. .icon {
  242. display: inline-block;
  243. width: 16px;
  244. height: 16px;
  245. vertical-align: middle;
  246. line-height: 16px;
  247. }
  248. /*=== Pagination */
  249. .pagination {
  250. display: table;
  251. width: 100%;
  252. margin: 0;
  253. padding: 0;
  254. table-layout: fixed;
  255. }
  256. .pagination .item {
  257. display: table-cell;
  258. }
  259. .pagination .pager-first,
  260. .pagination .pager-previous,
  261. .pagination .pager-next,
  262. .pagination .pager-last {
  263. width: 100px;
  264. }
  265. /*=== Boxes */
  266. .box {
  267. display: inline-block;
  268. width: 20rem;
  269. max-width: 95%;
  270. margin: 20px 10px;
  271. border: 1px solid #ccc;
  272. vertical-align: top;
  273. }
  274. .box .box-title {
  275. font-size: 1.2rem;
  276. font-weight: bold;
  277. text-align: center;
  278. }
  279. .box .box-title form {
  280. margin: 0;
  281. }
  282. .box .box-content {
  283. display: block;
  284. overflow: auto;
  285. }
  286. .box .box-content .item {
  287. display: block;
  288. }
  289. .box .box-content-centered {
  290. padding: 30px 5px;
  291. text-align: center;
  292. }
  293. .box .box-content-centered .btn {
  294. margin: 20px 0 0;
  295. }
  296. /*=== STRUCTURE */
  297. /*===============*/
  298. /*=== Header */
  299. .header {
  300. display: table;
  301. width: 100%;
  302. table-layout: fixed;
  303. }
  304. .header > .item {
  305. display: table-cell;
  306. }
  307. .header > .item.title {
  308. width: 250px;
  309. white-space: nowrap;
  310. }
  311. .header > .item.title h1 {
  312. display: inline-block;
  313. }
  314. .header > .item.title .logo {
  315. display: inline-block;
  316. height: 32px;
  317. width: 32px;
  318. vertical-align: middle;
  319. }
  320. .header > .item.configure {
  321. width: 100px;
  322. }
  323. /*=== Body */
  324. #global {
  325. display: table;
  326. width: 100%;
  327. height: 100%;
  328. table-layout: fixed;
  329. }
  330. .aside {
  331. display: table-cell;
  332. height: 100%;
  333. width: 250px;
  334. vertical-align: top;
  335. }
  336. .aside.aside_flux {
  337. background: #fff;
  338. }
  339. /*=== Aside main page (categories) */
  340. .categories {
  341. list-style: none;
  342. margin: 0;
  343. }
  344. .state_unread li:not(.active)[data-unread="0"] {
  345. display: none;
  346. }
  347. .category {
  348. display: block;
  349. overflow: hidden;
  350. white-space: nowrap;
  351. text-overflow: ellipsis;
  352. }
  353. .category .btn:not([data-unread="0"]):after {
  354. content: attr(data-unread);
  355. }
  356. /*=== Aside main page (feeds) */
  357. .categories .feeds {
  358. width: 100%;
  359. list-style: none;
  360. }
  361. .categories .feeds:not(.active) {
  362. display: none;
  363. }
  364. .categories .feeds .feed {
  365. display: inline-block;
  366. overflow: hidden;
  367. white-space: nowrap;
  368. text-overflow: ellipsis;
  369. vertical-align: middle;
  370. }
  371. .categories .feeds .feed:not([data-unread="0"]):before {
  372. content: "(" attr(data-unread) ") ";
  373. }
  374. .categories .feeds .dropdown-menu {
  375. left: 0;
  376. }
  377. .categories .feeds .item .dropdown-toggle > .icon {
  378. visibility: hidden;
  379. cursor: pointer;
  380. vertical-align: top;
  381. }
  382. .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  383. .categories .feeds .item:hover .dropdown-toggle > .icon,
  384. .categories .feeds .item.active .dropdown-toggle > .icon {
  385. visibility: visible;
  386. }
  387. /*=== New article notification */
  388. #new-article {
  389. display: none;
  390. }
  391. #new-article > a {
  392. display: block;
  393. }
  394. /*=== Day indication */
  395. .day .name {
  396. position: absolute;
  397. right: 0;
  398. width: 50%;
  399. overflow: hidden;
  400. white-space: nowrap;
  401. text-overflow: ellipsis;
  402. }
  403. /*=== Feed article header and footer */
  404. .flux_header {
  405. position: relative;
  406. }
  407. .flux .item {
  408. line-height: 40px;
  409. white-space: nowrap;
  410. }
  411. .flux .item.manage,
  412. .flux .item.link {
  413. width: 40px;
  414. text-align: center;
  415. }
  416. .flux .item.website {
  417. width: 200px;
  418. }
  419. .flux.not_read .item.title,
  420. .flux.current .item.title {
  421. font-weight: bold;
  422. }
  423. .flux:not(.current):hover .item.title {
  424. position: absolute;
  425. max-width: calc(100% - 320px);
  426. background: #fff;
  427. }
  428. .flux .item.title a {
  429. color: #000;
  430. text-decoration: none;
  431. }
  432. .flux .item.date {
  433. width: 145px;
  434. text-align: right;
  435. }
  436. .flux .item > a {
  437. display: block;
  438. }
  439. .flux .item > a {
  440. display: block;
  441. text-decoration: none;
  442. white-space: nowrap;
  443. text-overflow: ellipsis;
  444. overflow: hidden;
  445. }
  446. .flux .item.share > a {
  447. display: list-item;
  448. list-style-position: inside;
  449. list-style-type: decimal;
  450. }
  451. /*=== Feed article content */
  452. .hide_posts > .flux:not(.active) > .flux_content {
  453. display: none;
  454. }
  455. .content {
  456. min-height: 20em;
  457. margin: auto;
  458. line-height: 1.7em;
  459. word-wrap: break-word;
  460. }
  461. .content.large {
  462. max-width: 1000px;
  463. }
  464. .content.medium {
  465. max-width: 800px;
  466. }
  467. .content.thin {
  468. max-width: 550px;
  469. }
  470. .content ul,
  471. .content ol,
  472. .content dd {
  473. margin: 0 0 0 15px;
  474. padding: 0 0 5px 15px;
  475. }
  476. .content pre {
  477. overflow: auto;
  478. }
  479. br {
  480. line-height: 1em;
  481. }
  482. br + br + br {
  483. display: none;
  484. }
  485. /*=== Notification and actualize notification */
  486. .notification {
  487. position: absolute;
  488. top: 1em;
  489. left: 25%; right: 25%;
  490. z-index: 10;
  491. background: #fff;
  492. border: 1px solid #aaa;
  493. }
  494. .notification.closed {
  495. display: none;
  496. }
  497. .notification a.close {
  498. position: absolute;
  499. top: 0; bottom: 0;
  500. right: 0;
  501. display: inline-block;
  502. }
  503. #actualizeProgress {
  504. position: fixed;
  505. }
  506. #actualizeProgress progress {
  507. max-width: 100%;
  508. vertical-align: middle;
  509. }
  510. #actualizeProgress .progress {
  511. vertical-align: middle;
  512. }
  513. /*=== Navigation menu (for articles) */
  514. #nav_entries {
  515. position: fixed;
  516. bottom: 0; left: 0;
  517. display: table;
  518. width: 250px;
  519. background: #fff;
  520. table-layout: fixed;
  521. }
  522. #nav_entries .item {
  523. display: table-cell;
  524. width: 30%;
  525. }
  526. #nav_entries a {
  527. display: block;
  528. }
  529. /*=== "Load more" part */
  530. #load_more {
  531. min-height: 40px;
  532. }
  533. .loading {
  534. background: url("loader.gif") center center no-repeat;
  535. font-size: 0;
  536. }
  537. #bigMarkAsRead {
  538. display: block;
  539. width: 100%;
  540. padding: 1em 0;
  541. text-align: center;
  542. font-size: 1.4em;
  543. }
  544. .bigTick {
  545. font-size: 4em;
  546. }
  547. /*=== Statistiques */
  548. .stat {
  549. margin: 15px 0;
  550. }
  551. .stat.half {
  552. display: inline-block;
  553. width: 46%;
  554. padding: 0 2%;
  555. }
  556. .stat > table {
  557. width: 100%;
  558. }
  559. /*=== GLOBAL VIEW */
  560. /*================*/
  561. /*=== Category boxes */
  562. /* TODO <delete> */
  563. #stream.global .box-category {
  564. display: inline-block;
  565. width: 19em;
  566. max-width: 95%;
  567. margin: 20px 10px;
  568. border: 1px solid #ccc;
  569. vertical-align: top;
  570. }
  571. #stream.global .category {
  572. width: 100%;
  573. }
  574. #stream.global .btn {
  575. display: block;
  576. }
  577. #stream.global .box-category .feeds {
  578. display: block;
  579. overflow: auto;
  580. }
  581. #stream.global .box-category .feed {
  582. width: 19em;
  583. max-width: 90%;
  584. }
  585. /* TODO </delete */
  586. /*=== Panel */
  587. #overlay {
  588. display: none;
  589. position: fixed;
  590. top: 0; bottom: 0;
  591. left: 0; right: 0;
  592. background: rgba(0, 0, 0, 0.9);
  593. }
  594. #panel {
  595. display: none;
  596. position: fixed;
  597. top: 1em; bottom: 1em;
  598. left: 2em; right: 2em;
  599. overflow: auto;
  600. background: #fff;
  601. }
  602. #panel .close {
  603. position: fixed;
  604. top: 0; bottom: 0;
  605. left: 0; right: 0;
  606. display: block;
  607. }
  608. #panel .close img {
  609. display: none;
  610. }
  611. /*=== Slider */
  612. #slider {
  613. position: fixed;
  614. top: 0; bottom: 0;
  615. left: 100%; right: 0;
  616. overflow: auto;
  617. background: #fff;
  618. border-left: 1px solid #aaa;
  619. transition: left 200ms linear;
  620. -moz-transition: left 200ms linear;
  621. -webkit-transition: left 200ms linear;
  622. -o-transition: left 200ms linear;
  623. -ms-transition: left 200ms linear;
  624. }
  625. #slider.active {
  626. left: 40%;
  627. }
  628. #close-slider {
  629. position: fixed;
  630. top: 0; bottom: 0;
  631. left: 100%; right: 0;
  632. cursor: pointer;
  633. }
  634. #close-slider.active {
  635. left: 0;
  636. }
  637. /*=== DIVERS */
  638. /*===========*/
  639. .nav-login,
  640. .nav_menu .search,
  641. .nav_menu .toggle_aside {
  642. display: none;
  643. }
  644. .aside .toggle_aside {
  645. position: absolute;
  646. right: 0;
  647. display: none;
  648. width: 30px;
  649. height: 30px;
  650. line-height: 30px;
  651. text-align: center;
  652. }
  653. /*=== MOBILE */
  654. /*===========*/
  655. @media(max-width: 840px) {
  656. .header,
  657. .aside .btn-important,
  658. .aside .feeds .dropdown,
  659. .flux_header .item.website span,
  660. .item.date, .day .date,
  661. .dropdown-menu > .no-mobile,
  662. .no-mobile {
  663. display: none;
  664. }
  665. .nav-login {
  666. display: block;
  667. }
  668. .nav_menu .toggle_aside,
  669. .aside .toggle_aside,
  670. .nav_menu .search,
  671. #panel .close img {
  672. display: inline-block;
  673. }
  674. .aside {
  675. position: fixed;
  676. top: 0; bottom: 0;
  677. left: 0;
  678. width: 0;
  679. overflow: hidden;
  680. z-index: 100;
  681. }
  682. .aside:target {
  683. width: 90%;
  684. overflow: auto;
  685. }
  686. .aside .categories {
  687. margin: 10px 0 75px;
  688. }
  689. .flux_header .item.website {
  690. width: 40px;
  691. }
  692. .flux:not(.current):hover .item.title {
  693. position: relative;
  694. width: auto;
  695. white-space: nowrap;
  696. }
  697. .notification {
  698. top: 0;
  699. left: 0;
  700. right: 0;
  701. }
  702. #nav_entries {
  703. width: 100%;
  704. }
  705. #stream.global .box-category {
  706. margin: 10px 0;
  707. }
  708. #panel {
  709. top: 0; bottom: 0;
  710. left: 0; right: 0;
  711. }
  712. #panel .close {
  713. top: 0; right: 0;
  714. left: auto; bottom: auto;
  715. display: inline-block;
  716. width: 30px;
  717. height: 30px;
  718. }
  719. }
  720. /*=== PRINTER */
  721. /*============*/
  722. @media print {
  723. .header, .aside,
  724. .nav_menu, .day,
  725. .flux_header,
  726. .flux_content .bottom,
  727. .pagination,
  728. #nav_entries {
  729. display: none;
  730. }
  731. html, body {
  732. background: #fff;
  733. color: #000;
  734. font-family: Serif;
  735. }
  736. #global,
  737. .flux_content {
  738. display: block !important;
  739. }
  740. .flux_content .content {
  741. width: 100% !important;
  742. }
  743. .flux_content .content a {
  744. color: #000;
  745. }
  746. .flux_content .content a:after {
  747. content: " [" attr(href) "] ";
  748. font-style: italic;
  749. }
  750. }