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.
 
 
 
 
 
 

115 lines
2.1 KiB

  1. @import '_vars';
  2. $btn-width:130px;
  3. /* Dropdown Button */
  4. .dropbtn {
  5. background-color: $bg-color;
  6. color: $txt-color;
  7. //padding: 16px;
  8. //font-size: 16px;
  9. //border: none;
  10. min-width: $btn-width;
  11. border-top: $button-border;
  12. border-right: $button-border-small;
  13. border-bottom: $button-border;
  14. border-left: $button-border-small;
  15. &.border-left{
  16. border-left : $button-border;
  17. }
  18. &.border-right{
  19. border-right : $button-border;
  20. }
  21. }
  22. /* The container <div> - needed to position the dropdown content */
  23. .dropdown {
  24. position: relative;
  25. display: inline-block;
  26. }
  27. /* Dropdown Content (Hidden by Default) */
  28. .dropdown-content {
  29. display: none;
  30. position: absolute;
  31. min-width: $btn-width;
  32. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  33. z-index: 1;
  34. }
  35. /* Links inside the dropdown */
  36. .dropdown-content a {
  37. color: black;
  38. //padding: 12px 16px;
  39. //text-decoration: none;
  40. display: flex;
  41. //border: $button-border;
  42. background-color: $txt-color;
  43. padding: 5px;
  44. button {
  45. //background-color: transparent;
  46. border: none;
  47. width: 100%;
  48. min-height: 25px;
  49. }
  50. }
  51. /* Change color of dropdown links on hover */
  52. .dropdown-content a:hover {
  53. //background-color: $txt-color;
  54. //color: $bg-color;
  55. button{
  56. //background-color: $txt-color;
  57. //color: $bg-color;
  58. cursor: pointer;
  59. }
  60. }
  61. /* Show the dropdown menu on hover */
  62. .dropdown:hover .dropdown-content {display: block;}
  63. /* Change the background color of the dropdown button when the dropdown content is shown */
  64. .dropdown:hover .dropbtn {
  65. //background-color: $txt-color;
  66. //color: $bg-color;
  67. }
  68. /*menububble */
  69. .menububble {
  70. visibility: hidden;
  71. background-color: black;
  72. border-radius: 5px;
  73. z-index: 100;
  74. padding: 5px;
  75. position: fixed;
  76. top: 15px;
  77. //width: 50vw;
  78. //margin: auto;
  79. bottom : unset !important;
  80. left: unset !important;
  81. //position: absolute;
  82. //bottom: 25px;
  83. //left:0px;
  84. }
  85. .menububble.is-active {
  86. visibility: visible;
  87. }
  88. .menububble button {
  89. background-color: black;
  90. border: none;
  91. color: white;
  92. border-radius: 5px;
  93. }
  94. #link__button{
  95. min-width: 80px;
  96. }