-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst.css
134 lines (111 loc) · 1.78 KB
/
first.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
body {
font-family: 'Arial', sans-serif;
transition: background-color 0.5s ease;
}
/* func */
.funcs {
text-align: center;
}
/* main - 1 */
#home {
text-align: center;
padding: 50px 20px;
background-color: #f4f4f4;
}
#home h1 {
color: #333;
}
#home img {
max-width: 100%;
height: auto;
margin: 20px 0;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#home p {
color: #666;
line-height: 1.6;
}
/* other main */
.containers {
max-width: 1000px;
margin: 50px auto;
text-align: center;
}
canvas {
margin-top: 20px;
}
h1,
h2,
p {
text-align: center;
margin-bottom: 15px;
}
.section {
display: block;
}
#chart-containers {
margin-top: 20px;
}
label {
display: block;
margin-top: 10px;
}
rect {
fill: red;
}
#result {
font-size: 18px;
margin-top: 20px;
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd;
}
.driving {
background-color: #4caf50;
color: #fff;
}
.regenerative {
background-color: #3498db;
color: #fff;
}
.stopped {
background-color: #e74c3c;
color: #fff;
}
#motorControl {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#torqueInput {
width: calc(100% - 20px);
padding: 10px;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 4px;
}
button {
background-color: #4caf50;
color: white;
padding: 10px;
border: none;
cursor: pointer;
border-radius: 4px;
}
button:hover {
background-color: #45a049;
}
.icon {
display: inline-block;
margin-right: 5px;
}
.icon-error {
color: #e74c3c;
}
.icon-success {
color: #4caf50;
}