-
Notifications
You must be signed in to change notification settings - Fork 284
/
Copy pathstyles.js
47 lines (45 loc) · 1.24 KB
/
styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { css } from "@thi.ng/hiccup-css/css";
import { at_media } from "@thi.ng/hiccup-css/media";
import { injectStyleSheet } from "@thi.ng/hiccup-css/inject";
import { px } from "@thi.ng/hiccup-css/units";
injectStyleSheet(
css(
[
[".container",
{
"text-align": "center"
}],
[".button",
{
"background-color": "#ff0000",
width: px(320),
padding: px(20),
"border-radius": px(5),
border: "none",
outline: "none",
},
[":hover",
{
color: "#fff",
}],
[":active",
{
position: "relative",
top: px(2),
}]],
at_media(
{ screen: true, "max-width": px(640) },
[
".button", {
width: px(160)
}
]
)
],
{ scope: "_foo" }
)
);
export default {
button: "button_foo",
container: "container_foo",
};