|
| 1 | +/* ============================================ |
| 2 | + MODERN BUTTON STYLE OPTIONS FOR EASYEDIT |
| 3 | + ============================================ |
| 4 | + |
| 5 | + Choose one of the 4 options below and replace the |
| 6 | + .button-mermaid styles in App.css |
| 7 | + ============================================ */ |
| 8 | + |
| 9 | + |
| 10 | +/* ============================================ |
| 11 | + OPTION 1: Modern Gradient (Purple to Blue) |
| 12 | + ============================================ */ |
| 13 | +.button-mermaid-option1 { |
| 14 | + margin-top: 4px; |
| 15 | + margin-bottom: 2px; |
| 16 | + height: 32px; |
| 17 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 18 | + color: white; |
| 19 | + font-family: Arial, sans-serif; |
| 20 | + font-size: 16px; |
| 21 | + font-weight: 500; |
| 22 | + font-style: normal; |
| 23 | + text-decoration: none; |
| 24 | + display: inline-flex; |
| 25 | + align-items: center; |
| 26 | + justify-content: center; |
| 27 | + padding: 0 10px; |
| 28 | + border: none; |
| 29 | + border-radius: 6px; |
| 30 | + cursor: pointer; |
| 31 | + transition: all 0.3s ease; |
| 32 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 33 | +} |
| 34 | + |
| 35 | +.button-mermaid-option1:hover { |
| 36 | + background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); |
| 37 | + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| 38 | + transform: translateY(-1px); |
| 39 | +} |
| 40 | + |
| 41 | +.button-mermaid-option1:active { |
| 42 | + transform: translateY(0); |
| 43 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 44 | +} |
| 45 | + |
| 46 | + |
| 47 | +/* ============================================ |
| 48 | + OPTION 2: Flat Modern (Slate Gray) |
| 49 | + ============================================ */ |
| 50 | +.button-mermaid-option2 { |
| 51 | + margin-top: 4px; |
| 52 | + margin-bottom: 2px; |
| 53 | + height: 32px; |
| 54 | + background-color: #475569; |
| 55 | + color: white; |
| 56 | + font-family: Arial, sans-serif; |
| 57 | + font-size: 16px; |
| 58 | + font-weight: 500; |
| 59 | + font-style: normal; |
| 60 | + text-decoration: none; |
| 61 | + display: inline-flex; |
| 62 | + align-items: center; |
| 63 | + justify-content: center; |
| 64 | + padding: 0 10px; |
| 65 | + border: none; |
| 66 | + border-radius: 6px; |
| 67 | + cursor: pointer; |
| 68 | + transition: all 0.2s ease; |
| 69 | +} |
| 70 | + |
| 71 | +.button-mermaid-option2:hover { |
| 72 | + background-color: #334155; |
| 73 | + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); |
| 74 | +} |
| 75 | + |
| 76 | +.button-mermaid-option2:active { |
| 77 | + background-color: #1e293b; |
| 78 | +} |
| 79 | + |
| 80 | + |
| 81 | +/* ============================================ |
| 82 | + OPTION 3: Vibrant Teal |
| 83 | + ============================================ */ |
| 84 | +.button-mermaid-option3 { |
| 85 | + margin-top: 4px; |
| 86 | + margin-bottom: 2px; |
| 87 | + height: 32px; |
| 88 | + background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); |
| 89 | + color: white; |
| 90 | + font-family: Arial, sans-serif; |
| 91 | + font-size: 16px; |
| 92 | + font-weight: 500; |
| 93 | + font-style: normal; |
| 94 | + text-decoration: none; |
| 95 | + display: inline-flex; |
| 96 | + align-items: center; |
| 97 | + justify-content: center; |
| 98 | + padding: 0 10px; |
| 99 | + border: none; |
| 100 | + border-radius: 8px; |
| 101 | + cursor: pointer; |
| 102 | + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); |
| 103 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); |
| 104 | +} |
| 105 | + |
| 106 | +.button-mermaid-option3:hover { |
| 107 | + background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); |
| 108 | + box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); |
| 109 | + transform: translateY(-2px); |
| 110 | +} |
| 111 | + |
| 112 | +.button-mermaid-option3:active { |
| 113 | + transform: translateY(0); |
| 114 | +} |
| 115 | + |
| 116 | + |
| 117 | +/* ============================================ |
| 118 | + OPTION 4: Dark Modern with Border |
| 119 | + ============================================ */ |
| 120 | +.button-mermaid-option4 { |
| 121 | + margin-top: 4px; |
| 122 | + margin-bottom: 2px; |
| 123 | + height: 32px; |
| 124 | + background-color: #1f2937; |
| 125 | + color: #e5e7eb; |
| 126 | + font-family: Arial, sans-serif; |
| 127 | + font-size: 16px; |
| 128 | + font-weight: 500; |
| 129 | + font-style: normal; |
| 130 | + text-decoration: none; |
| 131 | + display: inline-flex; |
| 132 | + align-items: center; |
| 133 | + justify-content: center; |
| 134 | + padding: 0 10px; |
| 135 | + border: 1px solid #374151; |
| 136 | + border-radius: 6px; |
| 137 | + cursor: pointer; |
| 138 | + transition: all 0.2s ease; |
| 139 | +} |
| 140 | + |
| 141 | +.button-mermaid-option4:hover { |
| 142 | + background-color: #374151; |
| 143 | + border-color: #4b5563; |
| 144 | + color: white; |
| 145 | +} |
| 146 | + |
| 147 | +.button-mermaid-option4:active { |
| 148 | + background-color: #111827; |
| 149 | + border-color: #374151; |
| 150 | +} |
| 151 | + |
| 152 | + |
| 153 | +/* ============================================ |
| 154 | + BONUS: Apply to all button types |
| 155 | + ============================================ |
| 156 | + |
| 157 | + If you want to update ALL buttons (not just .button-mermaid), |
| 158 | + you can also update these classes with similar styles: |
| 159 | + |
| 160 | + - .fixed-menubar-btn |
| 161 | + - .menu-item |
| 162 | + - .button |
| 163 | + - .button-auto |
| 164 | + - .button-html |
| 165 | + - .button-format |
| 166 | + |
| 167 | + Example for fixed-menubar-btn using Option 1 style: |
| 168 | + ============================================ */ |
| 169 | + |
| 170 | +.fixed-menubar-btn-option1 { |
| 171 | + width: 188px; |
| 172 | + height: 35px; |
| 173 | + box-sizing: border-box; |
| 174 | + padding: 4px 4px; |
| 175 | + display: inline-flex; |
| 176 | + align-items: center; |
| 177 | + justify-content: center; |
| 178 | + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 179 | + color: white; |
| 180 | + border: none; |
| 181 | + border-radius: 6px; |
| 182 | + cursor: pointer; |
| 183 | + transition: all 0.3s ease; |
| 184 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 185 | + font-weight: 500; |
| 186 | +} |
| 187 | + |
| 188 | +.fixed-menubar-btn-option1:hover { |
| 189 | + background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); |
| 190 | + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| 191 | + transform: translateY(-1px); |
| 192 | +} |
| 193 | + |
| 194 | +.fixed-menubar-btn-option1:active { |
| 195 | + transform: translateY(0); |
| 196 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 197 | +} |
| 198 | + |
| 199 | +.fixed-menubar-btn-option1:disabled { |
| 200 | + opacity: 0.5; |
| 201 | + cursor: not-allowed; |
| 202 | + transform: none; |
| 203 | +} |
0 commit comments