swage.scss 22 KB

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