Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
142 lines (121 loc) · 2.67 KB
/
Copy pathstyle.css
File metadata and controls
142 lines (121 loc) · 2.67 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* 作者:deepseek V3 chat, qwen2.5-coder */
/*设置页面背景为黑色*/
body {
background-color: #efefef;
}
/* 限制内容宽度 */
.container {
width: 400px;
margin: 0 auto;
padding: 20px;
background-color: #ffffff;
border: 1px solid #1e1e1e;
border-radius: 10px;
}
/* 居中 */
h1,
h2 {
display: block;
margin: 0 auto;
text-align: center;
}
/* 居中 */
.parent-container {
display: flex;
justify-content: center;
}
#slider {
width: 85%;
}
/* 进度点的样式定义,包括大小、形状和颜色。 */
.dot {
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid #000;
border-radius: 50%;
background-color: #efefef;
margin: 5px;
transition: background-color 0.3s;
}
/* 当进度点被激活时,改变其颜色。 */
.dot.active {
background-color: #1e1e1e;
}
/* Binary Square Progress Bar Styles */
#binary-square-progress {
width: 200px;
height: 200px;
position: relative;
border: 2px solid #000;
margin: 20px 0;
}
/********************************/
/* 分型方块基座 */
.binary-square {
position: absolute;
background-color: #efefef;
border: 2px solid #000;
transition: background-color 0.3s;
}
/** 下面是每个分型方块的位置定义,每个方块代表一个二进制位的激活状态。 */
/* Bit 7: 50% of the square (top half) */
#bit7-square {
width: 50%;
height: 100%;
top: 0;
left: 0;
}
/* Bit 6: 25% of the square (top-right quarter) */
#bit6-square {
width: 50%;
height: 50%;
top: 0;
left: 50%;
}
/* Bit 5: 12.5% of the square (bottom-left eighth) */
#bit5-square {
width: 25%;
height: 50%;
top: 50%;
left: 50%;
}
/* Bit 4: 6.25% of the square (bottom-left sixteenth) */
#bit4-square {
width: 25%;
height: 25%;
top: 50%;
left: 75%;
}
/* Bit 3: 3.125% of the square (bottom-middle sixteenth) */
#bit3-square {
width: 12.5%;
height: 25%;
top: 75%;
left: 75%;
}
/* Bit 2: 1.5625% of the square (bottom-middle thirty-second) */
#bit2-square {
width: 12.5%;
height: 12.5%;
top: 75%;
left: 87.5%;
}
/* Bit 1: 0.78125% of the square (bottom-right thirty-second) */
#bit1-square {
width: 6.25%;
height: 12.5%;
top: 87.5%;
left: 87.5%;
}
/* Bit 0: 0.390625% of the square (bottom-right sixty-fourth) */
#bit0-square {
width: 6.25%;
height: 12.5%;
top: 87.5%;
left: 93.75%;
}
/* Active state for binary squares */
.binary-square.active {
background-color: #1e1e1e;
}