Simple text editor based on tiptap. HTML format.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

96 lines
1.7 KiB

  1. $button-width : 42px;
  2. $button-border : 2px solid black;
  3. .menubar{
  4. &.paragraph-menubar {
  5. position: fixed;
  6. display:flex;
  7. flex-direction: column;
  8. top: 100px;
  9. right: 25px;
  10. button {
  11. cursor: pointer;
  12. width: $button-width;
  13. height: $button-width;
  14. background-color: white;
  15. border-left: $button-border ;
  16. border-right: $button-border ;
  17. border-bottom: $button-border ;
  18. border-top :none;
  19. &:nth-child(1){
  20. border-top : $button-border ;
  21. }
  22. &:hover{
  23. color: white;
  24. background-color: black;
  25. }
  26. }
  27. }
  28. &.char-menubar{
  29. top: 10px;
  30. display: block;
  31. width : 75%;
  32. margin : 50px 0px 100px 0px;
  33. ul, li {
  34. padding:0;
  35. margin: 0;
  36. }
  37. & > ul {
  38. display: flex;
  39. justify-content:flex-start;
  40. position: relative;
  41. li, button{
  42. cursor: pointer;
  43. }
  44. ul {
  45. display:none;
  46. position: absolute;
  47. }
  48. & > li {
  49. width: 150px;
  50. list-style-type: none;
  51. border-top: $button-border ;
  52. border-right: $button-border ;
  53. border-bottom: $button-border ;
  54. &:nth-child(1){
  55. border-left: $button-border ;
  56. }
  57. }
  58. li:hover{
  59. ul {
  60. display: flex;
  61. flex-direction: column;
  62. position: absolute;
  63. width: 152px;
  64. li{
  65. border-left: $button-border ;
  66. border-right: $button-border ;
  67. border-bottom: $button-border ;
  68. list-style-type: none;
  69. margin-left: -2px;
  70. button {
  71. border :none;
  72. background-color: white;
  73. width: 100%;
  74. }
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }