2018-12-15 22:06:27 +01:00
|
|
|
label {
|
|
|
|
display: block;
|
2019-01-09 18:57:48 +01:00
|
|
|
margin: 2em auto .5em;
|
2018-12-15 22:06:27 +01:00
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
input, textarea, select {
|
|
|
|
transition: all 0.1s ease-in;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
padding: 1em;
|
|
|
|
box-sizing: border-box;
|
2019-05-06 20:18:53 +02:00
|
|
|
-webkit-appearance: textarea;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
2019-01-09 18:57:48 +01:00
|
|
|
background: $form-input-background;
|
2018-12-15 22:06:27 +01:00
|
|
|
color: $black;
|
2019-05-18 14:09:51 +02:00
|
|
|
border: solid $black thin;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
font-size: 1.2em;
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $purple;
|
|
|
|
}
|
|
|
|
}
|
2019-05-06 20:18:53 +02:00
|
|
|
form input[type="submit"] {
|
|
|
|
margin: 2em auto;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
textarea {
|
|
|
|
resize: vertical;
|
|
|
|
|
|
|
|
font-family: $lora;
|
|
|
|
font-size: 1.1em;
|
2019-01-09 17:46:03 +01:00
|
|
|
line-height: 1.5;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"] {
|
|
|
|
display: inline;
|
|
|
|
margin: initial;
|
|
|
|
min-width: initial;
|
|
|
|
width: initial;
|
2019-05-06 20:18:53 +02:00
|
|
|
-webkit-appearance: checkbox;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/** Inline forms (containing only CSRF token and a <submit>, for protected links) **/
|
|
|
|
|
|
|
|
form.inline {
|
|
|
|
display: inline;
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
input[type="submit"] {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 1em;
|
|
|
|
width: auto;
|
2019-05-06 20:18:53 +02:00
|
|
|
-webkit-appearance: none;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
&:not(.button) {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
background: transparent;
|
|
|
|
color: $purple;
|
2019-05-18 14:09:51 +02:00
|
|
|
font-weight: normal;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-18 14:09:51 +02:00
|
|
|
.button, .button:visited, input[type="submit"], input[type="submit"].button {
|
2018-12-15 22:06:27 +01:00
|
|
|
transition: all 0.1s ease-in;
|
|
|
|
display: inline-block;
|
2018-12-23 17:30:57 +01:00
|
|
|
-webkit-appearance: none;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
margin: 0.5em auto;
|
|
|
|
padding: 0.75em 1em;
|
|
|
|
|
2019-05-18 14:09:51 +02:00
|
|
|
background: $purple;
|
|
|
|
color: $white;
|
|
|
|
font-weight: bold;
|
|
|
|
border: none;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
2019-05-18 14:09:51 +02:00
|
|
|
background: transparentize($purple, 0.1);
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.destructive {
|
2019-05-18 14:09:51 +02:00
|
|
|
background: $red;
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
&:hover {
|
2019-05-18 14:09:51 +02:00
|
|
|
background: transparentize($red, 0.1);
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
2019-05-18 14:09:51 +02:00
|
|
|
|
|
|
|
&.secondary {
|
|
|
|
background: $gray;
|
|
|
|
color: $black;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: transparentize($black, 0.9);
|
|
|
|
}
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
2019-05-06 20:18:53 +02:00
|
|
|
input[type="submit"] {
|
|
|
|
display: block;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
2018-12-15 22:06:27 +01:00
|
|
|
|
|
|
|
// Writing page
|
|
|
|
form.new-post {
|
2019-01-09 18:57:48 +01:00
|
|
|
max-width: 60em;
|
2018-12-15 22:06:27 +01:00
|
|
|
.title {
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 0.75em 0;
|
|
|
|
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
font-family: $playfair;
|
|
|
|
font-size: 2em;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
textarea {
|
|
|
|
min-height: 20em;
|
|
|
|
overflow-y: hidden;
|
|
|
|
resize: none;
|
2019-05-06 20:18:53 +02:00
|
|
|
-webkit-appearance: textarea;
|
2018-12-15 22:06:27 +01:00
|
|
|
}
|
|
|
|
}
|
2019-03-22 19:51:36 +01:00
|
|
|
|
|
|
|
.button + .button {
|
|
|
|
margin-left: 1em;
|
2019-04-17 22:09:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.split {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2019-05-18 14:09:51 +02:00
|
|
|
flex-wrap: wrap;
|
2019-04-17 22:09:07 +02:00
|
|
|
|
|
|
|
& > * {
|
|
|
|
flex-grow: 1;
|
|
|
|
max-width: 40%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header.center {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
background: transparent;
|
|
|
|
opacity: 1;
|
|
|
|
font-weight: normal;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2019-05-06 20:18:53 +02:00
|
|
|
}
|