-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpc101-gui.css
205 lines (171 loc) · 3.19 KB
/
pc101-gui.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
/* Arquivo: pc101-gui.css */
/* Estilos Gerais */
body {
font-family: Arial, sans-serif;
margin: 20px;
}
/* Seções principais */
.section {
margin-bottom: 30px;
}
/* Estilos para a área de montagem */
#assemblyArea {
display: flex;
gap: 20px;
}
#codeInput {
width: 50%;
height: 300px;
font-size: 12px;
padding: 10px;
overflow-y: scroll;
}
#machineCode {
width: 100%;
height: 300px;
font-size: 12px;
background-color: #d2f7a1;
padding: 10px;
overflow-y: scroll;
}
#assemblyControls {
margin-top: 10px;
}
#assemblyControls button {
font-size: 12px;
padding: 10px;
margin-right: 5px;
margin-bottom: 10px;
cursor: pointer;
}
/* Estilos para a seleção de formato */
#formatSelector {
margin-top: 10px;
}
#formatSelector label {
font-size: 12px;
margin-right: 5px;
}
#formatSelector select {
font-size: 12px;
padding: 5px;
}
/* Estilos para a área de execução */
#executionArea {
display: flex;
gap: 20px;
}
/* Estilos para visualização da memória */
#memoryView {
flex: 1;
}
#memoryView table {
border-collapse: collapse;
width: 100%;
}
#memoryView tbody {
overflow-y: scroll;
height: 400px;
}
#memoryView th,
#memoryView td {
border: 1px solid #ccc;
padding: 5px;
text-align: center;
font-size: 11px;
}
/* Destaque da instrução atual */
.current-instruction {
background-color: #ffeb3b !important;
}
/* Estilos para registradores e barramentos */
#registers,
#buses {
margin-bottom: 20px;
}
#registers table,
#buses table {
border-collapse: collapse;
width: 100%;
}
#registers th,
#registers td,
#buses th,
#buses td {
border: 1px solid #ccc;
padding: 5px;
text-align: center;
}
/* Estilos para dispositivos de I/O */
#ioDevices {
flex: 1;
}
#display {
font-size: 24px;
border: 1px solid #333;
width: 60%;
height: 50px;
text-align: center;
margin-bottom: 10px;
}
.keyboard {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5px;
width: 60%;
margin-bottom: 20px;
}
.key {
font-size: 20px;
padding: 10px;
text-align: center;
cursor: pointer;
border: 1px solid #333;
background-color: #f0f0f0;
}
.key:hover {
background-color: #ddd;
}
/* Estilos para o console de log */
#logConsole {
width: 100%;
height: 150px;
border: 1px solid #333;
overflow-y: scroll;
background-color: #f9f9f9;
padding: 5px;
font-family: monospace;
font-size: 14px;
}
#logConsole p {
margin: 0;
}
/* Botões de execução */
#executionControls {
margin-top: 10px;
}
#executionControls button {
font-size: 12px;
padding: 10px;
margin-right: 5px;
margin-bottom: 10px;
cursor: pointer;
}
/* Destaque de elementos em uso */
.highlight {
background-color: #ffeb3b;
}
/* Estilos para áreas específicas da memória */
#memoryView tr:nth-child(even) {
background-color: #f9f9f9;
}
#memoryView tr:nth-child(odd) {
background-color: #ffffff;
}
/* Estilos para áreas de código e dados na memória */
#memoryView tr.code-area {
background-color: #e0f7fa;
}
#memoryView tr.data-area {
background-color: #f1f8e9;
}