4
0

swage.scss 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513
  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. .item {
  806. &.date {
  807. color: var(--color-text-light-darker);
  808. font-size: 0.7rem;
  809. }
  810. }
  811. .bottom {
  812. font-size: 0.8rem;
  813. text-align: center;
  814. }
  815. label {
  816. color: var(--color-text-light);
  817. cursor: pointer;
  818. }
  819. }
  820. .flux_header {
  821. font-size: 0.8rem;
  822. cursor: pointer;
  823. .title {
  824. font-size: 0.9rem;
  825. }
  826. }
  827. .notification {
  828. padding: 10px 0;
  829. background-color: var(--color-background-light-darker);
  830. height: auto;
  831. color: var(--color-text-light-darker);
  832. font-size: 1em;
  833. border: none;
  834. text-align: center;
  835. font-weight: bold;
  836. vertical-align: middle;
  837. position: fixed;
  838. bottom: 48px;
  839. left: 0;
  840. top: auto;
  841. @extend %aside-width;
  842. &.good,
  843. &.bad {
  844. color: var(--color-text-light);
  845. }
  846. &.good {
  847. background-color: var(--color-background-good);
  848. a.close:hover {
  849. background-color: var(--color-background-good);
  850. }
  851. }
  852. &.bad {
  853. background-color: var(--color-background-bad);
  854. a.close:hover {
  855. background-color: var(--color-background-bad);
  856. }
  857. }
  858. a.close {
  859. display: none;
  860. }
  861. }
  862. #bigMarkAsRead {
  863. text-align: center;
  864. text-decoration: none;
  865. background: var(--color-background-light-darker);
  866. &:hover {
  867. background-color: var(--color-background-aside);
  868. color: var(--color-text-light);
  869. }
  870. }
  871. #nav_entries {
  872. margin: 0;
  873. text-align: center;
  874. line-height: 3;
  875. table-layout: fixed;
  876. @extend %aside-width;
  877. background-color: var(--color-background-aside);
  878. }
  879. .stat {
  880. margin: 10px 0 20px;
  881. th,
  882. td,
  883. tr {
  884. border: none;
  885. }
  886. > table {
  887. td,
  888. th {
  889. border-bottom: 1px solid var(--color-border-light-darker);
  890. }
  891. }
  892. }
  893. #overlay {
  894. z-index: 100;
  895. .close .icon {
  896. filter: brightness(3);
  897. }
  898. }
  899. #panel {
  900. z-index: 100;
  901. .nav_menu {
  902. position: relative;
  903. }
  904. }
  905. .formLogin,
  906. .register {
  907. #global {
  908. height: 0;
  909. }
  910. .header {
  911. background-color: var(--color-background-nav);
  912. height: 35px;
  913. position: relative;
  914. > .item {
  915. &.configure {
  916. padding: 8px;
  917. width: auto;
  918. position: absolute;
  919. right: 0;
  920. white-space: nowrap;
  921. bottom: 0;
  922. .icon {
  923. filter: brightness(3);
  924. }
  925. }
  926. }
  927. }
  928. }
  929. a.signin {
  930. color: var(--color-text-light);
  931. font-size: 70%;
  932. }
  933. .log-item {
  934. &.log-error {
  935. background-color: var(--color-background-bad);
  936. color: var(--color-text-light);
  937. }
  938. &.log-warning {
  939. background-color: var(--color-background-alert);
  940. color: var(--color-text-light);
  941. }
  942. &.log-debug {
  943. background: var(--color-background-dark);
  944. }
  945. }
  946. @media (max-width: 840px) {
  947. body:not(.formLogin, .register) {
  948. .header {
  949. .item.title {
  950. display: none;
  951. }
  952. }
  953. }
  954. .form-group .group-name {
  955. padding-bottom: 0;
  956. text-align: left;
  957. }
  958. .dropdown {
  959. position: relative;
  960. .dropdown-menu {
  961. width: auto;
  962. }
  963. }
  964. #new-article {
  965. margin-top: 2rem;
  966. width: 100%;
  967. }
  968. .header {
  969. display: table;
  970. .item {
  971. padding: 0;
  972. }
  973. .item.configure {
  974. padding: 0;
  975. position: fixed;
  976. right: 76px;
  977. > .icon {
  978. margin-top: 5px;
  979. }
  980. }
  981. }
  982. button.read_all.btn {
  983. display: none;
  984. }
  985. .flux .item.manage,
  986. .flux_header .item.website {
  987. width: 35px;
  988. text-align: center;
  989. }
  990. .flux:not(.current):hover .item.title {
  991. top: auto !important;
  992. }
  993. .aside {
  994. padding: 0;
  995. width: 0;
  996. transition: width 200ms linear;
  997. .toggle_aside {
  998. background-color: var(--color-background-aside);
  999. &:hover {
  1000. background-color: var(--color-background-nav);
  1001. }
  1002. .icon {
  1003. filter: brightness(3);
  1004. }
  1005. }
  1006. &.aside_feed .configure-feeds {
  1007. display: flex;
  1008. margin-top: 0;
  1009. margin-left: auto;
  1010. margin-right: auto;
  1011. }
  1012. &:target {
  1013. width: 78%;
  1014. z-index: 1000;
  1015. }
  1016. }
  1017. #slider {
  1018. .toggle_aside {
  1019. background-color: var(--color-background-aside);
  1020. &:hover {
  1021. background-color: var(--color-background-nav);
  1022. }
  1023. .icon {
  1024. filter: brightness(3);
  1025. }
  1026. }
  1027. }
  1028. .nav_menu {
  1029. height: 71px;
  1030. .btn {
  1031. margin: 0;
  1032. }
  1033. .stick,
  1034. .group {
  1035. margin: 0;
  1036. .btn {
  1037. margin: 0;
  1038. }
  1039. }
  1040. .item.search {
  1041. top: 3px;
  1042. margin-left: 77px;
  1043. width: calc(100% - 4 * 38px);
  1044. position: relative;
  1045. form {
  1046. display: block;
  1047. }
  1048. input {
  1049. width: 100%;
  1050. }
  1051. }
  1052. }
  1053. #overlay .close,
  1054. .dropdown-menu .toggle_aside {
  1055. background-color: var(--color-background-aside);
  1056. display: block;
  1057. height: 50px;
  1058. line-height: 3.5;
  1059. text-align: center;
  1060. padding-right: 10px;
  1061. &:hover {
  1062. background-color: var(--color-background-nav);
  1063. }
  1064. }
  1065. .dropdown-target:target ~ .dropdown-toggle::after,
  1066. .dropdown-target:target ~ .dropdown-toggle.btn::after {
  1067. display: none;
  1068. }
  1069. .share .dropdown-menu {
  1070. right: 3%;
  1071. left: auto;
  1072. }
  1073. .day .name {
  1074. font-size: 1.1rem;
  1075. }
  1076. .notification {
  1077. width: 100%;
  1078. a.close {
  1079. background: transparent;
  1080. display: block;
  1081. left: 0;
  1082. &:hover {
  1083. opacity: 0.5;
  1084. }
  1085. .icon {
  1086. display: none;
  1087. }
  1088. }
  1089. }
  1090. #nav_entries {
  1091. width: 100% !important;
  1092. }
  1093. .post {
  1094. padding-left: 15px;
  1095. padding-right: 15px;
  1096. }
  1097. div#stream {
  1098. margin-top: 0px;
  1099. }
  1100. a.btn.toggle_aside {
  1101. position: absolute;
  1102. top: 0;
  1103. }
  1104. form#mark-read-menu,
  1105. a#actualize,
  1106. a#toggle-order,
  1107. div#nav_menu_actions,
  1108. div#nav_menu_views {
  1109. position: absolute;
  1110. }
  1111. form#mark-read-menu {
  1112. right: 38px;
  1113. top: 0;
  1114. }
  1115. a#actualize,
  1116. a#toggle-order {
  1117. right: 0;
  1118. }
  1119. a#actualize {
  1120. top: 0;
  1121. }
  1122. a#toggle-order,
  1123. div#nav_menu_actions,
  1124. div#nav_menu_views {
  1125. top: 36px;
  1126. }
  1127. div#nav_menu_actions {
  1128. left: 0px;
  1129. }
  1130. div#nav_menu_views {
  1131. right: 50px;
  1132. }
  1133. }
  1134. @media (max-width: 410px) {
  1135. .nav_menu .stick {
  1136. margin: 0;
  1137. }
  1138. }
  1139. @media (max-width: 374px) {
  1140. #nav_menu_views {
  1141. display: none;
  1142. }
  1143. }
  1144. button.as-link {
  1145. outline: none;
  1146. }
  1147. .dropdown-target:target ~ .btn.dropdown-toggle {
  1148. background-color: var(--color-background-nav-darker);
  1149. }
  1150. .tree-folder.active .tree-folder-title {
  1151. background-color: var(--color-background-nav-darker);
  1152. font-weight: bold;
  1153. }
  1154. .feed.item {
  1155. &.empty {
  1156. color: var(--color-text-alert);
  1157. &.active {
  1158. background-color: var(--color-background-alert);
  1159. color: var(--color-text-light);
  1160. > a {
  1161. color: var(--color-text-light);
  1162. }
  1163. }
  1164. > a {
  1165. color: var(--color-text-alert);
  1166. }
  1167. }
  1168. &.error {
  1169. color: var(--color-text-bad-lighter);
  1170. &.active {
  1171. background-color: var(--color-background-bad);
  1172. color: var(--color-text-light);
  1173. > a {
  1174. color: var(--color-text-light);
  1175. }
  1176. }
  1177. > a {
  1178. color: var(--color-text-bad-lighter);
  1179. }
  1180. }
  1181. }
  1182. #stream.reader .flux {
  1183. background-color: var(--color-background-light);
  1184. color: var(--color-text-aside);
  1185. border: none;
  1186. &::after {
  1187. border: none;
  1188. }
  1189. .content {
  1190. border-color: var(--color-border-grey);
  1191. }
  1192. .author {
  1193. margin: 0 0 10px;
  1194. color: var(--color-text-light-darker);
  1195. font-size: 90%;
  1196. }
  1197. }
  1198. #nav_menu_actions {
  1199. ul.dropdown-menu {
  1200. left: 0;
  1201. right: auto;
  1202. &::after {
  1203. display: none;
  1204. }
  1205. }
  1206. .dropdown.only-mobile {
  1207. display: initial !important;
  1208. }
  1209. }
  1210. #nav_menu_read_all {
  1211. ul.dropdown-menu {
  1212. right: 0;
  1213. left: auto;
  1214. &::after {
  1215. display: none;
  1216. }
  1217. }
  1218. }
  1219. #slider {
  1220. label {
  1221. min-height: initial;
  1222. }
  1223. }