summaryrefslogtreecommitdiff
path: root/style.css
blob: 01a0e3bb27c9368c020afa3be30670ddc089aa8a (plain)
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
body {
    text-align: center;
    font-family: sans-serif;
}

#content
{
    max-width: 300px;
    margin: auto;
}

#pinyin-input
{
    border: solid 2px #2af;
}

#current-character
{
    margin-top: 0;
    margin-bottom: 0;
    font-size: 200px;
}

@-webkit-keyframes shake
{
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(10px); }
    50% { transform: translateX(-10px); }
}

@keyframes shake
{
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(10px); }
    50% { transform: translateX(-10px); }
}


.shake
{
    animation-name: shake;
    animation-duration: 0.3s;
    animation-iteration-count: 1;
}

.unselectable
{
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.StyleButton
{
    padding: 10px;
    border-radius: 8px;
    border-style: solid;
    border-width: 2px;
    display: inline-block;
}


.StyleButtonEnabled
{
    border-color: #2af;
}

.StyleButtonEnabled:hover
{
    background-color: #eee;
}


.StyleButtonDisabled
{
    color: #444;
    border-color: #444;
}