-
Notifications
You must be signed in to change notification settings - Fork 0
/
styling.css
113 lines (113 loc) · 2.5 KB
/
styling.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
/*styling.css*/
/*center all elements and add background image*/
body{
text-align: center;
background: url(images/paintbg.jpg) center center
fixed;
background-size: cover;
}
/*title*/
#header{
background: linear-gradient(white,
rgba(67,169,228,0.9));
background: -webkit-linear-gradient(white,
rgba(67,169,228,0.9));
background: -moz-linear-gradient(white,
rgba(67,169,228,0.9));
background: -o-linear-gradient(white,
rgba(67,169,228,0.9));
background: -ms-linear-gradient(white,
rgba(67,169,228,0.9));
height: 80px;
width: 500px;
margin: 10px auto;
font-size: 3em;
color: #fff;
line-height: 80px;
}
/*inputs container*/
.inputContainer{
width: 200px;
margin: 0 auto;
}
/*color input, line thickness, slider*/
.input{
height: 30px;
font-size: 1.3em;
}
#slider{
margin: 10px auto;
}
#circle{
height: 3px;
width: 3px;
border-radius: 50%;
background: black;
margin: 0 auto;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
-moz-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
-o-transform: translate(-50%,-50%);
}
#thicknessInput{
position: relative;
}
/*canvas container*/
#container{
width: 500px;
height: 400px;
border: 1px solid rgba(122,174,229,0.5);
margin: 10px auto;
}
#paint{
background-color: #fff;
cursor: crosshair;
}
/*inputs container*/
.inputContainer2{
width: 399px;
margin: 0 auto;
}
/*erase.save and reset buttons*/
.input2{
width: 133px;
color: #5BB4E7;
font-size: 1.3em;
float: left;
}
.button{
background: #fff;
height: 50px;
padding: 10px;
border-radius: 3px;
font-weight: bold;
cursor: pointer;
box-shadow: 0px 4px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 4px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 4px rgba(0,0,0,0.2);
position: relative;
}
.button:hover{
color: white;
background: linear-gradient(white,
rgba(67,169,228,0.9));
background: -webkit-linear-gradient(white,
rgba(67,169,228,0.9));
background: -moz-linear-gradient(white,
rgba(67,169,228,0.9));
background: -o-linear-gradient(white,
rgba(67,169,228,0.9));
background: -ms-linear-gradient(white,
rgba(67,169,228,0.9));
}
.button:active{
top: 4px;
}
.eraseMode{
background-color: red;
color: white;
}