swage.scss 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507
  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: 0.25rem 0.5rem;
  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. .as-link:hover {
  277. background-color: var(--color-background-nav-darker);
  278. color: var(--color-text-light);
  279. }
  280. &.active {
  281. background: var(--color-background-nav-darker);
  282. color: var(--color-text-light);
  283. a,
  284. .as-link {
  285. color: var(--color-text-light);
  286. }
  287. }
  288. > a,
  289. > .as-link {
  290. padding: 0 1.5rem;
  291. }
  292. .icon {
  293. filter: brightness(3);
  294. }
  295. }
  296. .nav-form {
  297. padding: 3px;
  298. text-align: center;
  299. }
  300. a:hover,
  301. .as-link:hover {
  302. text-decoration: none;
  303. }
  304. }
  305. .dropdown-menu {
  306. padding: 0.5rem 0 1rem 0;
  307. font-size: 0.8rem;
  308. text-align: left;
  309. border: none;
  310. background-color: var(--color-background-nav-darker);
  311. .dropdown-header {
  312. cursor: default;
  313. padding: 0.5rem 10px 0.5rem 10px;
  314. font-weight: bold;
  315. color: var(--color-text-light);
  316. a,
  317. .as-link {
  318. padding: 0 5px;
  319. position: absolute;
  320. right: 5px;
  321. &:hover {
  322. background-color: var(--color-background-nav);
  323. }
  324. }
  325. }
  326. .dropdown-section {
  327. .dropdown-section-title {
  328. cursor: default;
  329. padding: 0.25rem 0.5rem 0.125rem 0.25rem;
  330. font-weight: bold;
  331. color: var(--color-text-light);
  332. }
  333. .item {
  334. a,
  335. .as-link {
  336. padding: 0 22px;
  337. &:hover {
  338. background-color: var(--color-background-nav);
  339. }
  340. }
  341. }
  342. }
  343. > {
  344. .item {
  345. @extend %dropdown;
  346. padding: 0 0 0 0.5rem;
  347. a,
  348. > span,
  349. > .as-link,
  350. button {
  351. @extend %dropdown;
  352. }
  353. > a {
  354. min-width: initial;
  355. white-space: nowrap;
  356. }
  357. > a:hover,
  358. > button:hover {
  359. background-color: var(--color-background-nav);
  360. color: var(--color-text-light);
  361. }
  362. }
  363. .item[aria-checked="true"] > a::before {
  364. font-weight: bold;
  365. margin: 0 0 0 -14px;
  366. }
  367. }
  368. .help a {
  369. color: var(--color-text-light);
  370. text-decoration: underline;
  371. text-decoration-style: dotted;
  372. &:hover {
  373. text-decoration-style: solid;
  374. }
  375. }
  376. .input {
  377. select,
  378. input {
  379. margin: 0 auto 5px;
  380. padding: 2px 5px;
  381. }
  382. }
  383. }
  384. #dropdown-search-wrapper .dropdown-menu {
  385. padding-top: 1rem;
  386. padding-bottom: 0.25rem;
  387. .stick.search {
  388. width: 100%;
  389. input[type="search"] {
  390. width: 100%;
  391. border: 0;
  392. }
  393. }
  394. }
  395. .labels,
  396. .tags,
  397. .share {
  398. .dropdown-menu {
  399. right: auto;
  400. }
  401. }
  402. .item ~ .dropdown-header,
  403. .item.separator {
  404. border-top-color: var(--color-border-light-darker);
  405. cursor: default;
  406. }
  407. .alert {
  408. margin: 0.25rem auto;
  409. background-color: var(--color-background-light);
  410. color: var(--color-text-light-darker);
  411. font-size: 0.9em;
  412. border: none;
  413. text-shadow: 0 0 1px var(--color-text-shadow-light);
  414. > a {
  415. color: inherit;
  416. text-decoration: underline;
  417. }
  418. }
  419. .alert-head {
  420. font-size: 1.15em;
  421. }
  422. .alert-warn,
  423. .alert-success,
  424. .alert-error {
  425. border: none;
  426. }
  427. .alert-warn {
  428. background-color: var(--color-background-light);
  429. color: var(--color-text-alert);
  430. }
  431. .alert-success {
  432. background-color: var(--color-background-light);
  433. color: var(--color-text-good);
  434. }
  435. .alert-error {
  436. background-color: var(--color-background-light);
  437. color: var(--color-text-bad);
  438. }
  439. .pagination {
  440. background: var(--color-background-light-darker);
  441. color: var(--color_text);
  442. .item a {
  443. color: var(--color_text);
  444. }
  445. }
  446. #load_more.loading,
  447. #load_more.loading:hover {
  448. background: url(loader.gif) center center no-repeat var(--color-background-aside);
  449. }
  450. .content {
  451. padding: 20px 10px;
  452. hr {
  453. margin: 30px 10px;
  454. background: var(--color-background-light-darker);
  455. height: 1px;
  456. border: 0;
  457. box-shadow: 0 2px 5px var(--color-box-shadow-light);
  458. }
  459. pre {
  460. background-color: var(--color-background-dark);
  461. color: var(--color-text-light);
  462. code {
  463. background: transparent;
  464. color: var(--color-text-light);
  465. border: none;
  466. }
  467. }
  468. code {
  469. background-color: var(--color-background-light);
  470. color: var(--color-text-bad);
  471. border-color: var(--color-border-light);
  472. }
  473. blockquote {
  474. margin: 0;
  475. padding: 5px 20px;
  476. background-color: var(--color-background-light);
  477. display: block;
  478. color: var(--color-text-light-darker);
  479. border-top: 1px solid var(--color-border-light-darker);
  480. border-bottom: 1px solid var(--color-border-light-darker);
  481. p {
  482. margin: 0;
  483. }
  484. }
  485. > h1.title > a {
  486. color: var(--color_text);
  487. }
  488. }
  489. .box {
  490. border: 1px solid var(--color-border-light-darker);
  491. .box-title {
  492. margin: 0;
  493. background-color: var(--color-background-aside);
  494. color: var(--color-text-light);
  495. border-bottom: 1px solid var(--color-border-light-darker);
  496. a {
  497. color: var(--color-text-light);
  498. }
  499. .configure {
  500. margin-right: 4px;
  501. .icon {
  502. &:hover {
  503. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  504. }
  505. }
  506. }
  507. }
  508. .box-content {
  509. max-height: 260px;
  510. .item {
  511. padding: 0 10px;
  512. font-size: 0.9rem;
  513. .configure {
  514. .icon {
  515. vertical-align: middle;
  516. filter: brightness(0.4);
  517. &:hover {
  518. filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
  519. }
  520. }
  521. }
  522. }
  523. }
  524. &.category {
  525. .box-title .title {
  526. font-weight: normal;
  527. text-decoration: none;
  528. text-align: left;
  529. }
  530. &:not([data-unread="0"]) .box-title {
  531. background-color: var(--color-background-nav);
  532. &:active {
  533. background: var(--color-background-nav-darker);
  534. }
  535. .title {
  536. font-weight: bold;
  537. color: var(--color-text-light);
  538. }
  539. }
  540. .title:not([data-unread="0"])::after {
  541. background: none;
  542. border: 0;
  543. box-shadow: none;
  544. position: absolute;
  545. top: 5px;
  546. right: 10px;
  547. font-weight: bold;
  548. text-shadow: none;
  549. }
  550. }
  551. &.visible-semi {
  552. border-style: solid;
  553. }
  554. }
  555. .tree {
  556. margin: 10px 0;
  557. }
  558. .aside_feed .tree-folder-title {
  559. padding: 0.3rem 0.75rem;
  560. background-color: var(--color-background-aside);
  561. font-size: 1rem;
  562. position: relative;
  563. .title {
  564. background: inherit;
  565. color: var(--color-text-light);
  566. &:hover {
  567. text-decoration: none;
  568. }
  569. }
  570. }
  571. .tree-folder-items {
  572. background-color: var(--color-background-aside);
  573. > .item {
  574. font-size: 0.8rem;
  575. &.active {
  576. background-color: var(--color-background-nav-darker);
  577. }
  578. > a {
  579. text-decoration: none;
  580. color: var(--color-text-light);
  581. }
  582. }
  583. }
  584. .header {
  585. height: auto;
  586. > .item {
  587. padding: 0;
  588. vertical-align: middle;
  589. &.title {
  590. @extend %aside-width;
  591. position: absolute;
  592. text-align: center;
  593. a {
  594. padding: 0 1rem;
  595. &:hover {
  596. .logo {
  597. filter: grayscale(100%) brightness(100) opacity(90%);
  598. }
  599. }
  600. }
  601. .logo {
  602. display: inline-block;
  603. height: 26px;
  604. vertical-align: top;
  605. position: relative;
  606. top: 5px;
  607. filter: grayscale(100%) brightness(100);
  608. }
  609. }
  610. }
  611. .item.search {
  612. display: none;
  613. }
  614. .item.configure {
  615. position: fixed;
  616. right: 0;
  617. z-index: 95;
  618. width: 35px;
  619. text-align: center;
  620. line-height: 0.8;
  621. > .icon {
  622. filter: brightness(3);
  623. margin-right: 5px;
  624. margin-top: 3px;
  625. }
  626. .dropdown .dropdown-menu {
  627. max-height: calc(100vh - 45px);
  628. overflow: auto;
  629. .icon {
  630. filter: brightness(3);
  631. }
  632. }
  633. }
  634. }
  635. .aside {
  636. padding: 35px 0;
  637. background-color: var(--color-background-aside);
  638. @extend %aside-width;
  639. &.aside_feed {
  640. .tree {
  641. margin: 0 0 50px;
  642. }
  643. .tree-folder {
  644. .tree-folder-title,
  645. .item.feed {
  646. &:hover {
  647. background-color: var(--color-background-nav-darker);
  648. }
  649. }
  650. }
  651. .nav-form {
  652. input,
  653. select {
  654. width: 140px;
  655. }
  656. .dropdown {
  657. .dropdown-menu {
  658. right: -20px;
  659. }
  660. .dropdown-menu::after {
  661. right: 33px;
  662. }
  663. }
  664. }
  665. }
  666. }
  667. .aside_feed {
  668. .category .title:not([data-unread="0"])::after {
  669. margin: 0.5rem 0 0 0;
  670. background-color: var(--color-background-nav-darker);
  671. color: var(--color-text-light);
  672. }
  673. .feed .item-title:not([data-unread="0"])::after {
  674. background-color: var(--color-background-nav);
  675. color: var(--color-text-light);
  676. }
  677. .tree-folder-items .dropdown-menu::after {
  678. left: 2px;
  679. }
  680. .about {
  681. padding: 1rem;
  682. display: block;
  683. text-align: center;
  684. font-size: 0.8em;
  685. font-style: italic;
  686. }
  687. }
  688. .reader {
  689. .aside {
  690. .toggle_aside {
  691. background-color: var(--color-background-aside);
  692. .icon {
  693. filter: brightness(3);
  694. }
  695. &:hover {
  696. background-color: var(--color-background-nav);
  697. }
  698. }
  699. }
  700. }
  701. .post {
  702. font-size: 0.9em;
  703. input {
  704. &.long {
  705. height: 33px;
  706. margin-top: 0px;
  707. }
  708. }
  709. }
  710. .prompt {
  711. input {
  712. margin: 5px auto;
  713. }
  714. }
  715. #global {
  716. height: 100vh;
  717. }
  718. #new-article {
  719. background-color: var(--color-background-nav);
  720. font-size: 1em;
  721. text-align: center;
  722. position: fixed;
  723. bottom: 48px;
  724. z-index: 900;
  725. left: 0;
  726. line-height: 1.5;
  727. @extend %aside-width;
  728. > a {
  729. padding: 1rem;
  730. line-height: 1.5;
  731. font-weight: bold;
  732. color: var(--color-text-light);
  733. &:hover {
  734. text-decoration: none;
  735. background-color: var(--color-background-nav-darker);
  736. }
  737. }
  738. }
  739. .day {
  740. padding: 0 10px;
  741. font-weight: bold;
  742. line-height: 3;
  743. text-align: center;
  744. .name {
  745. display: none;
  746. }
  747. }
  748. .nav {
  749. a,
  750. .as-link {
  751. color: var(--color-text-light);
  752. }
  753. }
  754. .nav_menu {
  755. padding: 0;
  756. width: 100%;
  757. font-size: 0;
  758. background-color: var(--color-background-nav);
  759. text-align: left;
  760. position: sticky;
  761. top: 0;
  762. z-index: 90;
  763. .item.search {
  764. display: inline-block;
  765. position: absolute;
  766. right: 40px;
  767. input {
  768. border-width: 0;
  769. line-height: 1.95;
  770. }
  771. }
  772. #toggle-unread,
  773. #toggle-starred {
  774. .icon {
  775. filter: brightness(1);
  776. }
  777. }
  778. }
  779. .flux {
  780. padding-right: 10px;
  781. background-color: var(--color-background-light);
  782. &::after {
  783. @extend %after;
  784. margin: 0 auto;
  785. width: 90%;
  786. border-top: 1px solid var(--color-border-light-darker);
  787. }
  788. .flux_header:hover,
  789. .current {
  790. background-color: var(--color-background-hover);
  791. &:not(.current):hover .item .title {
  792. background-color: var(--color-background-hover);
  793. }
  794. }
  795. &.favorite:not(.current) {
  796. background-color: var(--color-background-stared);
  797. &:hover .item .title {
  798. background-color: var(--color-background-stared);
  799. }
  800. }
  801. &.not_read:not(.current) {
  802. background-color: var(--color-background-unread);
  803. &:hover .item .title {
  804. background-color: var(--color-background-unread);
  805. }
  806. }
  807. .flux_header .date,
  808. .flux_content .bottom .date {
  809. color: var(--color-text-light-darker);
  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.big {
  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. @extend %aside-width;
  873. background-color: var(--color-background-aside);
  874. }
  875. .stat {
  876. margin: 10px 0 20px;
  877. th,
  878. td,
  879. tr {
  880. border: none;
  881. }
  882. > table {
  883. td,
  884. th {
  885. border-bottom: 1px solid var(--color-border-light-darker);
  886. }
  887. }
  888. }
  889. #overlay {
  890. z-index: 100;
  891. .close .icon {
  892. filter: brightness(3);
  893. }
  894. }
  895. #panel {
  896. z-index: 100;
  897. .nav_menu {
  898. position: relative;
  899. }
  900. }
  901. .formLogin,
  902. .register {
  903. #global {
  904. height: 0;
  905. }
  906. .header {
  907. background-color: var(--color-background-nav);
  908. height: 35px;
  909. position: relative;
  910. > .item {
  911. &.configure {
  912. padding: 8px;
  913. width: auto;
  914. position: absolute;
  915. right: 0;
  916. white-space: nowrap;
  917. bottom: 0;
  918. .icon {
  919. filter: brightness(3);
  920. }
  921. }
  922. }
  923. }
  924. }
  925. a.signin {
  926. color: var(--color-text-light);
  927. font-size: 70%;
  928. }
  929. .log-item {
  930. &.log-error {
  931. background-color: var(--color-background-bad);
  932. color: var(--color-text-light);
  933. }
  934. &.log-warning {
  935. background-color: var(--color-background-alert);
  936. color: var(--color-text-light);
  937. }
  938. &.log-debug {
  939. background: var(--color-background-dark);
  940. }
  941. }
  942. @media (max-width: 840px) {
  943. body:not(.formLogin, .register) {
  944. .header {
  945. .item .title {
  946. display: none;
  947. }
  948. }
  949. }
  950. .form-group .group-name {
  951. padding-bottom: 0;
  952. text-align: left;
  953. }
  954. .dropdown {
  955. position: relative;
  956. .dropdown-menu {
  957. width: auto;
  958. }
  959. }
  960. #new-article {
  961. margin-top: 2rem;
  962. width: 100%;
  963. }
  964. .header {
  965. display: table;
  966. .item {
  967. padding: 0;
  968. }
  969. .item.configure {
  970. padding: 0;
  971. position: fixed;
  972. right: 76px;
  973. > .icon {
  974. margin-top: 5px;
  975. }
  976. }
  977. }
  978. button.read_all.btn {
  979. display: none;
  980. }
  981. .flux .item.manage,
  982. .flux_header .item.website {
  983. width: 35px;
  984. text-align: center;
  985. }
  986. .flux:not(.current):hover .item .title {
  987. top: auto !important;
  988. }
  989. .aside {
  990. padding: 0;
  991. width: 0;
  992. transition: width 200ms linear;
  993. .toggle_aside {
  994. background-color: var(--color-background-aside);
  995. &:hover {
  996. background-color: var(--color-background-nav);
  997. }
  998. .icon {
  999. filter: brightness(3);
  1000. }
  1001. }
  1002. &.aside_feed .configure-feeds {
  1003. display: flex;
  1004. margin-top: 0;
  1005. margin-left: auto;
  1006. margin-right: auto;
  1007. }
  1008. &:target {
  1009. width: 78%;
  1010. z-index: 1000;
  1011. }
  1012. }
  1013. #slider {
  1014. .toggle_aside {
  1015. background-color: var(--color-background-aside);
  1016. &:hover {
  1017. background-color: var(--color-background-nav);
  1018. }
  1019. .icon {
  1020. filter: brightness(3);
  1021. }
  1022. }
  1023. }
  1024. .nav_menu {
  1025. height: 71px;
  1026. .btn {
  1027. margin: 0;
  1028. }
  1029. .stick,
  1030. .group {
  1031. margin: 0;
  1032. .btn {
  1033. margin: 0;
  1034. }
  1035. }
  1036. .item.search {
  1037. top: 3px;
  1038. margin-left: 77px;
  1039. width: calc(100% - 4 * 38px);
  1040. position: relative;
  1041. form {
  1042. display: block;
  1043. }
  1044. input {
  1045. width: 100%;
  1046. }
  1047. }
  1048. }
  1049. #overlay .close,
  1050. .dropdown-menu .toggle_aside {
  1051. background-color: var(--color-background-aside);
  1052. display: block;
  1053. height: 50px;
  1054. line-height: 3.5;
  1055. text-align: center;
  1056. padding-right: 10px;
  1057. &:hover {
  1058. background-color: var(--color-background-nav);
  1059. }
  1060. }
  1061. .dropdown-target:target ~ .dropdown-toggle::after,
  1062. .dropdown-target:target ~ .dropdown-toggle.btn::after {
  1063. display: none;
  1064. }
  1065. .share .dropdown-menu {
  1066. right: 3%;
  1067. left: auto;
  1068. }
  1069. .day .name {
  1070. font-size: 1.1rem;
  1071. }
  1072. .notification {
  1073. width: 100%;
  1074. a.close {
  1075. background: transparent;
  1076. display: block;
  1077. left: 0;
  1078. &:hover {
  1079. opacity: 0.5;
  1080. }
  1081. .icon {
  1082. display: none;
  1083. }
  1084. }
  1085. }
  1086. #nav_entries {
  1087. width: 100% !important;
  1088. }
  1089. .post {
  1090. padding-left: 15px;
  1091. padding-right: 15px;
  1092. }
  1093. div#stream {
  1094. margin-top: 0px;
  1095. }
  1096. a.btn.toggle_aside {
  1097. position: absolute;
  1098. top: 0;
  1099. }
  1100. form#mark-read-menu,
  1101. a#actualize,
  1102. a#toggle-order,
  1103. div#nav_menu_actions,
  1104. div#nav_menu_views {
  1105. position: absolute;
  1106. }
  1107. form#mark-read-menu {
  1108. right: 38px;
  1109. top: 0;
  1110. }
  1111. a#actualize,
  1112. a#toggle-order {
  1113. right: 0;
  1114. }
  1115. a#actualize {
  1116. top: 0;
  1117. }
  1118. a#toggle-order,
  1119. div#nav_menu_actions,
  1120. div#nav_menu_views {
  1121. top: 36px;
  1122. }
  1123. div#nav_menu_actions {
  1124. left: 0px;
  1125. }
  1126. div#nav_menu_views {
  1127. right: 50px;
  1128. }
  1129. }
  1130. @media (max-width: 410px) {
  1131. .nav_menu .stick {
  1132. margin: 0;
  1133. }
  1134. }
  1135. @media (max-width: 374px) {
  1136. #nav_menu_views {
  1137. display: none;
  1138. }
  1139. }
  1140. button.as-link {
  1141. outline: none;
  1142. }
  1143. .dropdown-target:target ~ .btn.dropdown-toggle {
  1144. background-color: var(--color-background-nav-darker);
  1145. }
  1146. .tree-folder.active .tree-folder-title {
  1147. background-color: var(--color-background-nav-darker);
  1148. font-weight: bold;
  1149. }
  1150. .feed.item {
  1151. &.empty {
  1152. color: var(--color-text-alert);
  1153. &.active {
  1154. background-color: var(--color-background-alert);
  1155. color: var(--color-text-light);
  1156. > a {
  1157. color: var(--color-text-light);
  1158. }
  1159. }
  1160. > a {
  1161. color: var(--color-text-alert);
  1162. }
  1163. }
  1164. &.error {
  1165. color: var(--color-text-bad-lighter);
  1166. &.active {
  1167. background-color: var(--color-background-bad);
  1168. color: var(--color-text-light);
  1169. > a {
  1170. color: var(--color-text-light);
  1171. }
  1172. }
  1173. > a {
  1174. color: var(--color-text-bad-lighter);
  1175. }
  1176. }
  1177. }
  1178. #stream.reader .flux {
  1179. background-color: var(--color-background-light);
  1180. color: var(--color-text-aside);
  1181. border: none;
  1182. &::after {
  1183. border: none;
  1184. }
  1185. .flux_content {
  1186. border-color: var(--color-border-grey);
  1187. }
  1188. .author {
  1189. color: var(--color-text-light-darker);
  1190. }
  1191. }
  1192. #nav_menu_actions {
  1193. ul.dropdown-menu {
  1194. left: 0;
  1195. right: auto;
  1196. &::after {
  1197. display: none;
  1198. }
  1199. }
  1200. .dropdown.only-mobile {
  1201. display: initial !important;
  1202. }
  1203. }
  1204. #nav_menu_read_all {
  1205. ul.dropdown-menu {
  1206. right: 0;
  1207. left: auto;
  1208. &::after {
  1209. display: none;
  1210. }
  1211. }
  1212. }
  1213. #slider {
  1214. label {
  1215. min-height: initial;
  1216. }
  1217. }