Skip to content

Commit 408a85f

Browse files
committed
[prefix-plugin] Update the demo page for the latest features
1 parent fda65ed commit 408a85f

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

plugins/prefix-browser/tests/index.html

+14-9
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,18 @@ <h1>j2c-plugin-prefix-browser in action in your browser</h1>
318318
// The code runs live, feel free to edit it!
319319
j2c.sheet({'@global':{
320320
'.download': {
321+
animation: 'rotate',
322+
backgroundClip: 'text',
321323
backgroundImage: 'linear-gradient(5deg, red, rgba(125,0,0,.3))',
322-
color: 'white',
323-
textDecoration: 'initial',
324-
textShadow: '.08em .08em .2em rgba(calc(2 * 2),0,0,.6)',
325324
borderRadius: '50%',
326325
boxShadow: '.1em .2em .4em -.2em black',
327326
boxSizing: 'border-box',
328-
transform: 'rotate(15deg)',
329-
animation: 'rotate',
330-
cursor: 'zoom-in'
327+
color: 'white',
328+
cursor: 'zoom-in',
329+
display: 'grid',
330+
textDecoration: 'initial',
331+
textShadow: '.08em .08em .2em rgba(calc(2 * 2),0,0,.6)',
332+
transform: 'rotate(15deg)'
331333
},
332334
'@keyframes rotate': {
333335
'from': {
@@ -339,18 +341,21 @@ <h1>j2c-plugin-prefix-browser in action in your browser</h1>
339341
},
340342
'@supports (display:flex)':{
341343
':read-write ::placeholder': {
342-
userSelect: 'none',
343344
appearance: 'none',
345+
backgroundClip: 'border-box',
344346
display: 'flex',
345347
flex: '1 1',
346-
flexFlow: 'column-reverse wrap'
348+
flexFlow: 'column-reverse wrap',
349+
textFillColor: 'transparent',
350+
userSelect: 'none'
347351
},
348352
},
349353
'@media (min-resolution:2dppx)' : {
350354
'header': {
351355
backgroundImage: 'url(hires.jpg)'
352356
}
353-
}
357+
},
358+
'@viewport': {}
354359
}})</textarea>
355360
<textarea id="sheetArea"></textarea>
356361
<script>

0 commit comments

Comments
 (0)