template.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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. white-space: nowrap;
  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. max-width: calc(100% - 320px);
  362. background: #fff;
  363. }
  364. .flux .item.title a {
  365. color: #000;
  366. text-decoration: none;
  367. }
  368. .flux .item.date {
  369. width: 145px;
  370. text-align: right;
  371. }
  372. .flux .item > a {
  373. display: block;
  374. }
  375. .flux .item > a {
  376. display: block;
  377. text-decoration: none;
  378. white-space: nowrap;
  379. text-overflow: ellipsis;
  380. overflow: hidden;
  381. }
  382. .flux .item.share > a {
  383. display: list-item;
  384. list-style-position: inside;
  385. list-style-type: decimal;
  386. }
  387. /*=== Feed article content */
  388. .hide_posts > .flux:not(.active) > .flux_content {
  389. display: none;
  390. }
  391. .content {
  392. min-height: 20em;
  393. margin: auto;
  394. line-height: 1.7em;
  395. word-wrap: break-word;
  396. }
  397. .content.large {
  398. max-width: 1000px;
  399. }
  400. .content.medium {
  401. max-width: 800px;
  402. }
  403. .content.thin {
  404. max-width: 550px;
  405. }
  406. .content ul,
  407. .content ol,
  408. .content dd {
  409. margin: 0 0 0 15px;
  410. padding: 0 0 5px 15px;
  411. }
  412. .content pre {
  413. overflow: auto;
  414. }
  415. /*=== Notification and actualize notification */
  416. .notification {
  417. position: absolute;
  418. top: 1em;
  419. left: 25%; right: 25%;
  420. z-index: 10;
  421. background: #fff;
  422. border: 1px solid #aaa;
  423. }
  424. .notification.closed {
  425. display: none;
  426. }
  427. .notification a.close {
  428. position: absolute;
  429. top: 0; bottom: 0;
  430. right: 0;
  431. display: inline-block;
  432. }
  433. #actualizeProgress {
  434. position: fixed;
  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: 3em 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. top: 0;
  590. left: 0;
  591. right: 0;
  592. }
  593. #nav_entries {
  594. width: 100%;
  595. }
  596. #stream.global .box-category {
  597. margin: 10px 0;
  598. }
  599. #panel {
  600. top: 0; bottom: 0;
  601. left: 0; right: 0;
  602. }
  603. #panel .close {
  604. top: 0; right: 0;
  605. left: auto; bottom: auto;
  606. display: inline-block;
  607. width: 30px;
  608. height: 30px;
  609. }
  610. }
  611. /*=== PRINTER */
  612. /*============*/
  613. @media print {
  614. .header, .aside,
  615. .nav_menu, .day,
  616. .flux_header,
  617. .flux_content .bottom,
  618. .pagination,
  619. #nav_entries {
  620. display: none;
  621. }
  622. html, body {
  623. background: #fff;
  624. color: #000;
  625. font-family: Serif;
  626. }
  627. #global,
  628. .flux_content {
  629. display: block !important;
  630. }
  631. .flux_content .content {
  632. width: 100% !important;
  633. }
  634. .flux_content .content a {
  635. color: #000;
  636. }
  637. .flux_content .content a:after {
  638. content: " [" attr(href) "] ";
  639. font-style: italic;
  640. }
  641. }