template.css 12 KB

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