2014-09-10 11:29:49 -06:00
|
|
|
// Forms
|
2014-09-03 22:22:03 -06:00
|
|
|
form {
|
2014-09-10 11:29:49 -06:00
|
|
|
|
2015-11-19 22:16:53 -07:00
|
|
|
h1, h3 {
|
2014-09-16 18:08:33 -06:00
|
|
|
padding: 0 $padding-default 0.5rem;
|
|
|
|
|
margin: 0 0 1rem;
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
text-align: left;
|
|
|
|
|
letter-spacing: -1px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-04 13:59:45 -07:00
|
|
|
h3 {
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-18 11:49:47 -06:00
|
|
|
p {
|
|
|
|
|
padding: 0 $padding-default;
|
2014-09-22 22:43:59 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre {
|
|
|
|
|
padding: 1.5rem 3rem;
|
|
|
|
|
}
|
2014-09-18 11:49:47 -06:00
|
|
|
|
2014-09-10 11:29:49 -06:00
|
|
|
.form-field {
|
|
|
|
|
margin-bottom: 1rem;
|
2014-09-10 14:49:57 -06:00
|
|
|
padding-left: $padding-default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-data {
|
|
|
|
|
padding-right: $padding-default;
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
|
2014-09-16 18:08:33 -06:00
|
|
|
.required {
|
2016-02-24 19:14:44 -07:00
|
|
|
font-family: helvetica, arial;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
margin-left: 5px;
|
2014-09-16 18:08:33 -06:00
|
|
|
}
|
|
|
|
|
|
2014-09-10 11:29:49 -06:00
|
|
|
label {
|
2014-09-10 14:49:57 -06:00
|
|
|
padding: 5px 0;
|
2014-09-10 11:29:49 -06:00
|
|
|
font-weight: 400;
|
|
|
|
|
margin:0;
|
2015-06-08 15:03:36 +02:00
|
|
|
|
2016-02-05 10:28:34 -07:00
|
|
|
[data-hint] {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-08 15:03:36 +02:00
|
|
|
&.toggleable {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
|
2014-09-10 21:57:00 -06:00
|
|
|
input, select, textarea, button, .selectize-input {
|
2014-09-10 11:29:49 -06:00
|
|
|
font-size: $core-font-size;
|
|
|
|
|
line-height: $core-line-height;
|
|
|
|
|
border-radius: $form-border-radius;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-12 17:47:06 +02:00
|
|
|
.selectize-dropdown {
|
|
|
|
|
z-index: 100000;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-25 17:23:41 -06:00
|
|
|
// override horizontal layout
|
|
|
|
|
.form-column {
|
|
|
|
|
> .form-field.grid {
|
|
|
|
|
display: block;
|
|
|
|
|
> .block {
|
|
|
|
|
@include flex(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-04 10:13:30 -06:00
|
|
|
// vertical alignment of forms
|
|
|
|
|
.grid.vertical {
|
|
|
|
|
@include flex-flow(column);
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-10 21:57:00 -06:00
|
|
|
.form-select-wrapper, .selectize-control.single .selectize-input {
|
2014-09-10 11:29:49 -06:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&:after {
|
2014-09-10 21:57:00 -06:00
|
|
|
margin-top: 0;
|
|
|
|
|
border: 0;
|
2014-09-10 11:29:49 -06:00
|
|
|
position: absolute;
|
|
|
|
|
content: '\f078';
|
|
|
|
|
font-family: 'FontAwesome';
|
|
|
|
|
right: 12px;
|
|
|
|
|
top: 50%;
|
|
|
|
|
line-height: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-10 22:04:56 -06:00
|
|
|
.selectize-input {
|
2016-03-04 10:52:41 -07:00
|
|
|
display: block !important;
|
2014-09-10 21:57:00 -06:00
|
|
|
box-shadow: none;
|
2014-09-16 18:08:33 -06:00
|
|
|
padding: $form-select-pad;
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
> input {
|
|
|
|
|
font-size: $core-font-size;
|
|
|
|
|
line-height: $core-line-height;
|
|
|
|
|
}
|
2014-09-10 22:04:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.selectize-control.multi .selectize-input {
|
2014-09-15 21:25:35 -06:00
|
|
|
padding: ($leading-margin / 4) ($leading-margin / 4);
|
|
|
|
|
|
|
|
|
|
&.has-items {
|
|
|
|
|
padding-top: 6px;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-10 22:04:56 -06:00
|
|
|
> div {
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.selectize-control.single .selectize-input {
|
2014-09-10 21:57:00 -06:00
|
|
|
|
|
|
|
|
&:after {
|
2015-08-01 09:13:34 -06:00
|
|
|
right: 27px;
|
2014-09-10 21:57:00 -06:00
|
|
|
}
|
|
|
|
|
&.dropdown-active {
|
|
|
|
|
&:after {
|
|
|
|
|
content: '\f077';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-10 12:24:09 -06:00
|
|
|
.x-small {
|
2016-02-24 19:14:44 -07:00
|
|
|
max-width: 5rem !important;
|
2014-09-10 12:24:09 -06:00
|
|
|
}
|
|
|
|
|
|
2014-09-10 11:29:49 -06:00
|
|
|
.small {
|
2016-02-24 19:14:44 -07:00
|
|
|
max-width: 10rem !important;
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.medium {
|
2016-02-24 19:14:44 -07:00
|
|
|
max-width: 20rem;
|
2014-09-10 14:49:57 -06:00
|
|
|
textarea {
|
|
|
|
|
height: 7rem;
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.large {
|
2016-02-24 19:14:44 -07:00
|
|
|
max-width: 30rem !important;
|
2014-09-10 14:49:57 -06:00
|
|
|
|
2016-02-24 19:14:44 -07:00
|
|
|
textarea {
|
2014-09-10 14:49:57 -06:00
|
|
|
height: 10rem;
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
2014-09-10 14:49:57 -06:00
|
|
|
width: 100%;
|
2014-09-10 11:29:49 -06:00
|
|
|
-webkit-appearance:none;
|
|
|
|
|
-moz-appearance:none;
|
|
|
|
|
appearance:none;
|
|
|
|
|
padding: $form-select-pad;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-19 21:34:09 -07:00
|
|
|
input[type=text], input[type=password], input[type=email], input[type=date] {
|
2014-09-10 14:49:57 -06:00
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-12 13:48:52 -06:00
|
|
|
input[readonly=readonly] {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-10 14:49:57 -06:00
|
|
|
textarea {
|
|
|
|
|
width: 100%;
|
2014-09-10 12:24:09 -06:00
|
|
|
}
|
|
|
|
|
|
2014-09-19 17:08:24 -06:00
|
|
|
.form-frontmatter-wrapper {
|
|
|
|
|
border-radius: $form-border-radius;
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-10 11:29:49 -06:00
|
|
|
.switch-toggle {
|
|
|
|
|
// margin-left: 30%;
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a,label {
|
|
|
|
|
outline: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-01 21:22:56 +02:00
|
|
|
.dynfields, [data-grav-field="array"] {
|
2014-09-10 11:29:49 -06:00
|
|
|
|
|
|
|
|
input[type=text] {
|
|
|
|
|
width: 40%;
|
2014-09-10 15:06:10 -06:00
|
|
|
float: left;
|
|
|
|
|
margin: 0 5px 5px 0;
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
|
2014-09-10 15:06:10 -06:00
|
|
|
.form-row {
|
2014-09-10 11:29:49 -06:00
|
|
|
display: inline-block;
|
2014-09-10 15:06:10 -06:00
|
|
|
span {
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2015-08-11 18:14:29 +02:00
|
|
|
|
2015-07-28 12:40:11 -07:00
|
|
|
&.array-field-value_only {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
2014-09-10 15:06:10 -06:00
|
|
|
|
|
|
|
|
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.button-bar {
|
2014-09-16 18:08:33 -06:00
|
|
|
margin-top: 1rem;
|
|
|
|
|
padding: 1.2rem 3rem;
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
|
border-bottom-right-radius: 5px;
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.checkboxes {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 5px 0;
|
|
|
|
|
|
|
|
|
|
label {
|
|
|
|
|
display: inline;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 0 0 0 2rem;
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
label:before {
|
|
|
|
|
content:"";
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 1.5rem;
|
|
|
|
|
height: 1.5rem;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 0;
|
|
|
|
|
margin-top: -0.75rem;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
border-radius: $form-border-radius;
|
|
|
|
|
}
|
|
|
|
|
input[type=checkbox] {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
input[type=checkbox]:checked + label:before {
|
|
|
|
|
content:"\f00c";
|
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
|
font-size: 1.2rem;
|
2015-08-07 11:06:06 -07:00
|
|
|
line-height: 1;
|
2014-09-10 11:29:49 -06:00
|
|
|
text-align: center;
|
|
|
|
|
}
|
2015-06-08 15:03:36 +02:00
|
|
|
|
|
|
|
|
&.toggleable label{
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
2014-09-10 11:29:49 -06:00
|
|
|
}
|
2014-09-25 16:34:14 -06:00
|
|
|
}
|
2014-09-10 11:29:49 -06:00
|
|
|
|
2015-09-05 12:39:27 -06:00
|
|
|
// Display
|
|
|
|
|
.form-display-wrapper {
|
|
|
|
|
p {
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
padding-right: 0;
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-04 18:01:04 -08:00
|
|
|
// Frontmatter Field
|
|
|
|
|
div.frontmatter {
|
2014-09-25 16:34:14 -06:00
|
|
|
margin-bottom: 3rem;
|
|
|
|
|
}
|
2014-09-10 11:29:49 -06:00
|
|
|
|
2016-03-04 18:01:04 -08:00
|
|
|
textarea.frontmatter {
|
|
|
|
|
height: 130px !important;
|
|
|
|
|
|
2014-09-25 16:34:14 -06:00
|
|
|
& + .CodeMirror {
|
|
|
|
|
border-radius: $form-border-radius;
|
|
|
|
|
height: 130px;
|
|
|
|
|
}
|
2014-09-03 22:22:03 -06:00
|
|
|
}
|
2014-09-26 18:35:54 -06:00
|
|
|
|
|
|
|
|
// Sortables
|
2014-10-06 21:12:04 -06:00
|
|
|
.form-order-wrapper {
|
|
|
|
|
ul#ordering {
|
2014-09-26 18:35:54 -06:00
|
|
|
|
2014-10-06 21:12:04 -06:00
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
padding: 0.2rem 1rem;
|
|
|
|
|
border-radius: $form-border-radius;
|
|
|
|
|
margin: 3px 0;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&.drag-handle {
|
|
|
|
|
cursor: move;
|
|
|
|
|
&::after {
|
|
|
|
|
content: '\f0c9';
|
|
|
|
|
font-family: FontAwesome;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 10px;
|
|
|
|
|
}
|
2014-09-26 18:35:54 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-06 21:12:04 -06:00
|
|
|
|
2015-05-20 17:17:41 +02:00
|
|
|
// Sortables
|
|
|
|
|
.form-list-wrapper {
|
|
|
|
|
ul[data-collection-holder] {
|
|
|
|
|
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
2016-03-01 22:14:21 -08:00
|
|
|
> li {
|
2015-05-20 17:17:41 +02:00
|
|
|
cursor: move;
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
border-radius: $form-border-radius;
|
|
|
|
|
margin: 3px 0;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
.item-actions {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 10px;
|
|
|
|
|
top: 4px;
|
|
|
|
|
|
|
|
|
|
.fa-trash-o {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.collection-actions {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-11 18:14:29 +02:00
|
|
|
.form-label.block {
|
2016-03-07 20:05:30 -07:00
|
|
|
z-index: 1;
|
2015-09-02 17:36:46 -06:00
|
|
|
|
|
|
|
|
&:hover {
|
2016-03-07 20:05:30 -07:00
|
|
|
z-index: 2;
|
2015-09-02 17:36:46 -06:00
|
|
|
}
|
2015-08-11 18:14:29 +02:00
|
|
|
}
|
2015-10-05 22:39:54 +02:00
|
|
|
|
|
|
|
|
// Fieldset
|
|
|
|
|
#admin-main .admin-block h2 {
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
margin: 0 0 .5rem;
|
|
|
|
|
|
|
|
|
|
letter-spacing: normal;
|
|
|
|
|
}
|
|
|
|
|
.form-fieldset {
|
|
|
|
|
margin: 1rem 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-fieldset--label {
|
|
|
|
|
label {
|
|
|
|
|
display: table;
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
padding: .5rem 1rem;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
|
font-size: initial;
|
|
|
|
|
display: table-cell;
|
|
|
|
|
text-align: right;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& + .form-data {
|
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.form-fieldset--cursor {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.form-fieldset--info {
|
|
|
|
|
font-size: small;
|
|
|
|
|
}
|
|
|
|
|
.form-fieldset > input:checked ~ .form-data,
|
|
|
|
|
.form-fieldset--collapsible .open,
|
|
|
|
|
.form-fieldset input:checked ~ .form-label .form-fieldset--collapsible .close {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
.form-fieldset > .form-data,
|
|
|
|
|
.form-fieldset--collapsible .close,
|
|
|
|
|
.form-fieldset input:checked ~ .form-label .form-fieldset--collapsible .open {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|