forked from codinit-dev/codinit-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff-view.css
More file actions
94 lines (78 loc) · 2.42 KB
/
Copy pathdiff-view.css
File metadata and controls
94 lines (78 loc) · 2.42 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
.diff-panel-content {
scrollbar-width: thin;
scrollbar-color: var(--codinit-elements-textTertiary) transparent;
}
.diff-panel-content::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.diff-panel-content::-webkit-scrollbar-track {
background: transparent;
}
.diff-panel-content::-webkit-scrollbar-thumb {
background-color: var(--codinit-elements-textTertiary);
border-radius: 4px;
border: 2px solid transparent;
}
.diff-panel-content::-webkit-scrollbar-thumb:hover {
background-color: var(--codinit-elements-textSecondary);
}
/* Hide scrollbar for the left panel when not hovered */
.diff-panel:not(:hover) .diff-panel-content::-webkit-scrollbar {
display: none;
}
.diff-panel:not(:hover) .diff-panel-content {
scrollbar-width: none;
}
/* Estilos para as linhas de diff */
.diff-block-added {
background-color: rgba(34, 197, 94, 0.2);
border-left: 4px solid rgb(34, 197, 94);
}
.diff-block-removed {
background-color: rgba(239, 68, 68, 0.2);
border-left: 4px solid rgb(239, 68, 68);
}
/* Melhorar contraste para mudanças */
.diff-panel-content .diff-line:hover .diff-block-added {
background-color: rgba(34, 197, 94, 0.3);
}
.diff-panel-content .diff-line:hover .diff-block-removed {
background-color: rgba(239, 68, 68, 0.3);
}
/* Estilos unificados para ambas as visualizações */
.diff-line {
display: flex;
min-width: fit-content;
transition: background-color 150ms ease;
}
.diff-line-number {
width: 3rem;
flex-shrink: 0;
padding: 0.125rem 0 0.125rem 0.5rem;
text-align: left;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
color: var(--codinit-elements-textTertiary);
border-right: 1px solid var(--codinit-elements-borderColor);
background-color: var(--codinit-elements-background-depth-1);
}
.diff-line-content {
padding: 0.125rem 1rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
white-space: pre;
flex: 1;
color: var(--codinit-elements-textPrimary);
transition: background-color 150ms ease;
}
.diff-line:hover .diff-line-content {
background-color: var(--codinit-elements-background-depth-2);
}
/* Cores específicas para adições/remoções */
.diff-added {
background-color: rgba(34, 197, 94, 0.2);
border-left: 4px solid rgb(34, 197, 94);
}
.diff-removed {
background-color: rgba(239, 68, 68, 0.2);
border-left: 4px solid rgb(239, 68, 68);
}