-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (96 loc) · 2.19 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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start; /* 修改为 flex-start 以确保内容从顶部开始排列 */
height: 100vh;
background-color: #f0f0f0;
}
.container {
width: 80%;
max-width: 1400px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
box-sizing: border-box;
position: relative;
margin-top: 20px; /* 添加顶部外边距,确保内容不会遮挡标题 */
}
h1 {
text-align: center;
margin: 0; /* 移除默认的外边距 */
padding: 20px 0; /* 添加内边距以确保标题有足够的空间 */
}
#stats {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.stat-item {
margin: 10px;
}
#inputContainer, #typingArea {
margin-top: 20px;
}
.text-area {
width: 100%;
height: 300px; /* 设置高度以显示完整内容 */
padding: 10px;
box-sizing: border-box;
font-size: 16px;
}
#inputText {
border: 2px solid #add8e6; /* 浅蓝色框 */
}
#typingArea {
margin-top: 20px; /* 输入框最上方距粘贴框最下方20个像素 */
}
.flat-button {
display: inline-block;
width: 100px; /* 按钮宽度设置为100像素 */
padding: 10px;
margin-top: 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
text-align: center;
}
.flat-button:hover {
background-color: #0056b3;
}
#buttonContainer, #controlButtons {
display: flex;
justify-content: center;
gap: 20px; /* 按钮之间的间距 */
margin-top: 20px;
}
#statsTableContainer {
max-height: 150px;
overflow-y: auto;
margin-top: 20px;
position: relative;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
}
th {
background-color: #f2f2f2;
position: sticky;
top: 0;
z-index: 1;
}
.highlight {
background-color: #add8e6; /* 浅蓝色 */
}
.error {
background-color: #ffcccb; /* 浅红色 */
}