logo

pleroma-fe

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

color_input.scss (1670B)


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