2019-10-07 17:24:30 +03:00
|
|
|
// Formulate inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.formulate-input {
|
2020-02-26 08:21:10 +03:00
|
|
|
margin-bottom: 1.5em;
|
2019-10-07 17:24:30 +03:00
|
|
|
|
|
|
|
.formulate-input-label {
|
|
|
|
display: block;
|
|
|
|
line-height: 1.5;
|
|
|
|
font-size: .9em;
|
|
|
|
font-weight: 600;
|
|
|
|
margin-bottom: .1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-element {
|
|
|
|
max-width: 20em;
|
|
|
|
margin-bottom: .1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-help {
|
|
|
|
color: $formulate-gray-ddd;
|
|
|
|
font-size: .7em;
|
2019-11-08 01:03:34 +03:00
|
|
|
font-weight: 400;
|
2019-10-07 17:24:30 +03:00
|
|
|
line-height: 1.5;
|
|
|
|
margin-bottom: .25em;
|
|
|
|
}
|
|
|
|
|
2019-11-07 01:17:19 +03:00
|
|
|
.formulate-input-errors {
|
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2019-11-19 15:15:13 +03:00
|
|
|
.formulate-input-error,
|
|
|
|
.formulate-file-upload-error {
|
2019-11-07 01:17:19 +03:00
|
|
|
color: $formulate-error;
|
|
|
|
font-size: .8em;
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: 1.5;
|
|
|
|
margin-bottom: .25em;
|
|
|
|
}
|
|
|
|
|
2019-10-07 17:24:30 +03:00
|
|
|
.formulate-input-group-item {
|
2020-05-04 23:43:39 +03:00
|
|
|
margin-bottom: .5em;
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Text inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification='text'] {
|
|
|
|
input {
|
|
|
|
@include baseinput;
|
2020-02-28 06:06:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-element--date,
|
|
|
|
.formulate-input-element--month,
|
|
|
|
.formulate-input-element--week,
|
|
|
|
.formulate-input-element--datetime-local {
|
|
|
|
input {
|
|
|
|
min-height: 2.2em; // shim for some browsers that collapse height like ios
|
|
|
|
}
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|
2019-11-15 22:44:01 +03:00
|
|
|
|
2020-02-27 09:18:51 +03:00
|
|
|
.formulate-input-element--search {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
width: 2em;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.99 72.9"><path fill="%23#{str-slice("#{$formulate-gray-ddd}", 2)}" d="M71.77,66,53.87,48.1A29.94,29.94,0,1,0,30,60a29.52,29.52,0,0,0,18.1-6.1l18,17.8A4,4,0,0,0,69,72.9a4.18,4.18,0,0,0,2.9-1.2A4.09,4.09,0,0,0,71.77,66ZM30.07,51.9a21.9,21.9,0,1,1,15.5-37.4A21.37,21.37,0,0,1,52,30a22,22,0,0,1-6.4,15.5A21.54,21.54,0,0,1,30.07,51.9Z"/></svg>');
|
|
|
|
background-size: 1em 1em;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 22:44:01 +03:00
|
|
|
input[type="color"] {
|
|
|
|
height: 1.1em;
|
|
|
|
box-sizing: content-box;
|
|
|
|
|
|
|
|
@mixin color-swatch {
|
|
|
|
display: block;
|
|
|
|
height: 1em;
|
|
|
|
border-radius: .2em;
|
|
|
|
border: 0;
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-color-swatch-wrapper {
|
|
|
|
padding: 0 0 0 1.5em;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 79.17 79.17"><path fill="%23#{str-slice("#{$formulate-gray-ddd}", 2)}" d="M40.8,22.92c-3.4-3.4-4.76-8.44-1-12.24s8.84-2.44,12.24,1c5-5,10.69-13.33,18.81-11.31a11,11,0,0,1,7.62,14.34c-1.26,3.45-4.63,6.06-7.16,8.59-.92.93-3,2.26-3.46,3.46-.42,1,1.82,2.63,2.36,4a8,8,0,0,1-12.42,9.19c-.21-.16-1.35-1.51-1.59-1.51s-.83.83-1,1L49.71,44.9,32.43,62.18c-3.37,3.38-6.6,7.14-10.26,10.21a11,11,0,0,1-4.48,2.28c-1.25.3-3.11-.22-4.18.18-1.28.48-2.42,2.65-3.68,3.4-6.05,3.61-12.64-4-8.46-9.57.73-1,2.53-1.92,3-3a14.46,14.46,0,0,0-.09-2.52,10.75,10.75,0,0,1,3.14-6.77c.92-1,1.93-1.93,2.89-2.9Zm4.4-1.5c4.19,4,8.24,8.24,12.36,12.36,2.06,2.06,5,5.59,8,2.61,4.65-4.62-5-6.8-2.42-10.78C66.3,20.7,76.4,16.48,74.84,9.45,73.62,4,67.12,2.78,63.29,6.32c-2.55,2.36-4.93,4.94-7.39,7.4-.79.78-1.8,2.28-2.88,2.73-2.14.88-3.4-1.62-4.79-2.77-2.58-2.14-6.89-.82-6.53,3C41.89,18.68,43.87,20.09,45.2,21.42Zm-1.45,4.44L27.82,41.79C22,47.57,15.89,53.14,10.41,59.2a8.23,8.23,0,0,0-1.44,2c-.93,2,.25,4.14-.5,6S4.92,69.94,4.3,72a2.34,2.34,0,0,0,2.56,3c1.11-.17,2-1.33,2.71-2.07a11.17,11.17,0,0,1,2.08-2c1.68-.94,4,.17,5.93-.57C20,69.41,22,66.73,23.76,65L34.42,54.3,53.3,35.42Z"/></svg>');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: .9em .9em;
|
|
|
|
background-position: left .1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-color-swatch {
|
|
|
|
@include color-swatch;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-color-swatch {
|
|
|
|
@include color-swatch;
|
|
|
|
}
|
|
|
|
}
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|
|
|
|
|
2019-11-14 09:00:56 +03:00
|
|
|
// Slider inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification='slider'] {
|
2020-02-27 09:18:51 +03:00
|
|
|
.formulate-input-element--range {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-element-range-value {
|
|
|
|
font-size: .9em;
|
|
|
|
line-height: 1;
|
|
|
|
margin-left: .5em;
|
|
|
|
background-color: $formulate-gray;
|
|
|
|
padding: .25em .3em;
|
|
|
|
border-radius: .25em;
|
|
|
|
color: $formulate-gray-ddd;
|
|
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
}
|
|
|
|
|
2019-11-14 09:00:56 +03:00
|
|
|
input {
|
|
|
|
appearance: none;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 1em;
|
|
|
|
padding: .5em 0;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin thumb {
|
|
|
|
cursor: pointer;
|
|
|
|
appearance: none;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
border-radius: 1em;
|
2020-05-04 23:29:39 +03:00
|
|
|
border: 0;
|
2020-05-04 23:43:39 +03:00
|
|
|
background-color: $formulate-green;
|
2019-11-14 09:00:56 +03:00
|
|
|
margin-top: calc(-.5em + 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin track {
|
|
|
|
appearance: none;
|
|
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
|
|
background-color: $formulate-gray;
|
|
|
|
border-radius: 3px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-slider-thumb {
|
|
|
|
@include thumb;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-range-thumb {
|
|
|
|
@include thumb;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-ms-thumb {
|
|
|
|
@include thumb;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-slider-runnable-track {
|
|
|
|
@include track;
|
|
|
|
}
|
2020-05-04 23:29:39 +03:00
|
|
|
|
|
|
|
&::-moz-range-track {
|
|
|
|
@include track;
|
|
|
|
}
|
2019-11-14 09:00:56 +03:00
|
|
|
}
|
|
|
|
}
|
2019-10-07 17:24:30 +03:00
|
|
|
|
|
|
|
// Textarea inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification='textarea'] {
|
|
|
|
textarea {
|
|
|
|
@include baseinput;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-28 20:12:08 +03:00
|
|
|
// Button inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification='button'] {
|
|
|
|
button {
|
|
|
|
@include baseinput;
|
|
|
|
border-color: $formulate-green;
|
|
|
|
background-color: $formulate-green;
|
|
|
|
color: white;
|
|
|
|
min-width: 0;
|
|
|
|
width: auto;
|
|
|
|
font-weight: bold;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
background-color: $formulate-gray-d;
|
|
|
|
border-color: $formulate-gray-d;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: $formulate-green-l;
|
|
|
|
border-color: $formulate-green-l;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-07 17:24:30 +03:00
|
|
|
|
|
|
|
// Select lists
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification='select'] {
|
|
|
|
.formulate-input-element {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
@include down-arrow;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -.1em;
|
|
|
|
right: 1em;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
@include baseinput;
|
|
|
|
padding-right: 2em;
|
|
|
|
|
|
|
|
&[data-placeholder-selected] {
|
|
|
|
color: $formulate-gray-dd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Box inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification='box'] {
|
|
|
|
.formulate-input-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-element {
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
input {
|
|
|
|
position: absolute;
|
|
|
|
left: -999px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-decorator {
|
|
|
|
display: block;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
border-radius: .25em;
|
|
|
|
border: 1px solid $formulate-gray-d;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
background-size: contain;
|
|
|
|
background-position: right;
|
|
|
|
width: calc(100% - .125em);
|
|
|
|
height: calc(100% - .125em);
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: absolute;
|
|
|
|
top: .0625em;
|
|
|
|
left: .0625em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
&[data-type="radio"] {
|
|
|
|
.formulate-input-element-decorator {
|
|
|
|
border-radius: 1em;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
border-radius: 1em;
|
|
|
|
width: calc(100% - .5em);
|
|
|
|
height: calc(100% - .5em);
|
|
|
|
top: .25em;
|
|
|
|
left: .25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:checked {
|
|
|
|
& ~ .formulate-input-element-decorator {
|
|
|
|
border-color: $formulate-green;
|
|
|
|
|
|
|
|
&::before {
|
2019-11-15 22:44:01 +03:00
|
|
|
background-color: $formulate-green;
|
|
|
|
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M8.76,56.2c-6.38-6.34,3.26-16,9.64-9.69L38,65.88,80.56,23.29c6.38-6.38,16.07,3.32,9.69,9.69L42.84,80.37a6.83,6.83,0,0,1-9.65,0Z"/></svg>');
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="radio"]:checked {
|
|
|
|
& ~ .formulate-input-element-decorator {
|
|
|
|
border-color: $formulate-green;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $formulate-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input:focus {
|
|
|
|
& ~ .formulate-input-element-decorator {
|
|
|
|
border-color: $formulate-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-label--after {
|
|
|
|
margin-left: .5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-input-label--before {
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-classification="group"] {
|
|
|
|
& > .formulate-input-wrapper {
|
|
|
|
& > .formulate-input-label {
|
|
|
|
margin-bottom: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 22:44:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
// File inputs
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
&[data-classification="file"] {
|
|
|
|
.formulate-input-upload-area {
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
2019-11-19 15:15:13 +03:00
|
|
|
padding: 2em 0;
|
2019-11-15 22:44:01 +03:00
|
|
|
|
|
|
|
input {
|
|
|
|
cursor: pointer;
|
|
|
|
appearance: none;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 5;
|
|
|
|
}
|
|
|
|
|
2019-11-19 15:15:13 +03:00
|
|
|
|
|
|
|
&[data-has-files] {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 22:44:01 +03:00
|
|
|
&-mask {
|
|
|
|
border-radius: .4em;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
border: 2px dashed $formulate-gray-dd;
|
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
background-color: $formulate-gray-dd;
|
|
|
|
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 58 58"><path d="M29,58A29,29,0,1,0,0,29,29,29,0,0,0,29,58ZM29,4A25,25,0,1,1,4,29,25,25,0,0,1,29,4Z"/><polygon points="27 22 27 44.4 31 44.4 31 22 41.7 31.1 44.3 28.1 29 15 13.7 28.1 16.3 31.1 27 22"/></svg>');
|
2019-11-19 15:15:13 +03:00
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
2019-11-15 22:44:01 +03:00
|
|
|
width: 2em;
|
|
|
|
height: 2em;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input:focus,
|
|
|
|
input:hover,
|
|
|
|
input[data-is-drag-hover] {
|
|
|
|
& ~ .formulate-input-upload-area-mask {
|
|
|
|
border-color: $formulate-green;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: $formulate-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 15:15:13 +03:00
|
|
|
|
|
|
|
|
2019-11-15 22:44:01 +03:00
|
|
|
.formulate-files {
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
2019-11-19 15:15:13 +03:00
|
|
|
.formulate-file-progress {
|
|
|
|
background-color: $formulate-gray-d;
|
|
|
|
height: .3em;
|
|
|
|
border-radius: 1.25em;
|
|
|
|
width: 5em;
|
|
|
|
overflow: hidden;
|
2020-03-09 18:03:33 +03:00
|
|
|
position: relative;
|
|
|
|
flex: 0 0 5em;
|
2019-11-19 15:15:13 +03:00
|
|
|
right: .75em;
|
2020-03-09 18:03:33 +03:00
|
|
|
transition: height .25s, width .25s, flex-basis .25s;
|
2019-11-19 15:15:13 +03:00
|
|
|
z-index: 2;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: block;
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(.08);
|
|
|
|
background-color: $formulate-white;
|
|
|
|
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M8.76,56.2c-6.38-6.34,3.26-16,9.64-9.69L38,65.88,80.56,23.29c6.38-6.38,16.07,3.32,9.69,9.69L42.84,80.37a6.83,6.83,0,0,1-9.65,0Z"/></svg>');
|
|
|
|
mask-size: 77%;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-just-finished] {
|
|
|
|
width: 1.25em;
|
|
|
|
height: 1.25em;
|
2020-03-09 18:03:33 +03:00
|
|
|
flex: 0 0 1.25em;
|
2019-11-19 15:15:13 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
transition: transform .25s .2s, opacity .25s .2s;
|
|
|
|
transform: scale(1);
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-is-finished] {
|
|
|
|
transition: height .25s, width .25s, left .25s, top, .25s, border-radius .25s;
|
|
|
|
width: .3em;
|
2020-03-09 18:03:33 +03:00
|
|
|
flex: 0 0 .3em;
|
2019-11-19 15:15:13 +03:00
|
|
|
height: 100%;
|
|
|
|
right: 0;
|
2019-11-21 08:29:28 +03:00
|
|
|
border-radius: 0 .23em .23em 0;
|
2019-11-19 15:15:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
transition: opacity .1s;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-file-progress-inner {
|
|
|
|
background-color: $formulate-green;
|
|
|
|
width: 1%;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-02 21:34:44 +03:00
|
|
|
.formulate-file-name {
|
2019-11-19 15:15:13 +03:00
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 2em;
|
2020-03-02 08:35:56 +03:00
|
|
|
max-width: 100%;
|
2020-03-07 16:19:42 +03:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-11-19 15:15:13 +03:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
left: .7em;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -.7em;
|
|
|
|
background-color: $formulate-gray-dd;
|
|
|
|
content: '';
|
|
|
|
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64.06 83.59"><path d="M55.94,83.59a8.16,8.16,0,0,0,8.12-8.16V19.12a1.77,1.77,0,0,0-.52-1.25L46.21.59A1.69,1.69,0,0,0,45.14.08L44.69,0l-.18,0H8.13A8.18,8.18,0,0,0,0,8.16V75.41a8.16,8.16,0,0,0,8.13,8.16H55.94ZM46.68,6,58.11,17.38H46.68ZM3.52,75.43V8.16A4.64,4.64,0,0,1,8.13,3.52h35V19.16a1.75,1.75,0,0,0,1.76,1.74H60.55V75.43a4.65,4.65,0,0,1-4.61,4.65H8.13A4.65,4.65,0,0,1,3.52,75.43Z"/></svg>');
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-size: contain;
|
|
|
|
width: 1.25em;
|
|
|
|
height: 1.25em;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-file-remove {
|
|
|
|
width: 1.25em;
|
|
|
|
height: 1.25em;
|
|
|
|
border-radius: 1em;
|
|
|
|
border: 1px solid $formulate-gray-dd;
|
|
|
|
background-color: $formulate-gray-dd;
|
|
|
|
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 59.1 59.2"><path d="M1.6,57.7a5,5,0,0,0,3.5,1.5,4.85,4.85,0,0,0,3.5-1.5l21-21,21,21a5,5,0,0,0,3.5,1.5,4.85,4.85,0,0,0,3.5-1.5,5,5,0,0,0,0-7.1l-21-21,21-21a5,5,0,0,0,0-7.1,5,5,0,0,0-7.1,0l-21,21L8.6,1.7a5,5,0,0,0-7.1,0,5,5,0,0,0,0,7.1l21,21L1.6,50.7A4.83,4.83,0,0,0,1.6,57.7Z"/></svg>');
|
|
|
|
mask-size: .6em;
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
mask-position: center;
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
right: .75em;
|
|
|
|
z-index: 1;
|
|
|
|
transition: transform .25s;
|
|
|
|
|
|
|
|
@media (pointer: fine) {
|
|
|
|
&:hover {
|
|
|
|
transform: scale(1.5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-15 22:44:01 +03:00
|
|
|
li {
|
2019-11-19 15:15:13 +03:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
&[data-has-error] {
|
|
|
|
.formulate-file-progress {
|
|
|
|
background-color: $formulate-error-l;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-21 08:29:28 +03:00
|
|
|
&[data-has-preview] {
|
2020-03-02 21:34:44 +03:00
|
|
|
.formulate-file-name {
|
2019-11-21 08:29:28 +03:00
|
|
|
&:before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-19 15:15:13 +03:00
|
|
|
& + li {
|
|
|
|
margin-top: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-file {
|
2019-11-15 22:44:01 +03:00
|
|
|
@include baseinput;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
2019-11-21 08:29:28 +03:00
|
|
|
justify-content: flex-start;
|
2019-11-19 15:15:13 +03:00
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
2019-11-15 22:44:01 +03:00
|
|
|
|
|
|
|
@mixin progress {
|
|
|
|
appearance: none;
|
|
|
|
height: .5em;
|
|
|
|
border-radius: .5em;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-progress-bar {
|
|
|
|
@include progress;
|
|
|
|
}
|
|
|
|
}
|
2019-11-21 08:29:28 +03:00
|
|
|
|
|
|
|
.formulate-file-image-preview {
|
|
|
|
width: 3em;
|
|
|
|
height: 3em;
|
2020-03-09 18:03:33 +03:00
|
|
|
flex: 0 0 3em;
|
2019-11-21 08:29:28 +03:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
left: -1px;
|
|
|
|
box-shadow: 0 0 0 1px $formulate-gray;
|
|
|
|
transition: transform .25s, box-shadow .25s, background-color .25s;
|
|
|
|
|
|
|
|
@media (pointer: fine) {
|
|
|
|
&:hover {
|
|
|
|
transition-delay: .2s;
|
|
|
|
transform: scale(3);
|
|
|
|
background-color: $formulate-white;
|
|
|
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, .1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
object-fit: contain;
|
|
|
|
transition: all .25s;
|
|
|
|
}
|
|
|
|
}
|
2019-11-15 22:44:01 +03:00
|
|
|
}
|
2019-11-19 15:15:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
// Image uploads
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
[data-type="image"] {
|
|
|
|
.formulate-input-upload-area {
|
|
|
|
.formulate-input-upload-area-mask {
|
|
|
|
&::before {
|
|
|
|
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 71.05"><path d="M82.89,0H7.1A7.12,7.12,0,0,0,0,7.11V64a7.11,7.11,0,0,0,7.1,7.1H82.9A7.11,7.11,0,0,0,90,64V7.11A7.12,7.12,0,0,0,82.89,0ZM69.28,39.35a5.44,5.44,0,0,0-8,0L50.58,50.74,32.38,30.88a5.31,5.31,0,0,0-7.92,0L4.74,52.4V7.11A2.37,2.37,0,0,1,7.11,4.74H82.9a2.37,2.37,0,0,1,2.36,2.37V56.3Z"/><circle cx="67.74" cy="22.26" r="8.53"/></svg>');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-07 00:10:25 +03:00
|
|
|
}
|
|
|
|
}
|
2019-11-19 15:15:13 +03:00
|
|
|
|
2020-03-07 00:10:25 +03:00
|
|
|
.formulate-form-errors {
|
|
|
|
margin: .75em 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2019-11-19 15:15:13 +03:00
|
|
|
|
2020-03-07 00:10:25 +03:00
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.formulate-form-error {
|
|
|
|
color: $formulate-error;
|
|
|
|
font-size: .9em;
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: 1.5;
|
|
|
|
margin-bottom: .25em;
|
2019-11-15 22:44:01 +03:00
|
|
|
}
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|