4
0

base.css 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html, body {
  6. height: 100%;
  7. font-size: 95%;
  8. font-family: "Cantarell", "sans-serif";
  9. }
  10. /* LIENS */
  11. a {
  12. color: #0062BE;
  13. text-decoration: none;
  14. }
  15. a:hover {
  16. text-decoration: underline;
  17. }
  18. /* LISTES */
  19. ul, ol {
  20. margin: 10px 0 10px 30px;
  21. line-height: 190%;
  22. }
  23. /* TITRES */
  24. h1, h2, h3 {
  25. min-height: 40px;
  26. padding: 10px 0 0;
  27. line-height: 40px;
  28. }
  29. /* IMG */
  30. img {
  31. max-width: 100%;
  32. vertical-align: middle;
  33. }
  34. a img {
  35. border: none;
  36. }
  37. /* FORMULAIRES */
  38. form {
  39. width: 450px;
  40. max-width: 100%;
  41. margin: 20px auto;
  42. padding: 20px;
  43. background: #f0f0f0;
  44. border: 1px solid #ddd;
  45. border-radius: 3px;
  46. box-shadow: 0 1px 3px #aaa;
  47. }
  48. label {
  49. display: block;
  50. margin: 20px 0 0;
  51. padding: 0 20px 0 0;
  52. font-weight: bold;
  53. }
  54. input:focus, textarea:focus {
  55. color: #3366cc !important;
  56. border: 1px solid #3366cc !important;
  57. }
  58. input[type="text"], input[type="url"], input[type="email"], input[type="number"], textarea {
  59. display: block;
  60. height: 30px;
  61. width: 430px;
  62. max-width: 95%;
  63. margin: 5px 0 5px;
  64. padding: 5px 10px;
  65. background: #fff;
  66. border: 1px solid #ccc;
  67. border-radius: 5px;
  68. font-size: 90%;
  69. }
  70. textarea {
  71. min-height: 100px;
  72. font-size: 110%;
  73. line-height: 150%;
  74. font-family: Monospace;
  75. }
  76. input[type="submit"], button {
  77. display: block;
  78. height: 40px;
  79. width: 100%;
  80. margin: 5px 0 5px;
  81. padding: 5px 0;
  82. }
  83. select {
  84. width: 100%;
  85. padding: 5px;
  86. }
  87. .radio_group, .checkbox_group {
  88. line-height: 35px;
  89. }
  90. .radio_group label, .checkbox_group label {
  91. display: inline-block;
  92. margin: 0;
  93. padding: 0 0 0 5px;
  94. font-weight: normal;
  95. }
  96. /* STRUCTURE */
  97. #global {
  98. display: table;
  99. width: 100%;
  100. height: 100%;
  101. background: #fafafa;
  102. }
  103. .aside {
  104. display: table-cell;
  105. height: 100%;
  106. width: 250px;
  107. vertical-align: top;
  108. border-right: 1px solid #aaa;
  109. background: #fff;
  110. }
  111. .aside ul {
  112. margin: 0;
  113. list-style: none;
  114. }
  115. .aside li {
  116. width: 100%;
  117. height: 50px;
  118. overflow: hidden;
  119. line-height: 50px;
  120. }
  121. .aside li > a, .aside li > span {
  122. display: block;
  123. width: 230px;
  124. padding: 0 10px;
  125. }
  126. .aside li > a:hover, .aside li > span:hover {
  127. text-decoration: none;
  128. background: #fafafa;
  129. }
  130. .aside li.disable > span {
  131. background: #fff;
  132. }
  133. .aside li > a > span {
  134. float: right;
  135. padding: 0 5px;
  136. font-size: 80%;
  137. }
  138. .aside li.active > a {
  139. background: #0062BE;
  140. color: #fff;
  141. }
  142. .aside li > h2 {
  143. height: 50px;
  144. padding: 0;
  145. text-align: center;
  146. background: #eee;
  147. line-height: 50px;
  148. }
  149. .aside form {
  150. display: table;
  151. width: 250px;
  152. margin: 0;
  153. padding: 0;
  154. background: #f0f0f0;
  155. border: none;
  156. border-bottom: 1px solid #aaa;
  157. border-radius: 0;
  158. box-shadow: none;
  159. }
  160. .aside form input {
  161. display: inline-block;
  162. height: 48px;
  163. line-height: 48px;
  164. }
  165. .aside form input[type="url"] {
  166. width: 200px;
  167. margin: 0;
  168. padding: 0;
  169. border: none !important;
  170. border-radius: 0;
  171. }
  172. .aside form input[type="submit"] {
  173. width: 50px;
  174. margin: 0;
  175. padding: 0;
  176. border: none;
  177. border-radius: 0;
  178. }
  179. #main_aside {
  180. position: fixed;
  181. z-index: 10;
  182. }
  183. #categories {
  184. height: 69%;
  185. overflow: auto;
  186. border-top: 1px solid #aaa;
  187. }
  188. #main {
  189. display: table-cell;
  190. height: 100%;
  191. max-width: 800px;
  192. padding: 0 0 0 250px;
  193. line-height: 180%;
  194. background: #fafafa;
  195. vertical-align: top;
  196. }
  197. #top {
  198. position: fixed;
  199. top: 0;
  200. width: 85%;
  201. background: #eee;
  202. border-bottom: 1px solid #aaa;
  203. box-shadow: 0 1px 3px #aaa;
  204. text-align: center;
  205. z-index: 0;
  206. }
  207. #top a {
  208. display: inline-block;
  209. height: 50px;
  210. width: 50%;
  211. line-height: 50px;
  212. font-weight: bold;
  213. }
  214. #top a:hover {
  215. background: #fafafa;
  216. text-decoration: none;
  217. }
  218. #stream {
  219. padding: 50px 0 0;
  220. }
  221. #main .table {
  222. display: table;
  223. width: 100%;
  224. height: 100%;
  225. }
  226. #main .nothing {
  227. display: table-cell;
  228. width: 100%;
  229. height: 100%;
  230. vertical-align: middle;
  231. text-align: center;
  232. }
  233. .post {
  234. }
  235. .post.flux {
  236. font-family: Palatino, "Times New Roman", serif;
  237. border-left: 10px solid #aaa;
  238. background: #fafafa;
  239. }
  240. .post.flux:hover {
  241. background: #fff;
  242. }
  243. .post.flux .content {
  244. padding: 20px 100px;
  245. line-height: 170%;
  246. }
  247. .post.flux .content h1, .post.flux .content h2, .post.flux .content h3 {
  248. margin: 20px 0;
  249. }
  250. .post.flux .content p {
  251. margin: 20px 0;
  252. }
  253. .post.flux .content img {
  254. margin: 10px;
  255. border-radius: 5px;
  256. }
  257. .post.flux .content pre {
  258. width: 90%;
  259. margin: 10px auto;
  260. padding: 10px;
  261. overflow: auto;
  262. background: #666;
  263. border: 1px solid #000;
  264. color: #fafafa;
  265. border-radius: 5px;
  266. }
  267. .post.flux .content q, .post.flux .content blockquote {
  268. display: block;
  269. margin: 0;
  270. padding: 10px 20px;
  271. font-style: italic;
  272. border-left: 4px solid #ccc;
  273. color: #666;
  274. }
  275. .post.flux.active {
  276. border-left: 10px solid #0062BE;
  277. background: #fff;
  278. }
  279. .post.flux.not_read {
  280. border-left: 10px solid #FF5300;
  281. background: #FFF3ED;
  282. }
  283. .post.flux.favorite {
  284. border-left: 10px solid #FFC300;
  285. background: #FFF6DA;
  286. }
  287. .flux_header {
  288. display: table;
  289. table-layout: fixed;
  290. margin: 0;
  291. padding: 0;
  292. width: 100%;
  293. height: 25px;
  294. font-size: 12px;
  295. line-height: 25px;
  296. border-top: 1px solid #ddd;
  297. }
  298. .flux_header .item {
  299. display: table-cell;
  300. vertical-align: middle;
  301. }
  302. .flux_header .item.manage {
  303. width: 40px;
  304. }
  305. .flux_header .item.manage .read {
  306. display: inline-block;
  307. width: 16px;
  308. height: 16px;
  309. background: url("read.svg") center center no-repeat;
  310. vertical-align: middle;
  311. }
  312. .flux_header .item.manage .read:hover {
  313. text-decoration: none;
  314. }
  315. .post.flux.not_read .flux_header .item.manage .read {
  316. background: url("unread.svg") center center no-repeat;
  317. }
  318. .flux_header .item.manage .bookmark {
  319. display: inline-block;
  320. width: 16px;
  321. height: 16px;
  322. background: url("non-starred.svg") center center no-repeat;
  323. vertical-align: middle;
  324. }
  325. .flux_header .item.manage .bookmark:hover {
  326. text-decoration: none;
  327. }
  328. .post.flux.favorite .flux_header .item.manage .bookmark {
  329. background: url("starred.svg") center center no-repeat;
  330. }
  331. .flux_header .item.website {
  332. width: 200px;
  333. overflow: hidden;
  334. white-space: nowrap;
  335. text-overflow: ellipsis;
  336. }
  337. .flux_header .item.title {
  338. overflow: hidden;
  339. white-space: nowrap;
  340. text-overflow: ellipsis;
  341. }
  342. .flux_header .item.title h1 {
  343. font-size: 12px;
  344. padding: 0;
  345. font-weight: normal;
  346. }
  347. .post.flux.not_read .flux_header .item.title h1 {
  348. font-weight: bold;
  349. }
  350. .flux_header .item.date {
  351. width: 200px;
  352. overflow: hidden;
  353. white-space: nowrap;
  354. text-overflow: ellipsis;
  355. text-align: right;
  356. }
  357. .flux_header .item.link {
  358. width: 25px;
  359. text-align: center;
  360. }
  361. .flux_header .item.link a {
  362. display: inline-block;
  363. width: 16px;
  364. height: 16px;
  365. background: url("website.svg") center center no-repeat;
  366. vertical-align: middle;
  367. }
  368. .flux_header .item.link a:hover {
  369. text-decoration: none;
  370. }
  371. #stream.read_mode {
  372. background: #fff;
  373. box-shadow: 0 0 5px #000;
  374. }
  375. #stream.read_mode .post.flux {
  376. border-left: 0;
  377. padding: 50px 20px;
  378. background: #fff;
  379. }
  380. #stream.read_mode .post.flux a {
  381. color: #363;
  382. }
  383. #stream.read_mode .post.flux .content a {
  384. text-decoration: underline;
  385. }
  386. #stream.read_mode .post.flux .content a:hover {
  387. text-decoration: none;
  388. }
  389. #stream.read_mode .post.flux .after {
  390. display: none;
  391. }
  392. /*** PAGINATION ***/
  393. .pagination {
  394. height: 50px;
  395. margin: 0;
  396. list-style: none;
  397. text-align: center;
  398. font-size: 100%;
  399. line-height: 50px;
  400. }
  401. .pagination li {
  402. display: inline-block;
  403. width: 30px;
  404. height: 30px;
  405. }
  406. .pagination li.pager-next, .pagination li.pager-previous, .pagination li.pager-first, .pagination li.pager-last {
  407. width: 100px;
  408. }
  409. .pagination li.pager-current {
  410. font-weight: bold;
  411. }
  412. .pagination li a {
  413. display: block;
  414. color: #F09600;
  415. }
  416. a#load_more {
  417. display: block;
  418. height: 50px;
  419. background: #eee;
  420. line-height: 50px;
  421. text-align: center;
  422. font-weight: bold;
  423. border-top: 1px solid #aaa;
  424. }
  425. a#load_more:hover {
  426. background: #fff;
  427. text-decoration: none;
  428. }
  429. a#load_more.disable {
  430. cursor: default;
  431. background: #eee;
  432. color: #666;
  433. }
  434. a#read_mode {
  435. display: block;
  436. position: fixed;
  437. bottom: 0;
  438. right: 0;
  439. width: 50px;
  440. height: 50px;
  441. background: url("read_mode.png") 9px 9px no-repeat #ddd;
  442. border-top: 1px solid #aaa;
  443. border-left: 1px solid #aaa;
  444. border-radius: 20px 0 0 0;
  445. box-shadow: -2px -2px 5px #aaa;
  446. transition: all 100ms linear 0s;
  447. }
  448. a#read_mode:hover {
  449. width: 60px;
  450. height: 60px;
  451. background-color: #eee;
  452. text-decoration: none;
  453. }
  454. /*** NOTIFICATION ***/
  455. #notification {
  456. position: fixed;
  457. bottom: 0;
  458. left: 25%;
  459. width: 50%;
  460. height: 50px;
  461. padding: 0 50px;
  462. line-height: 50px;
  463. text-align: center;
  464. border-radius: 5px 5px 0 0;
  465. box-shadow: 0 0 5px #666;
  466. background: #ddd;
  467. color: #666;
  468. font-weight: bold;
  469. }
  470. #notification.good {
  471. background: #f4f899;
  472. }
  473. #notification.bad {
  474. background: #f4a899;
  475. }
  476. #notification a.close {
  477. display: inline-block;
  478. width: 25px;
  479. height: 25px;
  480. float: right;
  481. margin: -10px -60px 0 0;
  482. background: #fff;
  483. border-radius: 50px;
  484. border: 1px solid #aaa;
  485. line-height: 25px;
  486. color: #666;
  487. }
  488. #notification a.close:hover {
  489. text-decoration: none;
  490. }
  491. @media(max-width: 840px) {
  492. #global {
  493. table-layout: fixed;
  494. }
  495. #main_aside {
  496. display: none;
  497. }
  498. #main {
  499. width: 100%;
  500. padding: 0;
  501. }
  502. #top {
  503. width: 100%;
  504. position: static;
  505. }
  506. #stream {
  507. padding: 0;
  508. }
  509. .flux_header .item.website,
  510. .flux_header .item.date {
  511. width: 100px;
  512. }
  513. .post.flux .content {
  514. padding: 10px;
  515. }
  516. a#read_mode {
  517. display: none;
  518. }
  519. }