FIX: CSS по Codacy
This commit is contained in:
parent
708746f98d
commit
3da9a1bae6
|
@ -15,7 +15,9 @@ body {
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:active, :hover, :focus {
|
||||
:active,
|
||||
:hover,
|
||||
:focus {
|
||||
outline: 0;
|
||||
outline-offset: 0;
|
||||
}
|
||||
|
@ -390,7 +392,7 @@ hr {
|
|||
clear: both;
|
||||
}
|
||||
|
||||
/* Формы и кнопки*/
|
||||
/* Формы и кнопки */
|
||||
textarea {
|
||||
width: 100%;
|
||||
border: 0.05rem solid #caced7;
|
||||
|
@ -402,6 +404,10 @@ textarea {
|
|||
max-width: 40rem;
|
||||
}
|
||||
|
||||
.form.mini {
|
||||
max-width: 20rem;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
max-width: 40rem;
|
||||
display: block;
|
||||
|
@ -411,7 +417,7 @@ textarea {
|
|||
}
|
||||
|
||||
.form-input {
|
||||
transition: all .2s ease;
|
||||
transition: all 0.2s ease;
|
||||
appearance: none;
|
||||
background: #fff;
|
||||
background-image: none;
|
||||
|
@ -432,7 +438,7 @@ textarea {
|
|||
.form-input:focus,
|
||||
textarea:focus {
|
||||
box-shadow: 0 0 0 0.1rem rgba(38, 139, 210, 0.2);
|
||||
border-color: #268bd2;
|
||||
border-color: #268bd2;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
|
@ -451,6 +457,12 @@ textarea:focus {
|
|||
color: var(--tertiary);
|
||||
}
|
||||
|
||||
.cancel {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--tertiary);
|
||||
}
|
||||
|
||||
/* Форма авторизации */
|
||||
.login-nav {
|
||||
width: 100%;
|
||||
|
|
|
@ -4,23 +4,23 @@
|
|||
<div class="white-box">
|
||||
<div class="inner-padding">
|
||||
<h1><?= $data['h1']; ?></h1>
|
||||
<div class="box wide">
|
||||
<div class="form mini">
|
||||
<form class="" action="/login" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
<div class="boxline">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" name="email" id="email" value="">
|
||||
<label class="form-label" for="email">Email</label>
|
||||
<input type="email" class="form-input" name="email" id="email" value="">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="password"><?= lang('Password'); ?></label>
|
||||
<input type="password" name="password" id="password" value="">
|
||||
<label class="form-label" for="password"><?= lang('Password'); ?></label>
|
||||
<input type="password" class="form-input" name="password" id="password" value="">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<input type="checkbox" id="rememberme" name="rememberme" value="1">
|
||||
<label class="form-check-label" for="rememberme"><?= lang('Remember me'); ?></label>
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<button type="submit" class="button-primary"><?= lang('Sign in'); ?></button>
|
||||
<button type="submit" class="button"><?= lang('Sign in'); ?></button>
|
||||
<small>
|
||||
<?php if(!Lori\Config::get(Lori\Config::PARAM_INVITE)) { ?>
|
||||
<span class="otst"><a href="/register"><?= lang('Sign up'); ?></a></span>
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
<div class="white-box">
|
||||
<div class="inner-padding">
|
||||
<h1><?= $data['h1']; ?></h1>
|
||||
<div class="box wide">
|
||||
<div class="form mini">
|
||||
<form class="" action="/recover/send" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
<div class="boxline">
|
||||
<label for="email">Email</label>
|
||||
<input type="text" name="email" id="email">
|
||||
<label class="form-label" for="email">Email</label>
|
||||
<input class="form-input" type="text" name="email" id="email">
|
||||
</div>
|
||||
<?php if (Lori\Config::get(Lori\Config::PARAM_CAPTCHA)) { ?>
|
||||
<div class="captcha_data">
|
||||
|
@ -21,7 +21,7 @@
|
|||
<?php } ?>
|
||||
<div class="row">
|
||||
<div class="boxline">
|
||||
<button type="submit" class="button-primary"><?= lang('Reset'); ?></button>
|
||||
<button type="submit" class="button"><?= lang('Reset'); ?></button>
|
||||
<small>
|
||||
<?php if(!Lori\Config::get(Lori\Config::PARAM_INVITE)) { ?>
|
||||
<span class="otst"><a href="/register"><?= lang('Sign up'); ?></a></span>
|
||||
|
|
|
@ -4,30 +4,30 @@
|
|||
<div class="white-box">
|
||||
<div class="inner-padding">
|
||||
<h1><?= $data['h1']; ?></h1>
|
||||
<div class="box wide">
|
||||
<div class="form mini">
|
||||
<form class="" action="/register/add" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
<div class="boxline">
|
||||
<label for="login"><?= lang('Nickname'); ?></label>
|
||||
<input type="text" name="login" id="login">
|
||||
<label class="form-label" for="login"><?= lang('Nickname'); ?></label>
|
||||
<input type="text" class="form-input" name="login" id="login">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="email">Email</label>
|
||||
<input type="text" name="email" id="email" value="<?= $invate['invitation_email']; ?>">
|
||||
<label class="form-label" for="email">Email</label>
|
||||
<input type="text" class="form-input" name="email" id="email" value="<?= $invate['invitation_email']; ?>">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="password"><?= lang('Password'); ?></label>
|
||||
<input type="password" name="password" id="password">
|
||||
<label class="form-label" for="password"><?= lang('Password'); ?></label>
|
||||
<input type="password" class="form-input" name="password" id="password">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="password_confirm"><?= lang('repeat-password'); ?></label>
|
||||
<input type="password" name="password_confirm" id="password_confirm">
|
||||
<label class="form-label" for="password_confirm"><?= lang('repeat-password'); ?></label>
|
||||
<input type="password" class="form-input" name="password_confirm" id="password_confirm">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<div class="boxline">
|
||||
<input type="hidden" name="invitation_code" id="invitation_code" value="<?= $invate['invitation_code']; ?>">
|
||||
<input type="hidden" name="invitation_id" id="invitation_id" value="<?= $invate['uid']; ?>">
|
||||
<button type="submit" class="button-primary"><?= lang('Sign up'); ?></button>
|
||||
<button type="submit" class="button"><?= lang('Sign up'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -4,43 +4,42 @@
|
|||
<div class="white-box">
|
||||
<div class="inner-padding">
|
||||
<h1><?= $data['h1']; ?></h1>
|
||||
<div class="box wide">
|
||||
<div class="form mini">
|
||||
<form class="" action="/register/add" method="post">
|
||||
<?php csrf_field(); ?>
|
||||
<div class="boxline">
|
||||
<label for="login"><?= lang('Nickname'); ?></label>
|
||||
<input type="text" name="login" id="login" minlength="3" pattern="^[a-zA-Z0-9\s]+$">
|
||||
<label class="form-label" for="login"><?= lang('Nickname'); ?></label>
|
||||
<input type="text" class="form-input" name="login" id="login" minlength="3" pattern="^[a-zA-Z0-9\s]+$">
|
||||
<div class="box_h">>= 3 <?= lang('characters'); ?></div>
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" name="email" id="email">
|
||||
<label class="form-label" for="email">Email</label>
|
||||
<input type="email" class="form-input" name="email" id="email">
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="password"><?= lang('Password'); ?></label>
|
||||
<input type="password" minlength="8" name="password" id="password">
|
||||
<label class="form-label" for="password"><?= lang('Password'); ?></label>
|
||||
<input type="password" class="form-input" minlength="8" name="password" id="password">
|
||||
<div class="box_h">>= 8 <?= lang('characters'); ?></div>
|
||||
</div>
|
||||
<div class="boxline">
|
||||
<label for="password_confirm"><?= lang('repeat-password'); ?></label>
|
||||
<input type="password" minlength="8" name="password_confirm" id="password_confirm">
|
||||
<label class="form-label" for="password_confirm"><?= lang('repeat-password'); ?></label>
|
||||
<input type="password" class="form-input" minlength="8" name="password_confirm" id="password_confirm">
|
||||
</div>
|
||||
<?php if (Lori\Config::get(Lori\Config::PARAM_CAPTCHA)) { ?>
|
||||
<div class="captcha_data">
|
||||
<div class="boxline captcha_data">
|
||||
<div class="captcha_wrap">
|
||||
<div class="g-recaptcha" data-theme="light" data-size="normal" data-callback="captcha_ready" data-sitekey="<?= Lori\Config::get(Lori\Config::PARAM_PUBLIC_KEY); ?>"></div>
|
||||
<script async defer nonce="" src="https://www.google.com/recaptcha/api.js?hl=ru"></script>
|
||||
</div>
|
||||
</div> <br />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="boxline">
|
||||
<div class="boxline">
|
||||
<button type="submit" class="button-primary"><?= lang('Sign up'); ?></button>
|
||||
<button type="submit" class="button"><?= lang('Sign up'); ?></button>
|
||||
<small>
|
||||
<span class="otst"><a href="/login"><?= lang('Sign in'); ?></a></span>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
<div>
|
||||
<input type="hidden" name="post_id" id="post_id" value="<?= $data['post_id']; ?>">
|
||||
<input type="hidden" name="answ_id" id="answ_id" value="<?= $data['answ_id']; ?>">
|
||||
<input type="submit" name="commit" value="<?= lang('Comment'); ?>" class="comment-post">
|
||||
<input id="cancel_cmm" type="button" value="<?= lang('Cancel'); ?>">
|
||||
<input type="submit" class="button" name="commit" value="<?= lang('Comment'); ?>" class="comment-post">
|
||||
<input id="cancel_cmm" class="cancel" type="button" value="<?= lang('Cancel'); ?>">
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<form id="add_comm" class="new_comment" action="/comment/add" accept-charset="UTF-8" method="post">
|
||||
<?= csrf_field() ?>
|
||||
<textarea rows="5" minlength="6" placeholder="<?= lang('write-something'); ?>..." name="comment" id="comment"></textarea>
|
||||
<div>
|
||||
<div class="boxline">
|
||||
<input type="hidden" name="post_id" id="post_id" value="<?= $data['post_id']; ?>">
|
||||
<input type="hidden" name="answ_id" id="answ_id" value="<?= $data['answ_id']; ?>">
|
||||
<input type="hidden" name="comm_id" id="comm_id" value="<?= $data['comm_id']; ?>">
|
||||
<input type="submit" name="commit" value="<?= lang('Comment'); ?>" class="comment-post">
|
||||
<input id="cancel_cmm" type="button" value="<?= lang('Cancel'); ?>">
|
||||
<input type="submit" class="button" name="commit" value="<?= lang('Comment'); ?>" class="comment-post">
|
||||
<input id="cancel_cmm" class="cancel" type="button" value="<?= lang('Cancel'); ?>">
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
|
|
@ -3,12 +3,13 @@
|
|||
<form id="add_comm" class="new_comment" action="/comment/edit" accept-charset="UTF-8" method="post">
|
||||
<?= csrf_field() ?>
|
||||
<textarea rows="5" minlength="6" name="comment" id="comment"><?= $data['comment_content']; ?></textarea>
|
||||
<div>
|
||||
<div class="boxline">
|
||||
<input type="hidden" name="post_id" id="post_id" value="<?= $data['post_id']; ?>">
|
||||
<input type="hidden" name="comm_id" id="comm_id" value="<?= $data['comm_id']; ?>">
|
||||
<input type="submit" name="commit" value="<?= lang('Edit'); ?>" class="comment-post">
|
||||
<input id="cancel_cmm" class="button" type="button" value="<?= lang('Cancel'); ?>">
|
||||
</div>
|
||||
<input type="submit" class="button" name="commit" value="<?= lang('Edit'); ?>">
|
||||
<input id="cancel_cmm" class="cancel" type="button" value="<?= lang('Cancel'); ?>">
|
||||
</div>
|
||||
<div class="v-otsr"></div>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -181,10 +181,10 @@
|
|||
<div class="redactor">
|
||||
<div id="wmd-button-bar"></div>
|
||||
<textarea minlength="6" class="wmd-input h-150 w-95" rows="5" placeholder="<?= lang('write-something'); ?>..." name="answer" id="wmd-input"></textarea>
|
||||
<div class="clear">
|
||||
<div class="boxline">
|
||||
<input type="hidden" name="post_id" id="post_id" value="<?= $post['post_id']; ?>">
|
||||
<input type="hidden" name="answ_id" id="answ_id" value="0">
|
||||
<input type="submit" name="answit" value="<?= lang('Reply'); ?>" class="answer-post">
|
||||
<input type="submit" class="button" name="answit" value="<?= lang('Reply'); ?>" class="answer-post">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue