Skip to content

Commit 0d7f5c4

Browse files
committed
.
1 parent d8da29d commit 0d7f5c4

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

demos/MediaQueries.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ const Base = styled(View)`
2929
/* You'd write this in production, but does show-case what you can do */
3030
const Orientation = styled(Base)`
3131
@media (orientation: landscape) {
32-
&:not([@portrait]) {
32+
&[@direction='landscape'] {
3333
--border: var(--active);
3434
}
3535
}
3636
3737
@media (orientation: portrait) {
38-
&[@portrait] {
38+
&[@direction='portrait'] {
3939
--border: var(--active);
4040
}
4141
}
@@ -85,10 +85,10 @@ export default () => (
8585
<View>
8686
<ExampleHeader>Orientation</ExampleHeader>
8787
<ExampleRow>
88-
<Orientation>
88+
<Orientation direction="landscape">
8989
<ExampleText>Landscape</ExampleText>
9090
</Orientation>
91-
<Orientation portrait>
91+
<Orientation direction="portrait">
9292
<ExampleText>Portrait</ExampleText>
9393
</Orientation>
9494
</ExampleRow>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@react-native-community/slider": "^2.0.0",
12-
"cssta": "../cssta-new/cssta-v0.9.0.tgz",
12+
"cssta": "0.9.0-alpha.2",
1313
"react": "16.8.6",
1414
"react-native": "0.60.5"
1515
},

yarn.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,7 @@ css-color-keywords@^1.0.0:
19491949
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
19501950
integrity sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=
19511951

1952-
css-to-react-native@^2.3.1:
1952+
css-to-react-native@^2.3.2:
19531953
version "2.3.2"
19541954
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.3.2.tgz#e75e2f8f7aa385b4c3611c52b074b70a002f2e7d"
19551955
integrity sha512-VOFaeZA053BqvvvqIA8c9n0+9vFppVBAHCp6JgFTtTMU3Mzi+XnelJ9XC9ul3BqFzZyQ5N+H0SnwsWT2Ebchxw==
@@ -1975,12 +1975,13 @@ cssstyle@^1.0.0:
19751975
dependencies:
19761976
cssom "0.3.x"
19771977

1978-
cssta@../cssta-new/cssta-v0.9.0.tgz:
1979-
version "0.9.0"
1980-
resolved "../cssta-new/cssta-v0.9.0.tgz#27862465967b924320d9e9447224f03685426628"
1978+
cssta@0.9.0-alpha.2:
1979+
version "0.9.0-alpha.2"
1980+
resolved "https://registry.yarnpkg.com/cssta/-/cssta-0.9.0-alpha.2.tgz#bdd6bb72a145c9c8ae669f45f1b7fd42112efca8"
1981+
integrity sha512-rL+RL0tQnKViu/NAlwiUBlUm3Tg+IetOJvyqe24YX1joHObBHJipdH7goI98Ug4VvF/yjor08vu5DURMucWasQ==
19811982
dependencies:
19821983
css-color-function "^1.3.3"
1983-
css-to-react-native "^2.3.1"
1984+
css-to-react-native "^2.3.2"
19841985
postcss "^7.0.17"
19851986
postcss-selector-parser "^6.0.2"
19861987

0 commit comments

Comments
 (0)