template.css 12 KB

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