mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Update formCss default value
This commit is contained in:
@ -96,33 +96,34 @@
|
|||||||
|
|
||||||
.side-image {
|
.side-image {
|
||||||
display: none;
|
display: none;
|
||||||
@media screen and (min-width: 1100px){
|
|
||||||
|
@media screen and (min-width: 1100px) {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 500px;
|
width: 500px;
|
||||||
border-right: 0.5px solid rgb(196, 203, 215);
|
border-right: 0.5px solid rgb(196 203 215);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.forget-content{
|
.forget-content {
|
||||||
padding: 10px 100px 20px;
|
padding: 10px 100px 20px;
|
||||||
border: 2px solid #ffffff;
|
border: 2px solid #fff;
|
||||||
border-radius: 7px;
|
border-radius: 7px;
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255 255 255);
|
||||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
|
box-shadow: 0 0 20px rgb(0 0 0 / 20%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-panel{
|
.login-panel {
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255 255 255);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-form{
|
.login-form {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 30px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-content {
|
.login-content {
|
||||||
|
@ -40,17 +40,16 @@ require("codemirror/mode/css/css");
|
|||||||
|
|
||||||
const {Option} = Select;
|
const {Option} = Select;
|
||||||
|
|
||||||
const template = `<!--template: please copy and paste-->
|
const template = `<style>
|
||||||
<style>
|
|
||||||
.login-panel{
|
.login-panel{
|
||||||
|
padding: 40px 70px 0 70px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
|
box-shadow: 0 0 30px 20px rgba(0, 0, 0, 0.20);
|
||||||
}
|
}
|
||||||
</style>
|
</style>`;
|
||||||
`;
|
|
||||||
const sideTemplate = `<!--template: please copy and paste-->
|
const sideTemplate = `<style>
|
||||||
<style>
|
|
||||||
.left-model{
|
.left-model{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
@ -630,7 +629,7 @@ class ApplicationEditPage extends React.Component {
|
|||||||
<Popover placement="right" content={
|
<Popover placement="right" content={
|
||||||
<div style={{width: "900px", height: "300px"}} >
|
<div style={{width: "900px", height: "300px"}} >
|
||||||
<CodeMirror value={this.state.application.formCss === "" ? template : this.state.application.formCss}
|
<CodeMirror value={this.state.application.formCss === "" ? template : this.state.application.formCss}
|
||||||
options={{mode: "htmlmixed", theme: "material-darker"}}
|
options={{mode: "css", theme: "material-darker"}}
|
||||||
onBeforeChange={(editor, data, value) => {
|
onBeforeChange={(editor, data, value) => {
|
||||||
this.updateApplicationField("formCss", value);
|
this.updateApplicationField("formCss", value);
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user