swage.scss 23 KB

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