template.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  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 .item.disabled {
  290. text-align: center;
  291. font-style: italic;
  292. }
  293. .box .box-content-centered {
  294. padding: 30px 5px;
  295. text-align: center;
  296. }
  297. .box .box-content-centered .btn {
  298. margin: 20px 0 0;
  299. }
  300. /*=== Draggable */
  301. .drag-hover {
  302. margin: 0 0 5px;
  303. border-bottom: 2px solid #ccc;
  304. }
  305. [draggable=true] {
  306. cursor: grab;
  307. }
  308. /*=== STRUCTURE */
  309. /*===============*/
  310. /*=== Header */
  311. .header {
  312. display: table;
  313. width: 100%;
  314. table-layout: fixed;
  315. }
  316. .header > .item {
  317. display: table-cell;
  318. }
  319. .header > .item.title {
  320. width: 250px;
  321. white-space: nowrap;
  322. }
  323. .header > .item.title h1 {
  324. display: inline-block;
  325. }
  326. .header > .item.title .logo {
  327. display: inline-block;
  328. height: 32px;
  329. width: 32px;
  330. vertical-align: middle;
  331. }
  332. .header > .item.configure {
  333. width: 100px;
  334. }
  335. /*=== Body */
  336. #global {
  337. display: table;
  338. width: 100%;
  339. height: 100%;
  340. table-layout: fixed;
  341. }
  342. .aside {
  343. display: table-cell;
  344. height: 100%;
  345. width: 250px;
  346. vertical-align: top;
  347. }
  348. .aside.aside_flux {
  349. background: #fff;
  350. }
  351. /*=== Aside main page (categories) */
  352. .categories {
  353. list-style: none;
  354. margin: 0;
  355. }
  356. .state_unread li:not(.active)[data-unread="0"] {
  357. display: none;
  358. }
  359. .category {
  360. display: block;
  361. overflow: hidden;
  362. white-space: nowrap;
  363. text-overflow: ellipsis;
  364. }
  365. .category .btn:not([data-unread="0"]):after {
  366. content: attr(data-unread);
  367. }
  368. /*=== Aside main page (feeds) */
  369. .categories .feeds {
  370. width: 100%;
  371. list-style: none;
  372. }
  373. .categories .feeds:not(.active) {
  374. display: none;
  375. }
  376. .categories .feeds .feed {
  377. display: inline-block;
  378. overflow: hidden;
  379. white-space: nowrap;
  380. text-overflow: ellipsis;
  381. vertical-align: middle;
  382. }
  383. .categories .feeds .feed:not([data-unread="0"]):before {
  384. content: "(" attr(data-unread) ") ";
  385. }
  386. .categories .feeds .dropdown-menu {
  387. left: 0;
  388. }
  389. .categories .feeds .item .dropdown-toggle > .icon {
  390. visibility: hidden;
  391. cursor: pointer;
  392. vertical-align: top;
  393. }
  394. .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  395. .categories .feeds .item:hover .dropdown-toggle > .icon,
  396. .categories .feeds .item.active .dropdown-toggle > .icon {
  397. visibility: visible;
  398. }
  399. /*=== New article notification */
  400. #new-article {
  401. display: none;
  402. }
  403. #new-article > a {
  404. display: block;
  405. }
  406. /*=== Day indication */
  407. .day .name {
  408. position: absolute;
  409. right: 0;
  410. width: 50%;
  411. overflow: hidden;
  412. white-space: nowrap;
  413. text-overflow: ellipsis;
  414. }
  415. /*=== Feed article header and footer */
  416. .flux_header {
  417. position: relative;
  418. }
  419. .flux .item {
  420. line-height: 40px;
  421. white-space: nowrap;
  422. }
  423. .flux .item.manage,
  424. .flux .item.link {
  425. width: 40px;
  426. text-align: center;
  427. }
  428. .flux .item.website {
  429. width: 200px;
  430. }
  431. .flux.not_read .item.title,
  432. .flux.current .item.title {
  433. font-weight: bold;
  434. }
  435. .flux:not(.current):hover .item.title {
  436. position: absolute;
  437. max-width: calc(100% - 320px);
  438. background: #fff;
  439. }
  440. .flux .item.title a {
  441. color: #000;
  442. text-decoration: none;
  443. }
  444. .flux .item.date {
  445. width: 145px;
  446. text-align: right;
  447. }
  448. .flux .item > a {
  449. display: block;
  450. }
  451. .flux .item > a {
  452. display: block;
  453. text-decoration: none;
  454. white-space: nowrap;
  455. text-overflow: ellipsis;
  456. overflow: hidden;
  457. }
  458. .flux .item.share > a {
  459. display: list-item;
  460. list-style-position: inside;
  461. list-style-type: decimal;
  462. }
  463. /*=== Feed article content */
  464. .hide_posts > .flux:not(.active) > .flux_content {
  465. display: none;
  466. }
  467. .content {
  468. min-height: 20em;
  469. margin: auto;
  470. line-height: 1.7em;
  471. word-wrap: break-word;
  472. }
  473. .content.large {
  474. max-width: 1000px;
  475. }
  476. .content.medium {
  477. max-width: 800px;
  478. }
  479. .content.thin {
  480. max-width: 550px;
  481. }
  482. .content ul,
  483. .content ol,
  484. .content dd {
  485. margin: 0 0 0 15px;
  486. padding: 0 0 5px 15px;
  487. }
  488. .content pre {
  489. overflow: auto;
  490. }
  491. br {
  492. line-height: 1em;
  493. }
  494. br + br + br {
  495. display: none;
  496. }
  497. /*=== Notification and actualize notification */
  498. .notification {
  499. position: absolute;
  500. top: 1em;
  501. left: 25%; right: 25%;
  502. z-index: 10;
  503. background: #fff;
  504. border: 1px solid #aaa;
  505. }
  506. .notification.closed {
  507. display: none;
  508. }
  509. .notification a.close {
  510. position: absolute;
  511. top: 0; bottom: 0;
  512. right: 0;
  513. display: inline-block;
  514. }
  515. #actualizeProgress {
  516. position: fixed;
  517. }
  518. #actualizeProgress progress {
  519. max-width: 100%;
  520. vertical-align: middle;
  521. }
  522. #actualizeProgress .progress {
  523. vertical-align: middle;
  524. }
  525. /*=== Navigation menu (for articles) */
  526. #nav_entries {
  527. position: fixed;
  528. bottom: 0; left: 0;
  529. display: table;
  530. width: 250px;
  531. background: #fff;
  532. table-layout: fixed;
  533. }
  534. #nav_entries .item {
  535. display: table-cell;
  536. width: 30%;
  537. }
  538. #nav_entries a {
  539. display: block;
  540. }
  541. /*=== "Load more" part */
  542. #load_more {
  543. min-height: 40px;
  544. }
  545. .loading {
  546. background: url("loader.gif") center center no-repeat;
  547. font-size: 0;
  548. }
  549. #bigMarkAsRead {
  550. display: block;
  551. width: 100%;
  552. padding: 1em 0;
  553. text-align: center;
  554. font-size: 1.4em;
  555. }
  556. .bigTick {
  557. font-size: 4em;
  558. }
  559. /*=== Statistiques */
  560. .stat {
  561. margin: 15px 0;
  562. }
  563. .stat.half {
  564. display: inline-block;
  565. width: 46%;
  566. padding: 0 2%;
  567. }
  568. .stat > table {
  569. width: 100%;
  570. }
  571. /*=== GLOBAL VIEW */
  572. /*================*/
  573. /*=== Category boxes */
  574. /* TODO <delete> */
  575. #stream.global .box-category {
  576. display: inline-block;
  577. width: 19em;
  578. max-width: 95%;
  579. margin: 20px 10px;
  580. border: 1px solid #ccc;
  581. vertical-align: top;
  582. }
  583. #stream.global .category {
  584. width: 100%;
  585. }
  586. #stream.global .btn {
  587. display: block;
  588. }
  589. #stream.global .box-category .feeds {
  590. display: block;
  591. overflow: auto;
  592. }
  593. #stream.global .box-category .feed {
  594. width: 19em;
  595. max-width: 90%;
  596. }
  597. /* TODO </delete */
  598. /*=== Panel */
  599. #overlay {
  600. display: none;
  601. position: fixed;
  602. top: 0; bottom: 0;
  603. left: 0; right: 0;
  604. background: rgba(0, 0, 0, 0.9);
  605. }
  606. #panel {
  607. display: none;
  608. position: fixed;
  609. top: 1em; bottom: 1em;
  610. left: 2em; right: 2em;
  611. overflow: auto;
  612. background: #fff;
  613. }
  614. #panel .close {
  615. position: fixed;
  616. top: 0; bottom: 0;
  617. left: 0; right: 0;
  618. display: block;
  619. }
  620. #panel .close img {
  621. display: none;
  622. }
  623. /*=== Slider */
  624. #slider {
  625. position: fixed;
  626. top: 0; bottom: 0;
  627. left: 100%; right: 0;
  628. overflow: auto;
  629. background: #fff;
  630. border-left: 1px solid #aaa;
  631. transition: left 200ms linear;
  632. -moz-transition: left 200ms linear;
  633. -webkit-transition: left 200ms linear;
  634. -o-transition: left 200ms linear;
  635. -ms-transition: left 200ms linear;
  636. }
  637. #slider.active {
  638. left: 40%;
  639. }
  640. #close-slider {
  641. position: fixed;
  642. top: 0; bottom: 0;
  643. left: 100%; right: 0;
  644. cursor: pointer;
  645. }
  646. #close-slider.active {
  647. left: 0;
  648. }
  649. /*=== DIVERS */
  650. /*===========*/
  651. .nav-login,
  652. .nav_menu .search,
  653. .nav_menu .toggle_aside {
  654. display: none;
  655. }
  656. .aside .toggle_aside {
  657. position: absolute;
  658. right: 0;
  659. display: none;
  660. width: 30px;
  661. height: 30px;
  662. line-height: 30px;
  663. text-align: center;
  664. }
  665. /*=== MOBILE */
  666. /*===========*/
  667. @media(max-width: 840px) {
  668. .header,
  669. .aside .btn-important,
  670. .aside .feeds .dropdown,
  671. .flux_header .item.website span,
  672. .item.date, .day .date,
  673. .dropdown-menu > .no-mobile,
  674. .no-mobile {
  675. display: none;
  676. }
  677. .nav-login {
  678. display: block;
  679. }
  680. .nav_menu .toggle_aside,
  681. .aside .toggle_aside,
  682. .nav_menu .search,
  683. #panel .close img {
  684. display: inline-block;
  685. }
  686. .aside {
  687. position: fixed;
  688. top: 0; bottom: 0;
  689. left: 0;
  690. width: 0;
  691. overflow: hidden;
  692. z-index: 100;
  693. }
  694. .aside:target {
  695. width: 90%;
  696. overflow: auto;
  697. }
  698. .aside .categories {
  699. margin: 10px 0 75px;
  700. }
  701. .flux_header .item.website {
  702. width: 40px;
  703. }
  704. .flux:not(.current):hover .item.title {
  705. position: relative;
  706. width: auto;
  707. white-space: nowrap;
  708. }
  709. .notification {
  710. top: 0;
  711. left: 0;
  712. right: 0;
  713. }
  714. #nav_entries {
  715. width: 100%;
  716. }
  717. #stream.global .box-category {
  718. margin: 10px 0;
  719. }
  720. #panel {
  721. top: 0; bottom: 0;
  722. left: 0; right: 0;
  723. }
  724. #panel .close {
  725. top: 0; right: 0;
  726. left: auto; bottom: auto;
  727. display: inline-block;
  728. width: 30px;
  729. height: 30px;
  730. }
  731. }
  732. /*=== PRINTER */
  733. /*============*/
  734. @media print {
  735. .header, .aside,
  736. .nav_menu, .day,
  737. .flux_header,
  738. .flux_content .bottom,
  739. .pagination,
  740. #nav_entries {
  741. display: none;
  742. }
  743. html, body {
  744. background: #fff;
  745. color: #000;
  746. font-family: Serif;
  747. }
  748. #global,
  749. .flux_content {
  750. display: block !important;
  751. }
  752. .flux_content .content {
  753. width: 100% !important;
  754. }
  755. .flux_content .content a {
  756. color: #000;
  757. }
  758. .flux_content .content a:after {
  759. content: " [" attr(href) "] ";
  760. font-style: italic;
  761. }
  762. }