-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
294 changed files
with
43,320 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
# CTFd_themes_cn | ||
|
||
本库是由CTFd v2.3.1中提权的主题文件翻译完成,完成度大概90%,只有少部分没找到内容,或没法直接翻译的内容没有翻译。本翻译仅为机翻加个人理解,仅为个人使用,若有错误请指正! | ||
|
||
**本库仅保证与 CTFd v2.3.1兼容,其他版本不保证完全兼容** | ||
|
||
# 使用 | ||
|
||
- 获得CTFd v2.3.1,解压 | ||
|
||
```bash | ||
wget -O CTFd-2.3.1.tar.gz https://github.com/CTFd/CTFd/archive/2.3.1.tar.gz | ||
tar -zxvf CTFd-2.3.1.tar.gz | ||
``` | ||
|
||
- 获得主题文件,解压 | ||
|
||
```bash | ||
wget -O themes_cn.tar.gz https | ||
tar -zxvf themes_cn.tar.gz | ||
``` | ||
|
||
- 备份原主题文件,替换主题文件 | ||
|
||
```bash | ||
mv CTFd-2.3.1/CTFd/themes CTFd-2.3.1/CTFd/themes.backup | ||
mv themes_cn CTFd-2.3.1/CTFd/themes | ||
``` | ||
|
||
- 部署 | ||
|
||
```bash | ||
docker build -t CTFd . | ||
docker run -p 8000:8000 -itd CTFd | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@import "includes/sticky-footer.css"; | ||
|
||
#score-graph { | ||
height: 450px; | ||
display: block; | ||
clear: both; | ||
} | ||
|
||
#solves-graph { | ||
display: block; | ||
height: 350px; | ||
} | ||
|
||
#keys-pie-graph { | ||
height: 400px; | ||
display: block; | ||
} | ||
|
||
#categories-pie-graph { | ||
height: 400px; | ||
display: block; | ||
} | ||
|
||
#solve-percentages-graph { | ||
height: 400px; | ||
display: block; | ||
} | ||
|
||
.no-decoration { | ||
color: inherit !important; | ||
text-decoration: none !important; | ||
} | ||
|
||
.no-decoration:hover { | ||
color: inherit !important; | ||
text-decoration: none !important; | ||
} | ||
|
||
.table td, | ||
.table th { | ||
vertical-align: inherit; | ||
} | ||
|
||
pre { | ||
white-space: pre-wrap; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.form-control { | ||
position: relative; | ||
display: block; | ||
/*padding: 0.8em;*/ | ||
border-radius: 0; | ||
/*background: #f0f0f0;*/ | ||
/*color: #aaa;*/ | ||
font-weight: 400; | ||
font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
-webkit-appearance: none; | ||
} | ||
|
||
tbody tr:hover { | ||
background-color: rgba(0, 0, 0, 0.1) !important; | ||
} | ||
|
||
tr[data-href] { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.chal-desc { | ||
padding-left: 30px; | ||
padding-right: 30px; | ||
font-size: 14px; | ||
} | ||
|
||
.chal-desc img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
.modal-content { | ||
border-radius: 0px; | ||
max-width: 1000px; | ||
padding: 1em; | ||
margin: 0 auto; | ||
} | ||
|
||
.btn-info { | ||
background-color: #5b7290 !important; | ||
} | ||
|
||
.badge-info { | ||
background-color: #5b7290 !important; | ||
} | ||
|
||
.challenge-button { | ||
box-shadow: 3px 3px 3px grey; | ||
} | ||
|
||
.solved-challenge { | ||
background-color: #37d63e !important; | ||
opacity: 0.4; | ||
border: none; | ||
} | ||
|
||
.corner-button-check { | ||
margin-top: -10px; | ||
margin-right: 25px; | ||
position: absolute; | ||
right: 0; | ||
} | ||
|
||
.key-submit .btn { | ||
height: 51px; | ||
} | ||
|
||
#challenge-window .form-control { | ||
position: relative; | ||
display: block; | ||
padding: 0.8em; | ||
border-radius: 0; | ||
background: #f0f0f0; | ||
color: #aaa; | ||
font-weight: 400; | ||
font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
-webkit-appearance: none; | ||
height: auto !important; | ||
} | ||
|
||
#challenge-window .form-control:focus { | ||
background-color: transparent; | ||
border-color: #a3d39c; | ||
box-shadow: 0 0 0 0.2rem #a3d39c; | ||
transition: background-color 0.3s, border-color 0.3s; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "~codemirror/lib/codemirror.css"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Sticky footer styles | ||
-------------------------------------------------- */ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
margin-bottom: 60px; /* Margin bottom by footer height */ | ||
} | ||
|
||
.footer { | ||
position: absolute; | ||
|
||
/* prevent scrollbars from showing on pages that don't use the full page height */ | ||
bottom: 1px; | ||
|
||
width: 100%; | ||
|
||
/* Set the fixed height of the footer here */ | ||
height: 60px; | ||
|
||
/* Override line-height from core because we have two lines in the admin panel */ | ||
line-height: normal !important; | ||
|
||
/* Avoid covering things */ | ||
z-index: -20; | ||
|
||
/*background-color: #f5f5f5;*/ | ||
} |
Oops, something went wrong.