123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674 |
- // Forms
- form {
- h1, h3, .form-spacer h3 {
- padding: 0 $padding-default 0.5rem;
- margin: 0 0 1rem;
- font-size: 1.5rem;
- text-align: left;
- letter-spacing: -1px;
- }
- h3 {
- padding-left: 0;
- }
- p {
- padding: 0 $padding-default;
- }
- pre {
- padding: 1.5rem 3rem;
- }
- .form-description {
- p {
- padding: 0;
- }
- }
- .form-field {
- margin-bottom: 1rem;
- padding-left: $padding-default;
- @include breakpoint(mobile-only) {
- padding-left: 1rem;
- }
- .file-thumbnail-wrapper {
- display: inline-block;
- position: relative;
- }
- .file-thumbnail {
- max-height: 150px;
- vertical-align: top;
- display: inline-block;
- margin-bottom: 10px;
- }
- .file-thumbnail-remove {
- position: absolute;
- text-align: center;
- display: block;
- top: 3px;
- right: 3px;
- width: 25px;
- height: 25px;
- border-radius:100%;
- .fa {
- font-size: 20px;
- line-height: 25px;
- vertical-align: top;
- }
- }
- }
- .form-data {
- padding-right: $padding-default;
- @include breakpoint(mobile-only) {
- padding-right: 1rem;
- }
- }
- .form-input-addon-wrapper {
- display: table-row;
- .form-input-addon {
- display: table-cell;
- min-width: 43px;
- padding: 0 10px;
- text-align: center;
- }
- input {
- height: 35px;
- display: table-cell;
- }
- .form-input-prepend {
- border-radius: 4px 0 0 4px;
- border-right-width: 0 !important;
- }
- .form-input-append {
- border-radius: 0 4px 4px 0;
- border-left-width: 0 !important;
- }
- input:not(:first-child) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- input:not(:last-child) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- }
- .overlay {
- padding-top: 1rem;
- padding-bottom: 1px;
- &.bottom {
- margin: 2rem auto -2rem auto;
- }
- }
- .required {
- font-family: helvetica, arial;
- vertical-align: middle;
- line-height: 1;
- font-size: 30px;
- margin-left: 5px;
- }
- label {
- padding: 5px 0;
- font-weight: 400;
- margin:0;
- p {
- margin: 0;
- }
- [data-hint] {
- display: inline;
- }
- &.inline {
- display: inline;
- vertical-align: middle;
- margin-right: 15px;
- }
- &.toggleable {
- display: inline;
- }
- }
- .form-sublabel {
- p {
- opacity: 0.8;
- font-size: 0.9rem;
- margin: 10px 20px 0 0;
- padding: 0;
- }
- }
- input, select, textarea, button, .selectize-input {
- font-size: $core-font-size;
- line-height: $core-line-height;
- border-radius: $form-border-radius;
- -webkit-font-smoothing: antialiased;
- }
- .form-input-file {
- position: relative;
- min-height: 70px;
- border-radius: $form-border-radius;
- ul {
- margin: 1rem 0;
- text-align: left;
- font-size: 1rem;
- border-radius: $form-border-radius;
- }
- p {
- display: block;
- height: 100%;
- text-align: center;
- margin: 0;
- padding: 0.8rem 1rem 0;
- font-size: 1.2rem;
- }
- input {
- display: none;
- }
- }
- .selectize-dropdown {
- z-index: 100000;
- }
- // vertical alignment of forms
- .grid.vertical {
- @include flex-flow(column);
- }
- // compact
- .compact {
- .form-field {
- margin-bottom: 0.2rem;
- }
- .form-list-wrapper {
- li {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-start;
- .form-field {
- width: 50%;
- @include breakpoint(mobile-only) {
- width: 100%;
- }
- }
- }
- }
- }
- .form-select-wrapper, .selectize-control.single .selectize-input {
- position: relative;
- &:after {
- margin-top: 0;
- border: 0;
- position: absolute;
- content: '\f078';
- font-family: 'FontAwesome';
- right: 12px;
- top: 50%;
- line-height: 0;
- pointer-events: none;
- }
- }
- .selectize-input {
- display: block !important;
- box-shadow: none;
- padding: $form-select-pad;
- margin: 0;
- > input {
- font-size: $core-font-size;
- line-height: $core-line-height;
- }
- }
- .selectize-control.multi .selectize-input {
- padding: ($leading-margin / 4) ($leading-margin / 4);
- &.has-items {
- padding-top: 6px;
- padding-bottom: 4px;
- }
- > div {
- border-radius: 2px;
- line-height: 1.5;
- }
- }
- .selectize-control.single .selectize-input {
- &:after {
- right: 27px;
- }
- &.dropdown-active {
- &:after {
- content: '\f077';
- }
- }
- }
- .x-small, .x-small.form-input-addon-wrapper input {
- max-width: 5rem !important;
- }
- .small, .small.form-input-addon-wrapper input {
- max-width: 10rem !important;
- }
- .medium, .medium.form-input-addon-wrapper input {
- max-width: 20rem;
- textarea {
- height: 7rem;
- }
- &[data-grav-array-type="container"] {
- max-width: 100% !important;
- input[type=text] {
- width: calc(70% - 110px);
- }
- }
- }
- .large, .large.form-input-addon-wrapper input {
- max-width: 30rem !important;
- textarea {
- height: 10rem;
- }
- &[data-grav-array-type="container"] {
- max-width: 100% !important;
- input[type=text] {
- width: calc(100% - 110px);
- }
- }
- }
- select {
- width: 100%;
- -webkit-appearance:none;
- -moz-appearance:none;
- appearance:none;
- padding: $form-select-pad;
- cursor: pointer;
- margin: 0;
- }
- input[type=text],
- input[type=password],
- input[type=email],
- input[type=date],
- input[type=tel],
- input[type=time],
- input[type=week],
- input[type=month],
- input[type=number],
- input[type=color],
- input[type=url] {
- width: 100%;
- }
- textarea {
- width: 100%;
- }
- .form-frontmatter-wrapper {
- border-radius: $form-border-radius;
- }
- .switch-toggle {
- // margin-left: 30%;
- label {
- cursor: pointer;
- }
- a,label {
- outline: none !important;
- }
- }
- .dynfields, [data-grav-field="array"], [data-grav-field="multilevel"] {
- input[type=text] {
- width: 40%;
- float: left;
- margin: 0 5px 5px 0;
- }
- .form-row {
- display: inline-block;
- width: 100%;
- margin-right: 0;
- max-width: 100% !important;
- span {
- padding: 0.5rem;
- display: inline-block;
- line-height: 1.5;
- cursor: pointer;
- &[data-grav-array-action="sort"] {
- float: left;
- cursor: move;
- }
- }
- &.array-field-value_only {
- width: 100%;
- }
- }
- }
- [data-grav-field="multilevel"] input:disabled {
- background-color: lightgray;
- }
- [data-grav-array-type="container"].one-child {
- [data-grav-array-action="sort"] {
- display: none;
- }
- }
- .button-bar {
- margin-top: 1rem;
- padding: 1.2rem 3rem;
- width: 100%;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- }
- .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;
- line-height: 1;
- text-align: center;
- }
- &.toggleable label{
- margin-right: 0;
- }
- }
- }
- // Display
- .form-display-wrapper {
- p {
- padding-left: 0;
- padding-right: 0;
- &:first-child {
- margin-top: 0;
- }
- }
- }
- // Frontmatter Field
- div.frontmatter {
- margin-bottom: 3rem;
- }
- textarea.frontmatter {
- height: 130px !important;
- & + .CodeMirror {
- height: 130px;
- }
- }
- // Sortables
- .form-order-wrapper {
- .notice {
- padding: 5px;
- }
- ul.orderable {
- 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;
- }
- }
- i {
- font-size: 0.8rem;
- }
- }
- }
- }
- // Sortables
- .form-list-wrapper {
- ul[data-collection-holder] {
- list-style: none;
- margin: 0;
- padding: 0;
- > li {
- padding: 1rem;
- border-radius: $form-border-radius;
- margin: 3px 0;
- position: relative;
- .item-actions {
- position: absolute;
- right: 10px;
- top: 4px;
- .fa {
- cursor: pointer;
- }
- }
- &.collection-collapsed {
- height: 70px;
- overflow: hidden;
- @include transform(translateZ(0));
- @include breakpoint(mobile-only) {
- height: 120px;
- }
- }
- }
- &[data-collection-nosort] > li {
- cursor: default;
- }
- }
- .collection-actions {
- text-align: right;
- }
- .collection-sort {
- position: absolute;
- top: 0;
- left: 0;
- width: 32px;
- bottom: 0;
- cursor: move;
- @include breakpoint(mobile-only) {
- width: 20px;
- .fa {
- font-size: 0.8rem;
- }
- }
- .fa {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- }
- [data-collection-nosort] .collection-sort {
- display: none;
- }
- }
- .form-label.block {
- &:hover {
- z-index: 2;
- }
- label {
- z-index: 2;
- }
- }
- // Fieldset
- #admin-main .admin-block h2 {
- font-size: 1.25rem;
- margin: 0 0 .5rem;
- letter-spacing: normal;
- }
- .form-fieldset {
- margin: 1rem 1.5rem;
- }
- .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;
- }
- .filepicker-field-image {
- width: 30px;
- vertical-align: middle;
- margin-right: 5px;
- }
- .filepicker-field-name {
- vertical-align: middle;
- }
- .permissions-container {
- .permission-value {
- width: 50%;
- float: left;
- margin: 0 5px 5px 0;
- height: 39px;
- }
- .switch-toggle {
- line-height: 37px;
- margin: 0 5px 5px 0;
- }
- }
|