Change the style of comments and align
This commit is contained in:
parent
297722b9f0
commit
5ecc4c2293
|
@ -1,10 +1,5 @@
|
|||
#comments{
|
||||
div[for=comment]{
|
||||
@media screen {
|
||||
@media (max-width: 576px){
|
||||
padding: 0 1rem;
|
||||
}
|
||||
}
|
||||
span{
|
||||
font-size: 18pt;
|
||||
}
|
||||
|
@ -14,12 +9,25 @@
|
|||
}
|
||||
form{
|
||||
&#form-comment{
|
||||
.form-row{
|
||||
.col-11{
|
||||
@media screen {
|
||||
@media (max-width: 768px){
|
||||
flex: 0 0 100%;
|
||||
}
|
||||
@media (min-width: 992px){
|
||||
flex: 0 0 95%;
|
||||
}
|
||||
}
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.mx-sm-auto{
|
||||
@media only screen and (max-width: 576px){
|
||||
padding: 0 2rem;
|
||||
}
|
||||
}
|
||||
textarea{
|
||||
/* textarea{
|
||||
@media only screen {
|
||||
@media (max-width: 576px){
|
||||
width: 84.4vw;
|
||||
|
@ -34,7 +42,7 @@
|
|||
width: 64.7vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
} */
|
||||
button{
|
||||
&#submit{
|
||||
@media screen {
|
||||
|
|
|
@ -34,23 +34,25 @@ if (post_password_required()) {
|
|||
</div>
|
||||
|
||||
<form autocomplete="off" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="form-comment" class="form-inline clearfix">
|
||||
<div class="row mx-sm-auto ">
|
||||
<div class="form-group">
|
||||
<?php
|
||||
comment_id_fields();
|
||||
$args = array('class' => 'img-fluid rounded-circle mr-sm-3', );
|
||||
echo get_avatar( $current_user->ID, 60, '', $current_user->display_name, $args );
|
||||
?>
|
||||
<span class="text-oslo-gray authenticated ml-3 d-inline d-sm-none">
|
||||
<?php
|
||||
_e('Authenticated as', 'tainacan-theme'); echo ': ';
|
||||
echo '<a href="'. get_author_posts_url($current_user->ID) .'" class="font-weight-light">' . $current_user->display_name . '</a>';
|
||||
?>
|
||||
</span>
|
||||
<textarea name="comment" id="comment" tabindex="1" required class="form-control mt-2 mt-sm-0" rows="2" placeholder="<?php _e('Enter your comment here.', 'tainacan-theme'); ?>"></textarea>
|
||||
</div>
|
||||
<button id="submit" class="btn btn-info bg-jungle-green align-self-center ml-auto mt-3" type="submit" name="submit"><?php _e('Send', 'tainacan-theme') ?></button>
|
||||
</div>
|
||||
<div class="form-row w-100 mx-0">
|
||||
<div class="col">
|
||||
<?php
|
||||
comment_id_fields();
|
||||
$args = array('class' => 'img-fluid rounded-circle mr-sm-3', );
|
||||
echo get_avatar( $current_user->ID, 60, '', $current_user->display_name, $args );
|
||||
?>
|
||||
<span class="text-oslo-gray authenticated ml-3 d-inline d-sm-none">
|
||||
<?php
|
||||
_e('Authenticated as', 'tainacan-theme'); echo ': ';
|
||||
echo '<a href="'. get_author_posts_url($current_user->ID) .'" class="font-weight-light">' . $current_user->display_name . '</a>';
|
||||
?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-11 pr-0">
|
||||
<textarea name="comment" id="comment" tabindex="1" required class="form-control mt-2 mt-sm-0 w-100" rows="2" placeholder="<?php _e('Enter your comment here.', 'tainacan-theme'); ?>"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<button id="submit" class="btn btn-info bg-jungle-green align-self-center ml-auto mt-3 float-right" type="submit" name="submit"><?php _e('Send', 'tainacan-theme') ?></button>
|
||||
|
||||
<?php cancel_comment_reply_link('Cancel'); ?>
|
||||
<?php do_action('comment_form', $post->ID); ?>
|
||||
|
|
Loading…
Reference in New Issue