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 (1890B)


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