Simple text editor based on tiptap. HTML format.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

113 行
2.0 KiB

  1. @import '_vars';
  2. $btn-width:120px;
  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: block;
  41. //border: $button-border;
  42. background-color: $txt-color;
  43. padding: 5px;
  44. button {
  45. //background-color: transparent;
  46. border: none;
  47. }
  48. }
  49. /* Change color of dropdown links on hover */
  50. .dropdown-content a:hover {
  51. //background-color: $txt-color;
  52. //color: $bg-color;
  53. button{
  54. //background-color: $txt-color;
  55. //color: $bg-color;
  56. cursor: pointer;
  57. }
  58. }
  59. /* Show the dropdown menu on hover */
  60. .dropdown:hover .dropdown-content {display: block;}
  61. /* Change the background color of the dropdown button when the dropdown content is shown */
  62. .dropdown:hover .dropbtn {
  63. //background-color: $txt-color;
  64. //color: $bg-color;
  65. }
  66. /*menububble */
  67. .menububble {
  68. visibility: hidden;
  69. background-color: black;
  70. border-radius: 5px;
  71. z-index: 100;
  72. padding: 5px;
  73. position: fixed;
  74. top: 15px;
  75. //width: 50vw;
  76. //margin: auto;
  77. bottom : unset !important;
  78. left: unset !important;
  79. //position: absolute;
  80. //bottom: 25px;
  81. //left:0px;
  82. }
  83. .menububble.is-active {
  84. visibility: visible;
  85. }
  86. .menububble button {
  87. background-color: black;
  88. border: none;
  89. color: white;
  90. border-radius: 5px;
  91. }
  92. #link__button{
  93. min-width: 80px;
  94. }