styles.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /* @settings
  2. name: Buttons
  3. id: buttons-styles
  4. settings:
  5. -
  6. id: button-background
  7. title: Background
  8. type: variable-themed-color
  9. format: hex
  10. opacity: false
  11. default-light: '#f5f6f8'
  12. default-dark: '#1b1b1b'
  13. -
  14. id: button-text
  15. title: Text
  16. type: variable-themed-color
  17. format: hex
  18. opacity: false
  19. default-light: '#1b1b1b'
  20. default-dark: '#f5f6f8'
  21. -
  22. id: button-border
  23. title: Border
  24. type: variable-themed-color
  25. format: hex
  26. opacity: false
  27. default-light: '#7a9486'
  28. default-dark: '#84a83a'
  29. -
  30. id: button-box-shadow
  31. title: Box Shadow
  32. type: variable-themed-color
  33. format: rgb
  34. opacity: true
  35. default-light: '#1b1b1b'
  36. default-dark: '#f5f6f8'
  37. -
  38. id: button-border-radius
  39. title: Border Radius
  40. type: variable-number
  41. format: px
  42. default: 5
  43. -
  44. id: button-size
  45. title: Font Size
  46. type: variable-number
  47. format: em
  48. default: 1
  49. */
  50. .block-language-button {
  51. padding: 5px;
  52. }
  53. button.button-default {
  54. border: 0.5px solid var(--button-border, #7a9486);
  55. border-radius: var(--button-border-radius, 5px);
  56. background-color: var(--button-background);
  57. padding: 10px 30px;
  58. color: var(--button-text);
  59. text-decoration: none;
  60. font-size: var(--button-size);
  61. margin: 0 5px;
  62. box-shadow: 0 1px 3px var(--button-box-shadow, rgba(0, 0, 0, 0.12)),
  63. 0 1px 2px var(--button-box-shadow, rgba(0, 0, 0, 0.24));
  64. transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  65. }
  66. button.button-default:hover {
  67. z-index: 100;
  68. box-shadow: 0 4px 4px var(--button-box-shadow, rgba(0, 0, 0, 0.25)),
  69. 0 10px 10px var(--button-box-shadow, rgba(0, 0, 0, 0.22));
  70. transform: translate3d(0px, -1.5px, 0px);
  71. background-color: var(--button-background);
  72. }
  73. .theme-dark button.button-default {
  74. border: 0.5px solid var(--button-border, #84a83a);
  75. }
  76. .theme-dark button.button-default:hover {
  77. z-index: 100;
  78. box-shadow: 0 4px 4px var(--button-box-shadow, rgba(210, 210, 210, 0.25)),
  79. 0 10px 10px var(--button-box-shadow, rgba(210, 210, 210, 0.22));
  80. transform: translate3d(0px, -1.5px, 0px);
  81. }
  82. button.button-inline {
  83. width: unset;
  84. height: unset;
  85. padding: 0 8px;
  86. }
  87. button.blue {
  88. background: #76b3fa;
  89. color: black;
  90. }
  91. button.red {
  92. background-color: red;
  93. }
  94. button.green {
  95. background: green;
  96. }
  97. button.yellow {
  98. background: yellow;
  99. color: black;
  100. }
  101. button.purple {
  102. background: #725585;
  103. }
  104. button.blue:hover {
  105. background: #76b3fa;
  106. color: black;
  107. }
  108. button.red:hover {
  109. background: red;
  110. }
  111. button.green:hover {
  112. background: green;
  113. }
  114. button.yellow:hover {
  115. background: yellow;
  116. color: black;
  117. }
  118. button.purple:hover {
  119. background: #725585;
  120. }
  121. .button-maker {
  122. max-width: 35rem;
  123. width: 35rem;
  124. overflow-y: auto;
  125. max-height: 30rem;
  126. padding-left: 0.5rem;
  127. padding-right: 0.5rem;
  128. overflow-x: hidden;
  129. }