Merge pull request #104 from Madeorsk/forms

New forms style
This commit is contained in:
Baptiste Gelez 2018-07-18 13:39:30 +02:00 committed by GitHub
commit 4aa184ba45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,6 +234,11 @@ main .article-meta .comments > * { margin-left: 20%; margin-right: 20%; }
font-weight: 600; font-weight: 600;
} }
/* New comment */
main .article-meta .comments form input[type="submit"]
{ font-size: 1em; }
/* Comment / Respond button */ /* Comment / Respond button */
main .article-meta .comments a.button:before { main .article-meta .comments a.button:before {
@ -306,30 +311,39 @@ main .article-meta .comments .list {
label { label {
display: block; display: block;
margin: 1em 0; margin: 1.5em auto;
font-size: 1.2em;
text-align: center;
} }
input { input {
transition: all 0.1s ease-in; transition: all 0.1s ease-in;
display: block; display: block;
width: 100%; width: 100%;
margin: auto auto 5em; max-width: 40rem;
padding: 0.5em; margin: auto;
padding: 1em;
box-sizing: border-box; box-sizing: border-box;
background: #F4F4F4; background: #F4F4F4;
color: #242424; color: #242424;
border: none; border: none;
border-bottom: solid #DADADA 2px; border: solid #DADADA thin;
border-radius: 0.5em;
font-size: 1.2em;
font-weight: 400;
text-align: center;
} }
form input[type="submit"] { margin: 2em auto; } form input[type="submit"] { margin: 2em auto; }
input:focus { input:focus {
background: #FAFAFA; background: #FAFAFA;
border-bottom-color: #7765E3; border-color: #7765E3;
} }
textarea { textarea {
display: block; display: block;
width: 100%; width: 100%;
max-width: 40rem;
min-height: 4em; min-height: 4em;
margin: auto; margin: auto;
padding: 1em; padding: 1em;
@ -353,7 +367,7 @@ textarea {
display: inline-block; display: inline-block;
border-radius: 0.5em; border-radius: 0.5em;
margin: 0.5em 0; margin: 0.5em auto;
padding: 0.75em 1em; padding: 0.75em 1em;
background: transparent; background: transparent;
@ -362,6 +376,8 @@ textarea {
cursor: pointer; cursor: pointer;
} }
input[type="submit"]
{ display: block; }
.button:hover, input[type="submit"]:hover { .button:hover, input[type="submit"]:hover {
background: #7765E399; background: #7765E399;
color: white; color: white;
@ -372,6 +388,7 @@ textarea {
*/ */
form.new-post .title { form.new-post .title {
margin: 0 auto;
padding: 0.75em 0; padding: 0.75em 0;
background: none; background: none;
@ -379,6 +396,7 @@ form.new-post .title {
font-family: "Playfair Display", serif; font-family: "Playfair Display", serif;
font-size: 2em; font-size: 2em;
text-align: left;
} }
form.new-post textarea { form.new-post textarea {
min-height: 8em; min-height: 8em;
@ -386,17 +404,19 @@ form.new-post textarea {
background: none; background: none;
} }
form.new-post input[type="submit"] { form.new-post input[type="submit"] {
transition: all 0.2s ease;
display: block; display: block;
margin: 1em auto; margin: 1em auto;
width: 60%;
background: #DADADA; background: #ECECEC;
color: #242424; color: #242424;
border: none; border: none;
font-family: "Playfair Display", serif; font-family: "Playfair Display", serif;
font-size: 1.5em; font-size: 1.5em;
} }
form.new-post input[type="submit"]:hover
{ background: #DADADA; }
/* /*
* == User == * == User ==