| 1 |
@use 'common/codemirror'; |
| 2 |
|
| 3 |
$sections: general, editor, debug, version-switch; |
| 4 |
|
| 5 |
p.submit { |
| 6 |
display: flex; |
| 7 |
justify-content: space-between; |
| 8 |
} |
| 9 |
|
| 10 |
.settings-section, |
| 11 |
p.submit { |
| 12 |
max-inline-size: 1020px; |
| 13 |
} |
| 14 |
|
| 15 |
.nav-tab-wrapper { |
| 16 |
margin-block-end: 1em; |
| 17 |
} |
| 18 |
|
| 19 |
input[type="number"]="number""] { |
| 20 |
inline-size: 4em; |
| 21 |
} |
| 22 |
|
| 23 |
.CodeMirror { |
| 24 |
max-inline-size: 800px; |
| 25 |
inline-size: 100%; |
| 26 |
padding-inline-end: 1em; |
| 27 |
} |
| 28 |
|
| 29 |
.CodeMirror-sizer::before { |
| 30 |
content: '<?php'; |
| 31 |
} |
| 32 |
|
| 33 |
body.no-js { |
| 34 |
.nav-tab-wrapper { |
| 35 |
display: none; |
| 36 |
} |
| 37 |
|
| 38 |
.settings-section { |
| 39 |
display: block !important; |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
body.js { |
| 44 |
.settings-section-title { |
| 45 |
border: 0; |
| 46 |
clip: rect(1px, 1px, 1px, 1px); |
| 47 |
clip-path: inset(50%); |
| 48 |
block-size: 1px; |
| 49 |
margin: -1px; |
| 50 |
overflow: hidden; |
| 51 |
padding: 0; |
| 52 |
position: absolute; |
| 53 |
inline-size: 1px; |
| 54 |
word-wrap: normal !important; |
| 55 |
} |
| 56 |
|
| 57 |
.nav-tab:not(.nav-tab-active) { |
| 58 |
cursor: pointer; |
| 59 |
} |
| 60 |
|
| 61 |
.settings-section { |
| 62 |
display: none; |
| 63 |
} |
| 64 |
|
| 65 |
@each $section in $sections { |
| 66 |
.wrap[data-active-tab=#{$section}]=#{$section}] .#{$section}-settings { |
| 67 |
display: block; |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
.license-status { |
| 73 |
display: inline-block; |
| 74 |
padding-inline-end: 2em; |
| 75 |
line-height: 2; |
| 76 |
color: #aaa; |
| 77 |
} |
| 78 |
|
| 79 |
.license-status-valid { |
| 80 |
color: #2ecc40; |
| 81 |
} |
| 82 |
|
| 83 |
.license-status-expired { |
| 84 |
color: #dc3232; |
| 85 |
} |
| 86 |
|
| 87 |
.wrap[data-active-tab="license"]="license""] .submit { |
| 88 |
display: none; |
| 89 |
} |
| 90 |
|
| 91 |
#code_snippets_remove_license { |
| 92 |
color: #b32d2e; |
| 93 |
border-color: #b32d2e; |
| 94 |
} |
| 95 |
|
| 96 |
#code_snippets_license_key { |
| 97 |
font-family: Consolas, Monaco, monospace; |
| 98 |
} |
| 99 |
|
| 100 |
#cloud_token { |
| 101 |
max-inline-size: 450px; |
| 102 |
inline-size: 90vw; |
| 103 |
} |
| 104 |
|
| 105 |
.cloud-message { |
| 106 |
inline-size: fit-content; |
| 107 |
padding: 5px; |
| 108 |
border-radius: 5px; |
| 109 |
font-weight: 600; |
| 110 |
} |
| 111 |
|
| 112 |
.cloud-error { |
| 113 |
background: #e53935; |
| 114 |
color: #ffebee; |
| 115 |
} |
| 116 |
|
| 117 |
.cloud-success { |
| 118 |
background: #43a047; |
| 119 |
color: #e8f5e9; |
| 120 |
} |
| 121 |
|
| 122 |
.refresh-success { |
| 123 |
background: #2271b1; |
| 124 |
color: #ffeb3b; |
| 125 |
} |
| 126 |
|
| 127 |
.cloud-settings tbody tr:nth-child(n+5) { |
| 128 |
display: none; |
| 129 |
} |
| 130 |
|
| 131 |
// Version Switch Styles |
| 132 |
.code-snippets-version-switch { |
| 133 |
.current-version { |
| 134 |
font-family: monospace; |
| 135 |
font-size: 1.1em; |
| 136 |
font-weight: bold; |
| 137 |
color: #0073aa; |
| 138 |
background: #f0f6fc; |
| 139 |
padding: 2px 8px; |
| 140 |
border-radius: 3px; |
| 141 |
border: 1px solid #c3c4c7; |
| 142 |
} |
| 143 |
|
| 144 |
#target_version { |
| 145 |
min-inline-size: 200px; |
| 146 |
margin-inline-start: 8px; |
| 147 |
} |
| 148 |
|
| 149 |
#switch-version-btn { |
| 150 |
&[disabled]] { |
| 151 |
opacity: 0.6; |
| 152 |
cursor: not-allowed; |
| 153 |
background-color: #f0f0f1 !important; |
| 154 |
color: #a7aaad !important; |
| 155 |
border-color: #dcdcde !important; |
| 156 |
} |
| 157 |
} |
| 158 |
|
| 159 |
// Warning box styling |
| 160 |
#version-switch-warning { |
| 161 |
margin-block-start: 20px !important; |
| 162 |
padding: 12px 16px; |
| 163 |
border-inline-start: 4px solid #dba617; |
| 164 |
background: #fff8e5; |
| 165 |
border-radius: 4px; |
| 166 |
|
| 167 |
p { |
| 168 |
margin: 0; |
| 169 |
color: #8f6914; |
| 170 |
|
| 171 |
strong { |
| 172 |
color: #8f6914; |
| 173 |
} |
| 174 |
} |
| 175 |
} |
| 176 |
|
| 177 |
#version-switch-result { |
| 178 |
margin-block-start: 12px; |
| 179 |
|
| 180 |
&.notice { |
| 181 |
padding: 8px 12px; |
| 182 |
border-radius: 4px; |
| 183 |
} |
| 184 |
} |
| 185 |
|
| 186 |
.notice { |
| 187 |
&.notice { |
| 188 |
&-success { |
| 189 |
border-inline-start-color: #00a32a; |
| 190 |
} |
| 191 |
|
| 192 |
&-error { |
| 193 |
border-inline-start-color: #d63638; |
| 194 |
} |
| 195 |
|
| 196 |
&-warning { |
| 197 |
border-inline-start-color: #dba617; |
| 198 |
} |
| 199 |
|
| 200 |
&-info { |
| 201 |
border-inline-start-color: #72aee6; |
| 202 |
} |
| 203 |
} |
| 204 |
} |
| 205 |
} |
| 206 |
|
| 207 |
.version-switch-settings { |
| 208 |
.form-table { |
| 209 |
th { |
| 210 |
inline-size: 180px; |
| 211 |
} |
| 212 |
} |
| 213 |
} |
| 214 |
|