305 lines
4.9 KiB
SCSS
305 lines
4.9 KiB
SCSS
.ct-control,
|
|
.ct-controls-group {
|
|
position: relative;
|
|
padding: var(--options-horizontal-spacing, 0 14px);
|
|
margin-top: var(--options-vertical-spacing, 25px);
|
|
|
|
> header {
|
|
|
|
&:not(:empty) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
column-gap: 10px;
|
|
position: relative;
|
|
}
|
|
|
|
label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.1px;
|
|
cursor: default;
|
|
width: initial;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
// inline
|
|
&[data-design='inline'] {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
grid-column-gap: 10px;
|
|
|
|
> header {
|
|
|
|
label {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
&[data-divider]:before,
|
|
&[data-divider]:after,
|
|
.ct-option-description {
|
|
grid-column: 1/-1;
|
|
}
|
|
}
|
|
|
|
|
|
// block
|
|
&[data-design*='block'] {
|
|
|
|
> header {
|
|
// &:not(:empty)
|
|
&:not([data-label="no"]) {
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// block right
|
|
&[data-design='block:right'] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
> section {
|
|
align-self: flex-end;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.ct-options-container {
|
|
|
|
.customize-control-ct-options {
|
|
display: block !important;
|
|
}
|
|
|
|
// control options
|
|
.ct-control-options {
|
|
display: flex;
|
|
align-self: start;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
|
|
// title
|
|
.ct-title {
|
|
h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
color: #484f56;
|
|
font-size: 13px !important;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
text-transform: initial;
|
|
}
|
|
|
|
&:not(:first-child) {
|
|
padding-top: var(--title-option-vertical-spacing, 30px);
|
|
border-top: 1px solid var(--optionBorderColor);
|
|
}
|
|
|
|
&[data-type*="simple"] {
|
|
width: calc(100% + var(--title-option-margin-inline, 12px) * 2);
|
|
margin-inline: calc(var(--title-option-margin-inline, 12px) * -1);
|
|
margin-top: var(--title-option-vertical-spacing, 30px);
|
|
padding-inline: var(--title-option-padding-inline, 26px);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
&[data-type*="small-heading"] {
|
|
margin-top: 25px;
|
|
padding-top: 25px;
|
|
|
|
h3 {
|
|
font-size: 12px !important;
|
|
}
|
|
}
|
|
|
|
&[data-type*="small-divider"] {
|
|
padding-top: 25px;
|
|
margin: 25px 14px 0 14px;
|
|
}
|
|
|
|
&[data-type*="no-border"] {
|
|
border-top: 0;
|
|
padding-top: 0;
|
|
|
|
&:first-child {
|
|
margin-top: var(--title-option-vertical-spacing, 30px);
|
|
}
|
|
}
|
|
|
|
&[data-type*="menu-location"] {
|
|
width: calc(100% + 24px);
|
|
margin-top: 21px;
|
|
margin-inline: -12px;
|
|
padding: 0 26px;
|
|
box-sizing: border-box;
|
|
border-top: none;
|
|
|
|
h3 {
|
|
padding: 10px;
|
|
border-radius: 3px;
|
|
border: 1px dashed #cecece;
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
}
|
|
}
|
|
|
|
.ct-panel-options-header + .ct-title {
|
|
padding-top: 0;
|
|
border-top: none;
|
|
|
|
h3 {
|
|
font-size: 12px !important;
|
|
}
|
|
}
|
|
|
|
|
|
// layers
|
|
.ct-layer {
|
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
// select
|
|
[data-design="inline"] {
|
|
.ct-option-input,
|
|
.ct-select-input {
|
|
max-width: var(--select-input-width, 130px);
|
|
}
|
|
}
|
|
|
|
// option heading divider
|
|
[data-label='heading-label'] {
|
|
header > label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #484f56;
|
|
}
|
|
}
|
|
|
|
// option notification
|
|
.ct-notification {
|
|
padding: 0 14px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
|
|
// divider
|
|
.ct-divider {
|
|
|
|
&:before {
|
|
content: '';
|
|
display: block;
|
|
height: 1px;
|
|
background: var(--optionBorderColor);
|
|
}
|
|
|
|
&:not([data-type]) {
|
|
margin: var(--divider-option-vertical-spacing, 30px) 0;
|
|
|
|
&:before {
|
|
width: calc(100% + var(--divider-option-margin-inline, 12px) * 2);
|
|
margin-inline: calc(var(--divider-option-margin-inline, 12px) * -1);
|
|
}
|
|
}
|
|
|
|
&[data-type="full-small"] {
|
|
margin: 20px 0;
|
|
|
|
&:before {
|
|
width: calc(100% + 24px);
|
|
margin: 0 -12px;
|
|
}
|
|
}
|
|
|
|
&[data-type="small"] {
|
|
margin: 25px 0;
|
|
|
|
&:before {
|
|
opacity: 0.8;
|
|
width: calc(100% - 24px);
|
|
margin: 0 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// option description
|
|
.ct-option-description {
|
|
flex: 0 0 100%;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
font-style: italic;
|
|
opacity: 0.65;
|
|
color: rgba(85, 93, 102, 1);
|
|
margin: 10px 0 0 0;
|
|
transition: opacity 0.1s ease;
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: color 0.1s ease;
|
|
|
|
&:hover {
|
|
color: var(--ui-accent-color);
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ct-title,
|
|
.ct-control {
|
|
&:hover {
|
|
> .ct-option-description {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
// control with divider
|
|
[data-divider] {
|
|
|
|
&:before, &:after {
|
|
display: block;
|
|
width: 100%;
|
|
border-bottom: 1px var(--option-border-style, solid) var(--optionBorderColor);
|
|
}
|
|
}
|
|
|
|
[data-divider*="top"]:not(:first-child) {
|
|
&:before {
|
|
content: '';
|
|
margin-bottom: var(--options-vertical-spacing, 25px);
|
|
}
|
|
}
|
|
|
|
[data-divider*="bottom"]:not(:last-child) {
|
|
&:after {
|
|
content: '';
|
|
margin-top: var(--options-vertical-spacing, 25px);
|
|
}
|
|
}
|
|
|
|
[data-divider*="full"] {
|
|
&:before, &:after {
|
|
width: calc(100% + 52px);
|
|
margin: 0 -26px;
|
|
}
|
|
}
|
|
|
|
// option modal
|
|
.wp-customizer {
|
|
.ct-option-modal {
|
|
inset-inline-start: 12px;
|
|
}
|
|
}
|
|
|
|
// reset button styles
|
|
.ct-reset-styles {
|
|
appearance: none;
|
|
border: 0;
|
|
padding: initial;
|
|
background: transparent;
|
|
} |