template.css 10 KB

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