template.css 10 KB

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