-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
113 lines (101 loc) · 1.78 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
ul,ol{list-style: none;}
*{margin: 0;padding: 0;}
.icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
.icon:hover{
background:rgba(119, 119, 136,0.5);
}
#xxx {
display: block;
background: white;
position: fixed;
top: 0;
left: 0;
}
body {
margin: 0px;
overflow: hidden;/*禁止滚动条*/
}
.actions {
position: fixed;
left: 0px;
top: 0px;
padding: 20px;
}
.actions svg{
width: 1.5em;
height: 1.5em;
transition: all 0.3s;/*过渡:全部 0.3秒*/
margin: 0px 10px;
}
.actions svg.active{/*svg激活后加上红色*/
fill: red;
transform: scale(1.2);/*变化:比例(1.2倍)*/
}
.actions>#brush {
display: none;
}
.actions.x>#brush {
display: inline-block;
}
.actions.x>#eraser {
display: none;
}
.colors{
position: fixed;
top: 60px;
left: 28px;
}
.colors> li{
width: 20px;
height: 20px;
box-shadow: 0 0 3px rgba(0,0,0,0.25);
border-radius: 50%;
margin: 10px 0px;
transition: all 0.3s;/*最好给大类,给子类可能功能用不了*/
}
.colors>li.black{
background: black;
}
.colors> li.red{
background: red;
}
.colors> li.green{
background: green;
}
.colors> li.blue{
background: blue;
}
.colors> li.active{
box-shadow: 0 0 3px rgba(0,0,0,0.95);
transform: scale(1.2);
}
.sizes {
position:fixed;
right: 20px;
top: 10px;
}
.sizes > li{
margin: 20px 0px;
}
.sizes > .thin{
height: 10px;
width: 20px;
border-top: 3px solid black
}
.sizes> .thin:hover{
background:rgba(119, 119, 136,0.5);
}
.sizes > .thick{
height: 10px;
width: 20px;
border-top: 6px solid black
}
.sizes > .thick:hover{
background:rgba(119, 119, 136,0.5);
}