swage.scss 25 KB

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