Spaces:
Running

ebubar commited on
Commit
1d22e2d
·
verified ·
1 Parent(s): 492d0a3

Update teleop/static/style.css

Browse files
Files changed (1) hide show
  1. teleop/static/style.css +91 -16
teleop/static/style.css CHANGED
@@ -1,25 +1,100 @@
 
 
 
 
 
 
 
 
 
1
  body {
2
- font-family: sans-serif;
3
- margin: 24px;
 
 
 
 
 
4
  }
5
 
6
- #sound-btn {
7
- padding: 10px 20px;
8
- border: none;
9
- color: white;
10
- cursor: pointer;
11
- font-size: 16px;
12
- border-radius: 6px;
13
- background-color: #3498db;
14
  }
15
 
16
- #status {
17
- margin-top: 16px;
18
- font-weight: bold;
 
 
19
  }
20
 
21
- #controls {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  display: flex;
23
  align-items: center;
24
- gap: 20px;
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root {
2
+ --bg: #121212;
3
+ --card: #1e1e1e;
4
+ --primary: #4f46e5; /* Indigo */
5
+ --accent: #00d4ff; /* Cyan */
6
+ --danger: #ff4646;
7
+ --text: #ffffff;
8
+ }
9
+
10
  body {
11
+ background-color: var(--bg);
12
+ color: var(--text);
13
+ font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
14
+ margin: 0;
15
+ padding: 20px;
16
+ display: flex;
17
+ justify-content: center;
18
  }
19
 
20
+ .container {
21
+ width: 100%;
22
+ max-width: 400px;
 
 
 
 
 
23
  }
24
 
25
+ header {
26
+ display: flex;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ margin-bottom: 20px;
30
  }
31
 
32
+ h1 { font-size: 1.2rem; margin: 0; letter-spacing: 1px; }
33
+
34
+ .card {
35
+ background: var(--card);
36
+ border-radius: 12px;
37
+ padding: 20px;
38
+ margin-bottom: 15px;
39
+ border: 1px solid #333;
40
+ box-shadow: 0 4px 6px rgba(0,0,0,0.3);
41
+ }
42
+
43
+ h2 { font-size: 0.9rem; text-transform: uppercase; color: #888; margin-top: 0; }
44
+
45
+ /* TOGGLE SWITCH */
46
+ .toggle-container {
47
  display: flex;
48
  align-items: center;
49
+ justify-content: space-between;
50
+ font-weight: bold;
51
+ }
52
+ .switch {
53
+ position: relative;
54
+ display: inline-block;
55
+ width: 50px;
56
+ height: 26px;
57
+ margin: 0 10px;
58
+ }
59
+ .switch input { opacity: 0; width: 0; height: 0; }
60
+ .slider {
61
+ position: absolute;
62
+ cursor: pointer;
63
+ top: 0; left: 0; right: 0; bottom: 0;
64
+ background-color: #333;
65
+ transition: .4s;
66
+ border-radius: 34px;
67
+ }
68
+ .slider:before {
69
+ position: absolute;
70
+ content: "";
71
+ height: 18px; width: 18px;
72
+ left: 4px; bottom: 4px;
73
+ background-color: white;
74
+ transition: .4s;
75
+ border-radius: 50%;
76
+ }
77
+ input:checked + .slider { background-color: var(--primary); }
78
+ input:checked + .slider:before { transform: translateX(24px); }
79
+
80
+ /* SAFETY BARS */
81
+ .readout {
82
+ display: flex;
83
+ justify-content: space-between;
84
+ margin-bottom: 10px;
85
+ font-family: monospace;
86
+ font-size: 1.1rem;
87
+ }
88
+ .progress-bar {
89
+ width: 100%;
90
+ height: 10px;
91
+ background-color: #333;
92
+ border-radius: 5px;
93
+ overflow: hidden;
94
+ }
95
+ .fill {
96
+ height: 100%;
97
+ background-color: var(--accent);
98
+ transition: width 0.1s linear, background-color 0.3s;
99
+ }
100
+ .subtext { font-size: 0.75rem; color: #666; margin-top: 10px; }