swage.css 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714
  1. @charset "UTF-8";
  2. /* colors */
  3. :root {
  4. --color-base-text: #181621;
  5. --color-base-light: #f5f3f3;
  6. --color-base-nav: #0062be;
  7. --color-base-aside: #22303d;
  8. --color-base-alert: #fa8052;
  9. --color-base-good: #5eaabf;
  10. --color-base-bad: #b0425b;
  11. --color-base-grey: #e3e3e3;
  12. --color-base-grey-transparent: #d9d9d9bb;
  13. --color-base-stared: #fff6da;
  14. --color-base-unread: #fff3ed;
  15. --color-base-hover: #fff;
  16. --color-text-light: var(--color-base-light);
  17. --color-text-light-darker: color(from var(--color-base-light) hsl h s calc(l - 40%));
  18. --color-text-dark: var(--color-base-text);
  19. --color-text-nav: color(from var(--color-base-nav) hsl h s calc(l - 10%));
  20. --color-text-aside: var(--color-base-aside);
  21. --color-text-alert: var(--color-base-alert);
  22. --color-text-good: var(--color-base-good);
  23. --color-text-bad: var(--color-base-bad);
  24. --color-text-bad-lighter: color(from var(--color-base-bad) hsl h s calc(l + 10%));
  25. --color-text-shadow-light: var(--color-base-light);
  26. --color-box-shadow-light: color(from var(--color-base-light) hsl h s calc(l - 10%));
  27. --color-border-light: var(--color-base-light);
  28. --color-border-light-darker: color(from var(--color-base-light) hsl h s calc(l - 10%));
  29. --color-border-grey: var(--color-base-grey);
  30. --color-border-nav: color(from var(--color-base-nav) hsl h s calc(l - 10%));
  31. --color-border-bad: var(--color-base-bad);
  32. --color-background-light: var(--color-base-light);
  33. --color-background-light-darker: color(from var(--color-base-light) hsl h s calc(l - 10%));
  34. --color-background-light-darker-transparent: var(--color-base-grey-transparent);
  35. --color-background-dark: var(--color-base-text);
  36. --color-background-nav: var(--color-base-nav);
  37. --color-background-nav-darker: color(from var(--color-base-nav) hsl h s calc(l - 10%));
  38. --color-background-aside: var(--color-base-aside);
  39. --color-background-alert: var(--color-base-alert);
  40. --color-background-alert-darker: color(from var(--color-base-alert) hsl h s calc(l - 10%));
  41. --color-background-good: var(--color-base-good);
  42. --color-background-bad: color(from var(--color-base-bad) hsl h s calc(l + 10%));
  43. --color-background-stared: var(--color-base-stared);
  44. --color-background-unread: var(--color-base-unread);
  45. --color-background-hover: var(--color-base-hover);
  46. --frss-scrollbar-handle: rgba(0, 0, 0, 0.1);
  47. --frss-scrollbar-handle-hover: rgba(0, 0, 0, 0.4);
  48. --frss-scrollbar-track: rgba(0, 0, 0, 0.05);
  49. --frss-scrollbar-track-hover: rgba(0, 0, 0, 0.1);
  50. --min-height-input: 25px;
  51. --margin-top-input: 4px;
  52. --border-input-default: 2px solid var(--color-border-grey);
  53. --min-height-nav-list: 2.5em;
  54. --line-height-nav-list: 2.5;
  55. --padding-dropdown: 0 22px;
  56. --font-size-dropdown: 0.8rem;
  57. --line-height-dropdown: 2.5;
  58. --width-aside: 231px;
  59. }
  60. /* Compatibility: CSS Color Module Level 4, Relative Color */
  61. @supports not (color: color(from white hsl h s calc(l - 10%))) {
  62. :root {
  63. --color-text-light-darker: #988484;
  64. --color-text-nav: #00488b;
  65. --color-text-bad-lighter: #c46178;
  66. --color-box-shadow-light: #ded7d7;
  67. --color-border-light-darker: #ded7d7;
  68. --color-border-nav: #00488b;
  69. --color-background-light-darker: #ded7d7;
  70. --color-background-nav-darker: #00488b;
  71. --color-background-alert-darker: #f95c20;
  72. --color-background-bad: #c46178;
  73. }
  74. }
  75. html,
  76. body {
  77. color: var(--color-text-dark);
  78. font-family: Helvetica, Arial, sans-serif;
  79. }
  80. body:not(.normal):not(.reader) nav.configure a.dropdown-toggle,
  81. li.tree-folder span.title {
  82. margin-left: 0.25rem;
  83. }
  84. :root.file_query {
  85. .nav-pagination {
  86. margin-top: 6rem;
  87. }
  88. ul.pagination {
  89. a {
  90. padding: 0 0.2rem 0 0.2rem;
  91. }
  92. }
  93. .view-rss > .icon {
  94. filter: brightness(0);
  95. }
  96. main > h1:first-child {
  97. margin-top: 2rem;
  98. }
  99. }
  100. #slider-content #feed_update fieldset .form-group:last-child {
  101. margin-bottom: 0.4rem;
  102. }
  103. .configure.open-slider > .icon {
  104. filter: brightness(0.4);
  105. }
  106. a {
  107. color: var(--color-text-nav);
  108. &#btn-subscription {
  109. width: 76%;
  110. }
  111. &#btn-add {
  112. width: 5%;
  113. }
  114. }
  115. img {
  116. &.icon:hover {
  117. background: none;
  118. }
  119. }
  120. sup {
  121. top: -0.3em;
  122. }
  123. legend {
  124. margin: 20px 0 5px;
  125. padding: 5px 20px;
  126. background-color: var(--color-background-aside);
  127. display: inline-block;
  128. width: auto;
  129. color: var(--color-text-light);
  130. font-size: 1.4em;
  131. clear: both;
  132. }
  133. label {
  134. min-height: var(--min-height-input);
  135. }
  136. :is(textarea, input, select) {
  137. min-height: var(--min-height-input);
  138. margin-top: var(--margin-top-input);
  139. background-color: var(--color-background-light);
  140. border: var(--border-input-default);
  141. &:focus {
  142. border: 2px solid var(--color-background-dark);
  143. outline: none;
  144. }
  145. &:user-invalid {
  146. padding-left: 5px;
  147. color: var(--color-text-bad);
  148. border-left-color: var(--color-border-bad);
  149. border-left-width: 5px;
  150. box-shadow: none;
  151. }
  152. &:disabled {
  153. background-color: var(--color-background-light);
  154. }
  155. }
  156. option {
  157. padding: 0 .5em;
  158. }
  159. table {
  160. border-collapse: collapse;
  161. }
  162. td,
  163. th {
  164. border: 1px solid var(--color-border-light-darker);
  165. }
  166. th {
  167. background-color: var(--color-background-light);
  168. }
  169. form {
  170. td,
  171. th {
  172. font-weight: normal;
  173. text-align: center;
  174. }
  175. }
  176. .title.error::before {
  177. display: inline-block;
  178. padding-right: 7px;
  179. width: 16px;
  180. content: url(../Swage/icons/error.svg);
  181. }
  182. .form-group {
  183. padding: 5px;
  184. border: 1px solid transparent;
  185. &:hover {
  186. background-color: var(--color-background-light);
  187. border: 1px solid var(--color-border-light);
  188. }
  189. &.form-actions {
  190. margin: 15px 0 25px;
  191. padding: 5px 0;
  192. background-color: var(--color-background-light-darker-transparent);
  193. border-top: 3px solid var(--color-border-light-darker);
  194. .btn, a {
  195. margin-left: 1rem;
  196. }
  197. }
  198. .group-name {
  199. padding: 10px 0;
  200. text-align: right;
  201. }
  202. .group-controls {
  203. min-height: 25px;
  204. padding: 5px 0;
  205. .control {
  206. line-height: 2.0;
  207. }
  208. }
  209. }
  210. .form-group::after {
  211. display: block;
  212. clear: both;
  213. }
  214. .stick {
  215. select {
  216. margin-top: 0;
  217. }
  218. &.configure-feeds {
  219. margin: 0.5rem 0 1rem 0.3rem;
  220. width: var(--width-aside);
  221. }
  222. }
  223. .btn {
  224. margin: 0;
  225. padding: 0.25rem 0.5rem;
  226. background-color: var(--color-background-nav);
  227. color: var(--color-text-light);
  228. font-size: 0.9rem;
  229. border: none;
  230. min-height: 25px;
  231. min-width: 15px;
  232. vertical-align: middle;
  233. line-height: 1.5;
  234. text-decoration: none;
  235. &.active,
  236. &:active,
  237. &:hover {
  238. background-color: var(--color-background-nav-darker);
  239. text-decoration: none;
  240. }
  241. .icon {
  242. filter: brightness(3);
  243. }
  244. }
  245. .btn-important, .btn-attention {
  246. font-weight: normal;
  247. background-color: var(--color-background-alert);
  248. color: var(--color-text-light);
  249. &:hover,
  250. :active {
  251. background-color: var(--color-background-alert-darker) !important;
  252. }
  253. }
  254. .manage-list {
  255. .configure {
  256. .icon {
  257. filter: brightness(0.4);
  258. vertical-align: sub;
  259. }
  260. &:hover {
  261. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  262. }
  263. }
  264. }
  265. .switch.active {
  266. background-color: var(--color-background-nav);
  267. &:hover {
  268. background-image: url('./icons/disabled-light.svg');
  269. }
  270. }
  271. .nav-list {
  272. font-size: 0.9rem;
  273. .item {
  274. min-height: var(--min-height-nav-list);
  275. line-height: var(--line-height-nav-list);
  276. .nav-header {
  277. min-height: var(--min-height-nav-list);
  278. line-height: var(--line-height-nav-list);
  279. padding: 0 1rem;
  280. font-weight: bold;
  281. background-color: var(--color-background-aside);
  282. color: var(--color-text-light);
  283. cursor: default;
  284. }
  285. a:hover,
  286. .as-link:hover {
  287. background-color: var(--color-background-nav-darker);
  288. color: var(--color-text-light);
  289. }
  290. &.active {
  291. background: var(--color-background-nav-darker);
  292. color: var(--color-text-light);
  293. a,
  294. .as-link {
  295. color: var(--color-text-light);
  296. }
  297. }
  298. > a,
  299. .as-link {
  300. padding: 0 1.5rem;
  301. }
  302. .icon {
  303. filter: brightness(3);
  304. }
  305. }
  306. .nav-form {
  307. padding: 3px;
  308. text-align: center;
  309. }
  310. a:hover,
  311. .as-link:hover {
  312. text-decoration: none;
  313. }
  314. }
  315. .dropdown-menu {
  316. padding: 0.5rem 0 1rem 0;
  317. font-size: var(--font-size-dropdown);
  318. text-align: left;
  319. border: none;
  320. background-color: var(--color-background-nav-darker);
  321. .item > a,
  322. .item .as-link,
  323. .item > span {
  324. width: 96% !important;
  325. }
  326. .dropdown-header {
  327. cursor: default;
  328. padding: 0.5rem 10px 0.5rem 10px;
  329. font-weight: bold;
  330. color: var(--color-text-light);
  331. a,
  332. .as-link {
  333. padding: 0.1rem 0.3rem 0.3rem 0.3rem;
  334. position: absolute;
  335. right: 5px;
  336. margin-top: -3px;
  337. &:hover {
  338. background-color: var(--color-background-nav);
  339. }
  340. }
  341. }
  342. .dropdown-section {
  343. .dropdown-section-title {
  344. cursor: default;
  345. padding: 0.25rem 0.5rem 0.125rem 0.25rem;
  346. font-weight: bold;
  347. color: var(--color-text-light);
  348. }
  349. .item {
  350. a,
  351. .as-link {
  352. padding: var(--padding-dropdown);
  353. &:hover {
  354. background-color: var(--color-background-nav);
  355. }
  356. }
  357. }
  358. }
  359. & > .item {
  360. padding: 0 0 0 0.5rem;
  361. }
  362. .item {
  363. color: var(--color-text-light);
  364. font-size: var(--font-size-dropdown);
  365. line-height: var(--line-height-dropdown);
  366. > :is(a, .as-link, span), :is(button) {
  367. padding: var(--padding-dropdown);
  368. color: var(--color-text-light);
  369. font-size: var(--font-size-dropdown);
  370. line-height: var(--line-height-dropdown);
  371. }
  372. > a {
  373. min-width: initial;
  374. white-space: nowrap;
  375. }
  376. > :is(a):hover, :is(button):hover {
  377. background-color: var(--color-background-nav);
  378. color: var(--color-text-light);
  379. }
  380. }
  381. & > .item[aria-checked="true"] > a::before {
  382. font-weight: bold;
  383. margin: 0 0 0 -14px;
  384. }
  385. .help a {
  386. color: var(--color-text-light);
  387. text-decoration: underline;
  388. text-decoration-style: dotted;
  389. &:hover {
  390. text-decoration-style: solid;
  391. }
  392. }
  393. .input {
  394. select,
  395. input {
  396. margin: 0 auto 5px;
  397. padding: 2px 5px;
  398. }
  399. }
  400. }
  401. #dropdown-search-wrapper .dropdown-menu {
  402. padding-top: 1rem;
  403. padding-bottom: 0.25rem;
  404. a {
  405. padding: 0;
  406. }
  407. .stick.search {
  408. width: 100%;
  409. input[type="search"] {
  410. width: 100%;
  411. border: 0;
  412. }
  413. .btn:hover {
  414. filter: brightness(0.9);
  415. }
  416. }
  417. }
  418. .item ~ .dropdown-header,
  419. .item.separator {
  420. border-top-color: var(--color-border-light-darker);
  421. cursor: default;
  422. }
  423. li.item.separator {
  424. padding-top: 0.4rem;
  425. }
  426. .alert {
  427. margin: 0.25rem auto;
  428. background-color: var(--color-background-light);
  429. color: var(--color-text-light-darker);
  430. font-size: 0.9em;
  431. border: none;
  432. text-shadow: 0 0 1px var(--color-text-shadow-light);
  433. > a {
  434. color: inherit;
  435. text-decoration: underline;
  436. }
  437. }
  438. .alert-head {
  439. font-size: 1.15em;
  440. }
  441. .alert-info,
  442. .alert-warn,
  443. .alert-success,
  444. .alert-error {
  445. border: none;
  446. }
  447. .alert-warn {
  448. background-color: var(--color-background-light);
  449. color: var(--color-text-alert);
  450. }
  451. .alert-info {
  452. background-color: var(--color-background-light);
  453. color: var(--color-text);
  454. }
  455. .alert-success {
  456. background-color: var(--color-background-light);
  457. color: var(--color-text-good);
  458. }
  459. .alert-error {
  460. background-color: var(--color-background-light);
  461. color: var(--color-text-bad);
  462. }
  463. .pagination {
  464. background: var(--color-background-light-darker);
  465. color: var(--color_text);
  466. .item a {
  467. color: var(--color_text);
  468. }
  469. }
  470. .content {
  471. padding: 20px 10px;
  472. hr {
  473. margin: 30px 10px;
  474. background: var(--color-background-light-darker);
  475. height: 1px;
  476. border: 0;
  477. box-shadow: 0 2px 5px var(--color-box-shadow-light);
  478. }
  479. pre {
  480. background-color: var(--color-background-dark);
  481. color: var(--color-text-light);
  482. code {
  483. background: transparent;
  484. color: var(--color-text-light);
  485. border: none;
  486. }
  487. }
  488. code {
  489. background-color: var(--color-background-light);
  490. color: var(--color-text-bad);
  491. border-color: var(--color-border-light);
  492. }
  493. blockquote {
  494. margin: 0;
  495. padding: 5px 20px;
  496. background-color: var(--color-background-light);
  497. display: block;
  498. color: var(--color-text-light-darker);
  499. border-top: 1px solid var(--color-border-light-darker);
  500. border-bottom: 1px solid var(--color-border-light-darker);
  501. p {
  502. margin: 0;
  503. }
  504. }
  505. > h1.title > a {
  506. color: var(--color_text);
  507. }
  508. }
  509. main.post .drop-section li.item.feed a .icon {
  510. filter: brightness(0.4);
  511. }
  512. main.post .drop-section li.item.feed a:hover .icon {
  513. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  514. }
  515. .box {
  516. border: 1px solid var(--color-border-light-darker);
  517. .box-title {
  518. margin: 0;
  519. background-color: var(--color-background-aside);
  520. color: var(--color-text-light);
  521. border-bottom: 1px solid var(--color-border-light-darker);
  522. a {
  523. color: var(--color-text-light);
  524. }
  525. .configure {
  526. margin-right: 4px;
  527. .icon {
  528. &:hover {
  529. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  530. }
  531. }
  532. }
  533. }
  534. .box-content {
  535. max-height: 260px;
  536. .item {
  537. padding: 0 10px;
  538. font-size: 0.9rem;
  539. .configure {
  540. .icon {
  541. vertical-align: middle;
  542. filter: brightness(0.4);
  543. &:hover {
  544. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  545. }
  546. }
  547. }
  548. }
  549. }
  550. &.category {
  551. .box-title .title {
  552. font-weight: normal;
  553. text-decoration: none;
  554. text-align: left;
  555. }
  556. &:not([data-unread="0"]) .box-title {
  557. background-color: var(--color-background-nav);
  558. &:active {
  559. background: var(--color-background-nav-darker);
  560. }
  561. .title {
  562. font-weight: bold;
  563. color: var(--color-text-light);
  564. }
  565. }
  566. .title:not([data-unread="0"])::after {
  567. background: none;
  568. border: 0;
  569. box-shadow: none;
  570. position: absolute;
  571. top: 5px;
  572. right: 10px;
  573. font-weight: bold;
  574. text-shadow: none;
  575. }
  576. }
  577. &.visible-semi {
  578. border-style: solid;
  579. }
  580. }
  581. .tree {
  582. margin: 10px 0;
  583. }
  584. .aside_feed .tree-folder-title {
  585. padding: 0.3rem 0.75rem;
  586. background-color: var(--color-background-aside);
  587. font-size: 1rem;
  588. position: relative;
  589. .title {
  590. background: inherit;
  591. color: var(--color-text-light);
  592. &:hover {
  593. text-decoration: none;
  594. }
  595. }
  596. }
  597. .tree-folder-items {
  598. background-color: var(--color-background-aside);
  599. > .item {
  600. font-size: 0.8rem;
  601. &.active {
  602. background-color: var(--color-background-nav-darker);
  603. }
  604. > a {
  605. text-decoration: none;
  606. color: var(--color-text-light);
  607. }
  608. }
  609. }
  610. .item.search {
  611. display: none;
  612. }
  613. .header {
  614. height: auto;
  615. position: sticky;
  616. top: 0;
  617. z-index: 96; /* above .nav_menu (90) and .item.configure (95) */
  618. > .item {
  619. padding: 0;
  620. vertical-align: middle;
  621. &.title {
  622. position: absolute;
  623. text-align: center;
  624. a {
  625. padding: 0 1rem;
  626. &:hover {
  627. .logo {
  628. filter: grayscale(100%) brightness(100) opacity(90%);
  629. }
  630. }
  631. }
  632. .logo {
  633. display: inline-block;
  634. height: 26px;
  635. vertical-align: top;
  636. position: relative;
  637. top: 5px;
  638. filter: grayscale(100%) brightness(100);
  639. }
  640. }
  641. }
  642. .item.configure {
  643. position: absolute;
  644. top: 0;
  645. right: 0;
  646. z-index: 95;
  647. width: 35px;
  648. text-align: center;
  649. line-height: 0.8;
  650. > .icon {
  651. filter: brightness(3);
  652. margin-right: 5px;
  653. margin-top: 3px;
  654. }
  655. .dropdown .dropdown-menu {
  656. max-height: calc(100vh - 45px);
  657. overflow: auto;
  658. .icon {
  659. filter: brightness(3);
  660. }
  661. }
  662. }
  663. }
  664. .aside {
  665. background-color: var(--color-background-aside);
  666. padding-top: 2.5rem;
  667. &.aside_feed {
  668. .tree {
  669. margin: 0 0 50px;
  670. }
  671. .tree-folder {
  672. .tree-folder-title,
  673. .item.feed {
  674. &:hover {
  675. background-color: var(--color-background-nav-darker);
  676. }
  677. }
  678. }
  679. .nav-form {
  680. input,
  681. select {
  682. width: 140px;
  683. }
  684. .dropdown {
  685. .dropdown-menu {
  686. right: -20px;
  687. }
  688. .dropdown-menu::after {
  689. right: 33px;
  690. }
  691. }
  692. }
  693. }
  694. }
  695. #aside_feed > ul > li:first-child {
  696. margin-top: 0.4rem;
  697. }
  698. .aside_feed {
  699. .category .title:not([data-unread="0"])::after {
  700. margin: 0.5rem 0 0 0;
  701. background-color: var(--color-background-nav-darker);
  702. color: var(--color-text-light);
  703. }
  704. .feed .item-title:not([data-unread="0"])::after {
  705. background-color: var(--color-background-nav);
  706. color: var(--color-text-light);
  707. }
  708. .tree-folder-items .dropdown-menu::after {
  709. left: 2px;
  710. }
  711. .about {
  712. margin: 0.2rem 0 1rem 0;
  713. display: block;
  714. font-size: 0.8em;
  715. text-align: center;
  716. font-style: italic;
  717. }
  718. }
  719. .toggle_aside {
  720. margin-bottom: 1rem;
  721. }
  722. .aside.visible .toggle_aside {
  723. border-bottom: 1px solid var(--frss-border-color);
  724. }
  725. .reader {
  726. .aside {
  727. .toggle_aside {
  728. background-color: var(--color-background-aside);
  729. .icon {
  730. filter: brightness(3);
  731. }
  732. &:hover {
  733. background-color: var(--color-background-nav);
  734. }
  735. }
  736. }
  737. }
  738. .post {
  739. font-size: 0.9em;
  740. input {
  741. &.long {
  742. height: 33px;
  743. margin-top: 0px;
  744. }
  745. }
  746. }
  747. #global {
  748. height: 100vh;
  749. }
  750. #new-article {
  751. width: var(--width-aside);
  752. font-size: 1em;
  753. background-color: var(--color-background-nav);
  754. text-align: center;
  755. position: fixed;
  756. bottom: 48px;
  757. z-index: 900;
  758. left: 0;
  759. line-height: 1.5;
  760. > a {
  761. padding: 1rem;
  762. line-height: 1.5;
  763. font-weight: bold;
  764. color: var(--color-text-light);
  765. &:hover {
  766. text-decoration: none;
  767. background-color: var(--color-background-nav-darker);
  768. }
  769. }
  770. }
  771. .transition {
  772. padding: 0 10px;
  773. font-weight: bold;
  774. line-height: 3;
  775. text-align: center;
  776. .name {
  777. display: none;
  778. }
  779. }
  780. .nav {
  781. a,
  782. .as-link {
  783. color: var(--color-text-light);
  784. }
  785. }
  786. .nav_menu {
  787. padding: 0 0 0 2rem;
  788. width: 100%;
  789. box-sizing: border-box;
  790. font-size: 0;
  791. background-color: var(--color-background-nav);
  792. text-align: left;
  793. position: sticky;
  794. top: 0;
  795. z-index: 90;
  796. .item.search {
  797. display: inline-block;
  798. position: absolute;
  799. right: 40px;
  800. input {
  801. border-width: 0;
  802. line-height: 1.95;
  803. }
  804. }
  805. #nav_menu_toggle_aside {
  806. left: 0;
  807. }
  808. #toggle-unread,
  809. #toggle-starred {
  810. .icon {
  811. filter: brightness(1);
  812. }
  813. }
  814. .btn {
  815. box-sizing: content-box;
  816. }
  817. }
  818. .flux {
  819. padding-right: 10px;
  820. background-color: var(--color-background-light);
  821. &::after {
  822. margin: 0 auto;
  823. display: block;
  824. width: 90%;
  825. border-top: 1px solid var(--color-border-light-darker);
  826. clear: both;
  827. }
  828. .flux_header:hover {
  829. background-color: var(--color-background-hover);
  830. &:not(.current):hover .item .title {
  831. background-color: var(--color-background-hover);
  832. }
  833. }
  834. &.current {
  835. border-left: 2px solid var(--color-background-alert-darker);
  836. .flux_header {
  837. background-color: unset;
  838. margin-left: -2px; /* Compensate increased border-left-width */
  839. }
  840. .flux_header:hover {
  841. background: linear-gradient(to right, transparent 0, transparent 2px, var(--color-background-hover) 2px);
  842. }
  843. }
  844. &.favorite:not(.current) {
  845. background-color: var(--color-background-stared);
  846. &:hover .item .title {
  847. background-color: var(--color-background-stared);
  848. }
  849. }
  850. &.not_read:not(.current) {
  851. background-color: var(--color-background-unread);
  852. &:hover .item .title {
  853. background-color: var(--color-background-unread);
  854. }
  855. }
  856. .flux_header .date,
  857. .flux_content .bottom .date {
  858. color: var(--color-text-light-darker);
  859. }
  860. .bottom {
  861. font-size: 0.8rem;
  862. text-align: center;
  863. }
  864. label {
  865. color: var(--color-text-light);
  866. cursor: pointer;
  867. }
  868. }
  869. .flux_header {
  870. font-size: 0.8rem;
  871. cursor: pointer;
  872. .title {
  873. font-size: 0.9rem;
  874. }
  875. }
  876. .notification {
  877. padding: 10px 0;
  878. width: var(--width-aside);
  879. height: auto;
  880. color: var(--color-text-light-darker);
  881. font-size: 1em;
  882. border: none;
  883. background-color: var(--color-background-light-darker);
  884. text-align: center;
  885. font-weight: bold;
  886. vertical-align: middle;
  887. position: fixed;
  888. bottom: 48px;
  889. left: 0;
  890. top: auto;
  891. &.good,
  892. &.bad {
  893. color: var(--color-text-light);
  894. }
  895. &.good {
  896. background-color: var(--color-background-good);
  897. a.close:hover {
  898. background-color: var(--color-background-good);
  899. }
  900. }
  901. &.bad {
  902. background-color: var(--color-background-bad);
  903. a.close:hover {
  904. background-color: var(--color-background-bad);
  905. }
  906. }
  907. a.close {
  908. display: none;
  909. }
  910. }
  911. #bigMarkAsRead.big {
  912. text-align: center;
  913. text-decoration: none;
  914. background: var(--color-background-light-darker);
  915. &:hover {
  916. background-color: var(--color-background-aside);
  917. color: var(--color-text-light);
  918. }
  919. }
  920. #nav_entries {
  921. background-color: var(--color-background-aside);
  922. }
  923. .stat {
  924. margin: 10px 0 20px;
  925. th,
  926. td,
  927. tr {
  928. border: none;
  929. }
  930. > table {
  931. td,
  932. th {
  933. border-bottom: 1px solid var(--color-border-light-darker);
  934. }
  935. }
  936. }
  937. #overlay {
  938. z-index: 100;
  939. .close .icon {
  940. filter: brightness(3);
  941. }
  942. }
  943. #panel {
  944. z-index: 100;
  945. .nav_menu {
  946. position: relative;
  947. }
  948. }
  949. body:not(:has(nav#aside_feed)) {
  950. #global {
  951. height: 0;
  952. }
  953. .logo {
  954. right: 30px;
  955. }
  956. .header {
  957. background-color: var(--color-background-nav);
  958. height: 2.4rem;
  959. position: relative;
  960. > .item {
  961. &.configure {
  962. width: auto;
  963. position: absolute;
  964. white-space: nowrap;
  965. .icon {
  966. filter: brightness(3);
  967. }
  968. }
  969. }
  970. }
  971. }
  972. .controller_error div.alert-error {
  973. margin-top: 3rem;
  974. }
  975. body.register {
  976. form div:last-child > a {
  977. float: right;
  978. position: relative;
  979. right: 0.2rem;
  980. }
  981. }
  982. a.signin {
  983. color: var(--color-text-light);
  984. font-size: 70%;
  985. position: absolute;
  986. top: 0.5rem;
  987. right: 1.8rem;
  988. text-wrap: nowrap;
  989. transform: scale(1.5);
  990. .icon {
  991. filter: brightness(3);
  992. }
  993. }
  994. .log-item {
  995. &.log-error {
  996. background-color: var(--color-background-bad);
  997. color: var(--color-text-light);
  998. }
  999. &.log-warning {
  1000. background-color: var(--color-background-alert);
  1001. color: var(--color-text-light);
  1002. }
  1003. &.log-debug {
  1004. background: var(--color-background-dark);
  1005. color: var(--color-text-light);
  1006. }
  1007. }
  1008. body.reader {
  1009. #nav_menu_toggle_aside {
  1010. margin-top: -2px;
  1011. height: 32px;
  1012. }
  1013. nav.aside_feed > a.toggle_aside {
  1014. text-align: center;
  1015. }
  1016. .aside.visible {
  1017. padding-top: 0;
  1018. }
  1019. }
  1020. main.global {
  1021. margin: 1rem;
  1022. }
  1023. .dropdown .dropdown-section:last-child > ul:first-child {
  1024. margin-top: 0.4rem;
  1025. }
  1026. .labels {
  1027. span.emptyLabels {
  1028. color: white;
  1029. margin-left: 1rem;
  1030. }
  1031. ul.dropdown-menu-scrollable > li:nth-child(3) {
  1032. margin-top: 0.5rem;
  1033. }
  1034. }
  1035. @media (max-width: 840px) {
  1036. body:not(.formLogin, .register) {
  1037. .header {
  1038. .item.title {
  1039. display: none;
  1040. }
  1041. }
  1042. }
  1043. body.normal, body.reader, body.global {
  1044. .item.configure {
  1045. right: 76px;
  1046. }
  1047. a.signin {
  1048. right: 0;
  1049. }
  1050. }
  1051. .horizontal-list {
  1052. .dropdown {
  1053. position: inherit !important;
  1054. }
  1055. }
  1056. #nav_menu_sort,
  1057. #nav_menu_sort .dropdown,
  1058. #toggle-order {
  1059. position: fixed;
  1060. right: 0;
  1061. }
  1062. #nav_menu_sort .dropdown-menu {
  1063. position: absolute;
  1064. right: 0;
  1065. }
  1066. #nav_menu_sort .dropdown-menu,
  1067. .nav_menu_read_all .dropdown-menu,
  1068. #dropdown-search-wrapper .dropdown-menu,
  1069. #nav_menu_queries .dropdown-menu {
  1070. top: 4.4rem;
  1071. }
  1072. #nav_menu_sort .dropdown-menu,
  1073. .nav_menu_read_all .dropdown-menu,
  1074. #nav_menu_actions .dropdown-menu {
  1075. position: fixed;
  1076. }
  1077. body:not(.normal):not(.reader):not(.add) {
  1078. nav.configure a.dropdown-toggle {
  1079. position: fixed;
  1080. top: 0;
  1081. }
  1082. &:not(.global) {
  1083. .nav_menu {
  1084. height: 2.2rem;
  1085. }
  1086. nav.configure a.dropdown-toggle {
  1087. right: 0;
  1088. }
  1089. }
  1090. &.global {
  1091. nav.configure a.dropdown-toggle {
  1092. right: 2.4rem;
  1093. }
  1094. }
  1095. }
  1096. body.repartition {
  1097. .nav_menu {
  1098. position: fixed;
  1099. height: 3rem !important;
  1100. }
  1101. main.post {
  1102. margin-top: 4rem;
  1103. }
  1104. .nav_menu .btn {
  1105. display: block;
  1106. }
  1107. .nav_menu #feed_select {
  1108. padding: 0;
  1109. display: block;
  1110. margin-left: 5rem;
  1111. margin-bottom: 0.5rem;
  1112. }
  1113. }
  1114. .form-group .group-name {
  1115. padding-bottom: 0;
  1116. text-align: left;
  1117. }
  1118. .dropdown {
  1119. position: relative;
  1120. .dropdown-menu {
  1121. width: auto;
  1122. }
  1123. }
  1124. #new-article {
  1125. margin-top: 2rem;
  1126. width: 100%;
  1127. }
  1128. .header {
  1129. display: table;
  1130. .item {
  1131. padding: 0;
  1132. }
  1133. .item.configure {
  1134. padding: 0;
  1135. > .icon {
  1136. margin-top: 5px;
  1137. }
  1138. }
  1139. }
  1140. button.read_all.btn {
  1141. display: none;
  1142. }
  1143. .flux .item.manage,
  1144. .flux_header .item.website {
  1145. width: 35px;
  1146. text-align: center;
  1147. }
  1148. .aside {
  1149. padding: 0;
  1150. width: 0;
  1151. .toggle_aside {
  1152. background-color: var(--color-background-aside);
  1153. &:hover {
  1154. background-color: var(--color-background-nav);
  1155. }
  1156. .icon {
  1157. filter: brightness(3);
  1158. }
  1159. }
  1160. &.aside_feed .configure-feeds {
  1161. display: flex;
  1162. margin-top: 0;
  1163. margin-left: auto;
  1164. margin-right: auto;
  1165. }
  1166. &:target {
  1167. width: 78% !important;
  1168. z-index: 1000;
  1169. }
  1170. }
  1171. #slider {
  1172. .toggle_aside {
  1173. background-color: var(--color-background-aside);
  1174. &:hover {
  1175. background-color: var(--color-background-nav);
  1176. }
  1177. .icon {
  1178. filter: brightness(3);
  1179. }
  1180. }
  1181. }
  1182. .nav_menu {
  1183. height: 71px;
  1184. .btn {
  1185. margin: 0;
  1186. }
  1187. .stick,
  1188. .group {
  1189. margin: 0;
  1190. .btn {
  1191. margin: 0;
  1192. }
  1193. }
  1194. .item.search {
  1195. top: 3px;
  1196. margin-left: 77px;
  1197. width: calc(100% - 4 * 38px);
  1198. position: relative;
  1199. form {
  1200. display: block;
  1201. }
  1202. input {
  1203. width: 100%;
  1204. }
  1205. }
  1206. #nav_menu_toggle_aside {
  1207. position: absolute;
  1208. }
  1209. }
  1210. #overlay .close,
  1211. .dropdown-menu .toggle_aside {
  1212. background-color: var(--color-background-aside);
  1213. display: block;
  1214. height: 50px;
  1215. line-height: 3.5;
  1216. text-align: center;
  1217. padding-right: 10px;
  1218. &:hover {
  1219. background-color: var(--color-background-nav);
  1220. }
  1221. }
  1222. .dropdown-target:target ~ .dropdown-toggle::after,
  1223. .dropdown-target:target ~ .dropdown-toggle.btn::after {
  1224. display: none;
  1225. }
  1226. .share .dropdown-menu {
  1227. right: 3%;
  1228. left: auto;
  1229. }
  1230. .transition .name {
  1231. font-size: 1.1rem;
  1232. }
  1233. .notification {
  1234. width: 100%;
  1235. a.close {
  1236. background: transparent;
  1237. display: block;
  1238. left: 0;
  1239. &:hover {
  1240. opacity: 0.5;
  1241. }
  1242. .icon {
  1243. display: none;
  1244. }
  1245. }
  1246. }
  1247. #nav_entries {
  1248. width: 100% !important;
  1249. }
  1250. .post {
  1251. padding-left: 15px;
  1252. padding-right: 15px;
  1253. }
  1254. div#stream {
  1255. margin-top: 0px;
  1256. }
  1257. a.btn.toggle_aside {
  1258. position: absolute;
  1259. top: 0;
  1260. }
  1261. form.mark-read-menu,
  1262. a#actualize,
  1263. div#nav_menu_actions,
  1264. div#nav_menu_views {
  1265. position: absolute;
  1266. }
  1267. form.mark-read-menu {
  1268. right: 38px;
  1269. top: 0;
  1270. }
  1271. a#actualize {
  1272. right: 0;
  1273. top: 0;
  1274. }
  1275. a#toggle-order,
  1276. div#nav_menu_actions,
  1277. div#nav_menu_views {
  1278. top: 36px;
  1279. }
  1280. div#nav_menu_actions {
  1281. left: 0px;
  1282. }
  1283. div#nav_menu_views {
  1284. right: 32px;
  1285. }
  1286. body:is(.normal, .reader, .global) {
  1287. .nav_menu {
  1288. display: flex;
  1289. height: auto;
  1290. flex-wrap: wrap;
  1291. align-items: center;
  1292. row-gap: 2px;
  1293. padding-right: 3rem; /* room for absolute-positioned cog */
  1294. }
  1295. .nav_menu .item.search {
  1296. position: static;
  1297. top: auto;
  1298. width: auto;
  1299. flex: 1 1 140px;
  1300. min-width: 100px;
  1301. margin-left: 0;
  1302. }
  1303. .nav_menu form.mark-read-menu,
  1304. .nav_menu a#actualize,
  1305. .nav_menu div#nav_menu_actions,
  1306. .nav_menu div#nav_menu_views,
  1307. .nav_menu a#toggle-order,
  1308. .nav_menu #nav_menu_sort,
  1309. .nav_menu #nav_menu_sort .dropdown {
  1310. position: static;
  1311. top: auto;
  1312. right: auto;
  1313. left: auto;
  1314. }
  1315. .item.configure {
  1316. right: 0;
  1317. }
  1318. }
  1319. }
  1320. @media (max-width: 410px) {
  1321. .nav_menu .stick {
  1322. margin: 0;
  1323. }
  1324. }
  1325. .dropdown-target:target ~ .btn.dropdown-toggle {
  1326. background-color: var(--color-background-nav-darker);
  1327. }
  1328. .tree-folder.active .tree-folder-title {
  1329. background-color: var(--color-background-nav-darker);
  1330. font-weight: bold;
  1331. }
  1332. .feed.item {
  1333. &.empty {
  1334. color: var(--color-text-alert);
  1335. &.active {
  1336. background-color: var(--color-background-alert);
  1337. color: var(--color-text-light);
  1338. > a {
  1339. color: var(--color-text-light);
  1340. }
  1341. }
  1342. > a {
  1343. color: var(--color-text-alert);
  1344. }
  1345. }
  1346. &.error {
  1347. color: var(--color-text-bad-lighter);
  1348. &.active {
  1349. background-color: var(--color-background-bad);
  1350. color: var(--color-text-light);
  1351. > a {
  1352. color: var(--color-text-light);
  1353. }
  1354. }
  1355. > a {
  1356. color: var(--color-text-bad-lighter);
  1357. }
  1358. }
  1359. }
  1360. #stream.reader .flux {
  1361. background-color: var(--color-background-light);
  1362. color: var(--color-text-aside);
  1363. border: none;
  1364. &::after {
  1365. border: none;
  1366. }
  1367. .flux_content {
  1368. border-color: var(--color-border-grey);
  1369. }
  1370. .author {
  1371. color: var(--color-text-light-darker);
  1372. }
  1373. }
  1374. #nav_menu_actions {
  1375. ul.dropdown-menu {
  1376. left: 0;
  1377. right: auto;
  1378. &::after {
  1379. display: none;
  1380. }
  1381. }
  1382. .dropdown.only-mobile {
  1383. display: initial !important;
  1384. }
  1385. }
  1386. .nav_menu_read_all {
  1387. ul.dropdown-menu {
  1388. &::after {
  1389. display: none;
  1390. }
  1391. }
  1392. }
  1393. #slider {
  1394. label {
  1395. min-height: initial;
  1396. }
  1397. }
  1398. body:has(.aside:not(.visible)) .header .item.title,
  1399. body.reader .header .item.title {
  1400. display: none;
  1401. }