|
| 1 | +.playgroundHeader { |
| 2 | + letter-spacing: 0.08rem; |
| 3 | + padding: 0.75rem; |
| 4 | + text-transform: uppercase; |
| 5 | + font-weight: bold; |
| 6 | +} |
| 7 | + |
| 8 | +.playgroundEditorHeader { |
| 9 | + background: var(--ifm-color-emphasis-600); |
| 10 | + color: var(--ifm-color-content-inverse); |
| 11 | +} |
| 12 | + |
| 13 | +.playgroundEditor { |
| 14 | + padding: 1rem; |
| 15 | + outline: none; |
| 16 | + padding-top: 2rem; |
| 17 | + font: var(--ifm-code-font-size) / var(--ifm-pre-line-height) |
| 18 | + var(--ifm-font-family-monospace); |
| 19 | + max-height: var(--docusaurus-jarle-editor-max-height, 400px); |
| 20 | + overflow-y: auto; |
| 21 | +} |
| 22 | + |
| 23 | +.playgroundButton { |
| 24 | + padding: 0.5rem 1rem; |
| 25 | + border: none; |
| 26 | + box-shadow: none; |
| 27 | + background: none; |
| 28 | + font-size: 90%; |
| 29 | + float: right; |
| 30 | + color: var(--ifm-color-primary); |
| 31 | + font-family: var(--ifm-font-family-monospace); |
| 32 | +} |
| 33 | + |
| 34 | +.playgroundButton:hover { |
| 35 | + color: var(--ifm-color-primary-dark); |
| 36 | +} |
| 37 | + |
| 38 | +.playgroundButton:before { |
| 39 | + content: '<'; |
| 40 | +} |
| 41 | + |
| 42 | +.playgroundButton:after { |
| 43 | + content: '/>'; |
| 44 | +} |
| 45 | + |
| 46 | +.playgroundEditor::after { |
| 47 | + content: 'editable'; |
| 48 | + |
| 49 | + top: 0.2rem; |
| 50 | + left: 0; |
| 51 | + position: absolute; |
| 52 | + pointer-events: none; |
| 53 | + letter-spacing: 0.08rem; |
| 54 | + font-size: 90%; |
| 55 | + padding: 0 0.75rem; |
| 56 | + text-transform: uppercase; |
| 57 | + font-weight: bold; |
| 58 | +} |
| 59 | +.playground > *:first-child { |
| 60 | + border-top-left-radius: var(--ifm-global-radius); |
| 61 | + border-top-right-radius: var(--ifm-global-radius); |
| 62 | +} |
| 63 | + |
| 64 | +.playground > *:last-child { |
| 65 | + border-bottom-left-radius: var(--ifm-global-radius); |
| 66 | + border-bottom-right-radius: var(--ifm-global-radius); |
| 67 | +} |
| 68 | + |
| 69 | +.playgroundPreview { |
| 70 | + position: relative; |
| 71 | + |
| 72 | + border: 1px solid var(--ifm-color-emphasis-200); |
| 73 | + position: relative; |
| 74 | + padding: 1rem; |
| 75 | + padding-top: 2rem; |
| 76 | +} |
| 77 | + |
| 78 | +.infoMessage { |
| 79 | + font-size: 70%; |
| 80 | + margin-top: 0.5rem; |
| 81 | + margin-right: 0.5rem; |
| 82 | +} |
| 83 | + |
| 84 | +.error { |
| 85 | + all: unset; |
| 86 | + font-size: 85% !important; |
| 87 | + font-family: var(--ifm-font-family-monospace); |
| 88 | + color: var(--ifm-color-danger-dark); |
| 89 | +} |
| 90 | + |
| 91 | +.inline { |
| 92 | + display: grid; |
| 93 | + grid-template-columns: 2fr 1.5fr; |
| 94 | +} |
| 95 | + |
| 96 | +.inline > * { |
| 97 | + display: flex; |
| 98 | + flex-direction: column; |
| 99 | +} |
| 100 | + |
| 101 | +.inline > *:first-child { |
| 102 | + height: 100%; |
| 103 | + border-top-right-radius: 0; |
| 104 | + border-bottom-left-radius: var(--ifm-global-radius); |
| 105 | +} |
| 106 | + |
| 107 | +.inline > *:last-child { |
| 108 | + height: 100%; |
| 109 | + |
| 110 | + border-bottom-left-radius: 0; |
| 111 | + border-bottom-right-radius: var(--ifm-global-radius); |
| 112 | +} |
0 commit comments