%PDF- %PDF-
| Direktori : /dom645759/wp-content/plugins/fusion-builder/assets/css/form/ |
| Current File : //dom645759/wp-content/plugins/fusion-builder/assets/css/form/rich-text.css |
/* Editor rules carry the field's class too: Classic's content rules (.post-content h2, p, ul) would win over one class. */
/* Rich Text field: the toolbar and editor share the input's box; the textarea only holds the value. */
.awb-form-rich-text {
position: relative;
background-color: var(--awb-form-bg-color);
color: var(--awb-form-text-color);
font-size: var(--awb-form-font-size);
border-style: solid;
border-top-width: var(--awb-form-border-width-top);
border-bottom-width: var(--awb-form-border-width-bottom);
/* Border width options are physical sides. */
border-right-width: var(--awb-form-border-width-right);
border-left-width: var(--awb-form-border-width-left);
border-color: var(--awb-form-field-error-color, var(--awb-form-border-color));
border-radius: var(--awb-form-border-radius);
transition: border-color 0.2s ease;
}
.awb-form-rich-text:hover:not(:focus-within) {
border-color: var(--awb-form-field-error-color, var(--awb-form-focus-border-hover-color));
}
.awb-form-rich-text:focus-within {
border-color: var(--awb-form-field-error-color, var(--awb-form-focus-border-color));
}
.awb-form-rich-text__toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.15em;
padding: 0.35em 0.5em;
border-bottom: 1px solid var(--awb-form-border-color);
}
.awb-form-rich-text__tool {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2em;
height: 2em;
padding: 0;
border: 0;
border-radius: 4px;
background-color: transparent;
color: inherit;
font-size: 1em;
line-height: 1;
opacity: 0.7;
cursor: pointer;
transition: opacity 0.2s ease, background-color 0.2s ease;
}
.awb-form-rich-text__tool:hover,
.awb-form-rich-text__tool:focus-visible {
opacity: 1;
background-color: color-mix(in srgb, currentColor 10%, transparent);
}
.awb-form-rich-text__tool:focus-visible {
outline: 2px solid var(--awb-form-focus-border-color);
outline-offset: 1px;
}
.awb-form-rich-text__tool[aria-pressed="true"] {
opacity: 1;
background-color: color-mix(in srgb, currentColor 16%, transparent);
}
.awb-form-rich-text__tool:disabled {
opacity: 0.3;
background-color: transparent;
cursor: default;
}
.awb-form-rich-text__body {
position: relative;
}
.awb-form-rich-text .awb-form-rich-text__editor {
position: relative;
min-height: calc(var(--awb-rich-text-rows, 6) * 1.6em + 2em);
padding: 1em;
line-height: 1.6;
outline: none;
overflow-wrap: anywhere;
cursor: text;
}
.awb-form-rich-text .awb-form-rich-text__editor.is-empty::before {
content: attr(data-placeholder);
position: absolute;
inset-inline: 1em;
color: var(--awb-form-placeholder-color);
opacity: 0.7;
pointer-events: none;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(p, h2, h3, h4, ul, ol, blockquote, figure) {
margin: 0 0 0.75em;
}
.awb-form-rich-text .awb-form-rich-text__editor > :last-child {
margin-bottom: 0;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(h2, h3, h4) {
color: inherit;
font-family: inherit;
font-style: inherit;
font-weight: 600;
letter-spacing: inherit;
line-height: 1.3;
text-transform: inherit;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(h2) {
font-size: 1.4em;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(h3) {
font-size: 1.2em;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(h4) {
font-size: 1.05em;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(ul, ol) {
padding-inline-start: 1.5em;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(blockquote) {
margin-inline: 0;
padding-inline-start: 1em;
border-inline-start: 3px solid color-mix(in srgb, currentColor 30%, transparent);
font-style: italic;
}
.awb-form-rich-text .awb-form-rich-text__editor :where(a) {
color: inherit;
text-decoration: underline;
}
.awb-form-rich-text .awb-form-rich-text__editor ul[data-awb-el="checklist"] {
padding-inline-start: 1.6em;
list-style: none;
}
.awb-form-rich-text .awb-form-rich-text__editor ul[data-awb-el="checklist"] > li {
position: relative;
}
.awb-form-rich-text .awb-form-rich-text__editor ul[data-awb-el="checklist"] > li::before {
content: "\f00c";
position: absolute;
inset-inline-start: -1.5em;
font-family: "awb-icons";
font-style: normal;
color: var(--awb-form-focus-border-color);
}
.awb-form-rich-text .awb-form-rich-text__editor figure[data-awb-el="image"] {
display: block;
margin-inline: 0;
cursor: pointer;
}
.awb-form-rich-text .awb-form-rich-text__editor figure[data-awb-el="image"] img {
display: block;
max-width: 100%;
max-height: 20em;
height: auto;
border-radius: 4px;
}
.awb-form-rich-text .awb-form-rich-text__editor p[data-awb-el="button"] a {
display: inline-block;
padding: 0.5em 1.25em;
border-radius: var(--button_border_radius-top_left, 4px);
background-color: var(--button_gradient_top_color, var(--awb-form-focus-border-color));
color: var(--button_accent_color, #fff);
text-decoration: none;
cursor: pointer;
}
.awb-form-rich-text .awb-form-rich-text__editor [data-awb-align="left"] {
text-align: left;
}
.awb-form-rich-text .awb-form-rich-text__editor [data-awb-align="center"] {
text-align: center;
}
.awb-form-rich-text .awb-form-rich-text__editor [data-awb-align="right"] {
text-align: right;
}
/* The value: kept in the layout (not hidden) so the browser can point its validation message at it. */
.awb-form-rich-text__value {
position: absolute;
inset-inline: 0;
bottom: 0;
width: 100%;
height: 1px;
min-height: 0;
padding: 0;
border: 0;
opacity: 0;
pointer-events: none;
resize: none;
}
.awb-form-rich-text__panel {
display: grid;
gap: 0.6em;
margin: 0 1em 1em;
padding: 0.75em;
border: 1px solid var(--awb-form-border-color);
border-radius: var(--awb-form-border-radius);
background-color: var(--awb-form-bg-color);
}
.awb-form-rich-text__swatches {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
}
.awb-form-rich-text__swatch {
width: 1.75em;
height: 1.75em;
padding: 0;
border: 1px solid var(--awb-form-border-color);
border-radius: 50%;
background-color: var(--awb-swatch, transparent);
cursor: pointer;
}
.awb-form-rich-text__swatch:hover,
.awb-form-rich-text__swatch:focus-visible {
outline: 2px solid var(--awb-form-focus-border-color);
outline-offset: 2px;
}
/* No colour: struck through. */
.awb-form-rich-text__swatch--none {
background-image: linear-gradient(to top right, transparent calc(50% - 1px), #e0284f calc(50% - 1px), #e0284f calc(50% + 1px), transparent calc(50% + 1px));
}
.awb-form-rich-text__panel-field {
display: grid;
gap: 0.3em;
font-size: 0.9em;
}
.awb-form-rich-text__panel-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5em;
}
.awb-form-rich-text__panel-button {
padding: 0.45em 1em;
border: 1px solid var(--awb-form-border-color);
border-radius: var(--awb-form-border-radius);
background-color: transparent;
color: inherit;
font-size: 0.9em;
cursor: pointer;
}
.awb-form-rich-text__panel-button--apply {
border-color: var(--awb-form-focus-border-color);
background-color: var(--awb-form-focus-border-color);
color: #fff;
}
.awb-form-rich-text__panel-error,
.awb-form-rich-text__notice {
margin: 0;
color: #e0284f;
font-size: 0.9em;
}
.awb-form-rich-text__panel-error:empty {
display: none;
}
.awb-form-rich-text__notice {
padding: 0.5em 1em;
border-top: 1px solid var(--awb-form-border-color);
}
/* An invalid field: Classic marks the field wrapper. */
.fusion-form-field.error .awb-form-rich-text {
--awb-form-field-error-color: #e0284f;
box-shadow: 0 0 1.5px 1px rgba(224, 40, 79, 0.65);
}