forked from uber/react-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.scss
125 lines (107 loc) · 1.86 KB
/
main.scss
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@import url(https://fonts.googleapis.com/css?family=Sintony:400,700);
@import "../main";
body {
margin: 0;
padding: 0;
font-family: Sintony, Helvetica, sans-serif;
font-size: 14px;
}
h1, h2, h3, h4, h5 {
font-weight: normal;
}
h1 {
font-size: 36px;
margin: 20px 0;
}
h2 {
font-size: 24px;
margin: 15px 0;
}
header {
background: #333;
color: #fff;
font-size: 30px;
text-align: center;
line-height: 40px;
}
article {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: flex-start;
margin: 20px auto;
padding: 0 20px;
min-width: 650px;
max-width: 1200px;
h1, h2 {
flex: 1 100%;
}
section {
width: 400px;
flex-basis: 400px;
flex-grow: 1;
}
}
.click-me {
border: 0;
background: #EF5D28;
color: #fff;
cursor: pointer;
font-family: Sintony, Helvetica, sans-serif;
font-size: 14px;
outline: none;
padding: 11px 20px;
text-transform: uppercase;
&:hover {
background: #FF9833;
}
animation: shake 5s 1s cubic-bezier(.36,.07,.19,.97) both infinite;
transform: translate3d(0, 0, 0);
}
@keyframes shake {
1%, 9% {
transform: translate3d(-1px, 0, 0);
}
2%, 8% {
transform: translate3d(2px, 0, 0);
}
3%, 5%, 7% {
transform: translate3d(-4px, 0, 0);
}
4%, 6% {
transform: translate3d(4px, 0, 0);
}
}
.example-with-click-me {
text-align: center;
&:hover {
.click-me {
animation: none;
}
}
}
.custom-table-cell {
padding: 0 4px;
}
.custom-hint {
background: #F9E7BB;
border-radius: 3px;
border: 1px solid #EDAF00;
padding: 10px;
color: #333;
font-size: 10px;
position: relative;
margin: 12px 0 0 -10px;
&:after {
border-radius: 5px;
border: 2px solid #EDAF00;
background: #fff;
display: block;
content: ' ';
height: 6px;
width: 6px;
top: -17px;
left: 5px;
position: absolute;
}
}