hexo-theme-linen 1.0.43 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layout/partials/post-item.ejs +1 -1
- package/layout/post.ejs +2 -2
- package/package.json +1 -1
- package/source/linen-theme/css/linen.scss +65 -5
- package/source/linen-theme/img/icons/medium-clap-reacted.svg +1 -0
- package/source/linen-theme/js/gitalk/gitalk.css +386 -2
- package/source/linen-theme/js/gitalk/gitalk.min.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="post-item" href="<%=url_for(post.path)%>" onclick="onclickPostItem(this)">
|
|
2
|
-
<div class="item-body">
|
|
2
|
+
<div class="item-body<% if (post.thumbnail || post.cover) { %> has-cover<% } %>">
|
|
3
3
|
<% if (post.thumbnail || post.cover) { %>
|
|
4
4
|
<div class="cover-img">
|
|
5
5
|
<img src="<%=url_for(post.thumbnail || post.cover)%>" alt="" loading="lazy" />
|
package/layout/post.ejs
CHANGED
|
@@ -201,10 +201,10 @@ const seriesInfo = getSeriesInfo(page?.series);
|
|
|
201
201
|
}
|
|
202
202
|
const link = document.createElement("link");
|
|
203
203
|
link.rel = "stylesheet";
|
|
204
|
-
link.href = "<%=url_for(
|
|
204
|
+
link.href = "<%=url_for(`/linen-theme/js/gitalk/gitalk.css?v=${theme.version}-gitalk`)%>";
|
|
205
205
|
document.head.appendChild(link);
|
|
206
206
|
const script = document.createElement("script");
|
|
207
|
-
script.src = "<%=url_for(
|
|
207
|
+
script.src = "<%=url_for(`/linen-theme/js/gitalk/gitalk.min.js?v=${theme.version}-gitalk`)%>";
|
|
208
208
|
const pageId = location.pathname.length > 40 ? hashPathname(location.pathname) : location.pathname;
|
|
209
209
|
console.log(`GitTalk page ID: ${pageId}`);
|
|
210
210
|
script.onload = function() {
|
package/package.json
CHANGED
|
@@ -1653,6 +1653,9 @@ body {
|
|
|
1653
1653
|
margin: 1.1em 0 0 2em;
|
|
1654
1654
|
transform: translateX(calc(-1 * var(--comment-content-indent)));
|
|
1655
1655
|
}
|
|
1656
|
+
.gt-comment-reply {
|
|
1657
|
+
margin-left: 3em;
|
|
1658
|
+
}
|
|
1656
1659
|
.gt-comment-like .gt-ico-heart {
|
|
1657
1660
|
display: inline-flex;
|
|
1658
1661
|
align-items: center;
|
|
@@ -1668,8 +1671,12 @@ body {
|
|
|
1668
1671
|
}
|
|
1669
1672
|
}
|
|
1670
1673
|
|
|
1674
|
+
&.is-reacted .gt-svg {
|
|
1675
|
+
background-image: url("../img/icons/medium-clap-reacted.svg");
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1671
1678
|
.gt-ico-text {
|
|
1672
|
-
margin-left: 0.
|
|
1679
|
+
margin-left: 0.25em;
|
|
1673
1680
|
color: #6b6b6b;
|
|
1674
1681
|
}
|
|
1675
1682
|
}
|
|
@@ -1722,7 +1729,7 @@ body {
|
|
|
1722
1729
|
height: 2.75em;
|
|
1723
1730
|
}
|
|
1724
1731
|
}
|
|
1725
|
-
a:not([class])
|
|
1732
|
+
a:not([class]) {
|
|
1726
1733
|
color: $green;
|
|
1727
1734
|
font-weight: bold;
|
|
1728
1735
|
text-decoration: none;
|
|
@@ -1736,6 +1743,13 @@ body {
|
|
|
1736
1743
|
vertical-align: middle;
|
|
1737
1744
|
margin-bottom: 0.25em;
|
|
1738
1745
|
}
|
|
1746
|
+
&:empty::after,
|
|
1747
|
+
&:has(img)::after {
|
|
1748
|
+
display: none;
|
|
1749
|
+
}
|
|
1750
|
+
&:has(img):hover {
|
|
1751
|
+
border-bottom: 0;
|
|
1752
|
+
}
|
|
1739
1753
|
&:hover {
|
|
1740
1754
|
opacity: 0.85;
|
|
1741
1755
|
border-bottom: solid 1px $green;
|
|
@@ -1771,15 +1785,23 @@ body {
|
|
|
1771
1785
|
.gt-header-avatar,
|
|
1772
1786
|
.gt-comment-avatar {
|
|
1773
1787
|
background-color: #f5f5f5;
|
|
1788
|
+
border-radius: 50%;
|
|
1789
|
+
|
|
1790
|
+
img {
|
|
1791
|
+
border-radius: 50%;
|
|
1792
|
+
}
|
|
1774
1793
|
}
|
|
1775
|
-
.user-mention
|
|
1776
|
-
.gt-comment-body blockquote a:not([class]) {
|
|
1794
|
+
.user-mention {
|
|
1777
1795
|
color: $darkText;
|
|
1778
|
-
text-decoration:
|
|
1796
|
+
text-decoration: none;
|
|
1779
1797
|
@include defaultFont;
|
|
1780
1798
|
text-underline-offset: 0.2rem;
|
|
1781
1799
|
font-weight: 500;
|
|
1782
1800
|
font-size: 14px;
|
|
1801
|
+
|
|
1802
|
+
&:hover {
|
|
1803
|
+
text-decoration: underline;
|
|
1804
|
+
}
|
|
1783
1805
|
}
|
|
1784
1806
|
.gt-comments-controls {
|
|
1785
1807
|
margin-top: 0.625em;
|
|
@@ -1806,6 +1828,9 @@ body {
|
|
|
1806
1828
|
}
|
|
1807
1829
|
}
|
|
1808
1830
|
}
|
|
1831
|
+
.gt-header-comment {
|
|
1832
|
+
border-radius: 2px;
|
|
1833
|
+
}
|
|
1809
1834
|
.gt-header-textarea {
|
|
1810
1835
|
border: none;
|
|
1811
1836
|
border-radius: 2px;
|
|
@@ -1828,6 +1853,41 @@ body {
|
|
|
1828
1853
|
#recent-posts {
|
|
1829
1854
|
.post-item {
|
|
1830
1855
|
@include postItem;
|
|
1856
|
+
@media (min-width: 901px) {
|
|
1857
|
+
.item-body.has-cover {
|
|
1858
|
+
display: flex;
|
|
1859
|
+
align-items: stretch;
|
|
1860
|
+
gap: 15px;
|
|
1861
|
+
|
|
1862
|
+
&::after {
|
|
1863
|
+
display: none;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
.cover-img {
|
|
1867
|
+
order: 2;
|
|
1868
|
+
float: none;
|
|
1869
|
+
flex: 0 0 25%;
|
|
1870
|
+
width: 25%;
|
|
1871
|
+
margin-left: 0;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
.title-excerpt {
|
|
1875
|
+
order: 1;
|
|
1876
|
+
display: flex;
|
|
1877
|
+
min-width: 0;
|
|
1878
|
+
flex: 1 1 0;
|
|
1879
|
+
flex-direction: column;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
.title-excerpt-text {
|
|
1883
|
+
flex: 1 0 auto;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
.post-meta {
|
|
1887
|
+
margin-top: auto;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1831
1891
|
.tags {
|
|
1832
1892
|
@include tags;
|
|
1833
1893
|
margin: 0.25rem 0 -0.5em 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-label="clap"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.3694 0.827581L12 3.2822L12.6306 0.827581H11.3694Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M15.4213 1.84055L14.2362 1.45158L13.8985 3.95255L15.4213 1.84055Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.75726 1.45158L8.57299 1.84055L10.0957 3.95255L9.75726 1.45158Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20.2527 11.8403L17.7509 7.43751C17.5134 7.08496 17.1807 6.85406 16.8215 6.79531C16.6901 6.77166 16.5551 6.77571 16.4253 6.8072C16.2955 6.8387 16.1736 6.89694 16.0676 6.9782C15.8218 7.16937 15.6753 7.40441 15.6248 7.67338C15.6389 7.69158 15.6546 7.70648 15.6687 7.72551L18.0215 11.8643C19.6353 14.8138 19.1206 17.635 16.4963 20.2593C16.351 20.4041 16.1994 20.5424 16.042 20.6739C17.0392 20.5448 17.9686 20.064 18.8152 19.2174C21.5197 16.5128 21.3319 13.632 20.2527 11.8403Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.0662 9.00993C11.9371 8.32303 12.1457 7.71144 12.6389 7.23724L10.5766 5.17406C10.1628 4.75696 9.43615 4.75696 9.02152 5.17406C8.87421 5.32303 8.79559 5.5051 8.74925 5.69544L12.0662 9.00993Z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.741 8.30896C14.5606 8.04165 14.2949 7.85379 14.0127 7.80745C13.92 7.79004 13.8246 7.79232 13.7328 7.81414C13.641 7.83595 13.5548 7.87681 13.4797 7.93407C13.3341 8.04745 12.8897 8.39172 13.2811 9.23007L14.4646 11.7335C14.5106 11.7795 14.546 11.8349 14.5684 11.896C14.5907 11.9571 14.5994 12.0224 14.5939 12.0872C14.5884 12.152 14.5687 12.2148 14.5363 12.2712C14.504 12.3276 14.4596 12.3763 14.4065 12.4138C14.3533 12.4513 14.2926 12.4767 14.2286 12.4882C14.1646 12.4998 14.0988 12.4972 14.0359 12.4806C13.973 12.464 13.9145 12.4339 13.8644 12.3924C13.8144 12.3508 13.774 12.2988 13.7462 12.24L7.61381 6.10593C7.53801 6.03012 7.44801 5.96999 7.34897 5.92897C7.24993 5.88794 7.14377 5.86683 7.03657 5.86683C6.92936 5.86683 6.82321 5.88794 6.72417 5.92897C6.62512 5.96999 6.53513 6.03012 6.45933 6.10593C6.38352 6.18173 6.32339 6.27173 6.28237 6.37077C6.24134 6.46981 6.22023 6.57597 6.22023 6.68317C6.22023 6.79037 6.24134 6.89653 6.28237 6.99557C6.32339 7.09461 6.38352 7.18461 6.45933 7.26041L10.1015 10.9043C10.1429 10.9457 10.1758 10.9948 10.1982 11.0489C10.2206 11.103 10.2321 11.161 10.2321 11.2196C10.2321 11.2781 10.2206 11.3361 10.1982 11.3902C10.1758 11.4443 10.1429 11.4935 10.1015 11.5349C10.0601 11.5763 10.011 11.6091 9.95687 11.6316C9.90277 11.654 9.84478 11.6655 9.78622 11.6655C9.72766 11.6655 9.66968 11.654 9.61558 11.6316C9.56148 11.6091 9.51232 11.5763 9.47091 11.5349L5.83119 7.89517L4.80167 6.86482C4.64816 6.7122 4.44049 6.62653 4.22402 6.62653C4.00755 6.62653 3.79987 6.7122 3.64636 6.86482C3.57014 6.94031 3.50964 7.03016 3.46835 7.12916C3.42706 7.22817 3.4058 7.33438 3.4058 7.44165C3.4058 7.54892 3.42706 7.65513 3.46835 7.75414C3.50964 7.85315 3.57014 7.94299 3.64636 8.01848L4.6734 9.04551L8.31643 12.6894C8.35789 12.7307 8.39079 12.7797 8.41324 12.8338C8.43569 12.8878 8.44725 12.9458 8.44725 13.0043C8.44725 13.0628 8.43569 13.1207 8.41324 13.1748C8.39079 13.2288 8.35789 13.2779 8.31643 13.3192C8.27524 13.361 8.22615 13.3941 8.17202 13.4168C8.11789 13.4394 8.0598 13.4511 8.00112 13.4511C7.94244 13.4511 7.88435 13.4394 7.83022 13.4168C7.77609 13.3941 7.727 13.3508 7.68581 13.3192L3.79367 12.9964C3.71811 12.9202 3.6282 12.8597 3.52912 12.8184C3.43005 12.7771 3.32377 12.7558 3.21643 12.7558C3.10909 12.7558 3.00281 12.7771 2.90374 12.8184C2.80466 12.8597 2.71475 12.9202 2.63919 12.9964C2.48662 13.1498 2.40097 13.3573 2.40097 13.5737C2.40097 13.79 2.48662 13.9975 2.63919 14.1509L7.04195 18.5537C9.83174 21.3443 12.5371 22.6725 15.7233 19.4855C17.9917 17.2138 18.4312 14.8965 17.0648 12.3989L14.7402 8.30896H14.741Z"></path></svg>
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
font-family: octicons-link;
|
|
3
3
|
src: url(data:font/woff;charset=utf-8;base64,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) format('woff');
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
.markdown-body {
|
|
7
6
|
-ms-text-size-adjust: 100%;
|
|
8
7
|
-webkit-text-size-adjust: 100%;
|
|
@@ -1248,4 +1247,389 @@
|
|
|
1248
1247
|
}
|
|
1249
1248
|
}
|
|
1250
1249
|
|
|
1251
|
-
/*# sourceMappingURL=gitalk.css.map*/
|
|
1250
|
+
/*# sourceMappingURL=gitalk.css.map*/
|
|
1251
|
+
/* Comment composer follows a heading, account row, and full-width editor. */
|
|
1252
|
+
#gitalk-container .gt-container {
|
|
1253
|
+
position: relative;
|
|
1254
|
+
display: grid;
|
|
1255
|
+
grid-template-columns: 3.125em minmax(0, 1fr);
|
|
1256
|
+
column-gap: 0.75rem;
|
|
1257
|
+
row-gap: 0;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
#gitalk-container .gt-container .gt-meta {
|
|
1261
|
+
display: contents;
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
#gitalk-container .gt-container h2.gt-meta {
|
|
1265
|
+
display: contents;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
#gitalk-container .gt-container .gt-meta::before,
|
|
1269
|
+
#gitalk-container .gt-container .gt-meta::after {
|
|
1270
|
+
display: none;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
#gitalk-container .gt-container .gt-counts {
|
|
1274
|
+
grid-column: 1 / -1;
|
|
1275
|
+
grid-row: 1;
|
|
1276
|
+
margin: 0;
|
|
1277
|
+
padding: 1rem 0 0.75rem;
|
|
1278
|
+
border: 0;
|
|
1279
|
+
font-size: 1.25rem;
|
|
1280
|
+
font-weight: 500;
|
|
1281
|
+
line-height: 1.3;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
#gitalk-container .gt-container .gt-user {
|
|
1285
|
+
position: relative;
|
|
1286
|
+
grid-column: 2;
|
|
1287
|
+
grid-row: 2;
|
|
1288
|
+
align-self: center;
|
|
1289
|
+
justify-self: start;
|
|
1290
|
+
float: none;
|
|
1291
|
+
margin: 0;
|
|
1292
|
+
font-size: 1rem;
|
|
1293
|
+
font-weight: 400;
|
|
1294
|
+
line-height: 1.5;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
#gitalk-container .gt-container .gt-header {
|
|
1298
|
+
display: contents;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
#gitalk-container .gt-container .gt-header-avatar {
|
|
1302
|
+
position: static;
|
|
1303
|
+
grid-column: 1;
|
|
1304
|
+
grid-row: 2;
|
|
1305
|
+
align-self: center;
|
|
1306
|
+
width: 3.125em;
|
|
1307
|
+
height: 3.125em;
|
|
1308
|
+
margin: 0;
|
|
1309
|
+
border-radius: 50%;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
#gitalk-container .gt-container .gt-header-avatar img {
|
|
1313
|
+
border-radius: 50%;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
#gitalk-container .gt-container .gt-avatar-github {
|
|
1317
|
+
display: inline-block;
|
|
1318
|
+
grid-column: 1;
|
|
1319
|
+
grid-row: 2;
|
|
1320
|
+
align-self: center;
|
|
1321
|
+
width: 3.125em;
|
|
1322
|
+
height: 3.125em;
|
|
1323
|
+
margin: 0;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
#gitalk-container .gt-container .gt-header-comment {
|
|
1327
|
+
grid-column: 1 / -1;
|
|
1328
|
+
grid-row: 3;
|
|
1329
|
+
min-width: 0;
|
|
1330
|
+
margin: 0.75rem 0 0;
|
|
1331
|
+
padding: 0.75rem;
|
|
1332
|
+
border-radius: 2px;
|
|
1333
|
+
background: #f5f5f5;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
#gitalk-container .gt-container .gt-header-textarea,
|
|
1337
|
+
#gitalk-container .gt-container .gt-header-preview {
|
|
1338
|
+
min-height: 7.5rem;
|
|
1339
|
+
padding: 0.25rem;
|
|
1340
|
+
border: 0;
|
|
1341
|
+
border-radius: 0;
|
|
1342
|
+
background: transparent;
|
|
1343
|
+
font: inherit;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
#gitalk-container .gt-container .gt-header-textarea:hover {
|
|
1347
|
+
background: transparent;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
#gitalk-container .gt-container .gt-header-controls {
|
|
1351
|
+
display: flex;
|
|
1352
|
+
align-items: center;
|
|
1353
|
+
justify-content: flex-end;
|
|
1354
|
+
gap: 0.75rem;
|
|
1355
|
+
margin: 0.5rem 0 0;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
#gitalk-container .gt-container .gt-header-controls-tip {
|
|
1359
|
+
margin-right: auto;
|
|
1360
|
+
color: #777;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
#gitalk-container .gt-container .gt-header-controls .gt-btn {
|
|
1364
|
+
float: none;
|
|
1365
|
+
width: auto;
|
|
1366
|
+
margin: 0;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
#gitalk-container .gt-container .gt-comments {
|
|
1370
|
+
grid-column: 1 / -1;
|
|
1371
|
+
grid-row: 4;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
@media (max-width: 479px) {
|
|
1375
|
+
#gitalk-container .gt-container {
|
|
1376
|
+
grid-template-columns: 2.75em minmax(0, 1fr);
|
|
1377
|
+
column-gap: 0.875em;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
#gitalk-container .gt-container .gt-header-avatar {
|
|
1381
|
+
width: 2.75em;
|
|
1382
|
+
height: 2.75em;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
#gitalk-container .gt-container .gt-avatar-github {
|
|
1386
|
+
width: 2.75em;
|
|
1387
|
+
height: 2.75em;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
#gitalk-container .gt-container .gt-header-controls {
|
|
1391
|
+
flex-wrap: wrap;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
/* Keep the login menu anchored to the account row and above the editor. */
|
|
1397
|
+
#gitalk-container .gt-container .gt-user {
|
|
1398
|
+
z-index: 21;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
#gitalk-container .gt-container .gt-popup {
|
|
1402
|
+
position: absolute;
|
|
1403
|
+
top: calc(1rem + 2rem + 0.75rem + 3.125rem - 0.75rem);
|
|
1404
|
+
right: auto;
|
|
1405
|
+
left: 3.875rem;
|
|
1406
|
+
z-index: 22;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
/* Use one consistent inset around the editor content and action row. */
|
|
1410
|
+
#gitalk-container .gt-container .gt-header-comment {
|
|
1411
|
+
padding: 1rem;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
#gitalk-container .gt-container .gt-header-textarea,
|
|
1415
|
+
#gitalk-container .gt-container .gt-header-preview {
|
|
1416
|
+
padding: 0;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
#gitalk-container .gt-container .gt-header-controls {
|
|
1420
|
+
margin: 0;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
#gitalk-container .gt-container .gt-header-controls .gt-btn {
|
|
1424
|
+
margin: 0;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
@media (max-width: 479px) {
|
|
1428
|
+
#gitalk-container .gt-container .gt-popup {
|
|
1429
|
+
top: calc(1rem + 2rem + 0.75rem + 2.75rem - 0.75rem);
|
|
1430
|
+
left: 3.625rem;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
#gitalk-container .gt-container .gt-header-comment {
|
|
1434
|
+
padding: 0.875rem;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/* Center the loading placeholder across the full comments area. */
|
|
1439
|
+
#gitalk-container .gt-container .gt-initing {
|
|
1440
|
+
grid-column: 1 / -1;
|
|
1441
|
+
grid-row: 1;
|
|
1442
|
+
display: flex;
|
|
1443
|
+
min-height: 12rem;
|
|
1444
|
+
flex-direction: column;
|
|
1445
|
+
align-items: center;
|
|
1446
|
+
justify-content: center;
|
|
1447
|
+
padding: 1rem;
|
|
1448
|
+
text-align: center;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
#gitalk-container .gt-container .gt-initing-text {
|
|
1452
|
+
margin: 0.625em 0 0;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/* Prevent Gitalk's float-clearing pseudo elements from shifting flex actions. */
|
|
1456
|
+
#gitalk-container .gt-container .gt-header-controls::before,
|
|
1457
|
+
#gitalk-container .gt-container .gt-header-controls::after {
|
|
1458
|
+
display: none;
|
|
1459
|
+
content: none;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
#gitalk-container .gt-container .gt-header-controls {
|
|
1463
|
+
box-sizing: border-box;
|
|
1464
|
+
width: 100%;
|
|
1465
|
+
padding: 0;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
#gitalk-container .gt-container .gt-header-controls {
|
|
1469
|
+
align-items: flex-end;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/* Pin the Markdown hint to the panel's lower-left inset. */
|
|
1473
|
+
#gitalk-container .gt-container .gt-header-comment {
|
|
1474
|
+
position: relative;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
#gitalk-container .gt-container .gt-header-controls-tip {
|
|
1478
|
+
position: absolute;
|
|
1479
|
+
left: 0;
|
|
1480
|
+
bottom: -0.25rem;
|
|
1481
|
+
margin: 0;
|
|
1482
|
+
line-height: 1.5;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
@media (max-width: 479px) {
|
|
1486
|
+
#gitalk-container .gt-container .gt-header-controls-tip {
|
|
1487
|
+
left: 0;
|
|
1488
|
+
bottom: -0.25rem;
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
#gitalk-container .gt-container .gt-popup,
|
|
1493
|
+
#gitalk-container .gt-container .gt-popup * {
|
|
1494
|
+
font-weight: 400;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
#gitalk-container .gt-container .gt-popup {
|
|
1498
|
+
top: calc(1rem + 2rem + 0.75rem + 3.125rem - 0.75rem);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
@media (max-width: 479px) {
|
|
1502
|
+
#gitalk-container .gt-container .gt-popup {
|
|
1503
|
+
top: calc(1rem + 2rem + 0.75rem + 2.75rem - 0.75rem);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
@media (min-width: 480px) {
|
|
1508
|
+
#gitalk-container .gt-container .gt-comment-body img {
|
|
1509
|
+
max-width: 50% !important;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
@media (max-width: 479px) {
|
|
1514
|
+
#gitalk-container .gt-container .gt-comment-body img {
|
|
1515
|
+
max-width: none !important;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
#gitalk-container .gt-container .gt-comment-like .gt-ico-heart {
|
|
1521
|
+
display: inline-flex;
|
|
1522
|
+
align-items: center;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
#gitalk-container .gt-container .gt-comment-like .gt-ico-heart .gt-ico-text {
|
|
1526
|
+
display: inline-block;
|
|
1527
|
+
margin-left: 0.25em !important;
|
|
1528
|
+
color: #6b6b6b;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
#gitalk-container .gt-container .gt-comment {
|
|
1532
|
+
--comment-content-indent: calc(3.125em + 1em);
|
|
1533
|
+
display: grid;
|
|
1534
|
+
grid-template-columns: 3.125em minmax(0, 1fr);
|
|
1535
|
+
grid-template-rows: auto auto auto auto;
|
|
1536
|
+
column-gap: 1em;
|
|
1537
|
+
align-items: start;
|
|
1538
|
+
padding: 1.5em 0;
|
|
1539
|
+
border-bottom: 1px solid #f2f2f2;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
#gitalk-container .gt-container .gt-comment:last-child {
|
|
1543
|
+
border-bottom: 0;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
#gitalk-container .gt-container .gt-comment-avatar {
|
|
1547
|
+
position: static;
|
|
1548
|
+
grid-column: 1;
|
|
1549
|
+
grid-row: 1 / span 2;
|
|
1550
|
+
align-self: center;
|
|
1551
|
+
border-radius: 50%;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
#gitalk-container .gt-container .gt-comment-avatar img {
|
|
1555
|
+
border-radius: 50%;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
#gitalk-container .gt-container .gt-comment-content,
|
|
1559
|
+
#gitalk-container .gt-container .gt-comment-header {
|
|
1560
|
+
display: contents;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
#gitalk-container .gt-container .gt-comment-block-1,
|
|
1564
|
+
#gitalk-container .gt-container .gt-comment-block-2,
|
|
1565
|
+
#gitalk-container .gt-container .gt-comment-text {
|
|
1566
|
+
display: none;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
#gitalk-container .gt-container .gt-comment-username {
|
|
1570
|
+
position: relative;
|
|
1571
|
+
top: 2px;
|
|
1572
|
+
grid-column: 2;
|
|
1573
|
+
grid-row: 1;
|
|
1574
|
+
line-height: 1.5;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
#gitalk-container .gt-container .gt-comment-date {
|
|
1578
|
+
position: relative;
|
|
1579
|
+
top: 2px;
|
|
1580
|
+
grid-column: 2;
|
|
1581
|
+
grid-row: 2;
|
|
1582
|
+
margin: 0.2em 0 0;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
#gitalk-container .gt-container .gt-comment-body {
|
|
1586
|
+
grid-column: 2;
|
|
1587
|
+
grid-row: 3;
|
|
1588
|
+
min-width: 0;
|
|
1589
|
+
width: calc(100% + var(--comment-content-indent));
|
|
1590
|
+
margin: 0.9em 0 0 calc(-1 * var(--comment-content-indent));
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
#gitalk-container .gt-container .gt-comment-like,
|
|
1594
|
+
#gitalk-container .gt-container .gt-comment-reply,
|
|
1595
|
+
#gitalk-container .gt-container .gt-comment-edit {
|
|
1596
|
+
position: static;
|
|
1597
|
+
display: inline-flex;
|
|
1598
|
+
align-items: center;
|
|
1599
|
+
align-self: center;
|
|
1600
|
+
grid-column: 2;
|
|
1601
|
+
grid-row: 4;
|
|
1602
|
+
width: max-content;
|
|
1603
|
+
height: 1.5em;
|
|
1604
|
+
margin-top: 1.1em;
|
|
1605
|
+
line-height: 1;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
#gitalk-container .gt-container .gt-comment-like {
|
|
1609
|
+
transform: translateX(calc(-1 * var(--comment-content-indent) + 1em));
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
#gitalk-container .gt-container .gt-comment-reply,
|
|
1613
|
+
#gitalk-container .gt-container .gt-comment-edit {
|
|
1614
|
+
margin-left: 3em;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
#gitalk-container .gt-container .gt-comment:has(.gt-comment-like):not(:has(.gt-ico-text:not(:empty))) .gt-comment-reply {
|
|
1618
|
+
margin-left: 2em !important;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
@media (max-width: 479px) {
|
|
1622
|
+
#gitalk-container .gt-container .gt-comment {
|
|
1623
|
+
--comment-content-indent: calc(2.75em + 0.875em);
|
|
1624
|
+
grid-template-columns: 2.75em minmax(0, 1fr);
|
|
1625
|
+
column-gap: 0.875em;
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
#gitalk-container .gt-container .user-mention {
|
|
1630
|
+
text-decoration: none;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
#gitalk-container .gt-container .user-mention:hover {
|
|
1634
|
+
text-decoration: underline;
|
|
1635
|
+
}
|