template.css 10 KB

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