Repository navigation
Expand file tree
/
Copy pathlive.css
More file actions
125 lines (121 loc) · 10.9 KB
/
Copy pathlive.css
File metadata and controls
125 lines (121 loc) · 10.9 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
/* Live labs tab: catalogue, 3D view, run steps, CLI transcript */
.live { display:grid; grid-template-columns:minmax(300px,360px) minmax(0,1fr); gap:16px; padding:16px 20px; align-items:start; }
@media (max-width:1000px){ .live{ grid-template-columns:1fr; } }
.live-side { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto; }
@media (max-width:1000px){ .live-side{ position:static; max-height:none; } }
.live-status { padding:10px 14px; border-bottom:1px solid var(--line); font-size:13px; display:flex; flex-direction:column; gap:8px; }
.live-status .row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pill { display:inline-flex; align-items:center; gap:6px; font-size:12px; padding:2px 9px; border-radius:11px; border:1px solid var(--line); background:var(--panel2); }
.pill i { width:8px; height:8px; border-radius:50%; background:var(--muted); display:inline-block; }
.pill.ok i { background:var(--ok); } .pill.warn i { background:var(--warn); animation:blink 1s infinite; } .pill.bad i { background:var(--bad); }
@keyframes blink { 50% { opacity:.3; } }
.lgroup { padding:8px 14px 2px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); }
.lab { border-top:1px solid var(--line); }
.lab > summary { list-style:none; cursor:pointer; padding:9px 14px; display:flex; align-items:center; gap:8px; }
.lab > summary::-webkit-details-marker { display:none; }
.lab > summary:hover { background:var(--panel2); }
.lab.on > summary { background:#4aa3ff18; box-shadow:inset 3px 0 var(--accent); }
.lab .num { color:var(--accent); font-weight:600; min-width:22px; }
.lab .nm { font-weight:600; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lab .meta { color:var(--muted); font-size:11.5px; white-space:nowrap; }
.lab .dot { width:8px; height:8px; border-radius:50%; background:#3b4856; flex:none; }
.lab .dot.ready { background:var(--accent); } .lab .dot.active { background:var(--ok); box-shadow:0 0 0 3px #3fb95033; }
.lab .body { padding:0 14px 10px; }
.lab .lact { display:flex; gap:6px; flex-wrap:wrap; margin:2px 0 8px; }
.lab .lact button { font-size:12px; padding:3px 9px; }
.lsc { border:1px solid var(--line); border-radius:7px; background:var(--panel2); padding:8px 10px; margin-top:6px; }
.lsc .t { display:flex; gap:8px; align-items:baseline; }
.lsc .t b { font-size:12.5px; } .lsc .s { color:var(--muted); font-size:12px; margin:3px 0 7px; }
.lsc .a { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.lsc .a button { font-size:12px; padding:3px 10px; }
.lsc .st { margin-left:auto; font-size:11.5px; }
.lsc .st.passed { color:var(--ok); } .lsc .st.failed, .lsc .st.error { color:var(--bad); } .lsc .st.running { color:var(--warn); } .lsc .st.applied { color:var(--warn); }
.live-main { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; min-width:0; }
.live-main > .wide { grid-column:1 / -1; }
@media (max-width:1300px){ .live-main{ grid-template-columns:1fr; } }
.live-3d-card { overflow:hidden; }
.live-bar { display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.live-bar h2 { border:0; padding:0; margin:0; }
#live-title { font-weight:600; }
#live-title small { color:var(--muted); font-weight:400; margin-left:8px; }
.live-tools { margin-left:auto; display:flex; gap:6px; }
.live-tools button { font-size:12px; padding:3px 9px; }
.live-tools button.on { border-color:var(--accent); color:var(--accent); }
#live-3d { height:min(58vh,560px); min-height:340px; background:#0b1017; position:relative; }
#live-3d .nogl { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; color:var(--muted); padding:24px; }
.live-legend { display:flex; gap:14px; flex-wrap:wrap; padding:8px 14px; font-size:12px; color:var(--muted); border-top:1px solid var(--line); }
.live-legend span { display:inline-flex; align-items:center; gap:6px; }
.live-legend i { width:16px; height:0; border-top:3px solid; display:inline-block; } .live-legend i.d { width:9px; height:9px; border:0; border-radius:50%; }
.steps2 { list-style:none; margin:0; padding:10px 14px; display:flex; flex-direction:column; gap:2px; max-height:420px; overflow:auto; }
.steps2 li { display:grid; grid-template-columns:22px minmax(0,1fr); gap:0 8px; padding:5px 0; align-items:start; font-size:13px; }
.steps2 .ic { width:16px; height:16px; margin-top:2px; border-radius:50%; border:2px solid #3b4856; box-sizing:border-box; }
.steps2 .st-running .ic { border-color:var(--warn); border-top-color:transparent; animation:spin .8s linear infinite; }
.steps2 .st-done .ic { background:var(--ok); border-color:var(--ok); }
.steps2 .st-error .ic { background:var(--bad); border-color:var(--bad); }
.steps2 .st-skipped .ic { border-style:dashed; }
.steps2 .st-skipped b { color:var(--muted); font-weight:500; }
.steps2 small { grid-column:2; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.steps2 .st-error small { color:var(--bad); }
@keyframes spin { to { transform:rotate(360deg); } }
.live-empty { color:var(--muted); padding:14px; font-size:13px; }
#cli-tabs { display:flex; gap:4px; padding:8px 12px 0; flex-wrap:wrap; }
#cli-tabs button { font-size:12px; padding:2px 9px; border-radius:6px 6px 0 0; border-bottom-color:transparent; background:transparent; }
#cli-tabs button.on { background:#0b0f14; border-color:var(--accent); color:var(--fg); }
#cli-out { margin:0; padding:10px 14px; background:#0b0f14; border-top:1px solid var(--line); font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; height:340px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:#cfe0f0; }
#cli-out .ssh { color:#22d3ee; font-weight:600; } #cli-out .pr { color:#3fb950; } #cli-out .cmd { color:#e6edf3; }
#cli-out .out { color:#8b9bb0; } #cli-out .err { color:var(--bad); } #cli-out .info { color:var(--warn); }
#cli-out .r { display:inline-block; min-width:8ch; color:#4aa3ff; opacity:.75; margin-right:6px; }
.cli-bar { display:flex; gap:8px; padding:8px 12px; align-items:center; border-top:1px solid var(--line); flex-wrap:wrap; }
.cli-bar input { flex:1; min-width:140px; background:var(--panel2); color:var(--fg); border:1px solid var(--line); border-radius:6px; padding:5px 8px; font:12px ui-monospace,Menlo,monospace; }
.cli-bar button { font-size:12px; padding:3px 9px; }
.live-run-title { text-transform:none; letter-spacing:0; color:var(--fg); margin-left:6px; font-weight:500; }
.live-timer { float:right; text-transform:none; letter-spacing:0; }
#live-results { padding:0 14px 14px; }
/* EVE-NG consoles card (Live labs) */
.eve-note { padding:10px 14px; font-size:13px; color:var(--muted); }
.eve-note code { background:#0b0f14; border:1px solid var(--line); border-radius:4px; padding:1px 6px; color:#cfe0f0; font:12px ui-monospace,Menlo,monospace; }
.eve-how { margin:0 14px 10px; background:var(--panel2); border:1px solid var(--line); border-radius:8px; padding:6px 12px; font-size:13px; }
.eve-how summary { cursor:pointer; color:var(--accent); font-weight:600; } .eve-how ol { margin:8px 0 4px; padding-left:20px; } .eve-how li { margin:4px 0; }
.eve-how code { background:#0b0f14; border:1px solid var(--line); border-radius:4px; padding:1px 6px; color:#cfe0f0; font:12px ui-monospace,Menlo,monospace; }
table.eve-t { width:calc(100% - 28px); margin:0 14px 14px; border-collapse:collapse; font-size:12.5px; }
.eve-t th, .eve-t td { padding:6px 8px; border-bottom:1px solid var(--line); text-align:left; }
.eve-t th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.eve-t code { font:12px ui-monospace,Menlo,monospace; color:#cfe0f0; }
.eve-t button, .eve-t a.btn { font-size:11.5px; padding:2px 8px; margin-right:4px; }
.eve-t .st-run { color:var(--ok); } .eve-t .st-off { color:var(--muted); }
/* 3D views on the Learn pages */
.l3d { border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#0b1017; }
.l3d-bar { display:flex; align-items:center; gap:10px; padding:8px 12px; background:var(--panel2); border-bottom:1px solid var(--line); flex-wrap:wrap; font-size:13px; }
.l3d-lab { color:var(--muted); font-size:12px; } .l3d-tools { margin-left:auto; display:flex; gap:6px; }
.l3d-tools button { font-size:12px; padding:2px 9px; } .l3d-tools button.on { border-color:var(--accent); color:var(--accent); }
.l3d-canvas { height:min(46vh,420px); min-height:300px; position:relative; background:#0b1017; }
.l3d-none { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:20px; color:var(--muted); }
.l3d-cap { padding:8px 14px; min-height:38px; font-size:13.5px; color:#fff3c4; background:#141c25; border-top:1px solid var(--line); }
.l3d-note { padding:8px 14px 4px; font-size:13px; color:var(--muted); max-width:90ch; }
.l3d-foot { display:flex; gap:14px; flex-wrap:wrap; align-items:center; padding:8px 14px 12px; font-size:12px; color:var(--muted); }
.l3d-foot span { display:inline-flex; align-items:center; gap:6px; } .l3d-foot i { width:9px; height:9px; border-radius:50%; display:inline-block; }
.l3d-foot a.btn { margin-left:auto; font-size:12px; padding:3px 10px; }
/* Credentials tab */
.cred { padding:16px 20px; max-width:1400px; }
.cred-tools { display:flex; gap:10px; align-items:center; padding:0 14px 10px; flex-wrap:wrap; }
.cred-tools input { min-width:240px; background:var(--panel2); color:var(--fg); border:1px solid var(--line); border-radius:6px; padding:5px 8px; font-size:13px; }
.cred-tools button, .cred-t button { font-size:12px; padding:3px 9px; }
.cred details.lab { margin:0 14px 8px; border:1px solid var(--line); border-radius:8px; background:var(--panel2); }
.cred details.lab > summary { border-top:0; }
.cred-t { width:calc(100% - 28px); margin:0 14px 12px; border-collapse:collapse; font-size:12.5px; }
.cred-t th, .cred-t td { padding:6px 8px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.cred-t th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.cred-t code { font:12px ui-monospace,Menlo,Consolas,monospace; color:#cfe0f0; }
.cred-t .pw { letter-spacing:.12em; } .cred-t .bad { color:var(--bad); }
.cred-t td:last-child { white-space:normal; }
.cred-t td.pwc { min-width:210px; }
/* light scene: the frame around the canvas follows the theme (the rest of the page stays as it is) */
#live-3d[data-t3d="light"], .l3d-canvas[data-t3d="light"] { background:#eef2f7; }
#live-3d[data-t3d="light"] .nogl, .l3d-canvas[data-t3d="light"] .l3d-none { color:#546578; }
.l3d.light { background:#eef2f7; border-color:#c5cfda; }
.l3d.light .l3d-bar { background:#e1e8f0; border-bottom-color:#c5cfda; color:#1b2733; }
.l3d.light .l3d-lab, .l3d.light .l3d-note, .l3d.light .l3d-foot { color:#546578; }
.l3d.light .l3d-cap { background:#f6f1e4; color:#7c2d12; border-top-color:#c5cfda; }
.l3d.light .l3d-tools button { background:#fff; color:#1b2733; border-color:#c5cfda; }
.l3d.light .l3d-tools button.on { border-color:#1d6fd6; color:#1d6fd6; }
.cred-t a.btn { font-size:11.5px; padding:2px 8px; margin-right:4px; }