4
0

template.css 9.9 KB

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