-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
90 lines (77 loc) · 1.4 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--background-color-dark: #000;
--background-color-light: #fff;
--prompt-color-dark: #aaa;
--prompt-color-light: #000;
}
body {
font-family: 'Courier New', Courier, monospace;
background-color: var(--background-color-dark);
color: #00FF00;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 10px;
overflow: hidden;
}
body.light-mode {
background-color: var(--background-color-light);
color: var(--prompt-color-light);
}
body.light-mode .prompt {
color: var(--prompt-color-light);
}
body.light-mode .cursor {
background-color: var(--prompt-color-light);
}
.welcome {
position: relative;
}
#output {
flex-grow: 1;
overflow-y: auto;
white-space: pre-wrap;
padding: 10px;
font-size: 16px;
}
.command-line {
display: flex;
padding-top: 10px;
}
.prompt {
color: var(--prompt-color-dark);
padding-right: 5px;
line-height: 1.35;
}
.cursor {
position: relative;
display: inline-block;
width: 10px;
height: 16px;
background-color: #00FF00;
animation: blink 0.8s step-end infinite;
}
@keyframes blink {
50% {
background-color: transparent;
}
}
.input-container {
display: inline;
flex: 1;
}
#input {
border: none;
width: 100%;
color: inherit;
background: transparent;
position: relative;
caret-color: transparent;
outline: none;
}