1const rotate = keyframes``
2
3// ❌ This will throw an error!
4const styles = `
5 animation: ${rotate} 2s linear infinite;
6`
7
8// ✅ This will work as intended
9const styles = css`
10 animation: ${rotate} 2s linear infinite;
11`const rotate = keyframes``
12// ❌ This will throw an error!const styles = ` animation: ${rotate} 2s linear infinite;`
13// ✅ This will work as intendedconst styles = css` animation: ${rotate} 2s linear infinite;`
14/**
15 * Reset the text fill color so that placeholder is visible
16 */
17.npm__react-simple-code-editor__textarea:empty {
18 -webkit-text-fill-color: inherit !important;
19}
20
21/**
22 * Hack to apply on some CSS on IE10 and IE11
23 */
24@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
25 /**
26 * IE doesn't support '-webkit-text-fill-color'
27 * So we use 'color: transparent' to make the text transparent on IE
28 * Unlike other browsers, it doesn't affect caret color in IE
29 */
30 .npm__react-simple-code-editor__textarea {
31 color: transparent !important;
32 }
33
34 .npm__react-simple-code-editor__textarea::selection {
35 background-color: #accef7 !important;
36 color: transparent !important;
37 }
38}
39
1const RotatedBox = styled.View`
2 transform: rotate(90deg);
3 text-shadow-offset: 10px 5px;
4 font-variant: small-caps;
5 margin: 5px 7px 2px;
6`const RotatedBox = styled.View` transform: rotate(90deg); text-shadow-offset: 10px 5px; font-variant: small-caps; margin: 5px 7px 2px;`
7/**
8 * Reset the text fill color so that placeholder is visible
9 */
10.npm__react-simple-code-editor__textarea:empty {
11 -webkit-text-fill-color: inherit !important;
12}
13
14/**
15 * Hack to apply on some CSS on IE10 and IE11
16 */
17@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
18 /**
19 * IE doesn't support '-webkit-text-fill-color'
20 * So we use 'color: transparent' to make the text transparent on IE
21 * Unlike other browsers, it doesn't affect caret color in IE
22 */
23 .npm__react-simple-code-editor__textarea {
24 color: transparent !important;
25 }
26
27 .npm__react-simple-code-editor__textarea::selection {
28 background-color: #accef7 !important;
29 color: transparent !important;
30 }
31}
32