重构 monorepo 并完善网页端订阅与首页体验
- 迁移为 frontend-web、frontend-electron、backend-web 与 docker 部署结构 - 网页端:订阅门禁二次弹窗、套餐/支付组件化、顶栏分组对齐 - 首页:最近文件与模板库布局优化,缩略图对齐,下载与删除操作 - 新增管理后台、支付与云端文件 API,更新 README 与项目规范 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,400 @@
|
||||
|
||||
html,body{
|
||||
background-color: #31373D;
|
||||
color: #ffffff;
|
||||
user-select: none;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
img {
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
.main{
|
||||
padding: 0 !important;
|
||||
height: 100%;
|
||||
}
|
||||
.col-left{
|
||||
margin-right: 320px;
|
||||
}
|
||||
.col-right{
|
||||
float: right;
|
||||
height: 100%;
|
||||
width: 320px;
|
||||
}
|
||||
.tools-bar{
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
.left-bar{
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
.left-bar .tool{
|
||||
margin-left: 10px;
|
||||
display: inline-block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-top: 9px;
|
||||
}
|
||||
.left-bar .tool:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.left-bar .tool img{
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
margin-top: 4px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.right-bar .tool{
|
||||
margin-left: 14px;
|
||||
display: inline-block;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-top: 9px;
|
||||
}
|
||||
.right-bar .tool:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.right-bar .tool img{
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
margin-top: 4px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.mode1{
|
||||
display: inline-block;
|
||||
border-right: 1px solid #000000;
|
||||
padding-right: 10px;
|
||||
height: 50px;
|
||||
}
|
||||
.mode2{
|
||||
|
||||
display: inline-block;
|
||||
height: 50px;
|
||||
padding-right: 10px;
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
.mode3{
|
||||
float: right;
|
||||
line-height: 50px;
|
||||
margin-right: 30px;
|
||||
}
|
||||
.white{
|
||||
color: white;
|
||||
}
|
||||
.white:hover{
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.container{
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.container .left{
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
bottom: 0px;
|
||||
width: 50px;
|
||||
border-right: 1px solid #000000;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.container .right{
|
||||
margin-left: 50px;
|
||||
border-right: 1px solid #000000;
|
||||
height: 100%;
|
||||
}
|
||||
#canvas-div{
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.canvas_box {
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
}
|
||||
.canvas_bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.canvas_bg_img {
|
||||
max-width: calc(100% - 470px);
|
||||
max-height: calc(100% - 180px);
|
||||
}
|
||||
.container .tool{
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-top: 15px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.container .tool img{
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.container .tool:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
|
||||
.layui-form-label{
|
||||
width: 45px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.layui-input-block {
|
||||
margin-left: 70px;
|
||||
|
||||
}
|
||||
|
||||
.component-title{
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
width: 100%;
|
||||
font-size: 18px;
|
||||
background-color: #4E575F;
|
||||
text-align: center;
|
||||
padding-left: 10px;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
}
|
||||
.component-line{
|
||||
font-size: 14px;
|
||||
padding: 5px;
|
||||
}
|
||||
.component-line span{
|
||||
color: #969FA7;
|
||||
}
|
||||
.component-line .tool {
|
||||
cursor: pointer;
|
||||
padding: 4px;
|
||||
}
|
||||
.component-line .tool:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.component-line .tool1 {
|
||||
background-color: #646E76;
|
||||
padding: 4px;
|
||||
}
|
||||
.ui-input{
|
||||
background-color: #31373D;
|
||||
border: #646E76 solid 1px;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
}
|
||||
.ui-input:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
textarea{
|
||||
background-color: #31373D;
|
||||
border: #646E76 solid 1px;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
}
|
||||
textarea:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.control{
|
||||
display: none;
|
||||
}
|
||||
#base_control{
|
||||
display: none;
|
||||
}
|
||||
.pic_bg{
|
||||
display: inline-block;
|
||||
background-color: #31373D;
|
||||
border: #646E76 solid 1px;
|
||||
padding: 3px 10px;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
margin-left: 5px;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.pic_bg:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
|
||||
|
||||
.input_color{
|
||||
position: relative;
|
||||
top:5px;
|
||||
}
|
||||
.input_color[type='color']::-webkit-color-swatch-wrapper{padding: 0;}
|
||||
.input_color[type='color']::-webkit-color-swatch{border: 0;}
|
||||
|
||||
.radio{
|
||||
position: relative;
|
||||
top:2px;
|
||||
left:3px
|
||||
}
|
||||
|
||||
.ui-select{
|
||||
background-color: #31373D;
|
||||
border: #646E76 solid 1px;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
::-webkit-scrollbar
|
||||
{
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background-color: #31373D;
|
||||
}
|
||||
|
||||
/*定义滚动条轨道 内阴影+圆角*/
|
||||
::-webkit-scrollbar-track
|
||||
{
|
||||
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||
border-radius: 10px;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
/*定义滑块 内阴影+圆角*/
|
||||
::-webkit-scrollbar-thumb
|
||||
{
|
||||
border-radius: 10px;
|
||||
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
.ui-button{
|
||||
display: inline-block;
|
||||
background-color: #31373D;
|
||||
border: #646E76 solid 1px;
|
||||
padding: 3px 10px;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
margin-left: 5px;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.ui-button:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
|
||||
.ui-button-active{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.ui-radio{
|
||||
|
||||
}
|
||||
.ui-radio-acitve{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.ui-radio:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
.obj_list{
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#posText{
|
||||
line-height: 50px;
|
||||
font-size: 18px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
#rotate:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
|
||||
#object_attribute{
|
||||
height: 470px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.transparent-button{
|
||||
display: inline-block;
|
||||
height: 19px;
|
||||
border: #646E76 solid 1px;
|
||||
position: relative;
|
||||
bottom: 2px;
|
||||
padding: 3px;
|
||||
}
|
||||
.transparent-button:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
|
||||
|
||||
.mode-left{
|
||||
display: inline-block;
|
||||
}
|
||||
.mode-warp{
|
||||
display: flex;
|
||||
height: 50px;
|
||||
align-items: center;
|
||||
}
|
||||
.mode-left .img-warp{
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.mode-left .img-warp:hover{
|
||||
background-color: #646E76;
|
||||
}
|
||||
|
||||
.mode-left .img-warp1 {
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
|
||||
.line{
|
||||
height: 50px;
|
||||
width: 1px;
|
||||
background-color: #000;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.rotate-div{
|
||||
position: relative;
|
||||
transition: 200ms;
|
||||
}
|
||||
.rotate-wrap{
|
||||
position: absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0,0,0,.3);
|
||||
visibility: hidden;
|
||||
border-radius: 3%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.rotate-div:hover .rotate-wrap{
|
||||
visibility: visible;
|
||||
}
|
||||
Reference in New Issue
Block a user