SingleLibraryItem.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @import "../css/variables.module";
  2. .excalidraw {
  3. .single-library-item {
  4. position: relative;
  5. &-status {
  6. position: absolute;
  7. top: 0.3rem;
  8. left: 0.3rem;
  9. font-size: 0.7rem;
  10. color: $oc-red-7;
  11. background: rgba(255, 255, 255, 0.9);
  12. padding: 0.1rem 0.2rem;
  13. border-radius: 0.2rem;
  14. }
  15. &__svg {
  16. background-color: $oc-white;
  17. padding: 0.3rem;
  18. width: 7.5rem;
  19. height: 7.5rem;
  20. border: 1px solid var(--button-gray-2);
  21. svg {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. }
  26. .ToolIcon__icon {
  27. background-color: $oc-white;
  28. width: auto;
  29. height: auto;
  30. margin: 0 0.5rem;
  31. }
  32. .ToolIcon,
  33. .ToolIcon_type_button:hover {
  34. background-color: white;
  35. }
  36. .required,
  37. .error {
  38. color: $oc-red-8;
  39. font-weight: bold;
  40. font-size: 1rem;
  41. margin: 0.2rem;
  42. }
  43. .error {
  44. font-weight: 500;
  45. margin: 0;
  46. padding: 0.3em 0;
  47. }
  48. &--remove {
  49. position: absolute;
  50. top: 0.2rem;
  51. right: 1rem;
  52. .ToolIcon__icon {
  53. margin: 0;
  54. }
  55. .ToolIcon__icon {
  56. background-color: $oc-red-6;
  57. &:hover {
  58. background-color: $oc-red-7;
  59. }
  60. &:active {
  61. background-color: $oc-red-8;
  62. }
  63. }
  64. svg {
  65. color: $oc-white;
  66. padding: 0.26rem;
  67. border-radius: 0.3em;
  68. width: 1rem;
  69. height: 1rem;
  70. }
  71. }
  72. }
  73. }