swage.css 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682
  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. > .item {
  620. padding: 0;
  621. vertical-align: middle;
  622. &.title {
  623. width: var(--width-aside);
  624. position: absolute;
  625. text-align: center;
  626. a {
  627. padding: 0 1rem;
  628. &:hover {
  629. .logo {
  630. filter: grayscale(100%) brightness(100) opacity(90%);
  631. }
  632. }
  633. }
  634. .logo {
  635. display: inline-block;
  636. height: 26px;
  637. vertical-align: top;
  638. position: relative;
  639. top: 5px;
  640. filter: grayscale(100%) brightness(100);
  641. }
  642. }
  643. }
  644. .item.configure {
  645. position: fixed;
  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. width: var(--width-aside);
  669. &.aside_feed {
  670. .tree {
  671. margin: 0 0 50px;
  672. }
  673. .tree-folder {
  674. .tree-folder-title,
  675. .item.feed {
  676. &:hover {
  677. background-color: var(--color-background-nav-darker);
  678. }
  679. }
  680. }
  681. .nav-form {
  682. input,
  683. select {
  684. width: 140px;
  685. }
  686. .dropdown {
  687. .dropdown-menu {
  688. right: -20px;
  689. }
  690. .dropdown-menu::after {
  691. right: 33px;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. #aside_feed > ul > li:first-child {
  698. margin-top: 0.4rem;
  699. }
  700. .aside_feed {
  701. .category .title:not([data-unread="0"])::after {
  702. margin: 0.5rem 0 0 0;
  703. background-color: var(--color-background-nav-darker);
  704. color: var(--color-text-light);
  705. }
  706. .feed .item-title:not([data-unread="0"])::after {
  707. background-color: var(--color-background-nav);
  708. color: var(--color-text-light);
  709. }
  710. .tree-folder-items .dropdown-menu::after {
  711. left: 2px;
  712. }
  713. .about {
  714. margin: 0.2rem 0 1rem 0;
  715. display: block;
  716. font-size: 0.8em;
  717. text-align: center;
  718. font-style: italic;
  719. }
  720. }
  721. .toggle_aside {
  722. margin-bottom: 1rem;
  723. }
  724. .aside:target .toggle_aside {
  725. border-bottom: 1px solid var(--frss-border-color);
  726. }
  727. .reader {
  728. .aside {
  729. .toggle_aside {
  730. background-color: var(--color-background-aside);
  731. .icon {
  732. filter: brightness(3);
  733. }
  734. &:hover {
  735. background-color: var(--color-background-nav);
  736. }
  737. }
  738. }
  739. }
  740. .post {
  741. font-size: 0.9em;
  742. input {
  743. &.long {
  744. height: 33px;
  745. margin-top: 0px;
  746. }
  747. }
  748. }
  749. #global {
  750. height: 100vh;
  751. }
  752. #new-article {
  753. width: var(--width-aside);
  754. font-size: 1em;
  755. background-color: var(--color-background-nav);
  756. text-align: center;
  757. position: fixed;
  758. bottom: 48px;
  759. z-index: 900;
  760. left: 0;
  761. line-height: 1.5;
  762. > a {
  763. padding: 1rem;
  764. line-height: 1.5;
  765. font-weight: bold;
  766. color: var(--color-text-light);
  767. &:hover {
  768. text-decoration: none;
  769. background-color: var(--color-background-nav-darker);
  770. }
  771. }
  772. }
  773. .transition {
  774. padding: 0 10px;
  775. font-weight: bold;
  776. line-height: 3;
  777. text-align: center;
  778. .name {
  779. display: none;
  780. }
  781. }
  782. .nav {
  783. a,
  784. .as-link {
  785. color: var(--color-text-light);
  786. }
  787. }
  788. .nav_menu {
  789. padding: 0 0 0 2rem;
  790. width: 100%;
  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. width: var(--width-aside);
  923. background-color: var(--color-background-aside);
  924. }
  925. .stat {
  926. margin: 10px 0 20px;
  927. th,
  928. td,
  929. tr {
  930. border: none;
  931. }
  932. > table {
  933. td,
  934. th {
  935. border-bottom: 1px solid var(--color-border-light-darker);
  936. }
  937. }
  938. }
  939. #overlay {
  940. z-index: 100;
  941. .close .icon {
  942. filter: brightness(3);
  943. }
  944. }
  945. #panel {
  946. z-index: 100;
  947. .nav_menu {
  948. position: relative;
  949. }
  950. }
  951. body:not(:has(nav#aside_feed)) {
  952. #global {
  953. height: 0;
  954. }
  955. .logo {
  956. right: 30px;
  957. }
  958. .header {
  959. background-color: var(--color-background-nav);
  960. height: 2.4rem;
  961. position: relative;
  962. > .item {
  963. &.configure {
  964. width: auto;
  965. position: absolute;
  966. white-space: nowrap;
  967. .icon {
  968. filter: brightness(3);
  969. }
  970. }
  971. }
  972. }
  973. }
  974. .controller_error div.alert-error {
  975. margin-top: 3rem;
  976. }
  977. body.register {
  978. form div:last-child > a {
  979. float: right;
  980. position: relative;
  981. right: 0.2rem;
  982. }
  983. }
  984. a.signin {
  985. color: var(--color-text-light);
  986. font-size: 70%;
  987. position: absolute;
  988. top: 0.5rem;
  989. right: 1.8rem;
  990. text-wrap: nowrap;
  991. transform: scale(1.5);
  992. .icon {
  993. filter: brightness(3);
  994. }
  995. }
  996. .log-item {
  997. &.log-error {
  998. background-color: var(--color-background-bad);
  999. color: var(--color-text-light);
  1000. }
  1001. &.log-warning {
  1002. background-color: var(--color-background-alert);
  1003. color: var(--color-text-light);
  1004. }
  1005. &.log-debug {
  1006. background: var(--color-background-dark);
  1007. color: var(--color-text-light);
  1008. }
  1009. }
  1010. body.reader {
  1011. #nav_menu_toggle_aside {
  1012. margin-top: -2px;
  1013. height: 32px;
  1014. }
  1015. nav.aside_feed > a.toggle_aside {
  1016. text-align: center;
  1017. }
  1018. .aside:target {
  1019. width: var(--width-aside);
  1020. padding-top: 0;
  1021. }
  1022. }
  1023. main.global {
  1024. margin: 1rem;
  1025. }
  1026. .dropdown .dropdown-section:last-child > ul:first-child {
  1027. margin-top: 0.4rem;
  1028. }
  1029. .labels {
  1030. span.emptyLabels {
  1031. color: white;
  1032. margin-left: 1rem;
  1033. }
  1034. ul.dropdown-menu-scrollable > li:nth-child(3) {
  1035. margin-top: 0.5rem;
  1036. }
  1037. }
  1038. @media (max-width: 840px) {
  1039. body:not(.formLogin, .register) {
  1040. .header {
  1041. .item .title {
  1042. display: none;
  1043. }
  1044. }
  1045. }
  1046. body.normal, body.reader, body.global {
  1047. .item.configure {
  1048. right: 76px;
  1049. }
  1050. a.signin {
  1051. right: 0;
  1052. }
  1053. }
  1054. .horizontal-list {
  1055. .dropdown {
  1056. position: inherit !important;
  1057. }
  1058. }
  1059. #nav_menu_sort,
  1060. #nav_menu_sort .dropdown-menu,
  1061. #nav_menu_sort .dropdown,
  1062. #toggle-order {
  1063. position: fixed;
  1064. right: 0;
  1065. }
  1066. #nav_menu_sort .dropdown-menu,
  1067. #nav_menu_read_all .dropdown-menu,
  1068. #dropdown-search-wrapper .dropdown-menu,
  1069. #nav_menu_queries .dropdown-menu {
  1070. top: 4.4rem;
  1071. }
  1072. #nav_menu_sort .dropdown-menu,
  1073. #nav_menu_read_all .dropdown-menu,
  1074. #nav_menu_actions .dropdown-menu {
  1075. position: fixed;
  1076. }
  1077. body:not(.normal):not(.reader):not(.add) {
  1078. nav.configure a.dropdown-toggle {
  1079. position: fixed;
  1080. top: 0;
  1081. }
  1082. &:not(.global) {
  1083. .nav_menu {
  1084. height: 2.2rem;
  1085. }
  1086. nav.configure a.dropdown-toggle {
  1087. right: 0;
  1088. }
  1089. }
  1090. &.global {
  1091. nav.configure a.dropdown-toggle {
  1092. right: 2.4rem;
  1093. }
  1094. }
  1095. }
  1096. body.repartition {
  1097. .nav_menu {
  1098. position: fixed;
  1099. height: 3rem !important;
  1100. }
  1101. main.post {
  1102. margin-top: 4rem;
  1103. }
  1104. .nav_menu .btn {
  1105. display: block;
  1106. }
  1107. .nav_menu #feed_select {
  1108. padding: 0;
  1109. display: block;
  1110. margin-left: 5rem;
  1111. margin-bottom: 0.5rem;
  1112. }
  1113. }
  1114. .form-group .group-name {
  1115. padding-bottom: 0;
  1116. text-align: left;
  1117. }
  1118. .dropdown {
  1119. position: relative;
  1120. .dropdown-menu {
  1121. width: auto;
  1122. }
  1123. }
  1124. #new-article {
  1125. margin-top: 2rem;
  1126. width: 100%;
  1127. }
  1128. .header {
  1129. display: table;
  1130. .item {
  1131. padding: 0;
  1132. }
  1133. .item.configure {
  1134. padding: 0;
  1135. position: fixed;
  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. .flux:not(.current):hover .item .title {
  1150. top: auto !important;
  1151. }
  1152. .aside {
  1153. padding: 0;
  1154. width: 0;
  1155. transition: width 200ms linear;
  1156. .toggle_aside {
  1157. background-color: var(--color-background-aside);
  1158. &:hover {
  1159. background-color: var(--color-background-nav);
  1160. }
  1161. .icon {
  1162. filter: brightness(3);
  1163. }
  1164. }
  1165. &.aside_feed .configure-feeds {
  1166. display: flex;
  1167. margin-top: 0;
  1168. margin-left: auto;
  1169. margin-right: auto;
  1170. }
  1171. &:target {
  1172. width: 78% !important;
  1173. z-index: 1000;
  1174. }
  1175. }
  1176. #slider {
  1177. .toggle_aside {
  1178. background-color: var(--color-background-aside);
  1179. &:hover {
  1180. background-color: var(--color-background-nav);
  1181. }
  1182. .icon {
  1183. filter: brightness(3);
  1184. }
  1185. }
  1186. }
  1187. .nav_menu {
  1188. height: 71px;
  1189. .btn {
  1190. margin: 0;
  1191. }
  1192. .stick,
  1193. .group {
  1194. margin: 0;
  1195. .btn {
  1196. margin: 0;
  1197. }
  1198. }
  1199. .item.search {
  1200. top: 3px;
  1201. margin-left: 77px;
  1202. width: calc(100% - 4 * 38px);
  1203. position: relative;
  1204. form {
  1205. display: block;
  1206. }
  1207. input {
  1208. width: 100%;
  1209. }
  1210. }
  1211. #nav_menu_toggle_aside {
  1212. position: absolute;
  1213. }
  1214. }
  1215. #overlay .close,
  1216. .dropdown-menu .toggle_aside {
  1217. background-color: var(--color-background-aside);
  1218. display: block;
  1219. height: 50px;
  1220. line-height: 3.5;
  1221. text-align: center;
  1222. padding-right: 10px;
  1223. &:hover {
  1224. background-color: var(--color-background-nav);
  1225. }
  1226. }
  1227. .dropdown-target:target ~ .dropdown-toggle::after,
  1228. .dropdown-target:target ~ .dropdown-toggle.btn::after {
  1229. display: none;
  1230. }
  1231. .share .dropdown-menu {
  1232. right: 3%;
  1233. left: auto;
  1234. }
  1235. .transition .name {
  1236. font-size: 1.1rem;
  1237. }
  1238. .notification {
  1239. width: 100%;
  1240. a.close {
  1241. background: transparent;
  1242. display: block;
  1243. left: 0;
  1244. &:hover {
  1245. opacity: 0.5;
  1246. }
  1247. .icon {
  1248. display: none;
  1249. }
  1250. }
  1251. }
  1252. #nav_entries {
  1253. width: 100% !important;
  1254. }
  1255. .post {
  1256. padding-left: 15px;
  1257. padding-right: 15px;
  1258. }
  1259. div#stream {
  1260. margin-top: 0px;
  1261. }
  1262. a.btn.toggle_aside {
  1263. position: absolute;
  1264. top: 0;
  1265. }
  1266. form#mark-read-menu,
  1267. a#actualize,
  1268. div#nav_menu_actions,
  1269. div#nav_menu_views {
  1270. position: absolute;
  1271. }
  1272. form#mark-read-menu {
  1273. right: 38px;
  1274. top: 0;
  1275. }
  1276. a#actualize {
  1277. right: 0;
  1278. top: 0;
  1279. }
  1280. a#toggle-order,
  1281. div#nav_menu_actions,
  1282. div#nav_menu_views {
  1283. top: 36px;
  1284. }
  1285. div#nav_menu_actions {
  1286. left: 0px;
  1287. }
  1288. div#nav_menu_views {
  1289. right: 32px;
  1290. }
  1291. }
  1292. @media (max-width: 410px) {
  1293. .nav_menu .stick {
  1294. margin: 0;
  1295. }
  1296. }
  1297. button.as-link {
  1298. outline: none;
  1299. }
  1300. .dropdown-target:target ~ .btn.dropdown-toggle {
  1301. background-color: var(--color-background-nav-darker);
  1302. }
  1303. .tree-folder.active .tree-folder-title {
  1304. background-color: var(--color-background-nav-darker);
  1305. font-weight: bold;
  1306. }
  1307. .feed.item {
  1308. &.empty {
  1309. color: var(--color-text-alert);
  1310. &.active {
  1311. background-color: var(--color-background-alert);
  1312. color: var(--color-text-light);
  1313. > a {
  1314. color: var(--color-text-light);
  1315. }
  1316. }
  1317. > a {
  1318. color: var(--color-text-alert);
  1319. }
  1320. }
  1321. &.error {
  1322. color: var(--color-text-bad-lighter);
  1323. &.active {
  1324. background-color: var(--color-background-bad);
  1325. color: var(--color-text-light);
  1326. > a {
  1327. color: var(--color-text-light);
  1328. }
  1329. }
  1330. > a {
  1331. color: var(--color-text-bad-lighter);
  1332. }
  1333. }
  1334. }
  1335. #stream.reader .flux {
  1336. background-color: var(--color-background-light);
  1337. color: var(--color-text-aside);
  1338. border: none;
  1339. &::after {
  1340. border: none;
  1341. }
  1342. .flux_content {
  1343. border-color: var(--color-border-grey);
  1344. }
  1345. .author {
  1346. color: var(--color-text-light-darker);
  1347. }
  1348. }
  1349. #nav_menu_actions {
  1350. ul.dropdown-menu {
  1351. left: 0;
  1352. right: auto;
  1353. &::after {
  1354. display: none;
  1355. }
  1356. }
  1357. .dropdown.only-mobile {
  1358. display: initial !important;
  1359. }
  1360. }
  1361. #nav_menu_read_all {
  1362. ul.dropdown-menu {
  1363. &::after {
  1364. display: none;
  1365. }
  1366. }
  1367. }
  1368. #slider {
  1369. label {
  1370. min-height: initial;
  1371. }
  1372. }