mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-27 15:53:46 +00:00
link easy variant from advance sitekey add form
This commit is contained in:
parent
fc40593c5d
commit
e874d1477d
@ -15,105 +15,127 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import '../../../../../reset';
|
@import "../../../../../reset";
|
||||||
@import '../../../../../vars';
|
@import "../../../../../vars";
|
||||||
@import '../../../../../components/button';
|
@import "../../../../../components/button";
|
||||||
@import '../../../../../components/forms';
|
@import "../../../../../components/forms";
|
||||||
|
|
||||||
|
$form-title-border: 0.1px solid $light-grey;
|
||||||
|
|
||||||
.sitekey-form {
|
.sitekey-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// box-sizing: content-box;
|
// box-sizing: content-box;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding-bottom: 30px;
|
padding-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__title-flex-container {
|
.form__title-flex-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 0.1px solid $light-grey;
|
border-bottom: 0.1px solid $light-grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin form__title {
|
||||||
|
padding-left: 10px;
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 0.75rem 1.25rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
text-align: left;
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: $form-title-border;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__title {
|
.form__title {
|
||||||
padding-left: 10px;
|
@include form__title;
|
||||||
font-size: 1rem;
|
|
||||||
padding: 0.75rem 1.25rem;
|
|
||||||
box-sizing: border-box;
|
|
||||||
text-align: left;
|
|
||||||
width: 100%;
|
|
||||||
border-bottom: 0.1px solid $light-grey;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__label {
|
.sitekey-form__label {
|
||||||
@include form-label;
|
@include form-label;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__input {
|
.sitekey-form__input {
|
||||||
@include form-input;
|
@include form-input;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
// level styling
|
// level styling
|
||||||
.sitekey__level-container {
|
.sitekey__level-container {
|
||||||
width: $form-content-width;
|
width: $form-content-width;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey__level-title {
|
.sitekey__level-title {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__level-label {
|
.sitekey-form__level-label {
|
||||||
@include form-label;
|
@include form-label;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__level-name {
|
.sitekey-form__level-name {
|
||||||
@include form-label;
|
@include form-label;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__level-input {
|
.sitekey-form__level-input {
|
||||||
@include form-input;
|
@include form-input;
|
||||||
flex: 2;
|
flex: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.sitekey-form__add-level-btn-spacer {
|
.sitekey-form__add-level-btn-spacer {
|
||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__level-add-level-button {
|
.sitekey-form__level-add-level-button {
|
||||||
@include violet-button;
|
@include violet-button;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__level-add-level-button:hover {
|
.sitekey-form__level-add-level-button:hover {
|
||||||
@include violet-button-hover;
|
@include violet-button-hover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__level-label--hidden {
|
.sitekey-form__level-label--hidden {
|
||||||
@include form-label;
|
@include form-label;
|
||||||
color: $white;
|
color: $white;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// level styling ends
|
// level styling ends
|
||||||
|
|
||||||
.sitekey-form__submit {
|
.sitekey-form__submit {
|
||||||
@include violet-button;
|
@include violet-button;
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
width: $form-content-width;
|
width: $form-content-width;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sitekey-form__submit:hover {
|
.sitekey-form__submit:hover {
|
||||||
@include violet-button-hover;
|
@include violet-button-hover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sitekey-form__advance-options-container {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: $form-title-border;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sitekey-form__advance-options-form-title {
|
||||||
|
@include form__title;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sitekey-form__advance-options-link {
|
||||||
|
width: 200px;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,3 +38,7 @@
|
|||||||
.sitekey-form__level-label {
|
.sitekey-form__level-label {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sitekey-form__advance-options-link {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
}
|
||||||
|
|||||||
@ -1,7 +1,14 @@
|
|||||||
<form class="sitekey-form" action="<.= crate::V1_API_ROUTES.captcha.create .>" method="post">
|
<form class="sitekey-form" action="<.= crate::V1_API_ROUTES.captcha.create .>" method="post">
|
||||||
<h1 class="form__title">
|
<div class="sitekey-form__advance-options-container">
|
||||||
|
<h1 class="sitekey-form__advance-options-form-title">
|
||||||
<.= form_title .>
|
<.= form_title .>
|
||||||
</h1>
|
</h1>
|
||||||
|
<a
|
||||||
|
class="sitekey-form__advance-options-link"
|
||||||
|
href="<.= crate::PAGES.panel.sitekey.add_easy .>">
|
||||||
|
Easy Options
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<label class="sitekey-form__label" for="description">
|
<label class="sitekey-form__label" for="description">
|
||||||
Description
|
Description
|
||||||
<input
|
<input
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user