template.css 10 KB

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