template.css 12 KB

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