swage.css 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713
  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. &: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-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-success {
  452. background-color: var(--color-background-light);
  453. color: var(--color-text-good);
  454. }
  455. .alert-error {
  456. background-color: var(--color-background-light);
  457. color: var(--color-text-bad);
  458. }
  459. .pagination {
  460. background: var(--color-background-light-darker);
  461. color: var(--color_text);
  462. .item a {
  463. color: var(--color_text);
  464. }
  465. }
  466. .content {
  467. padding: 20px 10px;
  468. hr {
  469. margin: 30px 10px;
  470. background: var(--color-background-light-darker);
  471. height: 1px;
  472. border: 0;
  473. box-shadow: 0 2px 5px var(--color-box-shadow-light);
  474. }
  475. pre {
  476. background-color: var(--color-background-dark);
  477. color: var(--color-text-light);
  478. code {
  479. background: transparent;
  480. color: var(--color-text-light);
  481. border: none;
  482. }
  483. }
  484. code {
  485. background-color: var(--color-background-light);
  486. color: var(--color-text-bad);
  487. border-color: var(--color-border-light);
  488. }
  489. blockquote {
  490. margin: 0;
  491. padding: 5px 20px;
  492. background-color: var(--color-background-light);
  493. display: block;
  494. color: var(--color-text-light-darker);
  495. border-top: 1px solid var(--color-border-light-darker);
  496. border-bottom: 1px solid var(--color-border-light-darker);
  497. p {
  498. margin: 0;
  499. }
  500. }
  501. > h1.title > a {
  502. color: var(--color_text);
  503. }
  504. }
  505. main.post .drop-section li.item.feed a .icon {
  506. filter: brightness(0.4);
  507. }
  508. main.post .drop-section li.item.feed a:hover .icon {
  509. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  510. }
  511. .box {
  512. border: 1px solid var(--color-border-light-darker);
  513. .box-title {
  514. margin: 0;
  515. background-color: var(--color-background-aside);
  516. color: var(--color-text-light);
  517. border-bottom: 1px solid var(--color-border-light-darker);
  518. a {
  519. color: var(--color-text-light);
  520. }
  521. .configure {
  522. margin-right: 4px;
  523. .icon {
  524. &:hover {
  525. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  526. }
  527. }
  528. }
  529. }
  530. .box-content {
  531. max-height: 260px;
  532. .item {
  533. padding: 0 10px;
  534. font-size: 0.9rem;
  535. .configure {
  536. .icon {
  537. vertical-align: middle;
  538. filter: brightness(0.4);
  539. &:hover {
  540. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  541. }
  542. }
  543. }
  544. }
  545. }
  546. &.category {
  547. .box-title .title {
  548. font-weight: normal;
  549. text-decoration: none;
  550. text-align: left;
  551. }
  552. &:not([data-unread="0"]) .box-title {
  553. background-color: var(--color-background-nav);
  554. &:active {
  555. background: var(--color-background-nav-darker);
  556. }
  557. .title {
  558. font-weight: bold;
  559. color: var(--color-text-light);
  560. }
  561. }
  562. .title:not([data-unread="0"])::after {
  563. background: none;
  564. border: 0;
  565. box-shadow: none;
  566. position: absolute;
  567. top: 5px;
  568. right: 10px;
  569. font-weight: bold;
  570. text-shadow: none;
  571. }
  572. }
  573. &.visible-semi {
  574. border-style: solid;
  575. }
  576. }
  577. .tree {
  578. margin: 10px 0;
  579. }
  580. .aside_feed .tree-folder-title {
  581. padding: 0.3rem 0.75rem;
  582. background-color: var(--color-background-aside);
  583. font-size: 1rem;
  584. position: relative;
  585. .title {
  586. background: inherit;
  587. color: var(--color-text-light);
  588. &:hover {
  589. text-decoration: none;
  590. }
  591. }
  592. }
  593. .tree-folder-items {
  594. background-color: var(--color-background-aside);
  595. > .item {
  596. font-size: 0.8rem;
  597. &.active {
  598. background-color: var(--color-background-nav-darker);
  599. }
  600. > a {
  601. text-decoration: none;
  602. color: var(--color-text-light);
  603. }
  604. }
  605. }
  606. .item.search {
  607. display: none;
  608. }
  609. .header {
  610. height: auto;
  611. position: sticky;
  612. top: 0;
  613. z-index: 96; /* above .nav_menu (90) and .item.configure (95) */
  614. > .item {
  615. padding: 0;
  616. vertical-align: middle;
  617. &.title {
  618. position: absolute;
  619. text-align: center;
  620. a {
  621. padding: 0 1rem;
  622. &:hover {
  623. .logo {
  624. filter: grayscale(100%) brightness(100) opacity(90%);
  625. }
  626. }
  627. }
  628. .logo {
  629. display: inline-block;
  630. height: 26px;
  631. vertical-align: top;
  632. position: relative;
  633. top: 5px;
  634. filter: grayscale(100%) brightness(100);
  635. }
  636. }
  637. }
  638. .item.configure {
  639. position: absolute;
  640. top: 0;
  641. right: 0;
  642. z-index: 95;
  643. width: 35px;
  644. text-align: center;
  645. line-height: 0.8;
  646. > .icon {
  647. filter: brightness(3);
  648. margin-right: 5px;
  649. margin-top: 3px;
  650. }
  651. .dropdown .dropdown-menu {
  652. max-height: calc(100vh - 45px);
  653. overflow: auto;
  654. .icon {
  655. filter: brightness(3);
  656. }
  657. }
  658. }
  659. }
  660. .aside {
  661. background-color: var(--color-background-aside);
  662. padding-top: 2.5rem;
  663. &.aside_feed {
  664. .tree {
  665. margin: 0 0 50px;
  666. }
  667. .tree-folder {
  668. .tree-folder-title,
  669. .item.feed {
  670. &:hover {
  671. background-color: var(--color-background-nav-darker);
  672. }
  673. }
  674. }
  675. .nav-form {
  676. input,
  677. select {
  678. width: 140px;
  679. }
  680. .dropdown {
  681. .dropdown-menu {
  682. right: -20px;
  683. }
  684. .dropdown-menu::after {
  685. right: 33px;
  686. }
  687. }
  688. }
  689. }
  690. }
  691. #aside_feed > ul > li:first-child {
  692. margin-top: 0.4rem;
  693. }
  694. .aside_feed {
  695. .category .title:not([data-unread="0"])::after {
  696. margin: 0.5rem 0 0 0;
  697. background-color: var(--color-background-nav-darker);
  698. color: var(--color-text-light);
  699. }
  700. .feed .item-title:not([data-unread="0"])::after {
  701. background-color: var(--color-background-nav);
  702. color: var(--color-text-light);
  703. }
  704. .tree-folder-items .dropdown-menu::after {
  705. left: 2px;
  706. }
  707. .about {
  708. margin: 0.2rem 0 1rem 0;
  709. display: block;
  710. font-size: 0.8em;
  711. text-align: center;
  712. font-style: italic;
  713. }
  714. }
  715. .toggle_aside {
  716. margin-bottom: 1rem;
  717. }
  718. .aside.visible .toggle_aside {
  719. border-bottom: 1px solid var(--frss-border-color);
  720. }
  721. .reader {
  722. .aside {
  723. .toggle_aside {
  724. background-color: var(--color-background-aside);
  725. .icon {
  726. filter: brightness(3);
  727. }
  728. &:hover {
  729. background-color: var(--color-background-nav);
  730. }
  731. }
  732. }
  733. }
  734. .post {
  735. font-size: 0.9em;
  736. input {
  737. &.long {
  738. height: 33px;
  739. margin-top: 0px;
  740. }
  741. }
  742. }
  743. #global {
  744. height: 100vh;
  745. }
  746. #new-article {
  747. width: var(--width-aside);
  748. font-size: 1em;
  749. background-color: var(--color-background-nav);
  750. text-align: center;
  751. position: fixed;
  752. bottom: 48px;
  753. z-index: 900;
  754. left: 0;
  755. line-height: 1.5;
  756. > a {
  757. padding: 1rem;
  758. line-height: 1.5;
  759. font-weight: bold;
  760. color: var(--color-text-light);
  761. &:hover {
  762. text-decoration: none;
  763. background-color: var(--color-background-nav-darker);
  764. }
  765. }
  766. }
  767. .transition {
  768. padding: 0 10px;
  769. font-weight: bold;
  770. line-height: 3;
  771. text-align: center;
  772. .name {
  773. display: none;
  774. }
  775. }
  776. .nav {
  777. a,
  778. .as-link {
  779. color: var(--color-text-light);
  780. }
  781. }
  782. .nav_menu {
  783. padding: 0 0 0 2rem;
  784. width: 100%;
  785. box-sizing: border-box;
  786. font-size: 0;
  787. background-color: var(--color-background-nav);
  788. text-align: left;
  789. position: sticky;
  790. top: 0;
  791. z-index: 90;
  792. .item.search {
  793. display: inline-block;
  794. position: absolute;
  795. right: 40px;
  796. input {
  797. border-width: 0;
  798. line-height: 1.95;
  799. }
  800. }
  801. #nav_menu_toggle_aside {
  802. left: 0;
  803. }
  804. #toggle-unread,
  805. #toggle-starred {
  806. .icon {
  807. filter: brightness(1);
  808. }
  809. }
  810. .btn {
  811. box-sizing: content-box;
  812. }
  813. }
  814. .flux {
  815. padding-right: 10px;
  816. background-color: var(--color-background-light);
  817. &::after {
  818. margin: 0 auto;
  819. display: block;
  820. width: 90%;
  821. border-top: 1px solid var(--color-border-light-darker);
  822. clear: both;
  823. }
  824. .flux_header:hover {
  825. background-color: var(--color-background-hover);
  826. &:not(.current):hover .item .title {
  827. background-color: var(--color-background-hover);
  828. }
  829. }
  830. &.current {
  831. border-left: 2px solid var(--color-background-alert-darker);
  832. .flux_header {
  833. background-color: unset;
  834. margin-left: -2px; /* Compensate increased border-left-width */
  835. }
  836. .flux_header:hover {
  837. background: linear-gradient(to right, transparent 0, transparent 2px, var(--color-background-hover) 2px);
  838. }
  839. }
  840. &.favorite:not(.current) {
  841. background-color: var(--color-background-stared);
  842. &:hover .item .title {
  843. background-color: var(--color-background-stared);
  844. }
  845. }
  846. &.not_read:not(.current) {
  847. background-color: var(--color-background-unread);
  848. &:hover .item .title {
  849. background-color: var(--color-background-unread);
  850. }
  851. }
  852. .flux_header .date,
  853. .flux_content .bottom .date {
  854. color: var(--color-text-light-darker);
  855. }
  856. .bottom {
  857. font-size: 0.8rem;
  858. text-align: center;
  859. }
  860. label {
  861. color: var(--color-text-light);
  862. cursor: pointer;
  863. }
  864. }
  865. .flux_header {
  866. font-size: 0.8rem;
  867. cursor: pointer;
  868. .title {
  869. font-size: 0.9rem;
  870. }
  871. }
  872. .notification {
  873. padding: 10px 0;
  874. width: var(--width-aside);
  875. height: auto;
  876. color: var(--color-text-light-darker);
  877. font-size: 1em;
  878. border: none;
  879. background-color: var(--color-background-light-darker);
  880. text-align: center;
  881. font-weight: bold;
  882. vertical-align: middle;
  883. position: fixed;
  884. bottom: 48px;
  885. left: 0;
  886. top: auto;
  887. &.good,
  888. &.bad {
  889. color: var(--color-text-light);
  890. }
  891. &.good {
  892. background-color: var(--color-background-good);
  893. a.close:hover {
  894. background-color: var(--color-background-good);
  895. }
  896. }
  897. &.bad {
  898. background-color: var(--color-background-bad);
  899. a.close:hover {
  900. background-color: var(--color-background-bad);
  901. }
  902. }
  903. a.close {
  904. display: none;
  905. }
  906. }
  907. #bigMarkAsRead.big {
  908. text-align: center;
  909. text-decoration: none;
  910. background: var(--color-background-light-darker);
  911. &:hover {
  912. background-color: var(--color-background-aside);
  913. color: var(--color-text-light);
  914. }
  915. }
  916. #nav_entries {
  917. background-color: var(--color-background-aside);
  918. }
  919. .stat {
  920. margin: 10px 0 20px;
  921. th,
  922. td,
  923. tr {
  924. border: none;
  925. }
  926. > table {
  927. td,
  928. th {
  929. border-bottom: 1px solid var(--color-border-light-darker);
  930. }
  931. }
  932. }
  933. #overlay {
  934. z-index: 100;
  935. .close .icon {
  936. filter: brightness(3);
  937. }
  938. }
  939. #panel {
  940. z-index: 100;
  941. .nav_menu {
  942. position: relative;
  943. }
  944. }
  945. body:not(:has(nav#aside_feed)) {
  946. #global {
  947. height: 0;
  948. }
  949. .logo {
  950. right: 30px;
  951. }
  952. .header {
  953. background-color: var(--color-background-nav);
  954. height: 2.4rem;
  955. position: relative;
  956. > .item {
  957. &.configure {
  958. width: auto;
  959. position: absolute;
  960. white-space: nowrap;
  961. .icon {
  962. filter: brightness(3);
  963. }
  964. }
  965. }
  966. }
  967. }
  968. .controller_error div.alert-error {
  969. margin-top: 3rem;
  970. }
  971. body.register {
  972. form div:last-child > a {
  973. float: right;
  974. position: relative;
  975. right: 0.2rem;
  976. }
  977. }
  978. a.signin {
  979. color: var(--color-text-light);
  980. font-size: 70%;
  981. position: absolute;
  982. top: 0.5rem;
  983. right: 1.8rem;
  984. text-wrap: nowrap;
  985. transform: scale(1.5);
  986. .icon {
  987. filter: brightness(3);
  988. }
  989. }
  990. .log-item {
  991. &.log-error {
  992. background-color: var(--color-background-bad);
  993. color: var(--color-text-light);
  994. }
  995. &.log-warning {
  996. background-color: var(--color-background-alert);
  997. color: var(--color-text-light);
  998. }
  999. &.log-debug {
  1000. background: var(--color-background-dark);
  1001. color: var(--color-text-light);
  1002. }
  1003. }
  1004. body.reader {
  1005. #nav_menu_toggle_aside {
  1006. margin-top: -2px;
  1007. height: 32px;
  1008. }
  1009. nav.aside_feed > a.toggle_aside {
  1010. text-align: center;
  1011. }
  1012. .aside.visible {
  1013. padding-top: 0;
  1014. }
  1015. }
  1016. main.global {
  1017. margin: 1rem;
  1018. }
  1019. .dropdown .dropdown-section:last-child > ul:first-child {
  1020. margin-top: 0.4rem;
  1021. }
  1022. .labels {
  1023. span.emptyLabels {
  1024. color: white;
  1025. margin-left: 1rem;
  1026. }
  1027. ul.dropdown-menu-scrollable > li:nth-child(3) {
  1028. margin-top: 0.5rem;
  1029. }
  1030. }
  1031. @media (max-width: 840px) {
  1032. body:not(.formLogin, .register) {
  1033. .header {
  1034. .item.title {
  1035. display: none;
  1036. }
  1037. }
  1038. }
  1039. body.normal, body.reader, body.global {
  1040. .item.configure {
  1041. right: 76px;
  1042. }
  1043. a.signin {
  1044. right: 0;
  1045. }
  1046. }
  1047. .horizontal-list {
  1048. .dropdown {
  1049. position: inherit !important;
  1050. }
  1051. }
  1052. #nav_menu_sort,
  1053. #nav_menu_sort .dropdown,
  1054. #toggle-order {
  1055. position: fixed;
  1056. right: 0;
  1057. }
  1058. #nav_menu_sort .dropdown-menu {
  1059. position: absolute;
  1060. right: 0;
  1061. }
  1062. #nav_menu_sort .dropdown-menu,
  1063. #nav_menu_read_all .dropdown-menu,
  1064. #dropdown-search-wrapper .dropdown-menu,
  1065. #nav_menu_queries .dropdown-menu {
  1066. top: 4.4rem;
  1067. }
  1068. #nav_menu_sort .dropdown-menu,
  1069. #nav_menu_read_all .dropdown-menu,
  1070. #nav_menu_actions .dropdown-menu {
  1071. position: fixed;
  1072. }
  1073. body:not(.normal):not(.reader):not(.add) {
  1074. nav.configure a.dropdown-toggle {
  1075. position: fixed;
  1076. top: 0;
  1077. }
  1078. &:not(.global) {
  1079. .nav_menu {
  1080. height: 2.2rem;
  1081. }
  1082. nav.configure a.dropdown-toggle {
  1083. right: 0;
  1084. }
  1085. }
  1086. &.global {
  1087. nav.configure a.dropdown-toggle {
  1088. right: 2.4rem;
  1089. }
  1090. }
  1091. }
  1092. body.repartition {
  1093. .nav_menu {
  1094. position: fixed;
  1095. height: 3rem !important;
  1096. }
  1097. main.post {
  1098. margin-top: 4rem;
  1099. }
  1100. .nav_menu .btn {
  1101. display: block;
  1102. }
  1103. .nav_menu #feed_select {
  1104. padding: 0;
  1105. display: block;
  1106. margin-left: 5rem;
  1107. margin-bottom: 0.5rem;
  1108. }
  1109. }
  1110. .form-group .group-name {
  1111. padding-bottom: 0;
  1112. text-align: left;
  1113. }
  1114. .dropdown {
  1115. position: relative;
  1116. .dropdown-menu {
  1117. width: auto;
  1118. }
  1119. }
  1120. #new-article {
  1121. margin-top: 2rem;
  1122. width: 100%;
  1123. }
  1124. .header {
  1125. display: table;
  1126. .item {
  1127. padding: 0;
  1128. }
  1129. .item.configure {
  1130. padding: 0;
  1131. > .icon {
  1132. margin-top: 5px;
  1133. }
  1134. }
  1135. }
  1136. button.read_all.btn {
  1137. display: none;
  1138. }
  1139. .flux .item.manage,
  1140. .flux_header .item.website {
  1141. width: 35px;
  1142. text-align: center;
  1143. }
  1144. .aside {
  1145. padding: 0;
  1146. width: 0;
  1147. .toggle_aside {
  1148. background-color: var(--color-background-aside);
  1149. &:hover {
  1150. background-color: var(--color-background-nav);
  1151. }
  1152. .icon {
  1153. filter: brightness(3);
  1154. }
  1155. }
  1156. &.aside_feed .configure-feeds {
  1157. display: flex;
  1158. margin-top: 0;
  1159. margin-left: auto;
  1160. margin-right: auto;
  1161. }
  1162. &:target {
  1163. width: 78% !important;
  1164. z-index: 1000;
  1165. }
  1166. }
  1167. #slider {
  1168. .toggle_aside {
  1169. background-color: var(--color-background-aside);
  1170. &:hover {
  1171. background-color: var(--color-background-nav);
  1172. }
  1173. .icon {
  1174. filter: brightness(3);
  1175. }
  1176. }
  1177. }
  1178. .nav_menu {
  1179. height: 71px;
  1180. .btn {
  1181. margin: 0;
  1182. }
  1183. .stick,
  1184. .group {
  1185. margin: 0;
  1186. .btn {
  1187. margin: 0;
  1188. }
  1189. }
  1190. .item.search {
  1191. top: 3px;
  1192. margin-left: 77px;
  1193. width: calc(100% - 4 * 38px);
  1194. position: relative;
  1195. form {
  1196. display: block;
  1197. }
  1198. input {
  1199. width: 100%;
  1200. }
  1201. }
  1202. #nav_menu_toggle_aside {
  1203. position: absolute;
  1204. }
  1205. }
  1206. #overlay .close,
  1207. .dropdown-menu .toggle_aside {
  1208. background-color: var(--color-background-aside);
  1209. display: block;
  1210. height: 50px;
  1211. line-height: 3.5;
  1212. text-align: center;
  1213. padding-right: 10px;
  1214. &:hover {
  1215. background-color: var(--color-background-nav);
  1216. }
  1217. }
  1218. .dropdown-target:target ~ .dropdown-toggle::after,
  1219. .dropdown-target:target ~ .dropdown-toggle.btn::after {
  1220. display: none;
  1221. }
  1222. .share .dropdown-menu {
  1223. right: 3%;
  1224. left: auto;
  1225. }
  1226. .transition .name {
  1227. font-size: 1.1rem;
  1228. }
  1229. .notification {
  1230. width: 100%;
  1231. a.close {
  1232. background: transparent;
  1233. display: block;
  1234. left: 0;
  1235. &:hover {
  1236. opacity: 0.5;
  1237. }
  1238. .icon {
  1239. display: none;
  1240. }
  1241. }
  1242. }
  1243. #nav_entries {
  1244. width: 100% !important;
  1245. }
  1246. .post {
  1247. padding-left: 15px;
  1248. padding-right: 15px;
  1249. }
  1250. div#stream {
  1251. margin-top: 0px;
  1252. }
  1253. a.btn.toggle_aside {
  1254. position: absolute;
  1255. top: 0;
  1256. }
  1257. form#mark-read-menu,
  1258. a#actualize,
  1259. div#nav_menu_actions,
  1260. div#nav_menu_views {
  1261. position: absolute;
  1262. }
  1263. form#mark-read-menu {
  1264. right: 38px;
  1265. top: 0;
  1266. }
  1267. a#actualize {
  1268. right: 0;
  1269. top: 0;
  1270. }
  1271. a#toggle-order,
  1272. div#nav_menu_actions,
  1273. div#nav_menu_views {
  1274. top: 36px;
  1275. }
  1276. div#nav_menu_actions {
  1277. left: 0px;
  1278. }
  1279. div#nav_menu_views {
  1280. right: 32px;
  1281. }
  1282. body:is(.normal, .reader, .global) {
  1283. .nav_menu {
  1284. display: flex;
  1285. height: auto;
  1286. flex-wrap: wrap;
  1287. align-items: center;
  1288. row-gap: 2px;
  1289. padding-right: 3rem; /* room for absolute-positioned cog */
  1290. }
  1291. .nav_menu .item.search {
  1292. position: static;
  1293. top: auto;
  1294. width: auto;
  1295. flex: 1 1 140px;
  1296. min-width: 100px;
  1297. margin-left: 0;
  1298. }
  1299. .nav_menu form#mark-read-menu,
  1300. .nav_menu a#actualize,
  1301. .nav_menu div#nav_menu_actions,
  1302. .nav_menu div#nav_menu_views,
  1303. .nav_menu a#toggle-order,
  1304. .nav_menu #nav_menu_sort,
  1305. .nav_menu #nav_menu_sort .dropdown {
  1306. position: static;
  1307. top: auto;
  1308. right: auto;
  1309. left: auto;
  1310. }
  1311. .item.configure {
  1312. right: 0;
  1313. }
  1314. }
  1315. }
  1316. @media (max-width: 410px) {
  1317. .nav_menu .stick {
  1318. margin: 0;
  1319. }
  1320. }
  1321. button.as-link {
  1322. outline: none;
  1323. }
  1324. .dropdown-target:target ~ .btn.dropdown-toggle {
  1325. background-color: var(--color-background-nav-darker);
  1326. }
  1327. .tree-folder.active .tree-folder-title {
  1328. background-color: var(--color-background-nav-darker);
  1329. font-weight: bold;
  1330. }
  1331. .feed.item {
  1332. &.empty {
  1333. color: var(--color-text-alert);
  1334. &.active {
  1335. background-color: var(--color-background-alert);
  1336. color: var(--color-text-light);
  1337. > a {
  1338. color: var(--color-text-light);
  1339. }
  1340. }
  1341. > a {
  1342. color: var(--color-text-alert);
  1343. }
  1344. }
  1345. &.error {
  1346. color: var(--color-text-bad-lighter);
  1347. &.active {
  1348. background-color: var(--color-background-bad);
  1349. color: var(--color-text-light);
  1350. > a {
  1351. color: var(--color-text-light);
  1352. }
  1353. }
  1354. > a {
  1355. color: var(--color-text-bad-lighter);
  1356. }
  1357. }
  1358. }
  1359. #stream.reader .flux {
  1360. background-color: var(--color-background-light);
  1361. color: var(--color-text-aside);
  1362. border: none;
  1363. &::after {
  1364. border: none;
  1365. }
  1366. .flux_content {
  1367. border-color: var(--color-border-grey);
  1368. }
  1369. .author {
  1370. color: var(--color-text-light-darker);
  1371. }
  1372. }
  1373. #nav_menu_actions {
  1374. ul.dropdown-menu {
  1375. left: 0;
  1376. right: auto;
  1377. &::after {
  1378. display: none;
  1379. }
  1380. }
  1381. .dropdown.only-mobile {
  1382. display: initial !important;
  1383. }
  1384. }
  1385. #nav_menu_read_all {
  1386. ul.dropdown-menu {
  1387. &::after {
  1388. display: none;
  1389. }
  1390. }
  1391. }
  1392. #slider {
  1393. label {
  1394. min-height: initial;
  1395. }
  1396. }
  1397. body:has(.aside:not(.visible)) .header .item.title,
  1398. body.reader .header .item.title {
  1399. display: none;
  1400. }