swage.scss 22 KB

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