swage.scss 22 KB

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