-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
82 lines (71 loc) · 1.4 KB
/
styles.css
File metadata and controls
82 lines (71 loc) · 1.4 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
body {
background: #f6f8fa;
}
.container {
margin-bottom: 1em;
}
.column {
width: 50%;
background: white;
border: 1px solid #d0d7de;
/* Ensure columns have consistent height */
display: flex;
flex-direction: column;
}
.header {
width: 100%;
text-align: center;
}
.line {
display: flex;
white-space: pre;
border-bottom: 1px solid #e1e4e8;
padding: .5em;
min-height: 3em; /* Ensure minimum height for empty lines */
/* Ensure lines expand to fill available space */
flex: 0 0 auto;
}
.line.added {
background-color: #e6ffed;
}
.line.removed {
background-color: #ffeef0;
}
.line.empty {
background-color: #f6f8fa;
color: #999;
}
.line-number {
width: 40px;
color: #999;
text-align: right;
padding-right: 10px;
user-select: none;
flex-shrink: 0; /* Prevent line numbers from shrinking */
}
.line-content {
flex: 1;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word; /* Force break on long words */
/* Ensure consistent alignment */
display: block;
}
/***** Words colors *****/
.word-added {
background-color: #acf2bd;
padding: 1px 4px;
border-radius: 6px;
}
.word-removed {
background-color: #fdb8c0;
padding: 1px 4px;
border-radius: 6px;
}
/* Improve diff container layout */
#diff {
display: flex !important;
gap: 1em !important;
align-items: stretch; /* Ensure columns have same height */
}