template.css 12 KB

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