freshrss.css 8.0 KB

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