-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
76 lines (68 loc) · 1.39 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
/* color element css */
* { margin:0; padding:0; }
.window{
background-color: #919378;
width:100vh;
height:100vh;
}
.container {
width:70%
}
.colorBuilder{
padding:10px 0;
}
.hex{
background-color: rgb(247, 234, 234) ;
opacity:0.5;
width:100%;
height:140px;
font-size: 100px;
font-weight: bolder;
text-align: center;
line-height: 140px;
}
.colorTitle{
width: 70px;
height: 70px;
line-height: 70px;
font-size: 60px;
font-weight: bolder;
text-align: center;
margin-right:10px;
}
.colorValue{
width: 140px;
height: 70px;
line-height: 70px;
font-size: 60px;
font-weight: bolder;
text-align: center;
margin-left:10px;
}
.R{
background-color: red;
}
.G{
background-color: rgb(102, 245, 102);
}
.B{
background-color: blue;
}
/* slide bar css */
input[type="range"]{
-webkit-appearance: none;
/* overflow:hidden; 限定範圍 */
width:300px;
height:10px;
outline : none; /* 避免點選會有藍線或虛線 */
background: rgb(212, 205, 205);
}
input[type="range"]::-webkit-slider-thumb{
-webkit-appearance: none;
position: relative; /* 設為相對位置,為了前後區塊的絕對位置而設定 */
width:30px;
height:30px;
background:rgb(180, 156, 156);
border-radius:50%;
transition:.2s; /* 點選放大時候的漸變時間 */
}