-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpatch-viewer.css
More file actions
134 lines (122 loc) · 2.14 KB
/
patch-viewer.css
File metadata and controls
134 lines (122 loc) · 2.14 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
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
#viewer-container {
max-width: 800px;
margin: 30px auto;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.07);
padding: 20px;
font-family: system-ui, monospace, sans-serif;
}
h2 {
color: #e24329;
margin-top: 0;
}
#patch-meta {
font-size: 0.92em;
color: #888;
margin-bottom: 10px;
}
#patch-content {
background: #f8f8f8;
border-radius: 4px;
padding: 16px;
overflow-x: auto;
font-size: 0.97em;
line-height: 1.5;
margin-bottom: 16px;
}
.diff-add {
color: #22863a;
background: #e6ffed;
}
.diff-del {
color: #b31d28;
background: #ffeef0;
}
.diff-hunk {
color: #6f42c1;
font-weight: bold;
}
#viewer-actions {
display: flex;
gap: 12px;
}
#viewer-actions button {
background: #e24329;
color: #fff;
border: none;
border-radius: 3px;
padding: 6px 14px;
cursor: pointer;
font-size: 1em;
}
#viewer-actions button:hover {
background: #c92d1e;
}
#viewer-actions button:last-child {
background: #2e2e2e;
}
/* Code Review Styles */
.hidden {
display: none;
}
#review-results {
margin-top: 20px;
padding: 16px;
background: #f8f8f8;
border-radius: 4px;
border-left: 4px solid #e24329;
}
#review-results h3 {
margin-top: 0;
color: #e24329;
}
#review-summary {
margin-bottom: 16px;
padding: 12px;
background: #fff;
border-radius: 4px;
border-left: 3px solid #6b4fbb;
}
.review-section {
margin-bottom: 16px;
}
.review-section h4 {
margin-top: 0;
color: #6b4fbb;
}
#review-suggestions li {
margin-bottom: 8px;
padding-left: 8px;
border-left: 2px solid #1aaa55;
}
#review-security li {
margin-bottom: 8px;
padding-left: 8px;
border-left: 2px solid #fc9403;
}
#review-practices li {
margin-bottom: 8px;
padding-left: 8px;
border-left: 2px solid #428bca;
}
#review-loading {
padding: 12px;
text-align: center;
font-style: italic;
color: #666;
}
.spinner {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid rgba(226, 67, 41, 0.3);
border-radius: 50%;
border-top-color: #e24329;
animation: spin 1s ease-in-out infinite;
margin-left: 8px;
vertical-align: middle;
}
@keyframes spin {
to { transform: rotate(360deg); }
}