freshrss.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. /* STRUCTURE */
  2. .header {
  3. display: table;
  4. width: 100%;
  5. background: #f4f4f4;
  6. table-layout: fixed;
  7. }
  8. .header > .item {
  9. display: table-cell;
  10. padding: 10px 0;
  11. border-bottom: 1px solid #aaa;
  12. vertical-align: middle;
  13. text-align: center;
  14. }
  15. .header > .item.title {
  16. width: 250px;
  17. }
  18. .header > .item.title h1 {
  19. margin: 0;
  20. text-shadow: 1px -1px 0 #ccc;
  21. }
  22. .header > .item.title a:hover {
  23. text-decoration: none;
  24. }
  25. .header > .item.search input {
  26. width: 200px;
  27. transition: width 200ms linear;
  28. }
  29. .header .item.search input:focus {
  30. width: 300px;
  31. }
  32. .header > .item.configure {
  33. width: 100px;
  34. }
  35. #global {
  36. display: table;
  37. width: 100%;
  38. height: 100%;
  39. background: #fafafa;
  40. table-layout: fixed;
  41. }
  42. .aside {
  43. display: table-cell;
  44. height: 100%;
  45. width: 250px;
  46. vertical-align: top;
  47. border-right: 1px solid #aaa;
  48. background: #fff;
  49. }
  50. .aside .nav-form input {
  51. width: 180px;
  52. }
  53. .aside.aside_flux {
  54. padding: 10px 0;
  55. }
  56. .aside.aside_feed .nav-form input {
  57. width: 140px;
  58. }
  59. .aside.aside_feed .nav-form .dropdown .dropdown-menu {
  60. right: -20px;
  61. }
  62. .nav_menu {
  63. width: 100%;
  64. background: #fafafa;
  65. border-bottom: 1px solid #aaa;
  66. text-align: center;
  67. padding: 5px 0;
  68. }
  69. .favicon {
  70. width: 16px;
  71. }
  72. .categories {
  73. margin: 0;
  74. padding: 0;
  75. text-align: center;
  76. list-style: none;
  77. }
  78. .categories .all,
  79. .categories .favorites,
  80. .categories .category {
  81. display: block;
  82. padding: 5px 0;
  83. width: 220px;
  84. margin: 5px auto;
  85. text-align: left;
  86. overflow: hidden;
  87. white-space: nowrap;
  88. text-overflow: ellipsis;
  89. }
  90. .categories .all .btn,
  91. .categories .favorites .btn,
  92. .categories .category .btn:first-child {
  93. width: 195px;
  94. position: relative;
  95. }
  96. .categories .feeds {
  97. width: 220px;
  98. margin: 0 auto;
  99. list-style: none;
  100. }
  101. .categories .feeds .item.active:after {
  102. content: "⇢";
  103. line-height: 35px;
  104. float: right;
  105. }
  106. .categories .feeds .item .feed {
  107. display: inline-block;
  108. margin: 0;
  109. width: 165px;
  110. line-height: 35px;
  111. font-size: 90%;
  112. vertical-align: middle;
  113. text-align: left;
  114. overflow: hidden;
  115. white-space: nowrap;
  116. text-overflow: ellipsis;
  117. }
  118. .categories .feeds .dropdown .dropdown-menu {
  119. left: 0;
  120. }
  121. .categories .feeds .item .dropdown-toggle i {
  122. background-image: none;
  123. }
  124. .categories .feeds .item .dropdown-target:target ~ .dropdown-toggle i,
  125. .categories .feeds .item:hover .dropdown-toggle i {
  126. background-image: url("icons/configure.png");
  127. background-image: url("icons/configure.svg");
  128. }
  129. .categories .notRead {
  130. position: absolute;
  131. top: 3px; right: 3px;
  132. padding: 1px 5px;
  133. background: #ccc;
  134. color: #fff;
  135. font-size: 90%;
  136. border: 1px solid #bbb;
  137. border-radius: 5px;
  138. box-shadow: 1px 3px 3px #aaa inset;
  139. text-shadow: 0 0 1px #aaa;
  140. }
  141. .post {
  142. padding: 10px 50px;
  143. }
  144. .post form {
  145. margin: 10px 0;
  146. }
  147. .day {
  148. min-height: 50px;
  149. padding: 0 10px;
  150. font-size: 130%;
  151. font-weight: bold;
  152. line-height: 50px;
  153. background: #fff;
  154. border-top: 1px solid #aaa;
  155. border-bottom: 1px solid #aaa;
  156. }
  157. .day:first-child {
  158. border-top: none;
  159. }
  160. .flux {
  161. border-left: 10px solid #aaa;
  162. background: #fafafa;
  163. }
  164. .flux:hover {
  165. background: #fff;
  166. }
  167. .flux.active {
  168. border-left: 10px solid #0062BE;
  169. background: #fff;
  170. }
  171. .flux.not_read {
  172. border-left: 10px solid #FF5300;
  173. background: #FFF3ED;
  174. }
  175. .flux.favorite {
  176. border-left: 10px solid #FFC300;
  177. background: #FFF6DA;
  178. }
  179. .flux_header {
  180. height: 25px;
  181. font-size: 12px;
  182. line-height: 25px;
  183. border-top: 1px solid #ddd;
  184. }
  185. .flux_header .item.manage {
  186. width: 60px;
  187. white-space: nowrap;
  188. font-size: 0px;
  189. text-align: center;
  190. }
  191. .flux_header .item.manage .read {
  192. display: inline-block;
  193. width: 30px;
  194. height: 40px;
  195. background: url("icons/read.png") center center no-repeat;
  196. background: url("icons/read.svg") center center no-repeat;
  197. vertical-align: middle;
  198. }
  199. .flux_header .item.manage .read:hover {
  200. text-decoration: none;
  201. }
  202. .flux.not_read .flux_header .item.manage .read {
  203. background: url("icons/unread.png") center center no-repeat;
  204. background: url("icons/unread.svg") center center no-repeat;
  205. }
  206. .flux_header .item.manage .bookmark {
  207. display: inline-block;
  208. width: 30px;
  209. height: 40px;
  210. background: url("icons/non-starred.png") center center no-repeat;
  211. background: url("icons/non-starred.svg") center center no-repeat;
  212. vertical-align: middle;
  213. }
  214. .flux_header .item.manage .bookmark:hover {
  215. text-decoration: none;
  216. }
  217. .flux.favorite .flux_header .item.manage .bookmark {
  218. background: url("icons/starred.png") center center no-repeat;
  219. background: url("icons/starred.svg") center center no-repeat;
  220. }
  221. .flux_header .item.website {
  222. width: 200px;
  223. overflow: hidden;
  224. white-space: nowrap;
  225. text-overflow: ellipsis;
  226. line-height: 40px;
  227. }
  228. .flux_header .item.website a {
  229. display: block;
  230. padding: 0 5px;
  231. height: 40px;
  232. }
  233. .flux_header .item.title {
  234. overflow: hidden;
  235. white-space: nowrap;
  236. text-overflow: ellipsis;
  237. cursor: pointer;
  238. }
  239. .flux.not_read .flux_header .item.title {
  240. font-weight: bold;
  241. }
  242. .flux_header .item.date {
  243. width: 200px;
  244. overflow: hidden;
  245. white-space: nowrap;
  246. text-overflow: ellipsis;
  247. text-align: right;
  248. font-size: 10px;
  249. color: #666;
  250. cursor: pointer;
  251. }
  252. .flux_header .item.link {
  253. width: 35px;
  254. text-align: center;
  255. }
  256. .flux_header .item.link a {
  257. display: inline-block;
  258. width: 35px;
  259. height: 40px;
  260. background: url("icons/link.png") center center no-repeat;
  261. background: url("icons/link.svg") center center no-repeat;
  262. vertical-align: middle;
  263. }
  264. .flux_header .item.link a:hover {
  265. text-decoration: none;
  266. }
  267. .content {
  268. max-width: 550px;
  269. margin: 0 auto;
  270. padding: 20px 10px;
  271. line-height: 170%;
  272. font-family: 'OpenSans';
  273. }
  274. .content .title {
  275. margin: 0 0 5px;
  276. }
  277. .content h1, .content h2, .content h3 {
  278. margin: 20px 0 5px;
  279. }
  280. .content p {
  281. margin: 0 0 20px;
  282. }
  283. .content img.big {
  284. display: block;
  285. margin: 10px auto;
  286. }
  287. .content pre {
  288. width: 90%;
  289. margin: 10px auto;
  290. padding: 10px;
  291. overflow: auto;
  292. background: #666;
  293. border: 1px solid #000;
  294. color: #fafafa;
  295. border-radius: 5px;
  296. }
  297. .content q, .content blockquote {
  298. display: block;
  299. margin: 5px 0;
  300. padding: 5px 20px;
  301. font-style: italic;
  302. border-left: 4px solid #ccc;
  303. color: #666;
  304. }
  305. .content blockquote p {
  306. margin: 0;
  307. }
  308. .flux_content .bottom {
  309. font-size: 90%;
  310. text-align: center;
  311. }
  312. /*** PAGINATION ***/
  313. .pagination {
  314. display: table;
  315. width: 100%;
  316. margin: 0;
  317. background: #fafafa;
  318. text-align: center;
  319. color: #333;
  320. font-size: 80%;
  321. line-height: 200%;
  322. table-layout: fixed;
  323. }
  324. .pagination .item {
  325. display: table-cell;
  326. padding: 5px 10px;
  327. border-top: 1px solid #aaa;
  328. }
  329. .pagination .item a {
  330. color: #333;
  331. font-style: italic;
  332. }
  333. .pagination .pager-previous, .pagination .pager-next {
  334. width: 200px;
  335. }
  336. .pagination .item.pager-current {
  337. font-weight: bold;
  338. }
  339. /*** NOTIFICATION ***/
  340. .notification {
  341. position: fixed;
  342. bottom: 0;
  343. left: 5%; right: 5%;
  344. min-height: 30px;
  345. padding: 10px;
  346. line-height: 30px;
  347. text-align: center;
  348. border-radius: 5px 5px 0 0;
  349. box-shadow: 0 0 5px #666;
  350. background: #ddd;
  351. color: #666;
  352. font-weight: bold;
  353. }
  354. .notification.good {
  355. background: #f4f899;
  356. }
  357. .notification.bad {
  358. background: #f4a899;
  359. }
  360. .notification a.close {
  361. display: inline-block;
  362. width: 16px;
  363. height: 16px;
  364. float: right;
  365. margin: -20px -20px 0 0;
  366. padding: 5px;
  367. background: #fff;
  368. border-radius: 50px;
  369. border: 1px solid #aaa;
  370. line-height: 16px;
  371. }
  372. .toggle_aside, .btn.toggle_aside {
  373. display: none;
  374. }
  375. .actualizeProgress {
  376. position: fixed;
  377. top: 0; left: 25%; right: 25%;
  378. width: 50%;
  379. padding: 5px;
  380. background: #fff;
  381. text-align: center;
  382. border: 1px solid #ddd;
  383. border-top: none;
  384. border-radius: 0 0 5px 5px;
  385. }
  386. .actualizeProgress progress {
  387. max-width: 100%;
  388. vertical-align: middle;
  389. }
  390. .actualizeProgress .progress {
  391. color: #999;
  392. font-size: 90%;
  393. vertical-align: middle;
  394. }
  395. @media(max-width: 840px) {
  396. .header,
  397. .aside .btn-important,
  398. .aside .feeds .dropdown,
  399. .flux_header .item.website span,
  400. .flux_header .item.date,
  401. .flux_content .bottom {
  402. display: none;
  403. }
  404. .flux_header .item.website {
  405. width: 30px;
  406. text-align: center;
  407. }
  408. .pagination .pager-previous, .pagination .pager-next {
  409. width: 100px;
  410. }
  411. .toggle_aside, .btn.toggle_aside {
  412. display: inline-block;
  413. }
  414. .aside {
  415. position: fixed;
  416. top: 0; left: 0;
  417. width: 0;
  418. overflow: hidden;
  419. z-index: 10;
  420. transition: width 200ms linear;
  421. }
  422. .aside:target {
  423. width: 80%;
  424. overflow: auto;
  425. }
  426. .aside .toggle_aside {
  427. position: absolute;
  428. right: 0;
  429. display: inline-block;
  430. width: 20px;
  431. height: 20px;
  432. margin: 0 10px 0 0;
  433. border: 1px solid #ccc;
  434. border-radius: 10px;
  435. text-align: center;
  436. line-height: 20px;
  437. }
  438. .aside .categories {
  439. margin: 30px 0;
  440. }
  441. }