template.css 12 KB

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