swage.css 28 KB

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