Skip to content

Commit 87e2c15

Browse files
committed
Site updated: 2022-08-14 21:31:05
1 parent 6290625 commit 87e2c15

File tree

1 file changed

+219
-23
lines changed

1 file changed

+219
-23
lines changed

css/index.css

Lines changed: 219 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -295,20 +295,24 @@ hr:before,
295295
object-fit: cover;
296296
}
297297
.list-beauty,
298-
.category-lists ul {
298+
.category-lists ul,
299+
#algolia-search .search-dialog .ais-Hits-list {
299300
list-style: none;
300301
}
301302
.list-beauty li,
302-
.category-lists ul li {
303+
.category-lists ul li,
304+
#algolia-search .search-dialog .ais-Hits-list li {
303305
position: relative;
304306
padding: 0.12em 0.4em 0.12em 1.4em;
305307
}
306308
.list-beauty li:hover:before,
307-
.category-lists ul li:hover:before {
309+
.category-lists ul li:hover:before,
310+
#algolia-search .search-dialog .ais-Hits-list li:hover:before {
308311
border-color: var(--pseudo-hover);
309312
}
310313
.list-beauty li:before,
311-
.category-lists ul li:before {
314+
.category-lists ul li:before,
315+
#algolia-search .search-dialog .ais-Hits-list li:before {
312316
position: absolute;
313317
top: 0.67em;
314318
left: 0;
@@ -405,6 +409,13 @@ canvas:not(#ribbon-canvas),
405409
-ms-animation: scroll-down-effect 1.5s infinite;
406410
animation: scroll-down-effect 1.5s infinite;
407411
}
412+
.avatar-img {
413+
-webkit-animation: avatar_turn_around 2s linear infinite;
414+
-moz-animation: avatar_turn_around 2s linear infinite;
415+
-o-animation: avatar_turn_around 2s linear infinite;
416+
-ms-animation: avatar_turn_around 2s linear infinite;
417+
animation: avatar_turn_around 2s linear infinite;
418+
}
408419
.reward-main {
409420
-webkit-animation: donate_effcet 0.3s 0.1s ease both;
410421
-moz-animation: donate_effcet 0.3s 0.1s ease both;
@@ -1524,14 +1535,14 @@ blockquote > :last-child {
15241535
margin-bottom: 0 !important;
15251536
}
15261537
:root {
1527-
--hl-color: #90a4ae;
1528-
--hl-bg: #f6f8fa;
1529-
--hltools-bg: #e6ebf1;
1530-
--hltools-color: #90a4ae;
1531-
--hlnumber-bg: #f6f8fa;
1532-
--hlnumber-color: rgba(144,164,174,0.5);
1533-
--hlscrollbar-bg: #dce4eb;
1534-
--hlexpand-bg: linear-gradient(180deg, rgba(246,248,250,0.6), rgba(246,248,250,0.9));
1538+
--hl-color: #eff;
1539+
--hl-bg: #212121;
1540+
--hltools-bg: #1c1c1c;
1541+
--hltools-color: rgba(238,255,255,0.8);
1542+
--hlnumber-bg: #212121;
1543+
--hlnumber-color: rgba(238,255,255,0.5);
1544+
--hlscrollbar-bg: #353535;
1545+
--hlexpand-bg: linear-gradient(180deg, rgba(33,33,33,0.6), rgba(33,33,33,0.9));
15351546
}
15361547
figure.highlight table {
15371548
scrollbar-color: var(--hlscrollbar-bg) transparent;
@@ -1546,10 +1557,10 @@ figure.highlight pre .addition {
15461557
color: #105ede;
15471558
}
15481559
figure.highlight pre .meta {
1549-
color: #7c4dff;
1560+
color: #c792ea;
15501561
}
15511562
figure.highlight pre .comment {
1552-
color: rgba(149,165,166,0.8);
1563+
color: #969896;
15531564
}
15541565
figure.highlight pre .variable,
15551566
figure.highlight pre .attribute,
@@ -1563,21 +1574,21 @@ figure.highlight pre .css .id,
15631574
figure.highlight pre .tag .name,
15641575
figure.highlight pre .css .class,
15651576
figure.highlight pre .css .pseudo {
1566-
color: #e53935;
1577+
color: #ff5370;
15671578
}
15681579
figure.highlight pre .tag {
1569-
color: #39adb5;
1580+
color: #89ddff;
15701581
}
15711582
figure.highlight pre .number,
15721583
figure.highlight pre .preprocessor,
15731584
figure.highlight pre .literal,
15741585
figure.highlight pre .params,
15751586
figure.highlight pre .constant,
15761587
figure.highlight pre .command {
1577-
color: #f76d47;
1588+
color: #f78c6c;
15781589
}
15791590
figure.highlight pre .built_in {
1580-
color: #ffb62c;
1591+
color: #ffcb6b;
15811592
}
15821593
figure.highlight pre .ruby .class .title,
15831594
figure.highlight pre .css .rules .attribute,
@@ -1590,12 +1601,12 @@ figure.highlight pre .xml .cdata,
15901601
figure.highlight pre .special,
15911602
figure.highlight pre .number,
15921603
figure.highlight pre .formula {
1593-
color: #91b859;
1604+
color: #c3e88d;
15941605
}
15951606
figure.highlight pre .keyword,
15961607
figure.highlight pre .title,
15971608
figure.highlight pre .css .hexcolor {
1598-
color: #39adb5;
1609+
color: #89ddff;
15991610
}
16001611
figure.highlight pre .function,
16011612
figure.highlight pre .python .decorator,
@@ -1605,14 +1616,14 @@ figure.highlight pre .ruby .title .keyword,
16051616
figure.highlight pre .perl .sub,
16061617
figure.highlight pre .javascript .title,
16071618
figure.highlight pre .coffeescript .title {
1608-
color: #6182b8;
1619+
color: #82aaff;
16091620
}
16101621
figure.highlight pre .tag .attr,
16111622
figure.highlight pre .javascript .function {
1612-
color: #7c4dff;
1623+
color: #c792ea;
16131624
}
16141625
#article-container figure.highlight .line.marked {
1615-
background-color: rgba(128,203,196,0.251);
1626+
background-color: rgba(97,97,97,0.314);
16161627
}
16171628
#article-container figure.highlight table {
16181629
display: block;
@@ -1784,6 +1795,48 @@ figure.highlight pre .javascript .function {
17841795
#article-container .gist table td {
17851796
border: none;
17861797
}
1798+
#article-container figure.highlight {
1799+
margin: 0 0 24px;
1800+
border-radius: 7px;
1801+
-webkit-box-shadow: 0 5px 10px 0 rgba(0,0,0,0.4);
1802+
box-shadow: 0 5px 10px 0 rgba(0,0,0,0.4);
1803+
-webkit-transform: translateZ(0);
1804+
}
1805+
#article-container figure.highlight .highlight-tools:after {
1806+
position: absolute;
1807+
left: 14px;
1808+
width: 12px;
1809+
height: 12px;
1810+
border-radius: 50%;
1811+
background: #fc625d;
1812+
-webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
1813+
box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
1814+
content: ' ';
1815+
}
1816+
#article-container figure.highlight .highlight-tools .expand {
1817+
right: 0;
1818+
}
1819+
#article-container figure.highlight .highlight-tools .expand.closed {
1820+
-webkit-transition: all 0.3s;
1821+
-moz-transition: all 0.3s;
1822+
-o-transition: all 0.3s;
1823+
-ms-transition: all 0.3s;
1824+
transition: all 0.3s;
1825+
-webkit-transform: rotate(90deg) !important;
1826+
-moz-transform: rotate(90deg) !important;
1827+
-o-transform: rotate(90deg) !important;
1828+
-ms-transform: rotate(90deg) !important;
1829+
transform: rotate(90deg) !important;
1830+
}
1831+
#article-container figure.highlight .highlight-tools .expand ~ .copy-notice {
1832+
right: 3.45em;
1833+
}
1834+
#article-container figure.highlight .highlight-tools .expand ~ .copy-button {
1835+
right: 2.1em;
1836+
}
1837+
#article-container figure.highlight .highlight-tools .code-lang {
1838+
left: 75px;
1839+
}
17871840
@-moz-keyframes code-expand-key {
17881841
0% {
17891842
opacity: 0.6;
@@ -5487,3 +5540,146 @@ blockquote.pullquote.right {
54875540
.read-mode #article-container .note .note-icon {
54885541
color: var(--font-color);
54895542
}
5543+
.search-dialog {
5544+
position: fixed;
5545+
top: 10%;
5546+
left: 50%;
5547+
z-index: 1001;
5548+
display: none;
5549+
margin-left: -300px;
5550+
padding: 20px;
5551+
width: 600px;
5552+
border-radius: 8px;
5553+
background: var(--search-bg);
5554+
}
5555+
@media screen and (max-width: 768px) {
5556+
.search-dialog {
5557+
top: 0;
5558+
left: 0;
5559+
margin: 0;
5560+
width: 100%;
5561+
height: 100%;
5562+
border-radius: 0;
5563+
}
5564+
}
5565+
.search-dialog hr {
5566+
margin: 20px auto;
5567+
}
5568+
.search-dialog .search-nav {
5569+
margin: 0 0 14px;
5570+
color: #49b1f5;
5571+
font-size: 1.4em;
5572+
line-height: 1;
5573+
}
5574+
.search-dialog .search-nav .search-dialog-title {
5575+
margin-right: 10px;
5576+
}
5577+
.search-dialog .search-nav .search-close-button {
5578+
float: right;
5579+
color: #858585;
5580+
-webkit-transition: color 0.2s ease-in-out;
5581+
-moz-transition: color 0.2s ease-in-out;
5582+
-o-transition: color 0.2s ease-in-out;
5583+
-ms-transition: color 0.2s ease-in-out;
5584+
transition: color 0.2s ease-in-out;
5585+
}
5586+
.search-dialog .search-nav .search-close-button:hover {
5587+
color: #49b1f5;
5588+
}
5589+
#search-mask {
5590+
position: fixed;
5591+
top: 0;
5592+
right: 0;
5593+
bottom: 0;
5594+
left: 0;
5595+
z-index: 1000;
5596+
display: none;
5597+
background: rgba(0,0,0,0.6);
5598+
}
5599+
#algolia-search .search-dialog .ais-SearchBox input {
5600+
padding: 5px 14px;
5601+
width: 100%;
5602+
outline: none;
5603+
border: 2px solid #49b1f5;
5604+
border-radius: 40px;
5605+
background: var(--search-bg);
5606+
color: var(--search-input-color);
5607+
}
5608+
#algolia-search .search-dialog .ais-Hits-list {
5609+
margin: 0;
5610+
padding: 0;
5611+
}
5612+
#algolia-search .search-dialog .ais-Hits-list a {
5613+
color: var(--search-result-title);
5614+
}
5615+
#algolia-search .search-dialog .ais-Hits-list a:hover {
5616+
color: #49b1f5;
5617+
}
5618+
#algolia-search .search-dialog .ais-Hits-list mark {
5619+
background: transparent;
5620+
color: #f47466;
5621+
font-weight: bold;
5622+
}
5623+
#algolia-search .search-dialog .algolia-hit-item-content {
5624+
margin: 0 0 8px;
5625+
word-break: break-all;
5626+
}
5627+
#algolia-search .search-dialog .ais-Pagination {
5628+
margin: 20px 0 0;
5629+
padding: 0;
5630+
text-align: center;
5631+
}
5632+
#algolia-search .search-dialog .ais-Pagination .ais-Pagination-list {
5633+
margin: 0;
5634+
padding: 0;
5635+
list-style: none;
5636+
}
5637+
#algolia-search .search-dialog .ais-Pagination .ais-Pagination-item {
5638+
display: inline;
5639+
margin: 0 4px;
5640+
padding: 0;
5641+
}
5642+
#algolia-search .search-dialog .ais-Pagination .ais-Pagination-item .ais-Pagination-link {
5643+
display: inline-block;
5644+
min-width: 24px;
5645+
height: 24px;
5646+
text-align: center;
5647+
line-height: 24px;
5648+
}
5649+
#algolia-search .search-dialog .ais-Pagination .ais-Pagination-item--selected a {
5650+
background: #00c4b6;
5651+
color: #eee;
5652+
cursor: default;
5653+
}
5654+
#algolia-search .search-dialog .ais-Pagination .ais-Pagination-item--disabled {
5655+
visibility: hidden;
5656+
}
5657+
#algolia-search .search-dialog .algolia-logo {
5658+
padding-top: 2px;
5659+
width: 80px;
5660+
height: 30px;
5661+
}
5662+
#algolia-search .search-dialog #algolia-hits > div {
5663+
overflow-y: scroll;
5664+
}
5665+
@media screen and (min-width: 768px) {
5666+
#algolia-search .search-dialog #algolia-hits > div {
5667+
max-height: calc(80vh - 240px);
5668+
}
5669+
}
5670+
@media screen and (max-width: 768px) {
5671+
#algolia-search .search-dialog #algolia-hits > div {
5672+
height: calc(100vh - 260px);
5673+
}
5674+
}
5675+
#algolia-search .search-dialog #algolia-info div {
5676+
display: inline;
5677+
}
5678+
#algolia-search .search-dialog #algolia-info .algolia-poweredBy {
5679+
float: right;
5680+
}
5681+
@media screen and (max-width: 768px) {
5682+
.apple #algolia-search #algolia-hits > div {
5683+
height: calc(90vh - 260px);
5684+
}
5685+
}

0 commit comments

Comments
 (0)