1
0

Editor.css 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #passages:has(> #passage-editor){
  2. grid-column: 1 / -1;
  3. grid-row: 2 / -1;
  4. z-index: 10;
  5. padding: 0;
  6. position: relative;
  7. }
  8. #passage-editor{
  9. position: absolute;
  10. display: grid;
  11. grid-template-rows: auto 1fr;
  12. grid-template-columns: 1fr repeat(3, min-content);
  13. width: 100%;
  14. height: 100%;
  15. }
  16. #passage-editor #commonTasks div{
  17. margin-bottom: 1em;
  18. }
  19. #passage-editor #commonTasks div:hover {
  20. background: #ccc;
  21. }
  22. #editorToolbar {
  23. grid-column: 1 / -1;
  24. }
  25. .collapsable>h2{
  26. cursor: pointer;
  27. }
  28. .collapsable h3 {
  29. margin: 1em 0 0 0;
  30. display: inline-block;
  31. min-width: 6vw;
  32. }
  33. .collapsable{
  34. --transitionSpeed: 0.3s;
  35. transition: var(--transitionSpeed);
  36. width: 30vw;
  37. width: calc(30vw - 1em);
  38. padding: 0 1em;
  39. overflow: auto;
  40. }
  41. .collapsable.collapsed{
  42. width: 2rem;
  43. padding: 0;
  44. }
  45. .collapsable.collapsed>*{
  46. display: none;
  47. }
  48. .collapsable.collapsed > h2:first-of-type {
  49. font-size: 1em;
  50. writing-mode: vertical-rl;
  51. margin: 0;
  52. transition: var(--transitionSpeed);
  53. display: block;
  54. }
  55. .diff{
  56. font-size: 0.7em;
  57. }
  58. .diff p{
  59. margin: 0;
  60. }
  61. .diff p.addition{
  62. color: rgb(0, 160, 0);
  63. }
  64. .diff p.substraction {
  65. color: rgb(160,0, 0);
  66. }