@@ -94,7 +94,7 @@ code-input textarea, code-input pre {
9494
9595/* Move the textarea in front of the result */
9696
97- code-input textarea : not ([code-input-fallback ]) {
97+ code-input textarea : not ([data- code-input-fallback ]) {
9898 z-index : 1 ;
9999}
100100code-input pre {
@@ -103,7 +103,7 @@ code-input pre {
103103
104104/* Make textarea almost completely transparent, except for caret and placeholder */
105105
106- code-input textarea : not ([code-input-fallback ]) {
106+ code-input textarea : not ([data- code-input-fallback ]) {
107107 color : transparent;
108108 background : transparent;
109109 caret-color : inherit!important ; /* Or choose your favourite color */
@@ -161,7 +161,7 @@ code-input:not(.code-input_registered) textarea {
161161 min-height : calc (100% - var (--padding , 16px ) * 2 - 2em );
162162}
163163
164- code-input : not (.code-input_loaded ) pre , code-input : not (.code-input_loaded ) textarea : not ([code-input-fallback ]) {
164+ code-input : not (.code-input_loaded ) pre , code-input : not (.code-input_loaded ) textarea : not ([data- code-input-fallback ]) {
165165 opacity : 0 ;
166166}
167167
@@ -218,26 +218,26 @@ code-input:has(pre[dir=rtl]) .code-input_dialog-container .code-input_keyboard-n
218218 right : 0 ;
219219}
220220
221- code-input : not (: has (textarea : not ([code-input-fallback ]): focus )) .code-input_dialog-container .code-input_keyboard-navigation-instructions ,
221+ code-input : not (: has (textarea : not ([data- code-input-fallback ]): focus )) .code-input_dialog-container .code-input_keyboard-navigation-instructions ,
222222code-input .code-input_mouse-focused .code-input_dialog-container .code-input_keyboard-navigation-instructions ,
223223code-input .code-input_dialog-container .code-input_keyboard-navigation-instructions : empty {
224224 /* When not keyboard-focused / no instructions don't show instructions */
225225 display : none;
226226}
227227
228228/* Things with padding when instructions are present */
229- code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([code-input-fallback ]): focus ): not (.code-input_mouse-focused ) textarea ,
230- code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([code-input-fallback ]): focus ): not (.code-input_mouse-focused ): not (.code-input_pre-element-styled ) pre code ,
231- code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([code-input-fallback ]): focus ): not (.code-input_mouse-focused ).code-input_pre-element-styled pre {
229+ code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([data- code-input-fallback ]): focus ): not (.code-input_mouse-focused ) textarea ,
230+ code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([data- code-input-fallback ]): focus ): not (.code-input_mouse-focused ): not (.code-input_pre-element-styled ) pre code ,
231+ code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([data- code-input-fallback ]): focus ): not (.code-input_mouse-focused ).code-input_pre-element-styled pre {
232232 padding-top : calc (var (--padding , 16px ) + 3em )!important ;
233233}
234- code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([code-input-fallback ]): focus ): not (.code-input_mouse-focused ) textarea , code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([code-input-fallback ]): focus ): not (.code-input_mouse-focused ): not (.code-input_pre-element-styled ) pre code , code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([code-input-fallback ]): focus ): not (.code-input_mouse-focused ).code-input_pre-element-styled pre {
234+ code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([data- code-input-fallback ]): focus ): not (.code-input_mouse-focused ) textarea , code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([data- code-input-fallback ]): focus ): not (.code-input_mouse-focused ): not (.code-input_pre-element-styled ) pre code , code-input : not (: has (.code-input_keyboard-navigation-instructions : empty )): has (textarea : not ([data- code-input-fallback ]): focus ): not (.code-input_mouse-focused ).code-input_pre-element-styled pre {
235235 min-height : calc (100% - var (--padding , 16px ) * 2 - 3em );
236236}
237237
238238/* No JavaScript fallback - styles to override all previous */
239239
240- code-input textarea [code-input-fallback ] {
240+ code-input textarea [data- code-input-fallback ] {
241241 overflow : auto;
242242 background-color : inherit;
243243 color : inherit;
0 commit comments