template.css 10 KB

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