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

Commit

Permalink
fix(contest): 竞赛详情页样式未覆盖问题
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcater committed Aug 17, 2020
1 parent e075c86 commit f71bf40
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 2 deletions.
79 changes: 78 additions & 1 deletion leetcode-cn-dark.user.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ==UserStyle==
@name LeetcodeCN Dark
@namespace github.com/blackcater/LeetCodeCN-Dark
@version 1.0.2
@version 1.0.3
@license Mulan PSL
@updateURL https://raw.githubusercontent.com/blackcater/LeetCodeCN-Dark/master/leetcode-cn-dark.user.css
@author Elon Tang <blackcater2015@gmail.com>
Expand All @@ -17,6 +17,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -215,6 +216,73 @@
border: 1px solid #218443 !important;
background: #218443 !important;
}
#base_content .contest-detail-base .page-heading .title .contest-name {
color: #dbdbdb !important;
}
#base_content .contest-detail-base .page-heading .title .contest-time {
color: #5c5c5c !important;
}
#base_content .contest-detail-base .callout.callout-info a {
color: #4191ff !important;
}
#base_content .contest-detail-base .container.contest-information img {
filter: brightness(0.8);
}
#base_content .contest-detail-base h3,
#base_content .contest-detail-base h4 {
color: #dbdbdb !important;
}
#base_content .contest-detail-base ul.list-group {
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
}
#base_content .contest-detail-base ul.list-group li.list-group-item {
color: #dbdbdb !important;
border: 1px solid #2b2b2b !important;
background: #1c1c1c !important;
}
#base_content .contest-detail-base ul.list-group li.list-group-item:hover {
background: #2b2b2b !important;
}
#base_content .contest-detail-base ul.list-group li.list-group-item a {
color: #b3b3b3 !important;
}
#base_content .contest-detail-base hr {
border-top: 1px solid #3d3d3d !important;
}
#base_content .contest-detail-base a.btn.btn-default,
#base_content .contest-detail-base button.btn.btn-default {
color: #b3b3b3 !important;
border: 1px solid #3d3d3d !important;
background: transparent !important;
}
#base_content .contest-detail-base a.btn.btn-default:hover,
#base_content .contest-detail-base button.btn.btn-default:hover {
color: #57c47d !important;
border: 1px solid #57c47d !important;
background: #06190d !important;
}
#base_content .contest-detail-base a.btn.btn-success,
#base_content .contest-detail-base button.btn.btn-success {
color: #ffffff !important;
border: none !important;
background: #2db55d !important;
}
#base_content .contest-detail-base a.btn.btn-success:hover,
#base_content .contest-detail-base button.btn.btn-success:hover {
color: #dbdbdb !important;
background: #218443 !important;
}
#base_content .contest-detail-base a.btn.btn-primary,
#base_content .contest-detail-base button.btn.btn-primary {
color: #ffffff !important;
border: none !important;
background: #2e68b9 !important;
}
#base_content .contest-detail-base a.btn.btn-primary:hover,
#base_content .contest-detail-base button.btn.btn-primary:hover {
color: #dbdbdb !important;
background: #2e68b9 !important;
}
.pagination-base__aILV ul.pagination li.prev-btn span,
.pagination-base__aILV ul.pagination li.next-btn span {
background: #2b2b2b !important;
Expand Down Expand Up @@ -253,6 +321,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -515,6 +584,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -695,6 +765,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -1034,6 +1105,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -1160,6 +1232,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -1362,6 +1435,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -1525,6 +1599,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -2012,6 +2087,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down Expand Up @@ -2256,6 +2332,7 @@
}
.callout {
border: 1px solid #2b2b2b;
background: #1c1c1c !important;
}
.callout.callout-info {
border-left-width: 5px !important;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LeetCodeCN-Dark",
"version": "1.0.2",
"version": "1.0.3",
"description": "中国区 LeetCode 支持黑色主题",
"main": "index.js",
"repository": "https://github.com/blackcater/LeetCodeCN-Dark.git",
Expand Down
65 changes: 65 additions & 0 deletions src/contest.less
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,71 @@
}
}

// 详情页
#base_content .contest-detail-base {
.page-heading .title {
.contest-name {
color: @title-color !important;
}

.contest-time {
color: @text-secondary-color !important;
}
}

.callout.callout-info a {
color: @blue-color !important;
}

.container.contest-information {
img {
filter: brightness(0.8);
}
}

h3,
h4 {
color: @title-color !important;
}

ul.list-group {
box-shadow: @card-shadow !important;

li.list-group-item {
color: @text-light-color !important;
border: 1px solid @card-background-color !important;
background: @background-color !important;

&:hover {
background: @card-background-color !important;
}

a {
color: @text-color !important;
}
}
}

hr {
border-top: 1px solid @border-color !important;
}

a.btn.btn-default,
button.btn.btn-default {
.btn-default();
}

a.btn.btn-success,
button.btn.btn-success {
.btn-primary();
}

a.btn.btn-primary,
button.btn.btn-primary {
.btn-blue();
}
}

// 分页器
.pagination-base__aILV {
ul.pagination {
Expand Down
11 changes: 11 additions & 0 deletions src/less/_func.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@
}
}

.btn-blue() {
color: @white-color !important;
border: none !important;
background: @blue4-color !important;

&:hover {
color: @text-light-color !important;
background: @blue4-color !important;
}
}

.ipt-default() {
&::placeholder {
color: @text-secondary-color !important;
Expand Down
1 change: 1 addition & 0 deletions src/less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ h1 {

.callout {
border: 1px solid @card-background-color;
background: @background-color !important;

&.callout-info {
border-left-width: 5px !important;
Expand Down

0 comments on commit f71bf40

Please sign in to comment.