swage.scss 22 KB

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