math-preview.less 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .ol-cm-math-tooltip-container {
  2. position: relative;
  3. border-radius: 4px;
  4. max-height: 400px;
  5. max-width: 800px;
  6. overflow: visible;
  7. }
  8. .ol-cm-math-tooltip {
  9. display: flex;
  10. gap: 8px;
  11. overflow: auto;
  12. padding: 8px;
  13. .dropdown {
  14. position: static;
  15. }
  16. }
  17. .math-tooltip-options-toggle {
  18. border: none;
  19. padding: 0;
  20. width: 20px;
  21. height: 20px;
  22. background-color: transparent;
  23. color: black !important;
  24. &:focus {
  25. background-color: transparent;
  26. }
  27. &:hover,
  28. &:active {
  29. background-color: @neutral-20;
  30. }
  31. }
  32. .math-preview-tooltip-menu {
  33. top: 28px;
  34. right: 8px;
  35. }
  36. .dropdown-menu {
  37. .math-preview-tooltip-option {
  38. a {
  39. display: flex;
  40. gap: 16px;
  41. align-items: center;
  42. }
  43. div {
  44. padding: 0;
  45. }
  46. }
  47. }
  48. .math-preview-tooltip-option-content {
  49. display: flex;
  50. flex-direction: column;
  51. flex-grow: 1;
  52. }
  53. .math-preview-tooltip-option-label {
  54. color: @content-primary;
  55. }
  56. .math-preview-tooltip-option-description {
  57. color: @content-secondary;
  58. font-size: 12px;
  59. }
  60. .math-preview-tooltip-option-shortcut {
  61. color: @content-secondary;
  62. }