-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
124 lines (118 loc) · 2.25 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
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: inherit;
text-decoration: none;
}
html {
box-sizing: border-box;
}
@font-face {
font-family: "Roboto", sans-serif;
src: url(./fonts/Roboto-Regular.ttf);
}
.main {
height: 100vh;
width: 100%;
background-color: #ffd829;
display: flex;
justify-content: start;
align-items: center;
flex-direction: column;
}
.main__heading {
text-align: center;
margin-top: 4rem;
font-family: "Roboto";
font-size: 2rem;
text-transform: uppercase;
font-weight: 600;
}
@media only screen and (min-width: 400px) {
.main__heading {
font-size: 3rem;
}
}
@media only screen and (min-width: 650px) {
.main__heading {
font-size: 4rem;
margin-top: 5rem;
}
}
@media only screen and (min-width: 900px) {
.main__heading {
font-size: 5rem;
margin-top: 6rem;
}
}
@media only screen and (min-width: 1100px) {
.main__heading {
font-size: 7rem;
margin-top: 6rem;
}
}
.file {
margin-top: 2rem;
position: relative;
display: inline-block;
cursor: pointer;
height: 2.5rem;
}
.file input {
min-width: 14rem;
margin: 0;
filter: alpha(opacity=0);
opacity: 0;
}
.file-custom {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 5;
height: 2.5rem;
padding: 0.5rem 1rem;
line-height: 1.5;
color: #555;
background-color: #fff;
border: 0.075rem solid #ddd;
border-radius: 0.25rem;
box-shadow: inset 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.file-custom:after {
font-family: "Roboto";
content: "Choose file...";
}
.file-custom:before {
position: absolute;
top: -0.075rem;
right: -0.075rem;
bottom: -0.075rem;
z-index: 6;
display: block;
content: "Browse";
height: 2.5rem;
padding: 0.5rem 1rem;
line-height: 1.5;
color: #555;
background-color: #eee;
border: 0.075rem solid #ddd;
border-radius: 0 0.25rem 0.25rem 0;
}
.file input:focus ~ .file-custom {
box-shadow: 0 0 0 0.075rem #fff, 0 0 0 0.2rem #0074d9;
}
.main__canvas {
position: absolute;
}
canvas {
position: absolute;
top: 0;
left: 0;
}