ggdgsdbsdbbb / static / css / commits.scss
275 lines · 236 sloc · 4.16 KB · c1b1c31686d017b71bb5caeea22476ff5d896ffd
Raw
1.commit-day-title {
2 color: $gray-dark;
3 font-size: 13px;
4 padding: 24px 0 10px 0;
5}
6
7.clog-block {
8 border: 1px solid $gray;
9 border-radius: $medium-radius;
10 overflow: hidden;
11 background-color: $white;
12}
13
14.clog {
15 display: flex;
16 align-items: center;
17 gap: 12px;
18 padding: 12px 16px;
19 border-top: 1px solid $gray;
20}
21
22.clog:first-child {
23 border-top: 0;
24}
25
26.clog-avatar-link {
27 flex: 0 0 auto;
28 display: block;
29 line-height: 0;
30}
31
32img.clog-avatar {
33 border-radius: $small-radius;
34 width: 20px;
35 height: 20px;
36 object-fit: cover;
37 display: block;
38}
39
40.clog-actions {
41 flex: 0 0 auto;
42 display: flex;
43 align-items: center;
44 gap: 6px;
45}
46
47.clog-browse {
48 display: inline-flex;
49 align-items: center;
50 justify-content: center;
51 width: 28px;
52 height: 28px;
53 border: 1px solid $gray;
54 border-radius: $small-radius;
55 background-color: $white;
56 color: $gray-dark;
57 text-decoration: none;
58}
59
60.clog-browse:hover {
61 color: $link-color;
62 border-color: $link-color;
63}
64
65.clog-browse svg {
66 width: 14px;
67 height: 14px;
68 display: block;
69}
70
71.clog-body {
72 flex: 1 1 auto;
73 min-width: 0;
74}
75
76.clog-msg {
77 font-size: 14px;
78 text-overflow: ellipsis;
79 white-space: nowrap;
80 overflow: hidden;
81 a {
82 color: $black !important;
83 font-size: 15px;
84 font-weight: 600;
85 }
86}
87
88.clog-meta {
89 font-size: 12px;
90 color: $gray-dark;
91 margin-top: 4px;
92}
93
94.clog-author {
95 color: $black;
96 font-weight: 600;
97 text-decoration: none;
98 margin-right: 6px;
99}
100
101a.clog-author:hover {
102 color: $link-color;
103}
104
105.clog-time {
106 font-size: 12px;
107 color: $gray-dark;
108}
109
110.clog-hash {
111 flex: 0 0 auto;
112 font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
113 background-color: $gray-light;
114 border: 1px solid $gray;
115 border-radius: $small-radius;
116 padding: 2px 8px;
117 font-size: 12px;
118 color: $black;
119 text-decoration: none;
120}
121
122.clog-hash:hover {
123 color: $link-color;
124 border-color: $link-color;
125}
126
127.commit-page {
128 margin-top: 16px;
129}
130
131.commit-page__header {
132 border: 1px solid $gray;
133 border-radius: $medium-radius;
134 padding: 14px 16px;
135 background-color: #f6f8fa;
136 margin-bottom: 16px;
137}
138
139.commit-page__title {
140 font-size: 18px;
141 font-weight: 600;
142 margin: 0 0 8px 0;
143 color: $black;
144 line-height: 1.4;
145}
146
147.commit-page__meta {
148 display: flex;
149 align-items: center;
150 flex-wrap: wrap;
151 gap: 8px;
152 font-size: 13px;
153 color: $gray-dark;
154 margin-bottom: 10px;
155}
156
157.commit-page__author {
158 font-weight: 600;
159 color: $black;
160}
161
162.commit-page__sep {
163 color: $gray;
164}
165
166.commit-page__hash {
167 font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
168 background-color: $white;
169 border: 1px solid $gray;
170 border-radius: $small-radius;
171 padding: 1px 6px;
172 font-size: 12px;
173 color: $black;
174}
175
176.commit-page__browse {
177 display: inline-flex;
178 align-items: center;
179 justify-content: center;
180 width: 26px;
181 height: 26px;
182 border: 1px solid $gray;
183 border-radius: $small-radius;
184 background-color: $white;
185 color: $gray-dark;
186 text-decoration: none;
187}
188
189.commit-page__browse:hover {
190 color: $link-color;
191 border-color: $link-color;
192}
193
194.commit-page__browse svg {
195 width: 14px;
196 height: 14px;
197 display: block;
198}
199
200.commit-page__patch {
201 margin-left: auto;
202 font-size: 13px;
203 color: $link-color;
204 text-decoration: none;
205}
206
207.commit-page__patch:hover {
208 text-decoration: underline;
209}
210
211.commit-page__stats {
212 display: flex;
213 gap: 12px;
214 font-size: 13px;
215 font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
216}
217
218.commit-page__files {
219 color: $black;
220}
221
222.commit-page__adds {
223 color: #1f883d;
224 font-weight: 600;
225}
226
227.commit-page__dels {
228 color: #cf222e;
229 font-weight: 600;
230}
231
232.commit-page__empty {
233 padding: 24px;
234 text-align: center;
235 color: $gray-dark;
236 border: 1px solid $gray;
237 border-radius: $medium-radius;
238 background-color: $white;
239}
240
241.pr-diff__tag {
242 display: inline-block;
243 font-size: 11px;
244 font-family: system-ui, sans-serif;
245 font-weight: 500;
246 padding: 1px 6px;
247 margin-left: 6px;
248 border-radius: 10px;
249 background-color: $gray-light;
250 color: $gray-dark;
251 border: 1px solid $gray;
252 vertical-align: middle;
253}
254
255.pr-diff__tag--new {
256 background-color: #dafbe1;
257 color: #1f883d;
258 border-color: #aceebb;
259}
260
261.pr-diff__tag--deleted {
262 background-color: #ffebe9;
263 color: #cf222e;
264 border-color: #ffcecb;
265}
266
267.pr-diff__oldpath {
268 color: $gray-dark;
269 font-weight: 400;
270 margin-right: 4px;
271}
272
273.buttons {
274 margin-top: 10px;
275}
276