-
Notifications
You must be signed in to change notification settings - Fork 0
/
memory.css
96 lines (82 loc) · 1.5 KB
/
memory.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
:root {
--cell-border: #fd971f;
}
#memoryContainer {
display: flex;
flex-direction: row;
justify-content: center;
gap: 3rem;
position: relative;
overflow: hidden;
font-family: NotoSansMono, sans-serif;
}
@media (width < 640px) {
#memoryContainer {
justify-content: space-between;
}
}
#memoryContainer h2 {
color: var(--cell-border);
text-align: center;
font-family: inherit;
}
.memory-section {
width: 40%;
max-width: 15rem;
overflow-y: auto;
padding: 0 1px;
}
.memory-section::-webkit-scrollbar {
display: none;
}
.memory-cell {
font-family: inherit;
letter-spacing: 1px;
display: flex;
align-items: center;
justify-content: center;
outline: 1px solid var(--cell-border);
border-radius: 5px;
color: var(--title-color);
width: 100%;
max-width: 15rem;
height: 5rem;
position: relative;
transition: box-shadow 0.2s ease-out;
background-color: var(--background-color);
}
.memory-cell:hover:not(.lixo) {
z-index: 2;
box-shadow: 0 0 18px 1px var(--cell-border);
cursor: pointer;
}
.memory-cell .address {
position: absolute;
top: -1px;
left: -1px;
font-size: 0.6rem;
border: 1px solid var(--cell-border);
border-radius: 5px 0 5px 0;
padding: 0.15rem 0.2rem;
}
.memory-cell .name,
.memory-cell .type {
position: absolute;
bottom: 0.25rem;
font-size: 0.8rem;
}
.memory-cell .name {
right: 0.4rem;
font-size: 0.9rem;
}
.memory-cell .type {
left: 0.4rem;
}
.memory-cell .content {
}
.memory-cell.pointer .type {
color: var(--highlight-color);
}
.memory-cell.lixo {
opacity: 0.2;
}