Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
45ba5e1e
authored
Sep 06, 2023
by
Carson Yang
Committed by
GitHub
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: optimize codeblock (#259)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
parent
139d0be5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
74 deletions
+117
-74
docSite/assets/docs/scss/custom/pages/_custom.scss
+18
-0
docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content
+74
-50
docSite/resources/_gen/assets/scss/scss/style.scss_6d90bf46f7cdc038e33af2850006d4ba.content
+25
-24
No files found.
docSite/assets/docs/scss/custom/pages/_custom.scss
View file @
45ba5e1e
...
...
@@ -5,3 +5,20 @@
margin
:
0
auto
!
important
;
border-radius
:
.25rem
;
}
div
.code-toolbar
{
padding-top
:
1
.95rem
!
important
;
}
.
docs-content
.
main-content
pre
code
:
:
before
{
background
:
#fc625d
;
border-radius
:
50%
;
box-shadow
:
20px
0
#fdbc40
,
40px
0
#35cd4b
;
content
:
' '
;
height
:
12px
;
left
:
12px
;
margin-top
:
-21px
;
position
:
absolute
;
width
:
12px
;
z-index
:
1
;
}
\ No newline at end of file
docSite/resources/_gen/assets/scss/docs/scss/style.scss_b97bf3f19a5ec64d7a7c5d60f7e31818.content
View file @
45ba5e1e
...
...
@@ -9638,14 +9638,11 @@ img {
order: 1; }
.docs-content .main-content a {
font-weight: 600;
color: var(--content-link-color); }
.docs-content .main-content a:hover {
text-decoration: underline 2px var(--primary-200);
text-underline-offset: 2.5px !important;
transition: 0s !important; }
.docs-content .main-content a code {
color: var(--content-link-color); }
.docs-content .main-content #edit-this-page a:hover,
.docs-content .main-content #list-item a:hover {
...
...
@@ -9666,24 +9663,22 @@ img {
font-weight: 700;
color: var(--body-color); }
.docs-content .content-title {
font-weight: 700;
align-self: center; }
.docs-content .main-content a {
font-weight: 600; }
i.title-icon {
.docs-content .content-title {
font-weight: 700; }
.docs-content .content-title i {
width: 44px;
height: 44px;
color: var(--content-icon-color);
background-color: var(--content-icon-bg);
display: inline-flex !important;
align-self: center;
align-items: center;
justify-content: center;
font-size: 24px;
border-radius: 5px; }
@media (max-width: 768px) {
i.title-icon {
align-self: auto; } }
.docs-content p.lead {
color: var(--text-muted);
font-weight: 400; }
...
...
@@ -9697,17 +9692,17 @@ i.title-icon {
.docs-content p.lead {
font-size: 1rem; } }
.docs-content .main-content img,
.docs-content .main-content svg {
max-width: 100%;
height: auto; }
.docs-content .main-content img {
max-width: 100%; }
.docs-content .main-content ul {
list-style: none;
line-height: 26px;
padding-left: 0; }
.docs-content .main-content ul
>
li {
.docs-content .main-content ul li {
position: relative;
padding-left: 32px; }
.docs-content .main-content ul
>
li::before {
.docs-content .main-content ul li::before {
content: "";
position: absolute;
width: 6px;
...
...
@@ -9718,12 +9713,13 @@ i.title-icon {
background: var(--gray-500); }
.docs-content .main-content ol {
counter-reset: listitem; }
.docs-content .main-content ol > li {
list-style: none;
line-height: 26px; }
.docs-content .main-content ol li {
counter-increment: listitem;
position: relative;
padding-left: 32px; }
.docs-content .main-content ol
>
li::before {
.docs-content .main-content ol li::before {
content: counter(listitem);
background: var(--ordered-list-bg);
color: var(--ordered-list-color);
...
...
@@ -9739,11 +9735,6 @@ i.title-icon {
left: 0;
top: 3px; }
.docs-content .main-content ol,
.docs-content .main-content ul {
list-style: none;
line-height: 26px; }
.docs-content .main-content blockquote {
margin-bottom: 1rem;
font-size: 1.25rem;
...
...
@@ -9761,7 +9752,7 @@ i.title-icon {
.docs-content .main-content code {
font-size: inherit;
color: var(--text-default);
font-weight:
4
00;
font-weight:
5
00;
padding: 1px 2px;
background: var(--inline-code-bg);
border: var(--inline-code-border);
...
...
@@ -9831,20 +9822,11 @@ i.title-icon {
overflow-y: overlay;
position: relative;
border-right: 1px solid var(--sidebar-border-color);
scrollbar-width: thin;
scrollbar-color: var(--sidebar-bg) var(--sidebar-bg); }
scrollbar-width: none; }
.page-wrapper .sidebar-wrapper .sidebar-content.desktop {
overflow-y: hidden; }
.page-wrapper .sidebar-wrapper .sidebar-content:hover {
scrollbar-color: var(--sidebar-scrollbar-thumb-color) var(--sidebar-bg); }
.page-wrapper .sidebar-wrapper .sidebar-content::-webkit-scrollbar {
width: 5px;
height: 8px; }
.page-wrapper .sidebar-wrapper .sidebar-content::-webkit-scrollbar-track {
background: var(--sidebar-bg);
display: none; }
.page-wrapper .sidebar-wrapper .sidebar-content:hover::-webkit-scrollbar-thumb {
background: var(--sidebar-scrollbar-thumb-color); }
.page-wrapper .sidebar-wrapper .sidebar-brand {
background: var(--sidebar-bg);
padding: 10px 20px;
...
...
@@ -9855,7 +9837,6 @@ i.title-icon {
.page-wrapper .sidebar-wrapper .sidebar-brand > a {
text-transform: uppercase;
font-weight: bold;
flex-grow: 1;
transition: all 0.3s ease; }
.page-wrapper .sidebar-wrapper .sidebar-brand > a:focus {
outline: none; }
...
...
@@ -10599,16 +10580,25 @@ button:not(:disabled) {
background-size: 1.5rem;
filter: invert(1) grayscale(100%) brightness(200%); }
@media (min-width: 768px) {
.alert-dismissible .btn-close {
background-size: 1.25rem; } }
[data-global-alert="closed"] #announcement {
display: none; }
.alert code {
background: #e7e8e9;
color: #000;
padding: 0.25rem 0.5rem; }
:root {
--card-title-color: var(--text-default);
--card-text-color: var(--text-muted); }
[data-dark-mode] {
--card-title-color: var(--text-default);
--card-text-color:
var(--gray-500)
; }
--card-text-color:
#6c757d
; }
.card {
background: var(--card-bg);
...
...
@@ -10627,8 +10617,7 @@ button:not(:disabled) {
color: var(--card-title-color); }
.card-text {
color: var(--card-text-color);
font-weight: 500; }
color: var(--card-text-color); }
:root {
--form-border-color: var(--gray-200);
...
...
@@ -10666,12 +10655,12 @@ button:not(:disabled) {
background-color: var(--body-bg);
text-align: left; }
.form-control:focus {
border-color:
var(--primary)
;
border-color:
#2f55d4
;
box-shadow: none; }
.form-control[readonly] {
background-color:
var(--white)
; }
background-color:
#fff
; }
.form-control:disabled {
background-color:
var(--gray-300)
; }
background-color:
#dee2e6
; }
.form-control::placeholder {
color: var(--form-control-placeholder-color); }
...
...
@@ -10684,7 +10673,7 @@ button:not(:disabled) {
border: 1px solid var(--form-check-input-border-color);
background-color: var(--body-bg); }
.form-check-input:focus {
border-color:
var(--primary)
;
border-color:
#2f55d4
;
box-shadow: none; }
.form-check-input.form-check-input:checked {
background-color: var(--form-check-input-background-color);
...
...
@@ -10710,6 +10699,7 @@ table td:last-child, table th:last-child {
.table {
--bs-table-color: var(--text-default);
--bs-table-bg: transparent;
--bs-table-border-color: var(--bs-border-color);
--bs-table-accent-bg: none;
--bs-table-striped-color: var(--text-default);
--bs-table-striped-bg: var(--alert-primary-bg);
...
...
@@ -10817,12 +10807,10 @@ table td:last-child, table th:last-child {
:root {
--feature-icon-color: var(--primary);
--feature-icon-faint: var(--gray-200);
--feature-link-hover-bg-color: var(--primary); }
[data-dark-mode] {
--feature-icon-color: var(--primary-300);
--feature-icon-faint: var(--gray-900);
--feature-link-hover-bg-color: var(--gray-900); }
.features .icon {
...
...
@@ -10846,10 +10834,6 @@ table td:last-child, table th:last-child {
.features.feature-full-bg .icon-color {
color: var(--feature-icon-color) !important; }
.features.feature-full-bg .icon-faint {
color: var(--feature-icon-faint) !important;
transition: all 0.5s ease; }
.features.feature-full-bg:hover {
background-color: var(--feature-link-hover-bg-color) !important; }
...
...
@@ -11144,6 +11128,30 @@ table td:last-child, table th:last-child {
.rounded-lg {
border-radius: 30px !important; }
.border-primary {
border-color: #2f55d4 !important; }
.border-secondary {
border-color: #6c757d !important; }
.border-success {
border-color: #2eca8b !important; }
.border-info {
border-color: #17a2b8 !important; }
.border-warning {
border-color: #f17425 !important; }
.border-danger {
border-color: #e43f52 !important; }
.border-light {
border-color: #f8f9fa !important; }
.border-dark {
border-color: #0e1420 !important; }
.bg-white-color {
background: var(--bg-white-color); }
...
...
@@ -11920,4 +11928,19 @@ div.code-toolbar > .toolbar > .toolbar-item > span:focus {
margin: 0 auto !important;
border-radius: .25rem; }
div.code-toolbar {
padding-top: 1.95rem !important; }
.docs-content .main-content pre code::before {
background: #fc625d;
border-radius: 50%;
box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
content: ' ';
height: 12px;
left: 12px;
margin-top: -21px;
position: absolute;
width: 12px;
z-index: 1; }
/*# sourceMappingURL=style.css.map */
\ No newline at end of file
docSite/resources/_gen/assets/scss/scss/style.scss_6d90bf46f7cdc038e33af2850006d4ba.content
View file @
45ba5e1e
...
...
@@ -9465,17 +9465,7 @@ p {
@media (max-width: 767px) {
.four-oh-four {
min-height: calc(100vh - 241px); } }
#topnav {
position: fixed;
right: 0;
left: 0;
top: 0;
background-color: transparent;
z-index: 999;
border: 0;
-webkit-transition: all .5s ease;
transition: all .5s ease; }
#topnav .logo {
#topnav .logo {
float: left;
color: #3c4858 !important; }
#topnav .logo .l-dark,
...
...
@@ -9486,7 +9476,8 @@ p {
display: inline-block; }
#topnav .logo:focus {
outline: none; }
#topnav #navigation.toggle-menu {
#topnav #navigation.toggle-menu {
position: relative;
display: block;
top: 0;
...
...
@@ -9501,7 +9492,8 @@ p {
padding: 16px 0;
min-height: auto;
font-size: 18px; }
#topnav .navbar-toggle {
#topnav .navbar-toggle {
border: 0;
position: relative;
padding: 0;
...
...
@@ -9522,7 +9514,8 @@ p {
transition: transform .5s ease; }
#topnav .navbar-toggle span:last-child {
margin-bottom: 0; }
#topnav .navbar-toggle.open span {
#topnav .navbar-toggle.open span {
position: absolute; }
#topnav .navbar-toggle.open span:first-child {
top: 6px;
...
...
@@ -9535,10 +9528,12 @@ p {
transform: rotate(-45deg); }
#topnav .navbar-toggle.open span:hover {
background-color: #0066ff; }
#topnav .navbar-toggle:hover, #topnav .navbar-toggle:focus,
#topnav .navbar-toggle .navigation-menu > li > a:hover, #topnav .navbar-toggle:focus {
#topnav .navbar-toggle:hover, #topnav .navbar-toggle:focus,
#topnav .navbar-toggle .navigation-menu > li > a:hover, #topnav .navbar-toggle:focus {
background-color: transparent; }
#topnav .navigation-menu {
#topnav .navigation-menu {
list-style: none;
margin: 0;
padding: 0; }
...
...
@@ -9563,7 +9558,8 @@ p {
align-items: center; }
#topnav .navigation-menu > li > a:hover, #topnav .navigation-menu > li > a:active {
color: #0066ff; }
#topnav.scroll {
#topnav.scroll {
background-color: #ffffff;
border: none;
box-shadow: 0 0 3px rgba(60, 72, 88, 0.15); }
...
...
@@ -9575,9 +9571,18 @@ p {
color: #0066ff; }
#topnav.scroll .navigation-menu > li:hover > .menu-arrow, #topnav.scroll .navigation-menu > li.active > .menu-arrow {
border-color: #0066ff; }
#topnav.nav-sticky {
#topnav.defaultscroll.dark-menubar .logo {
line-height: 70px; }
#topnav.defaultscroll.scroll .logo {
line-height: 62px; }
#topnav.defaultscroll.scroll.dark-menubar .logo {
line-height: 62px; }
#topnav.nav-sticky {
background: #fff;
-webkit-box-shadow: 0 0 3px rgba(60, 72, 88, 0.15);
box-shadow: 0 0 3px rgba(60, 72, 88, 0.15); }
#topnav.nav-sticky .navigation-menu.nav-light > li > a {
color: #3c4858; }
...
...
@@ -11006,10 +11011,6 @@ span.menu-icon {
max-width: 100%;
height: auto; } }
.hero {
background-size: cover;
padding-top: 70px; }
.icv {
position: relative;
overflow: hidden;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment