template.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  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. width: 300px;
  70. }
  71. input, select, textarea {
  72. display: inline-block;
  73. max-width: 100%;
  74. }
  75. input[type="radio"],
  76. input[type="checkbox"] {
  77. width: 15px !important;
  78. min-height: 15px !important;
  79. }
  80. input.extend:focus {
  81. width: 300px;
  82. }
  83. button.as-link,
  84. button.as-link:hover,
  85. button.as-link:active {
  86. background: transparent;
  87. border: none;
  88. color: inherit;
  89. cursor: pointer;
  90. font-size: 1.1em;
  91. }
  92. /*=== COMPONENTS */
  93. /*===============*/
  94. /*=== Forms */
  95. .form-group:after {
  96. content: "";
  97. display: block;
  98. clear: both;
  99. }
  100. .form-group.form-actions {
  101. min-width: 250px;
  102. }
  103. .form-group .group-name {
  104. display: block;
  105. float: left;
  106. width: 200px;
  107. }
  108. .form-group .group-controls {
  109. min-width: 250px;
  110. margin: 0 0 0 220px;
  111. }
  112. .form-group .group-controls .control {
  113. display: block;
  114. }
  115. /*=== Buttons */
  116. .stick {
  117. display: inline-block;
  118. white-space: nowrap;
  119. }
  120. .btn,
  121. a.btn {
  122. display: inline-block;
  123. cursor: pointer;
  124. overflow: hidden;
  125. }
  126. .btn-important {
  127. font-weight: bold;
  128. }
  129. /*=== Navigation */
  130. .nav-list .nav-header,
  131. .nav-list .item {
  132. display: block;
  133. }
  134. .nav-list .item,
  135. .nav-list .item > a {
  136. display: block;
  137. overflow: hidden;
  138. white-space: nowrap;
  139. text-overflow: ellipsis;
  140. }
  141. .nav-head {
  142. display: block;
  143. }
  144. .nav-head .item {
  145. display: inline-block;
  146. }
  147. /*=== Horizontal-list */
  148. .horizontal-list {
  149. display: table;
  150. table-layout: fixed;
  151. width: 100%;
  152. }
  153. .horizontal-list .item {
  154. display: table-cell;
  155. }
  156. /*=== Dropdown */
  157. .dropdown {
  158. position: relative;
  159. display: inline-block;
  160. }
  161. .dropdown-target {
  162. display: none;
  163. }
  164. .dropdown-menu {
  165. display: none;
  166. min-width: 200px;
  167. margin: 0;
  168. position: absolute;
  169. right: 0;
  170. background: #fff;
  171. border: 1px solid #aaa;
  172. }
  173. .dropdown-header {
  174. display: block;
  175. }
  176. .dropdown-menu > .item {
  177. display: block;
  178. }
  179. .dropdown-menu > .item > a,
  180. .dropdown-menu > .item > span {
  181. display: block;
  182. }
  183. .dropdown-menu > .item[aria-checked="true"] > a:before {
  184. content: '✓';
  185. }
  186. .dropdown-menu .input {
  187. display: block;
  188. }
  189. .dropdown-menu .input select,
  190. .dropdown-menu .input input {
  191. display: block;
  192. max-width: 95%;
  193. }
  194. .dropdown-target:target ~ .dropdown-menu {
  195. display: block;
  196. z-index: 10;
  197. }
  198. .dropdown-close {
  199. display: inline;
  200. }
  201. .dropdown-close a {
  202. font-size: 0;
  203. position: fixed;
  204. top: 0; bottom: 0;
  205. left: 0; right: 0;
  206. display: block;
  207. z-index: -10;
  208. }
  209. .separator {
  210. display: block;
  211. height: 0;
  212. border-bottom: 1px solid #aaa;
  213. }
  214. /*=== Alerts */
  215. .alert {
  216. display: block;
  217. width: 90%;
  218. }
  219. .group-controls .alert {
  220. width: 100%
  221. }
  222. .alert-head {
  223. margin: 0;
  224. font-weight: bold;
  225. }
  226. .alert ul {
  227. margin: 5px 20px;
  228. }
  229. /*=== Icons */
  230. .icon {
  231. display: inline-block;
  232. width: 16px;
  233. height: 16px;
  234. vertical-align: middle;
  235. line-height: 16px;
  236. }
  237. /*=== Pagination */
  238. .pagination {
  239. display: table;
  240. width: 100%;
  241. margin: 0;
  242. padding: 0;
  243. table-layout: fixed;
  244. }
  245. .pagination .item {
  246. display: table-cell;
  247. }
  248. .pagination .pager-first,
  249. .pagination .pager-previous,
  250. .pagination .pager-next,
  251. .pagination .pager-last {
  252. width: 100px;
  253. }
  254. /*=== STRUCTURE */
  255. /*===============*/
  256. /*=== Header */
  257. .header {
  258. display: table;
  259. width: 100%;
  260. table-layout: fixed;
  261. }
  262. .header > .item {
  263. display: table-cell;
  264. }
  265. .header > .item.title {
  266. width: 250px;
  267. white-space: nowrap;
  268. }
  269. .header > .item.title h1 {
  270. display: inline-block;
  271. }
  272. .header > .item.title .logo {
  273. display: inline-block;
  274. height: 32px;
  275. width: 32px;
  276. vertical-align: middle;
  277. }
  278. .header > .item.configure {
  279. width: 100px;
  280. }
  281. /*=== Body */
  282. #global {
  283. display: table;
  284. width: 100%;
  285. height: 100%;
  286. table-layout: fixed;
  287. }
  288. .aside {
  289. display: table-cell;
  290. height: 100%;
  291. width: 250px;
  292. vertical-align: top;
  293. }
  294. .aside.aside_flux {
  295. background: #fff;
  296. }
  297. /*=== Aside main page (categories) */
  298. .categories {
  299. list-style: none;
  300. margin: 0;
  301. }
  302. .state_unread li:not(.active)[data-unread="0"] {
  303. display: none;
  304. }
  305. .category {
  306. display: block;
  307. overflow: hidden;
  308. white-space: nowrap;
  309. text-overflow: ellipsis;
  310. }
  311. .category .btn:not([data-unread="0"]):after {
  312. content: attr(data-unread);
  313. }
  314. /*=== Aside main page (feeds) */
  315. .categories .feeds {
  316. width: 100%;
  317. list-style: none;
  318. }
  319. .categories .feeds:not(.active) {
  320. display: none;
  321. }
  322. .categories .feeds .feed {
  323. display: inline-block;
  324. overflow: hidden;
  325. white-space: nowrap;
  326. text-overflow: ellipsis;
  327. vertical-align: middle;
  328. }
  329. .categories .feeds .feed:not([data-unread="0"]):before {
  330. content: "(" attr(data-unread) ") ";
  331. }
  332. .categories .feeds .dropdown-menu {
  333. left: 0;
  334. }
  335. .categories .feeds .item .dropdown-toggle > .icon {
  336. visibility: hidden;
  337. cursor: pointer;
  338. vertical-align: top;
  339. }
  340. .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  341. .categories .feeds .item:hover .dropdown-toggle > .icon,
  342. .categories .feeds .item.active .dropdown-toggle > .icon {
  343. visibility: visible;
  344. }
  345. /*=== New article notification */
  346. #new-article {
  347. display: none;
  348. }
  349. #new-article > a {
  350. display: block;
  351. }
  352. /*=== Day indication */
  353. .day .name {
  354. position: absolute;
  355. right: 0;
  356. width: 50%;
  357. overflow: hidden;
  358. white-space: nowrap;
  359. text-overflow: ellipsis;
  360. }
  361. /*=== Feed article header and footer */
  362. .flux_header {
  363. position: relative;
  364. }
  365. .flux .item {
  366. line-height: 40px;
  367. white-space: nowrap;
  368. }
  369. .flux .item.manage,
  370. .flux .item.link {
  371. width: 40px;
  372. text-align: center;
  373. }
  374. .flux .item.website {
  375. width: 200px;
  376. }
  377. .flux.not_read .item.title,
  378. .flux.current .item.title {
  379. font-weight: bold;
  380. }
  381. .flux:not(.current):hover .item.title {
  382. position: absolute;
  383. max-width: calc(100% - 320px);
  384. background: #fff;
  385. }
  386. .flux .item.title a {
  387. color: #000;
  388. text-decoration: none;
  389. }
  390. .flux .item.date {
  391. width: 145px;
  392. text-align: right;
  393. }
  394. .flux .item > a {
  395. display: block;
  396. }
  397. .flux .item > a {
  398. display: block;
  399. text-decoration: none;
  400. white-space: nowrap;
  401. text-overflow: ellipsis;
  402. overflow: hidden;
  403. }
  404. .flux .item.share > a {
  405. display: list-item;
  406. list-style-position: inside;
  407. list-style-type: decimal;
  408. }
  409. /*=== Feed article content */
  410. .hide_posts > .flux:not(.active) > .flux_content {
  411. display: none;
  412. }
  413. .content {
  414. min-height: 20em;
  415. margin: auto;
  416. line-height: 1.7em;
  417. word-wrap: break-word;
  418. }
  419. .content.large {
  420. max-width: 1000px;
  421. }
  422. .content.medium {
  423. max-width: 800px;
  424. }
  425. .content.thin {
  426. max-width: 550px;
  427. }
  428. .content ul,
  429. .content ol,
  430. .content dd {
  431. margin: 0 0 0 15px;
  432. padding: 0 0 5px 15px;
  433. }
  434. .content pre {
  435. overflow: auto;
  436. }
  437. /*=== Notification and actualize notification */
  438. .notification {
  439. position: absolute;
  440. top: 1em;
  441. left: 25%; right: 25%;
  442. z-index: 10;
  443. background: #fff;
  444. border: 1px solid #aaa;
  445. }
  446. .notification.closed {
  447. display: none;
  448. }
  449. .notification a.close {
  450. position: absolute;
  451. top: 0; bottom: 0;
  452. right: 0;
  453. display: inline-block;
  454. }
  455. #actualizeProgress {
  456. position: fixed;
  457. }
  458. #actualizeProgress progress {
  459. max-width: 100%;
  460. vertical-align: middle;
  461. }
  462. #actualizeProgress .progress {
  463. vertical-align: middle;
  464. }
  465. /*=== Navigation menu (for articles) */
  466. #nav_entries {
  467. position: fixed;
  468. bottom: 0; left: 0;
  469. display: table;
  470. width: 250px;
  471. background: #fff;
  472. table-layout: fixed;
  473. }
  474. #nav_entries .item {
  475. display: table-cell;
  476. width: 30%;
  477. }
  478. #nav_entries a {
  479. display: block;
  480. }
  481. /*=== "Load more" part */
  482. #load_more {
  483. min-height: 40px;
  484. }
  485. .loading {
  486. background: url("loader.gif") center center no-repeat;
  487. font-size: 0;
  488. }
  489. #bigMarkAsRead {
  490. display: block;
  491. width: 100%;
  492. padding: 1em 0;
  493. text-align: center;
  494. font-size: 1.8em;
  495. }
  496. .bigTick {
  497. font-size: 4em;
  498. }
  499. /*=== Statistiques */
  500. .stat > table {
  501. width: 100%;
  502. }
  503. /*=== GLOBAL VIEW */
  504. /*================*/
  505. /*=== Category boxes */
  506. #stream.global .box-category {
  507. display: inline-block;
  508. width: 19em;
  509. max-width: 95%;
  510. margin: 20px 10px;
  511. border: 1px solid #ccc;
  512. vertical-align: top;
  513. }
  514. #stream.global .category {
  515. width: 100%;
  516. }
  517. #stream.global .btn {
  518. display: block;
  519. }
  520. #stream.global .box-category .feeds {
  521. display: block;
  522. overflow: auto;
  523. }
  524. #stream.global .box-category .feed {
  525. width: 19em;
  526. max-width: 90%;
  527. }
  528. /*=== Panel */
  529. #overlay {
  530. display: none;
  531. position: fixed;
  532. top: 0; bottom: 0;
  533. left: 0; right: 0;
  534. background: rgba(0, 0, 0, 0.9);
  535. }
  536. #panel {
  537. display: none;
  538. position: fixed;
  539. top: 1em; bottom: 1em;
  540. left: 2em; right: 2em;
  541. overflow: auto;
  542. background: #fff;
  543. }
  544. #panel .close {
  545. position: fixed;
  546. top: 0; bottom: 0;
  547. left: 0; right: 0;
  548. display: block;
  549. }
  550. #panel .close img {
  551. display: none;
  552. }
  553. /*=== DIVERS */
  554. /*===========*/
  555. .nav-login,
  556. .nav_menu .search,
  557. .nav_menu .toggle_aside {
  558. display: none;
  559. }
  560. .aside .toggle_aside {
  561. position: absolute;
  562. right: 0;
  563. display: none;
  564. width: 30px;
  565. height: 30px;
  566. line-height: 30px;
  567. text-align: center;
  568. }
  569. /*=== MOBILE */
  570. /*===========*/
  571. @media(max-width: 840px) {
  572. .header,
  573. .aside .btn-important,
  574. .aside .feeds .dropdown,
  575. .flux_header .item.website span,
  576. .item.date, .day .date,
  577. .dropdown-menu > .no-mobile,
  578. .no-mobile {
  579. display: none;
  580. }
  581. .nav-login {
  582. display: block;
  583. }
  584. .nav_menu .toggle_aside,
  585. .aside .toggle_aside,
  586. .nav_menu .search,
  587. #panel .close img {
  588. display: inline-block;
  589. }
  590. .aside {
  591. position: fixed;
  592. top: 0; bottom: 0;
  593. left: 0;
  594. width: 0;
  595. overflow: hidden;
  596. z-index: 100;
  597. }
  598. .aside:target {
  599. width: 90%;
  600. overflow: auto;
  601. }
  602. .aside .categories {
  603. margin: 10px 0 75px;
  604. }
  605. .flux_header .item.website {
  606. width: 40px;
  607. }
  608. .flux:not(.current):hover .item.title {
  609. position: relative;
  610. width: auto;
  611. white-space: nowrap;
  612. }
  613. .notification {
  614. top: 0;
  615. left: 0;
  616. right: 0;
  617. }
  618. #nav_entries {
  619. width: 100%;
  620. }
  621. #stream.global .box-category {
  622. margin: 10px 0;
  623. }
  624. #panel {
  625. top: 0; bottom: 0;
  626. left: 0; right: 0;
  627. }
  628. #panel .close {
  629. top: 0; right: 0;
  630. left: auto; bottom: auto;
  631. display: inline-block;
  632. width: 30px;
  633. height: 30px;
  634. }
  635. }
  636. /*=== PRINTER */
  637. /*============*/
  638. @media print {
  639. .header, .aside,
  640. .nav_menu, .day,
  641. .flux_header,
  642. .flux_content .bottom,
  643. .pagination,
  644. #nav_entries {
  645. display: none;
  646. }
  647. html, body {
  648. background: #fff;
  649. color: #000;
  650. font-family: Serif;
  651. }
  652. #global,
  653. .flux_content {
  654. display: block !important;
  655. }
  656. .flux_content .content {
  657. width: 100% !important;
  658. }
  659. .flux_content .content a {
  660. color: #000;
  661. }
  662. .flux_content .content a:after {
  663. content: " [" attr(href) "] ";
  664. font-style: italic;
  665. }
  666. }