material-editor.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @import "variables";
  2. .content-editor {
  3. margin-bottom: 20px;
  4. border-radius: 4px;
  5. border: 1px solid $color-purple-500;
  6. background-color: $color-white;
  7. color: $color-purple-900;
  8. min-width: 800px;
  9. max-height: 60vh;
  10. overflow: auto;
  11. .content-item {
  12. margin: 0 20px;
  13. background-color: $color-white;
  14. padding: 5px 10px;
  15. border-radius: $border-radius;
  16. font-size: 0.8rem;
  17. }
  18. }
  19. .select-file {
  20. > input[type="file"] {
  21. display: none;
  22. }
  23. }
  24. .preview-images {
  25. display: grid;
  26. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  27. grid-auto-rows: 150px;
  28. grid-gap: 10px;
  29. margin-bottom: 20px;
  30. > .image {
  31. position: relative;
  32. > img {
  33. display: block;
  34. width: 100%;
  35. height: 100%;
  36. object-fit: cover;
  37. }
  38. > label {
  39. > input[type="radio"] {
  40. display: none;
  41. + span {
  42. position: absolute;
  43. width: 16px;
  44. height: 16px;
  45. border-radius: 50%;
  46. border: 2px solid $color-primary-2;
  47. background-color: $color-white;
  48. top: 4px;
  49. right: 4px;
  50. }
  51. &:hover {
  52. + span {
  53. background-color: $color-primary-4;
  54. }
  55. }
  56. &:checked {
  57. + span {
  58. &::before {
  59. content: "";
  60. position: absolute;
  61. top: 50%;
  62. left: 50%;
  63. transform: translate(-50%, -50%);
  64. width: 8px;
  65. height: 8px;
  66. border-radius: 50%;
  67. background-color: $color-primary-2;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }