template.css 12 KB

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