base.css 8.9 KB

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