4
0

template.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  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.3em 0 0.6em;
  24. font-size: 1.8em;
  25. }
  26. h2 {
  27. margin: 0.25em 0 0.5em;
  28. font-size: 1.6em;
  29. }
  30. h3 {
  31. margin: 0.25em 0 0.5em;
  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. table-layout: fixed;
  223. }
  224. .pagination .item {
  225. display: table-cell;
  226. }
  227. .pagination .pager-first,
  228. .pagination .pager-previous,
  229. .pagination .pager-next,
  230. .pagination .pager-last {
  231. width: 100px;
  232. }
  233. /*=== STRUCTURE */
  234. /*===============*/
  235. /*=== Header */
  236. .header {
  237. display: table;
  238. width: 100%;
  239. table-layout: fixed;
  240. }
  241. .header > .item {
  242. display: table-cell;
  243. }
  244. .header > .item.title {
  245. width: 250px;
  246. white-space: nowrap;
  247. }
  248. .header > .item.title h1 {
  249. display: inline-block;
  250. }
  251. .header > .item.title .logo {
  252. display: inline-block;
  253. height: 32px;
  254. width: 32px;
  255. vertical-align: middle;
  256. }
  257. .header > .item.configure {
  258. width: 100px;
  259. }
  260. /*=== Body */
  261. #global {
  262. display: table;
  263. width: 100%;
  264. height: 100%;
  265. table-layout: fixed;
  266. }
  267. .aside {
  268. display: table-cell;
  269. height: 100%;
  270. width: 250px;
  271. vertical-align: top;
  272. }
  273. .aside.aside_flux {
  274. background: #fff;
  275. }
  276. /*=== Aside main page (categories) */
  277. .categories {
  278. list-style: none;
  279. margin: 0;
  280. }
  281. .category {
  282. display: block;
  283. overflow: hidden;
  284. white-space: nowrap;
  285. text-overflow: ellipsis;
  286. }
  287. .category .btn:not([data-unread="0"]):after {
  288. content: attr(data-unread);
  289. }
  290. /*=== Aside main page (feeds) */
  291. .categories .feeds {
  292. width: 100%;
  293. list-style: none;
  294. }
  295. .categories .feeds:not(.active) {
  296. display: none;
  297. }
  298. .categories .feeds .feed {
  299. display: inline-block;
  300. overflow: hidden;
  301. white-space: nowrap;
  302. text-overflow: ellipsis;
  303. vertical-align: middle;
  304. }
  305. .categories .feeds .feed:not([data-unread="0"]):before {
  306. content: "(" attr(data-unread) ") ";
  307. }
  308. .categories .feeds .dropdown-menu {
  309. left: 0;
  310. }
  311. .categories .feeds .item .dropdown-toggle > .icon {
  312. visibility: hidden;
  313. cursor: pointer;
  314. vertical-align: top;
  315. }
  316. .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle > .icon,
  317. .categories .feeds .item:hover .dropdown-toggle > .icon,
  318. .categories .feeds .item.active .dropdown-toggle > .icon {
  319. visibility: visible;
  320. }
  321. /*=== New article notification */
  322. #new-article {
  323. display: none;
  324. }
  325. #new-article > a {
  326. display: block;
  327. }
  328. /*=== Day indication */
  329. .day .name {
  330. position: absolute;
  331. right: 0;
  332. width: 50%;
  333. overflow: hidden;
  334. white-space: nowrap;
  335. text-overflow: ellipsis;
  336. }
  337. /*=== Feed article header and footer */
  338. .flux_header {
  339. position: relative;
  340. }
  341. .flux .item {
  342. line-height: 40px;
  343. white-space: nowrap;
  344. text-overflow: ellipsis;
  345. overflow: hidden;
  346. }
  347. .flux .item.manage,
  348. .flux .item.link {
  349. width: 40px;
  350. text-align: center;
  351. }
  352. .flux .item.website {
  353. width: 200px;
  354. }
  355. .flux.not_read .item.title,
  356. .flux.current .item.title {
  357. font-weight: bold;
  358. }
  359. .flux:not(.current):hover .item.title {
  360. position: absolute;
  361. top: 0;
  362. height: auto;
  363. max-width: calc(100% - 320px);
  364. background: #fff;
  365. white-space: normal;
  366. z-index: 10;
  367. }
  368. .flux .item.title a {
  369. color: #000;
  370. text-decoration: none;
  371. }
  372. .flux .item.date {
  373. width: 145px;
  374. text-align: right;
  375. }
  376. .flux .item > a {
  377. display: block;
  378. }
  379. .flux .item:not(.title) > a {
  380. display: block;
  381. text-decoration: none;
  382. white-space: nowrap;
  383. text-overflow: ellipsis;
  384. overflow: hidden;
  385. }
  386. .flux .item.share > a {
  387. display: list-item;
  388. list-style-position: inside;
  389. list-style-type: decimal;
  390. }
  391. /*=== Feed article content */
  392. .hide_posts > .flux:not(.active) > .flux_content {
  393. display: none;
  394. }
  395. .content {
  396. min-height: 20em;
  397. margin: auto;
  398. line-height: 1.7em;
  399. word-wrap: break-word;
  400. }
  401. .content.large {
  402. max-width: 1000px;
  403. }
  404. .content.medium {
  405. max-width: 800px;
  406. }
  407. .content.thin {
  408. max-width: 550px;
  409. }
  410. .content ul,
  411. .content ol,
  412. .content dd {
  413. margin: 0 0 0 15px;
  414. padding: 0 0 5px 15px;
  415. }
  416. .content pre {
  417. overflow: auto;
  418. }
  419. /*=== Notification and actualize notification */
  420. .notification {
  421. position: absolute;
  422. top: 1em;
  423. left: 25%; right: 25%;
  424. z-index: 10;
  425. background: #fff;
  426. border: 1px solid #aaa;
  427. }
  428. .notification.closed {
  429. display: none;
  430. }
  431. .notification a.close {
  432. position: absolute;
  433. right: 0;
  434. display: inline-block;
  435. }
  436. #actualizeProgress progress {
  437. max-width: 100%;
  438. vertical-align: middle;
  439. }
  440. #actualizeProgress .progress {
  441. vertical-align: middle;
  442. }
  443. /*=== Navigation menu (for articles) */
  444. #nav_entries {
  445. position: fixed;
  446. bottom: 0; left: 0;
  447. display: table;
  448. width: 250px;
  449. background: #fff;
  450. table-layout: fixed;
  451. }
  452. #nav_entries .item {
  453. display: table-cell;
  454. width: 30%;
  455. }
  456. #nav_entries a {
  457. display: block;
  458. }
  459. /*=== "Load more" part */
  460. #load_more {
  461. min-height: 40px;
  462. }
  463. .loading {
  464. background: url("loader.gif") center center no-repeat;
  465. font-size: 0;
  466. }
  467. #bigMarkAsRead {
  468. display: block;
  469. padding: 5em 0;
  470. text-align: center;
  471. }
  472. .bigTick {
  473. font-size: 7em;
  474. line-height: 1.6em;
  475. }
  476. /*=== Statistiques */
  477. .stat table {
  478. width: 100%;
  479. }
  480. /*=== GLOBAL VIEW */
  481. /*================*/
  482. /*=== Category boxes */
  483. #stream.global .box-category {
  484. display: inline-block;
  485. width: 19em;
  486. max-width: 95%;
  487. margin: 20px 10px;
  488. border: 1px solid #ccc;
  489. vertical-align: top;
  490. }
  491. #stream.global .category {
  492. width: 100%;
  493. }
  494. #stream.global .btn {
  495. display: block;
  496. }
  497. #stream.global .box-category .feeds {
  498. display: block;
  499. overflow: auto;
  500. }
  501. #stream.global .box-category .feed {
  502. width: 19em;
  503. max-width: 90%;
  504. }
  505. /*=== Panel */
  506. #overlay {
  507. display: none;
  508. position: fixed;
  509. top: 0; bottom: 0;
  510. left: 0; right: 0;
  511. background: rgba(0, 0, 0, 0.9);
  512. }
  513. #panel {
  514. display: none;
  515. position: fixed;
  516. top: 1em; bottom: 1em;
  517. left: 2em; right: 2em;
  518. overflow: auto;
  519. background: #fff;
  520. }
  521. #panel .close {
  522. position: fixed;
  523. top: 0; bottom: 0;
  524. left: 0; right: 0;
  525. display: block;
  526. }
  527. #panel .close img {
  528. display: none;
  529. }
  530. /*=== DIVERS */
  531. /*===========*/
  532. .nav-login,
  533. .nav_menu .search,
  534. .nav_menu .toggle_aside {
  535. display: none;
  536. }
  537. .aside .toggle_aside {
  538. position: absolute;
  539. right: 0;
  540. display: none;
  541. width: 30px;
  542. height: 30px;
  543. line-height: 30px;
  544. text-align: center;
  545. }
  546. /*=== MOBILE */
  547. /*===========*/
  548. @media(max-width: 840px) {
  549. .header,
  550. .aside .btn-important,
  551. .aside .feeds .dropdown,
  552. .flux_header .item.website span,
  553. .item.date, .day .date {
  554. display: none;
  555. }
  556. .nav-login {
  557. display: block;
  558. }
  559. .nav_menu .toggle_aside,
  560. .aside .toggle_aside,
  561. .nav_menu .search,
  562. #panel .close img {
  563. display: inline-block;
  564. }
  565. .aside {
  566. position: fixed;
  567. top: 0; bottom: 0;
  568. left: 0;
  569. width: 0;
  570. overflow: hidden;
  571. z-index: 100;
  572. }
  573. .aside:target {
  574. width: 90%;
  575. overflow: auto;
  576. }
  577. .aside .categories {
  578. margin: 10px 0 75px;
  579. }
  580. .flux_header .item.website {
  581. width: 40px;
  582. }
  583. .flux:not(.current):hover .item.title {
  584. position: relative;
  585. width: auto;
  586. white-space: nowrap;
  587. }
  588. #notification,
  589. .actualizeProgress {
  590. top: 0;
  591. left: 0;
  592. right: 0;
  593. }
  594. #nav_entries {
  595. width: 100%;
  596. }
  597. #stream.global .box-category {
  598. margin: 10px 0;
  599. }
  600. #panel {
  601. top: 0; bottom: 0;
  602. left: 0; right: 0;
  603. }
  604. #panel .close {
  605. top: 0; right: 0;
  606. left: auto; bottom: auto;
  607. display: inline-block;
  608. width: 30px;
  609. height: 30px;
  610. }
  611. }
  612. /*=== PRINTER */
  613. /*============*/
  614. @media print {
  615. .header, .aside,
  616. .nav_menu, .day,
  617. .flux_header,
  618. .flux_content .bottom,
  619. .pagination,
  620. #nav_entries {
  621. display: none;
  622. }
  623. html, body {
  624. background: #fff;
  625. color: #000;
  626. font-family: Serif;
  627. }
  628. #global,
  629. .flux_content {
  630. display: block !important;
  631. }
  632. .flux_content .content {
  633. width: 100% !important;
  634. }
  635. .flux_content .content a {
  636. color: #000;
  637. }
  638. .flux_content .content a:after {
  639. content: " [" attr(href) "] ";
  640. font-style: italic;
  641. }
  642. }