Skip to content
This repository was archived by the owner on Jun 25, 2021. It is now read-only.

Commit 63674a0

Browse files
committed
feat: 进行一些修改
移除:首页和未登录样式覆盖(官方已经支持) 新增:提交记录页面
1 parent f71bf40 commit 63674a0

File tree

5 files changed

+271
-271
lines changed

5 files changed

+271
-271
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ LeetCode 估计最近是在样式迁移,很多页面还不支持黑色主题
3232

3333
## 样式支持
3434

35-
<details><summary><a href="https://leetcode-cn.com/">未登录样式</a></summary>
35+
<details><summary><a href="https://leetcode-cn.com/">未登录样式(❌官方已支持)</a></summary>
3636

3737
![未登录样式](./screenshot/screenshot-login.png)
3838

3939
</details>
4040

41-
<details><summary><a href="https://leetcode-cn.com/">主页</a></summary>
41+
<details><summary><a href="https://leetcode-cn.com/">主页(❌官方已支持)</a></summary>
4242

4343
![主页](./screenshot/screenshot-home.png)
4444

leetcode-cn-dark.user.css

+185-179
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ==UserStyle==
22
@name LeetcodeCN Dark
33
@namespace github.com/blackcater/LeetCodeCN-Dark
4-
@version 1.0.3
4+
@version 1.1.0
55
@license Mulan PSL
66
@updateURL https://raw.githubusercontent.com/blackcater/LeetCodeCN-Dark/master/leetcode-cn-dark.user.css
77
@author Elon Tang <blackcater2015@gmail.com>
@@ -574,184 +574,6 @@
574574
}
575575

576576
@-moz-document url("https://leetcode-cn.com/") {
577-
html,
578-
body {
579-
color: #b3b3b3 !important;
580-
background: #1c1c1c !important;
581-
}
582-
h1 {
583-
color: #dbdbdb !important;
584-
}
585-
.callout {
586-
border: 1px solid #2b2b2b;
587-
background: #1c1c1c !important;
588-
}
589-
.callout.callout-info {
590-
border-left-width: 5px !important;
591-
border-left-color: #4191ff !important;
592-
}
593-
.callout.callout-info h4 {
594-
color: #4191ff !important;
595-
}
596-
.ant-tooltip.ant-tooltip-placement-top .ant-tooltip-arrow,
597-
.ant-tooltip.ant-tooltip-placement-topLeft .ant-tooltip-arrow,
598-
.ant-tooltip.ant-tooltip-placement-topRight .ant-tooltip-arrow {
599-
border-top-color: #2b2b2b !important;
600-
}
601-
.ant-tooltip .ant-tooltip-inner {
602-
color: #b3b3b3 !important;
603-
background: #2b2b2b !important;
604-
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
605-
}
606-
.ant-popover.ant-popover-placement-top .ant-popover-arrow,
607-
.ant-popover.ant-popover-placement-topLeft .ant-popover-arrow,
608-
.ant-popover.ant-popover-placement-topRight .ant-popover-arrow {
609-
border-top-color: #2b2b2b !important;
610-
}
611-
.ant-popover .ant-popover-inner {
612-
color: #b3b3b3 !important;
613-
background: #2b2b2b !important;
614-
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
615-
}
616-
.content-wrapper::after {
617-
content: "";
618-
display: block;
619-
padding: 20px;
620-
background: #1c1c1c;
621-
}
622-
#noj-navbar > div {
623-
color: #dbdbdb !important;
624-
background: #2b2b2b !important;
625-
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05) !important;
626-
}
627-
#noj-navbar nav li {
628-
color: #dbdbdb !important;
629-
}
630-
#noj-navbar .css-1n67oxn-LightImg {
631-
display: none !important;
632-
}
633-
#noj-navbar .css-56tabg-DarkImg {
634-
display: block !important;
635-
}
636-
#noj-navbar a.css-tgtq8y-BaseButtonComponent-AppButton {
637-
color: #5ab726 !important;
638-
box-shadow: inset 0 0 0 1px #5ab726 !important;
639-
}
640-
#noj-navbar a.css-tgtq8y-BaseButtonComponent-AppButton:hover {
641-
color: #57c47d !important;
642-
background: #06190d !important;
643-
box-shadow: inset 0 0 0 1px #57c47d !important;
644-
}
645-
#lc-footer {
646-
padding: 15px 0 !important;
647-
color: #fff !important;
648-
background: #262626 !important;
649-
border-top: 1px solid #5c5c5c !important;
650-
}
651-
#lc-footer hr {
652-
display: none !important;
653-
}
654-
#lc-footer .row:first-of-type {
655-
margin-bottom: 10px !important;
656-
height: 38px !important;
657-
}
658-
#lc-footer .row.chinese-license a {
659-
color: #fff !important;
660-
}
661-
#lc-footer .copyright span {
662-
color: #fff !important;
663-
}
664-
#lc-footer .links a {
665-
color: #fff !important;
666-
}
667-
::-moz-selection {
668-
color: #fff !important;
669-
background: #37474f !important;
670-
}
671-
::selection {
672-
color: #fff !important;
673-
background: #37474f !important;
674-
}
675-
.ant-dropdown.css-mmpgiv-DropdownComponentClassName {
676-
filter: invert(0.88) hue-rotate(180deg);
677-
}
678-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer {
679-
background: #2b2b2b !important;
680-
box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.54) !important;
681-
border: 1px solid #3d3d3d !important;
682-
}
683-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer .css-1tlu1zr-Wrapper .css-8wgfkr-UserNameContainer {
684-
color: #ffa119 !important;
685-
}
686-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer .css-1tlu1zr-Wrapper .css-hfz3b8-TimeRemainContainer {
687-
color: #ffa119 !important;
688-
}
689-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer .css-1tlu1zr-Wrapper svg {
690-
fill: #ffa119 !important;
691-
}
692-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer a {
693-
color: #b3b3b3 !important;
694-
}
695-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer a:hover {
696-
background: #3d3d3d !important;
697-
}
698-
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer a svg {
699-
fill: #b3b3b3 !important;
700-
}
701-
.storyboard {
702-
border-right: 1px solid #3d3d3d !important;
703-
}
704-
.storyboard hr {
705-
border-top: 1px solid #3d3d3d !important;
706-
}
707-
.storyboard .media .media-left.media-top {
708-
filter: brightness(0.8);
709-
}
710-
.storyboard .media .media-body .since {
711-
color: #5c5c5c !important;
712-
}
713-
.storyboard .media .media-body .media-heading {
714-
color: #dbdbdb !important;
715-
}
716-
.storyboard .media .media-body .media-heading a {
717-
color: #4191ff !important;
718-
}
719-
.side-bar .wrapper__2b4L img {
720-
filter: brightness(0.8);
721-
}
722-
.side-bar .side-block .side-block-title {
723-
color: #dbdbdb !important;
724-
}
725-
.side-bar .side-block .side-block-info {
726-
color: #b3b3b3 !important;
727-
}
728-
.side-bar .side-block .side-block-image img {
729-
filter: brightness(0.8);
730-
}
731-
.side-bar .side-block a.side-block-btn {
732-
color: #b3b3b3 !important;
733-
border: 1px solid #3d3d3d !important;
734-
background: transparent !important;
735-
}
736-
.side-bar .side-block a.side-block-btn:hover {
737-
color: #57c47d !important;
738-
border: 1px solid #57c47d !important;
739-
background: #06190d !important;
740-
}
741-
.side-bar .problem-category a.link {
742-
color: #dbdbdb !important;
743-
}
744-
.side-bar .problem-category a.link:hover {
745-
color: #b3b3b3 !important;
746-
background: #2b2b2b !important;
747-
}
748-
.side-bar .problem-category a.link i.fa {
749-
color: #5ab726 !important;
750-
}
751-
.sign-in-modal-container + .modal-container > div,
752-
.popper-container > .css-1jjfby9-Container-layer1-level3-DropdownPopperContainer {
753-
filter: invert(1) hue-rotate(180deg);
754-
}
755577
}
756578

757579
@-moz-document url-prefix("https://leetcode-cn.com/list/") {
@@ -2484,3 +2306,187 @@
24842306
background: #937849 !important;
24852307
}
24862308
}
2309+
2310+
@-moz-document url("https://leetcode-cn.com/submissions/") {
2311+
html,
2312+
body {
2313+
color: #b3b3b3 !important;
2314+
background: #1c1c1c !important;
2315+
}
2316+
h1 {
2317+
color: #dbdbdb !important;
2318+
}
2319+
.callout {
2320+
border: 1px solid #2b2b2b;
2321+
background: #1c1c1c !important;
2322+
}
2323+
.callout.callout-info {
2324+
border-left-width: 5px !important;
2325+
border-left-color: #4191ff !important;
2326+
}
2327+
.callout.callout-info h4 {
2328+
color: #4191ff !important;
2329+
}
2330+
.ant-tooltip.ant-tooltip-placement-top .ant-tooltip-arrow,
2331+
.ant-tooltip.ant-tooltip-placement-topLeft .ant-tooltip-arrow,
2332+
.ant-tooltip.ant-tooltip-placement-topRight .ant-tooltip-arrow {
2333+
border-top-color: #2b2b2b !important;
2334+
}
2335+
.ant-tooltip .ant-tooltip-inner {
2336+
color: #b3b3b3 !important;
2337+
background: #2b2b2b !important;
2338+
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
2339+
}
2340+
.ant-popover.ant-popover-placement-top .ant-popover-arrow,
2341+
.ant-popover.ant-popover-placement-topLeft .ant-popover-arrow,
2342+
.ant-popover.ant-popover-placement-topRight .ant-popover-arrow {
2343+
border-top-color: #2b2b2b !important;
2344+
}
2345+
.ant-popover .ant-popover-inner {
2346+
color: #b3b3b3 !important;
2347+
background: #2b2b2b !important;
2348+
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
2349+
}
2350+
.content-wrapper::after {
2351+
content: "";
2352+
display: block;
2353+
padding: 20px;
2354+
background: #1c1c1c;
2355+
}
2356+
#noj-navbar > div {
2357+
color: #dbdbdb !important;
2358+
background: #2b2b2b !important;
2359+
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05) !important;
2360+
}
2361+
#noj-navbar nav li {
2362+
color: #dbdbdb !important;
2363+
}
2364+
#noj-navbar .css-1n67oxn-LightImg {
2365+
display: none !important;
2366+
}
2367+
#noj-navbar .css-56tabg-DarkImg {
2368+
display: block !important;
2369+
}
2370+
#noj-navbar a.css-tgtq8y-BaseButtonComponent-AppButton {
2371+
color: #5ab726 !important;
2372+
box-shadow: inset 0 0 0 1px #5ab726 !important;
2373+
}
2374+
#noj-navbar a.css-tgtq8y-BaseButtonComponent-AppButton:hover {
2375+
color: #57c47d !important;
2376+
background: #06190d !important;
2377+
box-shadow: inset 0 0 0 1px #57c47d !important;
2378+
}
2379+
#lc-footer {
2380+
padding: 15px 0 !important;
2381+
color: #fff !important;
2382+
background: #262626 !important;
2383+
border-top: 1px solid #5c5c5c !important;
2384+
}
2385+
#lc-footer hr {
2386+
display: none !important;
2387+
}
2388+
#lc-footer .row:first-of-type {
2389+
margin-bottom: 10px !important;
2390+
height: 38px !important;
2391+
}
2392+
#lc-footer .row.chinese-license a {
2393+
color: #fff !important;
2394+
}
2395+
#lc-footer .copyright span {
2396+
color: #fff !important;
2397+
}
2398+
#lc-footer .links a {
2399+
color: #fff !important;
2400+
}
2401+
::-moz-selection {
2402+
color: #fff !important;
2403+
background: #37474f !important;
2404+
}
2405+
::selection {
2406+
color: #fff !important;
2407+
background: #37474f !important;
2408+
}
2409+
.ant-dropdown.css-mmpgiv-DropdownComponentClassName {
2410+
filter: invert(0.88) hue-rotate(180deg);
2411+
}
2412+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer {
2413+
background: #2b2b2b !important;
2414+
box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.54) !important;
2415+
border: 1px solid #3d3d3d !important;
2416+
}
2417+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer .css-1tlu1zr-Wrapper .css-8wgfkr-UserNameContainer {
2418+
color: #ffa119 !important;
2419+
}
2420+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer .css-1tlu1zr-Wrapper .css-hfz3b8-TimeRemainContainer {
2421+
color: #ffa119 !important;
2422+
}
2423+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer .css-1tlu1zr-Wrapper svg {
2424+
fill: #ffa119 !important;
2425+
}
2426+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer a {
2427+
color: #b3b3b3 !important;
2428+
}
2429+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer a:hover {
2430+
background: #3d3d3d !important;
2431+
}
2432+
.popper-container > .css-1rezss4-Container-layer1-level3-DropdownPopperContainer a svg {
2433+
fill: #b3b3b3 !important;
2434+
}
2435+
#base_content h3,
2436+
#base_content h4 {
2437+
color: #dbdbdb !important;
2438+
}
2439+
#submission-list-app table {
2440+
border: 1px solid #3d3d3d !important;
2441+
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
2442+
}
2443+
#submission-list-app table thead {
2444+
color: #dbdbdb !important;
2445+
background: #2b2b2b !important;
2446+
}
2447+
#submission-list-app table thead th {
2448+
border-color: #3d3d3d !important;
2449+
}
2450+
#submission-list-app table tbody tr:hover {
2451+
background: #3d3d3d !important;
2452+
}
2453+
#submission-list-app table tbody tr:nth-child(2n + 1) {
2454+
background: #2b2b2b !important;
2455+
}
2456+
#submission-list-app table tbody tr:nth-child(2n + 1):hover {
2457+
background: #3d3d3d !important;
2458+
}
2459+
#submission-list-app table tbody td {
2460+
border-color: #3d3d3d !important;
2461+
}
2462+
#submission-list-app table tbody td a.text-success {
2463+
color: #5ab726 !important;
2464+
}
2465+
#submission-list-app table tbody td a.text-danger {
2466+
color: #ef4743 !important;
2467+
}
2468+
#submission-list-app nav li.previous,
2469+
#submission-list-app nav li.next {
2470+
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
2471+
}
2472+
#submission-list-app nav li.previous span,
2473+
#submission-list-app nav li.next span,
2474+
#submission-list-app nav li.previous a,
2475+
#submission-list-app nav li.next a {
2476+
color: #4191ff !important;
2477+
background: #2b2b2b !important;
2478+
border: none !important;
2479+
}
2480+
#submission-list-app nav li.previous:hover span,
2481+
#submission-list-app nav li.next:hover span,
2482+
#submission-list-app nav li.previous:hover a,
2483+
#submission-list-app nav li.next:hover a {
2484+
background: #3d3d3d !important;
2485+
}
2486+
#submission-list-app nav li.previous.disabled span,
2487+
#submission-list-app nav li.next.disabled span,
2488+
#submission-list-app nav li.previous.disabled a,
2489+
#submission-list-app nav li.next.disabled a {
2490+
color: #5c5c5c !important;
2491+
}
2492+
}

0 commit comments

Comments
 (0)