swage.css 27 KB

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