forked from veltman/ca-license-plates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (105 loc) · 1.86 KB
/
style.css
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
126
127
128
@font-face {
font-family: plateFont;
src: url(plateFont.ttf);
}
body{
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
#outer{
position: relative;
display: block;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#content{
position: relative;
text-align: center;
margin-left: 10vw;
margin-right: 10vw;
}
button{
font-size: 20px;
border-radius: 0;
border-width: 2px;
border-style: solid;
padding-left: 5vw;
padding-right: 5vw;
padding-top: 5vh;
padding-bottom: 5vh;
margin: 5px;
border-color: grey;
}
#customerMeaning{
font-size: 20px;
}
#plate_container{
position: relative;
width: 100vw;
height: auto;
display: block;
margin: auto
}
#plate{
position: absolute;
top: 60%;
left: 50%;
width: 100%;
transform: translate(-50%, -50%);
z-index: 2;
font-size: 15vw;
font-family: "plateFont";
}
@media screen and (min-aspect-ratio: 1/1) {
#plate {
font-size: 15vh;
}
#plate_container{
width: 100vh;
}
}
#plateImg{
width: 100%;
height: auto;
display: block;
margin: 0 auto;
z-index: -1;
}
#score{
position: fixed;
padding: 10px;
font-size: 20px;
text-align: left;
top: 0;
z-index: 10;
}
#about{
position: fixed;
padding: 10px;
font-size: 15px;
top: 0;
right: 0;
left: auto;
z-index: 20;
}
#aboutContent{
position: fixed;
left: 10vw;
right: 10vw;
border-radius: 5px;
padding: 5px;
background-color: white;
border-width: 2px;
border-style: solid;
border-color: grey;
opacity: 1;
transform: translate(0, 0);
transition: transform .2s, all .2s;
}
#aboutContent.hiddenAbout{
opacity: 0;
transform: translate(0, -50px);
visibility: hidden;
}