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

Commit

Permalink
fix(session): 进度管理页面弹窗未处理
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcater committed Aug 15, 2020
1 parent a223301 commit e075c86
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 2 deletions.
78 changes: 77 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.1
@version 1.0.2
@license Mulan PSL
@updateURL https://raw.githubusercontent.com/blackcater/LeetCodeCN-Dark/master/leetcode-cn-dark.user.css
@author Elon Tang <blackcater2015@gmail.com>
Expand Down Expand Up @@ -2163,10 +2163,86 @@
border: none !important;
background: #2b2b2b !important;
}
.panel .panel-heading input {
color: #dbdbdb !important;
border: 1px solid #3d3d3d !important;
background-color: #1c1c1c !important;
box-shadow: none !important;
}
.panel .panel-heading input::-moz-placeholder {
color: #5c5c5c !important;
}
.panel .panel-heading input::placeholder {
color: #5c5c5c !important;
}
.panel .panel-heading input:focus {
border: 1px solid #2db55d !important;
}
.panel .panel-heading button {
color: #b3b3b3 !important;
border: 1px solid #3d3d3d !important;
background: transparent !important;
}
.panel .panel-heading button:hover {
color: #57c47d !important;
border: 1px solid #57c47d !important;
background: #06190d !important;
}
.panel .panel-body .list-group-item {
border: 1px solid #2b2b2b !important;
background: #1c1c1c !important;
}
.rc-dialog .rc-dialog-content {
color: #b3b3b3 !important;
background: #2b2b2b !important;
box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3) !important;
}
.rc-dialog .rc-dialog-content .modal-header {
border-bottom: 1px solid #3d3d3d !important;
}
.rc-dialog .rc-dialog-content .modal-header .modal-title {
color: #dbdbdb !important;
}
.rc-dialog .rc-dialog-content .modal-header button.close {
color: #dbdbdb !important;
}
.rc-dialog .rc-dialog-content .modal-body input.form-control {
color: #dbdbdb !important;
border: 1px solid #3d3d3d !important;
background-color: #1c1c1c !important;
box-shadow: none !important;
}
.rc-dialog .rc-dialog-content .modal-body input.form-control::-moz-placeholder {
color: #5c5c5c !important;
}
.rc-dialog .rc-dialog-content .modal-body input.form-control::placeholder {
color: #5c5c5c !important;
}
.rc-dialog .rc-dialog-content .modal-body input.form-control:focus {
border: 1px solid #2db55d !important;
}
.rc-dialog .rc-dialog-content .modal-body button.btn-danger {
color: #ffffff !important;
border: none !important;
background: #ad322f !important;
}
.rc-dialog .rc-dialog-content .modal-body button.btn-danger:hover {
color: #dbdbdb !important;
background: #ad322f !important;
}
.rc-dialog .rc-dialog-content .modal-footer {
border-top: 1px solid #3d3d3d !important;
}
.rc-dialog .rc-dialog-content .modal-footer button.btn-default {
color: #b3b3b3 !important;
border: 1px solid #3d3d3d !important;
background: transparent !important;
}
.rc-dialog .rc-dialog-content .modal-footer button.btn-default:hover {
color: #57c47d !important;
border: 1px solid #57c47d !important;
background: #06190d !important;
}
}

@-moz-document url-prefix("https://leetcode-cn.com/store/") {
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.1",
"version": "1.0.2",
"description": "中国区 LeetCode 支持黑色主题",
"main": "index.js",
"repository": "https://github.com/blackcater/LeetCodeCN-Dark.git",
Expand Down
11 changes: 11 additions & 0 deletions src/less/_func.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@
}
}

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

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

.ipt-default() {
&::placeholder {
color: @text-secondary-color !important;
Expand Down
40 changes: 40 additions & 0 deletions src/less/_partial.less
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,43 @@
}
}
}

.rc-dialog-partial() {
.rc-dialog {
.rc-dialog-content {
color: @text-color !important;
background: @card-background-color !important;
box-shadow: @card-shadow !important;

.modal-header {
border-bottom: 1px solid @border-color !important;

.modal-title {
color: @title-color !important;
}

button.close {
color: @title-color !important;
}
}

.modal-body {
input.form-control {
.ipt-default();
}

button.btn-danger {
.btn-red();
}
}

.modal-footer {
border-top: 1px solid @border-color !important;

button.btn-default {
.btn-default();
}
}
}
}
}
10 changes: 10 additions & 0 deletions src/session.less
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
color: @title-color !important;
border: none !important;
background: @card-background-color !important;

input {
.ipt-default();
}

button {
.btn-default();
}
}

.panel-body {
Expand All @@ -44,4 +52,6 @@
}
}
}

.rc-dialog-partial();
}

0 comments on commit e075c86

Please sign in to comment.