forked from Gitlink/forgeplus-react
382 lines
6.5 KiB
SCSS
382 lines
6.5 KiB
SCSS
$wikiColor: #466aff;
|
|
$primaryBtnHover: #6482ff;
|
|
body {
|
|
width: 100% !important;
|
|
}
|
|
.ant-spin-nested-loading > div > .ant-spin.opacitySpin{
|
|
max-height: 100vh;
|
|
background: rgba(255,255,255,1);
|
|
}
|
|
.wiki-main {
|
|
width: 1200px;
|
|
min-height: 400px;
|
|
margin: 20px auto;
|
|
|
|
.ant-btn-primary {
|
|
background-color: $wikiColor;
|
|
border-color: $wikiColor;
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: $primaryBtnHover;
|
|
}
|
|
}
|
|
|
|
.ant-btn-default:hover,
|
|
.ant-btn-default:active,
|
|
.ant-btn-default:focus {
|
|
background: #f3f4f6;
|
|
color: #333;
|
|
border-color: #d0d0d0;
|
|
}
|
|
|
|
.wiki-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 20px;
|
|
height: 64px;
|
|
background: #fafcff;
|
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.13);
|
|
border-radius: 4px;
|
|
border-bottom-left-radius: 0;
|
|
.ant-btn .anticon {
|
|
margin: 0 -3px 0 0;
|
|
}
|
|
}
|
|
|
|
.head-title {
|
|
font-size: 20px;
|
|
color: #05101a;
|
|
line-height: 30px;
|
|
font-weight: 500;
|
|
|
|
.anticon-right {
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
.back-wiki {
|
|
color: $wikiColor;
|
|
cursor: pointer;
|
|
&:hover {
|
|
color: $primaryBtnHover;
|
|
}
|
|
}
|
|
|
|
.head-log-middle {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
margin-right: 0.35rem;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.head-log-small {
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
margin-right: 0.35rem;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.user-box {
|
|
font-size: 12px;
|
|
font-family: "PingFangSC-Medium";
|
|
color: $wikiColor;
|
|
cursor: pointer;
|
|
&:hover {
|
|
color: $primaryBtnHover;
|
|
}
|
|
.head-log-small {
|
|
position: relative;
|
|
top: -2px;
|
|
}
|
|
}
|
|
|
|
.time-ago {
|
|
font-size: 12px;
|
|
color: #333;
|
|
letter-spacing: 0;
|
|
line-height: 17px;
|
|
font-weight: 400;
|
|
font-family: "PingFangSC-Regular";
|
|
}
|
|
|
|
.has-error .ant-form-explain,
|
|
.has-error .ant-form-split {
|
|
position: absolute;
|
|
}
|
|
.wiki-nav {
|
|
max-height: 60vh;
|
|
.wiki-search {
|
|
padding: 0 14px;
|
|
.ant-input {
|
|
padding-left: 30px;
|
|
}
|
|
.ant-input-suffix {
|
|
left: 26px;
|
|
right: auto;
|
|
}
|
|
&:hover .ant-input,
|
|
&:focus .ant-input {
|
|
border-color: $wikiColor !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wiki-nav-parent {
|
|
width: 260px;
|
|
flex: none;
|
|
}
|
|
|
|
.ant-form-item-children .ant-input:hover {
|
|
border-color: $wikiColor !important;
|
|
}
|
|
|
|
.ant-checkbox-checked .ant-checkbox-inner {
|
|
background-color: $wikiColor;
|
|
border-color: $wikiColor;
|
|
}
|
|
.ant-radio-checked .ant-radio-inner,
|
|
.ant-radio-checked::after {
|
|
border-color: $wikiColor;
|
|
}
|
|
|
|
.ant-radio-inner::after {
|
|
background-color: $wikiColor;
|
|
}
|
|
|
|
.ant-radio-group {
|
|
display: block;
|
|
margin: 10px 0 0 30px;
|
|
}
|
|
|
|
.ant-radio-wrapper:hover .ant-radio,
|
|
.ant-radio:hover .ant-radio-inner,
|
|
.ant-radio-input:focus + .ant-radio-inner {
|
|
border-color: $wikiColor;
|
|
}
|
|
}
|
|
|
|
#wikiUrl:focus {
|
|
border-right: 1px solid #d9d9d9 !important;
|
|
}
|
|
|
|
.wiki-body {
|
|
display: flex;
|
|
}
|
|
|
|
.wiki-content {
|
|
flex: auto;
|
|
width: 75%;
|
|
}
|
|
|
|
.wiki-content-detail {
|
|
padding: 0 20px;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.ant-input-group.ant-input-group-compact.copy-url {
|
|
display: flex;
|
|
margin-top: 20px;
|
|
.ant-select-selection__rendered {
|
|
margin: 0 14px 0 5px;
|
|
width: 3rem;
|
|
font-size: 12px;
|
|
}
|
|
.ant-select-arrow {
|
|
right: 4px;
|
|
}
|
|
.ant-input {
|
|
font-size: 12px;
|
|
font-family: "PingFangSC-Regular";
|
|
color: #666;
|
|
letter-spacing: 0;
|
|
font-weight: 400;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.copy-svg {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 5px;
|
|
background: #fff;
|
|
font-size: 1rem !important;
|
|
border: 1px solid #d9d9d9;
|
|
border-left: 0;
|
|
color: $wikiColor;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.wiki-url-type {
|
|
.ant-select-dropdown-menu-item {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
.wiki-nav {
|
|
min-height: 300px;
|
|
padding: 20px 0;
|
|
background: #ffffff;
|
|
border: 1px solid rgba(153, 153, 153, 0.22);
|
|
overflow-y: scroll;
|
|
flex: none;
|
|
color: #333;
|
|
}
|
|
|
|
.wiki-nav-title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 50px;
|
|
padding: 0 10px 0 10px;
|
|
font-size: 14px;
|
|
letter-spacing: 0;
|
|
font-weight: 400;
|
|
font-family: "PingFangSC-Regular";
|
|
border-bottom: 1px solid #eee;
|
|
line-height: 16px;
|
|
cursor: pointer;
|
|
|
|
.delete-title-icon {
|
|
display: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: #fbfbfb;
|
|
.delete-title-icon {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.wiki-nav-title-parent {
|
|
padding: 0 14px;
|
|
&:hover {
|
|
background: #fbfbfb;
|
|
}
|
|
}
|
|
|
|
.wiki-nav-title.active {
|
|
color: $wikiColor;
|
|
}
|
|
|
|
.wiki-content-head {
|
|
margin: 20px 0 20px 20px;
|
|
padding: 0 20px 20px 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.wiki-content-head-left {
|
|
width: 90%;
|
|
}
|
|
|
|
.nav-title-left {
|
|
display: inline-flex;
|
|
max-width: 90%;
|
|
svg {
|
|
margin-right: 0.5rem;
|
|
flex: none;
|
|
}
|
|
.nav-title-left-text {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.wiki-detail-title {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
// 预览页面样式文件
|
|
.wiki-preview {
|
|
overflow-y: scroll;
|
|
height: 100%;
|
|
.wiki-body {
|
|
width: 90%;
|
|
}
|
|
.ant-btn-primary {
|
|
background-color: $wikiColor;
|
|
border-color: $wikiColor;
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: $primaryBtnHover;
|
|
}
|
|
}
|
|
.preview-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 12rem 0 2rem;
|
|
width: 100%;
|
|
height: 80px;
|
|
background: rgb(39, 47, 76);
|
|
color: #fff;
|
|
}
|
|
|
|
.preview-head-left {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
|
|
.icon-wendangyulan_icon {
|
|
font-size: 24px !important;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
.preview-head-right {
|
|
display: flex;
|
|
|
|
.copy-url {
|
|
margin-top: 0;
|
|
}
|
|
.copy-desc {
|
|
width: 6rem;
|
|
padding-top: 1px;
|
|
}
|
|
}
|
|
|
|
.wiki-nav-title {
|
|
padding: 0 10px 0 40px;
|
|
}
|
|
.wiki-nav-title.active {
|
|
background-color: #f3f4f6;
|
|
}
|
|
|
|
.wiki-content-head {
|
|
padding: 10px 20px 10px 20px;
|
|
}
|
|
|
|
.wiki-nav {
|
|
padding: 20px 0;
|
|
width: 20vw;
|
|
border-bottom: 0;
|
|
height: 80vh;
|
|
}
|
|
.wiki-content-detail {
|
|
padding: 0 40px;
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.ant-btn:hover {
|
|
background: #f3f4f6;
|
|
color: #333;
|
|
border-color: #d0d0d0;
|
|
}
|
|
}
|