Skip to content

Commit 42f4ac4

Browse files
authored
add styles for the slide tab (#88)
1 parent 4e85555 commit 42f4ac4

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

packages/cli/public/styles.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,67 @@ main {
313313
margin-bottom: 8px;
314314
margin-top: 16px;
315315
}
316+
317+
.slideContainer {
318+
display: flex;
319+
flex: 1;
320+
min-height: 0;
321+
}
322+
323+
.slideMain {
324+
display: flex;
325+
flex: 1;
326+
flex-direction: column;
327+
overflow: auto;
328+
}
329+
330+
.slidePanel {
331+
display: flex;
332+
flex-direction: column;
333+
width: 0;
334+
transition: width 0.2s;
335+
}
336+
337+
.resizer {
338+
width: 5px;
339+
cursor: col-resize;
340+
background-color: #bfbbbb;
341+
transition: background-color 0.2s;
342+
user-select: none;
343+
}
344+
345+
.resizer:hover {
346+
background-color: #9f9999;
347+
}
348+
349+
/* slide panel close button */
350+
.slideClose,
351+
.slideClose:active,
352+
.slideClose:focus,
353+
.slideClose:hover {
354+
background: none;
355+
border: none;
356+
color: inherit;
357+
margin-left: auto;
358+
height: 24px;
359+
outline: none;
360+
padding: 0;
361+
}
362+
.slideClose::before {
363+
content: "\27E9\27E9";
364+
}
365+
.slideClose:hover {
366+
font-weight: bold;
367+
}
368+
369+
/* viewers */
370+
.text {
371+
background-color: #22222b;
372+
color: #d6d6d6;
373+
display: block;
374+
flex: 1;
375+
padding: 8px;
376+
width: 100%;
377+
overflow-x: auto;
378+
white-space: pre-wrap;
379+
}

0 commit comments

Comments
 (0)