template.css 12 KB

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