freshrss.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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: all 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.svg");
  127. }
  128. .categories .notRead {
  129. position: absolute;
  130. top: 3px; right: 3px;
  131. padding: 1px 5px;
  132. background: #ccc;
  133. color: #fff;
  134. font-size: 90%;
  135. border: 1px solid #bbb;
  136. border-radius: 5px;
  137. box-shadow: 1px 3px 3px #aaa inset;
  138. text-shadow: 0 0 1px #aaa;
  139. }
  140. .post {
  141. padding: 10px 50px;
  142. }
  143. .post form {
  144. margin: 10px 0;
  145. }
  146. .day {
  147. height: 50px;
  148. padding: 0 10px;
  149. font-size: 130%;
  150. font-weight: bold;
  151. line-height: 50px;
  152. background: #fff;
  153. border-top: 1px solid #aaa;
  154. border-bottom: 1px solid #aaa;
  155. }
  156. .day:first-child {
  157. border-top: none;
  158. }
  159. .flux {
  160. border-left: 10px solid #aaa;
  161. background: #fafafa;
  162. }
  163. .flux:hover {
  164. background: #fff;
  165. }
  166. .flux.active {
  167. border-left: 10px solid #0062BE;
  168. background: #fff;
  169. }
  170. .flux.not_read {
  171. border-left: 10px solid #FF5300;
  172. background: #FFF3ED;
  173. }
  174. .flux.favorite {
  175. border-left: 10px solid #FFC300;
  176. background: #FFF6DA;
  177. }
  178. .flux_header {
  179. display: table;
  180. table-layout: fixed;
  181. margin: 0;
  182. padding: 0;
  183. width: 100%;
  184. height: 25px;
  185. font-size: 12px;
  186. line-height: 25px;
  187. border-top: 1px solid #ddd;
  188. }
  189. .flux_header .item {
  190. display: table-cell;
  191. vertical-align: middle;
  192. }
  193. .flux_header .item.manage {
  194. width: 90px;
  195. white-space: nowrap;
  196. font-size: 0px;
  197. vertical-align: middle;
  198. text-align: center;
  199. }
  200. .flux_header .item.manage .read {
  201. display: inline-block;
  202. width: 30px;
  203. height: 40px;
  204. background: url("icons/read.svg") center center no-repeat;
  205. vertical-align: middle;
  206. }
  207. .flux_header .item.manage .read:hover {
  208. text-decoration: none;
  209. }
  210. .flux.not_read .flux_header .item.manage .read {
  211. background: url("icons/unread.svg") center center no-repeat;
  212. }
  213. .flux_header .item.manage .bookmark {
  214. display: inline-block;
  215. width: 30px;
  216. height: 40px;
  217. background: url("icons/non-starred.svg") center center no-repeat;
  218. vertical-align: middle;
  219. }
  220. .flux_header .item.manage .bookmark:hover {
  221. text-decoration: none;
  222. }
  223. .flux.favorite .flux_header .item.manage .bookmark {
  224. background: url("icons/starred.svg") center center no-repeat;
  225. }
  226. .flux_header .item.manage .note {
  227. display: inline-block;
  228. width: 30px;
  229. height: 40px;
  230. vertical-align: middle;
  231. line-height: 40px;
  232. font-size: 12px;
  233. }
  234. .flux_header .item.website {
  235. width: 200px;
  236. overflow: hidden;
  237. white-space: nowrap;
  238. text-overflow: ellipsis;
  239. line-height: 40px;
  240. }
  241. .flux_header .item.website a {
  242. display: block;
  243. padding: 0 5px;
  244. height: 40px;
  245. }
  246. .flux_header .item.title {
  247. overflow: hidden;
  248. white-space: nowrap;
  249. text-overflow: ellipsis;
  250. cursor: pointer;
  251. }
  252. .flux_header .item.title h1 {
  253. font-size: 12px;
  254. margin: 0;
  255. font-weight: normal;
  256. }
  257. .flux.not_read .flux_header .item.title h1 {
  258. font-weight: bold;
  259. }
  260. .flux_header .item.date {
  261. width: 200px;
  262. overflow: hidden;
  263. white-space: nowrap;
  264. text-overflow: ellipsis;
  265. text-align: right;
  266. font-size: 10px;
  267. color: #666;
  268. cursor: pointer;
  269. }
  270. .flux_header .item.link {
  271. width: 35px;
  272. text-align: center;
  273. }
  274. .flux_header .item.link a {
  275. display: inline-block;
  276. width: 35px;
  277. height: 40px;
  278. background: url("icons/link.svg") center center no-repeat;
  279. vertical-align: middle;
  280. }
  281. .flux_header .item.link a:hover {
  282. text-decoration: none;
  283. }
  284. .content {
  285. max-width: 550px;
  286. margin: 0 auto;
  287. padding: 10px;
  288. line-height: 170%;
  289. font-family: 'OpenSans';
  290. }
  291. .content h1, .content h2, .content h3 {
  292. margin: 20px 0 5px;
  293. }
  294. .content p {
  295. margin: 0 0 20px;
  296. }
  297. .content img.big {
  298. display: block;
  299. margin: 10px auto;
  300. }
  301. .content pre {
  302. width: 90%;
  303. margin: 10px auto;
  304. padding: 10px;
  305. overflow: auto;
  306. background: #666;
  307. border: 1px solid #000;
  308. color: #fafafa;
  309. border-radius: 5px;
  310. }
  311. .content q, .content blockquote {
  312. display: block;
  313. margin: 5px 0;
  314. padding: 5px 20px;
  315. font-style: italic;
  316. border-left: 4px solid #ccc;
  317. color: #666;
  318. }
  319. .content blockquote p {
  320. margin: 0;
  321. }
  322. /*** PAGINATION ***/
  323. .pagination {
  324. display: table;
  325. width: 100%;
  326. margin: 0;
  327. background: #fafafa;
  328. text-align: center;
  329. color: #333;
  330. font-size: 80%;
  331. line-height: 200%;
  332. table-layout: fixed;
  333. }
  334. .pagination .item {
  335. display: table-cell;
  336. padding: 5px 10px;
  337. border-top: 1px solid #aaa;
  338. }
  339. .pagination .item a {
  340. color: #333;
  341. font-style: italic;
  342. }
  343. .pagination .pager-previous, .pagination .pager-next {
  344. width: 200px;
  345. }
  346. .pagination .item.pager-current {
  347. font-weight: bold;
  348. }
  349. /*** NOTIFICATION ***/
  350. .notification {
  351. position: fixed;
  352. bottom: 0;
  353. left: 5%; right: 5%;
  354. min-height: 30px;
  355. padding: 10px;
  356. line-height: 30px;
  357. text-align: center;
  358. border-radius: 5px 5px 0 0;
  359. box-shadow: 0 0 5px #666;
  360. background: #ddd;
  361. color: #666;
  362. font-weight: bold;
  363. }
  364. .notification.good {
  365. background: #f4f899;
  366. }
  367. .notification.bad {
  368. background: #f4a899;
  369. }
  370. .notification a.close {
  371. display: inline-block;
  372. width: 16px;
  373. height: 16px;
  374. float: right;
  375. margin: -20px -20px 0 0;
  376. padding: 5px;
  377. background: #fff;
  378. border-radius: 50px;
  379. border: 1px solid #aaa;
  380. line-height: 16px;
  381. }
  382. .toggle_aside, .btn.toggle_aside {
  383. display: none;
  384. }
  385. @media(max-width: 840px) {
  386. .header,
  387. .aside .btn-important,
  388. .aside .feeds .dropdown,
  389. .flux_header .item.website span,
  390. .flux_header .item.date {
  391. display: none;
  392. }
  393. .flux_header .item.website {
  394. width: 30px;
  395. text-align: center;
  396. }
  397. .pagination .pager-previous, .pagination .pager-next {
  398. width: 100px;
  399. }
  400. .toggle_aside, .btn.toggle_aside {
  401. display: inline-block;
  402. }
  403. .aside {
  404. position: fixed;
  405. top: 0; left: 0;
  406. width: 0;
  407. overflow: hidden;
  408. z-index: 10;
  409. transition: width 200ms linear;
  410. }
  411. .aside:target {
  412. width: 80%;
  413. overflow: auto;
  414. }
  415. .aside .toggle_aside {
  416. position: absolute;
  417. right: 0;
  418. display: inline-block;
  419. width: 20px;
  420. height: 20px;
  421. margin: 0 10px 0 0;
  422. border: 1px solid #ccc;
  423. border-radius: 10px;
  424. text-align: center;
  425. line-height: 20px;
  426. }
  427. .aside .categories {
  428. margin: 30px 0;
  429. }
  430. }