logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

action_button.scss (1811B)


  1. @import "../../mixins";
  2. /* stylelint-disable declaration-no-important */
  3. .quick-action {
  4. display: grid;
  5. grid-template-columns: minmax(max-content, 1fr);
  6. grid-gap: 0.25em;
  7. align-items: center;
  8. height: 1.5em;
  9. .action-counter {
  10. overflow-x: hidden;
  11. text-overflow: ellipsis;
  12. white-space: nowrap;
  13. }
  14. .action-button-inner,
  15. .extra-button {
  16. margin: -0.5em;
  17. padding: 0.5em;
  18. }
  19. .separator {
  20. display: block;
  21. align-self: stretch;
  22. width: 1px;
  23. background-color: var(--icon);
  24. margin-right: 0.5em;
  25. }
  26. &.-pin {
  27. margin: calc(-2px - 0.25em);
  28. padding: 0.25em;
  29. border: 2px dashed var(--icon);
  30. border-radius: var(--roundness);
  31. grid-template-columns: minmax(max-content, 1fr) auto;
  32. .extra-button,
  33. .separator {
  34. display: none;
  35. }
  36. }
  37. .action-button-inner {
  38. display: grid;
  39. grid-gap: 1em;
  40. grid-template-columns: max-content 1fr;
  41. grid-auto-flow: column;
  42. grid-auto-columns: max-content;
  43. align-items: center;
  44. }
  45. }
  46. .action-button {
  47. display: grid;
  48. grid-auto-flow: column;
  49. align-items: center;
  50. padding: 0;
  51. .action-button-inner {
  52. &:hover,
  53. &.-active {
  54. &.reply-button:not(.disabled) {
  55. .svg-inline--fa {
  56. color: var(--cBlue);
  57. }
  58. }
  59. &.retweet-button:not(.disabled) {
  60. .svg-inline--fa {
  61. color: var(--cGreen);
  62. }
  63. }
  64. &.favorite-button:not(.disabled) {
  65. .svg-inline--fa {
  66. color: var(--cOrange);
  67. }
  68. }
  69. }
  70. }
  71. @include unfocused-style {
  72. .focus-marker {
  73. visibility: hidden;
  74. }
  75. .active-marker {
  76. visibility: visible;
  77. }
  78. }
  79. @include focused-style {
  80. .focus-marker {
  81. visibility: visible;
  82. }
  83. .active-marker {
  84. visibility: hidden;
  85. }
  86. }
  87. }