logo

pleroma-fe

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

color_input.scss (1986B)


  1. .color-input {
  2. display: inline-flex;
  3. .label {
  4. flex: 1 1 auto;
  5. }
  6. .opt {
  7. margin-right: 0.5em;
  8. }
  9. &-field.input {
  10. display: inline-flex;
  11. flex: 0 0 0;
  12. max-width: 9em;
  13. align-items: stretch;
  14. input {
  15. color: var(--text);
  16. background: none;
  17. border: none;
  18. padding: 0;
  19. margin: 0;
  20. &.textColor {
  21. flex: 1 0 3em;
  22. min-width: 3em;
  23. padding: 0;
  24. }
  25. }
  26. .nativeColor {
  27. cursor: pointer;
  28. flex: 0 0 auto;
  29. padding: 0;
  30. input {
  31. appearance: none;
  32. max-width: 0;
  33. min-width: 0;
  34. max-height: 0;
  35. /* stylelint-disable-next-line declaration-no-important */
  36. opacity: 0 !important;
  37. }
  38. }
  39. .computedIndicator,
  40. .validIndicator,
  41. .invalidIndicator,
  42. .transparentIndicator {
  43. flex: 0 0 2em;
  44. margin: 0.2em 0.5em;
  45. min-width: 2em;
  46. align-self: stretch;
  47. min-height: 1.1em;
  48. border-radius: var(--roundness);
  49. }
  50. .invalidIndicator {
  51. background: transparent;
  52. box-sizing: border-box;
  53. border: 2px solid var(--cRed);
  54. }
  55. .transparentIndicator {
  56. // forgot to install counter-strike source, ooops
  57. background-color: #f0f;
  58. position: relative;
  59. &::before,
  60. &::after {
  61. display: block;
  62. content: "";
  63. background-color: #000;
  64. position: absolute;
  65. height: 50%;
  66. width: 50%;
  67. }
  68. &::after {
  69. top: 0;
  70. left: 0;
  71. border-top-left-radius: var(--roundness);
  72. }
  73. &::before {
  74. bottom: 0;
  75. right: 0;
  76. border-bottom-right-radius: var(--roundness);
  77. }
  78. }
  79. &.disabled,
  80. &:disabled {
  81. .nativeColor input,
  82. .computedIndicator,
  83. .validIndicator,
  84. .invalidIndicator,
  85. .transparentIndicator {
  86. /* stylelint-disable-next-line declaration-no-important */
  87. opacity: 0.25 !important;
  88. }
  89. }
  90. }
  91. }