mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Added CSS classes for login form
This commit is contained in:
parent
2df2131d69
commit
aff0a323d8
2 changed files with 60 additions and 0 deletions
35
templates/forgot.html.twig
Normal file
35
templates/forgot.html.twig
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{% extends 'partials/base.html.twig' %}
|
||||||
|
|
||||||
|
{% block stylesheets %}
|
||||||
|
{{ parent() }}
|
||||||
|
{% set styles %}
|
||||||
|
#grav-login {
|
||||||
|
max-width: 32em;
|
||||||
|
}
|
||||||
|
#grav-login .form-actions {
|
||||||
|
text-align: right;
|
||||||
|
padding: 1em 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 1em;
|
||||||
|
flex-wrap: wrap;}
|
||||||
|
#grav-login button {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
|
#grav-login .form-actions {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
{% endset %}
|
||||||
|
{% do assets.addInlineCss(styles) %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block menu %}
|
||||||
|
{% include 'partials/sidebar_right.html.twig' %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% include 'partials/messages.html.twig' %}
|
||||||
|
{% include 'partials/forgot-form.html.twig' %}
|
||||||
|
{% endblock %}
|
|
@ -1,5 +1,30 @@
|
||||||
{% extends 'partials/base.html.twig' %}
|
{% extends 'partials/base.html.twig' %}
|
||||||
|
|
||||||
|
{% block stylesheets %}
|
||||||
|
{{ parent() }}
|
||||||
|
{% set styles %}
|
||||||
|
#grav-login {
|
||||||
|
max-width: 32em;
|
||||||
|
}
|
||||||
|
#grav-login .form-actions {
|
||||||
|
text-align: right;
|
||||||
|
padding: 1em 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 1em;
|
||||||
|
flex-wrap: wrap;}
|
||||||
|
#grav-login button {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
|
#grav-login .form-actions {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
{% endset %}
|
||||||
|
{% do assets.addInlineCss(styles) %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block menu %}
|
{% block menu %}
|
||||||
{% include 'partials/sidebar_right.html.twig' %}
|
{% include 'partials/sidebar_right.html.twig' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue