_comment-inheritance.scss 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @use '@growi/core-styles/scss/bootstrap/init' as bs;
  2. %comment-section {
  3. position: relative;
  4. padding: 1em;
  5. // speech balloon
  6. &:before {
  7. position: absolute;
  8. top: 1.5em;
  9. left: -1em;
  10. display: block;
  11. width: 0;
  12. content: '';
  13. border: 1em solid transparent;
  14. border-left-width: 0;
  15. @include bs.media-breakpoint-down(xs) {
  16. top: 1em;
  17. }
  18. }
  19. }
  20. %picture {
  21. width: 1.2em;
  22. height: 1.2em;
  23. }
  24. $codemirror-default-height: 300px;
  25. // // Light mode color
  26. @include bs.color-mode(light) {
  27. %bg-comment {
  28. background-color: rgba( bs.$gray-200, 0.5 );
  29. border: 1px solid bs.$gray-200;
  30. backdrop-filter: blur(10px);
  31. }
  32. }
  33. // // Dark mode color
  34. @include bs.color-mode(dark) {
  35. %bg-comment {
  36. background-color: rgba( bs.$gray-800, 0.3 );
  37. border: 1px solid bs.$gray-700;
  38. backdrop-filter: blur(10px);
  39. }
  40. }