| 1 |
@import 'common/editor'; |
| 2 |
|
| 3 |
$sections: general, editor, debug; |
| 4 |
|
| 5 |
p.submit { |
| 6 |
display: flex; |
| 7 |
justify-content: space-between; |
| 8 |
} |
| 9 |
|
| 10 |
.settings-section, |
| 11 |
p.submit { |
| 12 |
max-width: 1020px; |
| 13 |
} |
| 14 |
|
| 15 |
.nav-tab-wrapper { |
| 16 |
margin-bottom: 1em; |
| 17 |
} |
| 18 |
|
| 19 |
input[type=number]=number] { |
| 20 |
width: 4em; |
| 21 |
} |
| 22 |
|
| 23 |
.CodeMirror { |
| 24 |
max-width: 800px; |
| 25 |
width: 100%; |
| 26 |
padding-right: 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 |
|
| 45 |
.settings-section-title { |
| 46 |
border: 0; |
| 47 |
clip: rect(1px, 1px, 1px, 1px); |
| 48 |
clip-path: inset(50%); |
| 49 |
height: 1px; |
| 50 |
margin: -1px; |
| 51 |
overflow: hidden; |
| 52 |
padding: 0; |
| 53 |
position: absolute; |
| 54 |
width: 1px; |
| 55 |
word-wrap: normal !important; |
| 56 |
} |
| 57 |
|
| 58 |
.nav-tab:not(.nav-tab-active) { |
| 59 |
cursor: pointer; |
| 60 |
} |
| 61 |
|
| 62 |
.settings-section { |
| 63 |
display: none; |
| 64 |
} |
| 65 |
|
| 66 |
@each $section in $sections { |
| 67 |
.wrap[data-active-tab=#{$section}]=#{$section}] .#{$section}-settings { |
| 68 |
display: block; |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
|