base.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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. table-layout: fixed;
  103. }
  104. .aside {
  105. display: table-cell;
  106. height: 100%;
  107. width: 250px;
  108. vertical-align: top;
  109. border-right: 1px solid #aaa;
  110. background: #fff;
  111. }
  112. .aside ul {
  113. margin: 0;
  114. list-style: none;
  115. }
  116. .aside li {
  117. width: 100%;
  118. height: 50px;
  119. overflow: hidden;
  120. line-height: 50px;
  121. }
  122. .aside li > a, .aside li > span {
  123. display: block;
  124. width: 230px;
  125. padding: 0 10px;
  126. }
  127. .aside li > a:hover, .aside li > span:hover {
  128. text-decoration: none;
  129. background: #fafafa;
  130. }
  131. .aside li.disable > span {
  132. background: #fff;
  133. }
  134. .aside li > a > span {
  135. float: right;
  136. padding: 0 5px;
  137. font-size: 80%;
  138. }
  139. .aside li.active > a {
  140. background: #0062BE;
  141. color: #fff;
  142. }
  143. .aside li > h2 {
  144. height: 50px;
  145. padding: 0;
  146. text-align: center;
  147. background: #eee;
  148. line-height: 50px;
  149. }
  150. .aside form {
  151. display: table;
  152. width: 250px;
  153. margin: 0;
  154. padding: 0;
  155. background: #f0f0f0;
  156. border: none;
  157. border-bottom: 1px solid #aaa;
  158. border-radius: 0;
  159. box-shadow: none;
  160. }
  161. .aside form input {
  162. display: inline-block;
  163. height: 48px;
  164. line-height: 48px;
  165. }
  166. .aside form input[type="url"] {
  167. width: 200px;
  168. margin: 0;
  169. padding: 0;
  170. border: none !important;
  171. border-radius: 0;
  172. }
  173. .aside form input[type="submit"] {
  174. width: 50px;
  175. margin: 0;
  176. padding: 0;
  177. border: none;
  178. border-radius: 0;
  179. }
  180. #main_aside {
  181. position: fixed;
  182. z-index: 10;
  183. }
  184. #categories {
  185. height: 69%;
  186. overflow: auto;
  187. border-top: 1px solid #aaa;
  188. }
  189. #main {
  190. display: table-cell;
  191. height: 100%;
  192. max-width: 800px;
  193. padding: 0 0 0 250px;
  194. line-height: 180%;
  195. background: #fafafa;
  196. vertical-align: top;
  197. }
  198. #top {
  199. position: fixed;
  200. top: 0;
  201. width: 85%;
  202. background: #eee;
  203. border-bottom: 1px solid #aaa;
  204. box-shadow: 0 1px 3px #aaa;
  205. text-align: center;
  206. z-index: 0;
  207. }
  208. #top a {
  209. display: inline-block;
  210. height: 50px;
  211. width: 50%;
  212. line-height: 50px;
  213. font-weight: bold;
  214. }
  215. #top a:hover {
  216. background: #fafafa;
  217. text-decoration: none;
  218. }
  219. #stream {
  220. padding: 50px 0 0;
  221. }
  222. #main .table {
  223. display: table;
  224. width: 100%;
  225. height: 100%;
  226. }
  227. #main .nothing {
  228. display: table-cell;
  229. width: 100%;
  230. height: 100%;
  231. vertical-align: middle;
  232. text-align: center;
  233. }
  234. .post {
  235. }
  236. .post.flux {
  237. font-family: Palatino, "Times New Roman", serif;
  238. line-height: 170%;
  239. border-left: 10px solid #aaa;
  240. background: #fafafa;
  241. }
  242. .post.flux:hover {
  243. background: #fff;
  244. }
  245. .post.flux .after, .post.flux .before {
  246. padding: 0 20px;
  247. color: #aaa;
  248. font-size: 80%;
  249. font-style: italic;
  250. }
  251. .post.flux .before a {
  252. color: #96BDE2;
  253. }
  254. .post.flux .after a {
  255. display: inline-block;
  256. height: 40px;
  257. line-height: 40px;
  258. }
  259. .post.flux > h1 {
  260. min-height: 0;
  261. padding: 10px 20px;
  262. font-size: 130%;
  263. line-height: 150%;
  264. }
  265. .post.flux .content {
  266. padding: 5px 100px;
  267. }
  268. .post.flux .content h1, .post.flux .content h2, .post.flux .content h3 {
  269. margin: 20px 0;
  270. }
  271. .post.flux .content p {
  272. margin: 20px 0;
  273. }
  274. .post.flux .content img {
  275. margin: 10px;
  276. border-radius: 5px;
  277. }
  278. .post.flux .content pre {
  279. width: 90%;
  280. margin: 10px auto;
  281. padding: 10px;
  282. overflow: auto;
  283. background: #666;
  284. border: 1px solid #000;
  285. color: #fafafa;
  286. border-radius: 5px;
  287. }
  288. .post.flux .content q, .post.flux .content blockquote {
  289. display: block;
  290. margin: 10px 0;
  291. padding: 0 20px;
  292. font-style: italic;
  293. border-left: 4px solid #ccc;
  294. color: #666;
  295. }
  296. .post.flux.active {
  297. border-left: 10px solid #0062BE;
  298. background: #fff;
  299. }
  300. .post.flux.not_read {
  301. border-left: 10px solid #FF5300;
  302. background: #FFF3ED;
  303. }
  304. .post.flux.favorite {
  305. border-left: 10px solid #FFC300;
  306. background: #FFF6DA;
  307. }
  308. #stream.read_mode {
  309. background: #fff;
  310. box-shadow: 0 0 5px #000;
  311. }
  312. #stream.read_mode .post.flux {
  313. border-left: 0;
  314. padding: 50px 20px;
  315. background: #fff;
  316. }
  317. #stream.read_mode .post.flux a {
  318. color: #363;
  319. }
  320. #stream.read_mode .post.flux .content a {
  321. text-decoration: underline;
  322. }
  323. #stream.read_mode .post.flux .content a:hover {
  324. text-decoration: none;
  325. }
  326. #stream.read_mode .post.flux .after {
  327. display: none;
  328. }
  329. /*** PAGINATION ***/
  330. .pagination {
  331. height: 50px;
  332. margin: 0;
  333. list-style: none;
  334. text-align: center;
  335. font-size: 100%;
  336. line-height: 50px;
  337. }
  338. .pagination li {
  339. display: inline-block;
  340. width: 30px;
  341. height: 30px;
  342. }
  343. .pagination li.pager-next, .pagination li.pager-previous, .pagination li.pager-first, .pagination li.pager-last {
  344. width: 100px;
  345. }
  346. .pagination li.pager-current {
  347. font-weight: bold;
  348. }
  349. .pagination li a {
  350. display: block;
  351. color: #F09600;
  352. }
  353. a#load_more {
  354. display: block;
  355. height: 50px;
  356. background: #eee;
  357. line-height: 50px;
  358. text-align: center;
  359. font-weight: bold;
  360. border-top: 1px solid #aaa;
  361. }
  362. a#load_more:hover {
  363. background: #fff;
  364. text-decoration: none;
  365. }
  366. a#load_more.disable {
  367. cursor: default;
  368. background: #eee;
  369. color: #666;
  370. }
  371. a#read_mode {
  372. display: block;
  373. position: fixed;
  374. bottom: 0;
  375. right: 0;
  376. width: 50px;
  377. height: 50px;
  378. background: url("read_mode.png") 9px 9px no-repeat #ddd;
  379. border-top: 1px solid #aaa;
  380. border-left: 1px solid #aaa;
  381. border-radius: 20px 0 0 0;
  382. box-shadow: -2px -2px 5px #aaa;
  383. transition: all 100ms linear 0s;
  384. }
  385. a#read_mode:hover {
  386. width: 60px;
  387. height: 60px;
  388. background-color: #eee;
  389. text-decoration: none;
  390. }
  391. /*** NOTIFICATION ***/
  392. #notification {
  393. position: fixed;
  394. bottom: 0;
  395. left: 25%;
  396. width: 50%;
  397. height: 50px;
  398. padding: 0 50px;
  399. line-height: 50px;
  400. text-align: center;
  401. border-radius: 5px 5px 0 0;
  402. box-shadow: 0 0 5px #666;
  403. background: #ddd;
  404. color: #666;
  405. font-weight: bold;
  406. }
  407. #notification.good {
  408. background: #f4f899;
  409. }
  410. #notification.bad {
  411. background: #f4a899;
  412. }
  413. #notification a.close {
  414. display: inline-block;
  415. width: 25px;
  416. height: 25px;
  417. float: right;
  418. margin: -10px -60px 0 0;
  419. background: #fff;
  420. border-radius: 50px;
  421. border: 1px solid #aaa;
  422. line-height: 25px;
  423. color: #666;
  424. }
  425. #notification a.close:hover {
  426. text-decoration: none;
  427. }
  428. @media(max-width: 840px) {
  429. #main_aside {
  430. display: none;
  431. }
  432. #main {
  433. width: 100%;
  434. padding: 0;
  435. }
  436. #top {
  437. width: 100%;
  438. position: static;
  439. }
  440. #stream {
  441. padding: 0;
  442. }
  443. .post.flux .after {
  444. display: none;
  445. }
  446. .post.flux > h1 {
  447. display: inline-block;
  448. min-height: 35px;
  449. font-size: 80%;
  450. line-height: 35px;
  451. }
  452. .post.flux .before {
  453. display: inline;
  454. font-size: 80%;
  455. }
  456. a#read_mode {
  457. display: none;
  458. }
  459. }