| 1 |
@import "variables"; |
| 2 |
@import "functions"; |
| 3 |
|
| 4 |
/** |
| 5 |
* Import custom components SCSS here. |
| 6 |
*/ |
| 7 |
@import "../components/tone-selector/style"; |
| 8 |
@import "../components/persona-selector/style"; |
| 9 |
@import "../components/input-range/style"; |
| 10 |
@import "../components/thumbnail/style"; |
| 11 |
@import "../components/snackbar-notices/style"; |
| 12 |
@import "../components/loading/style"; |
| 13 |
|
| 14 |
/** |
| 15 |
* Common styles for Content Intelligence. |
| 16 |
*/ |
| 17 |
.parsely-panel-settings { |
| 18 |
width: 100%; |
| 19 |
|
| 20 |
.parsely-panel-settings-header { |
| 21 |
margin: to_rem(10px) 0; |
| 22 |
display: flex; |
| 23 |
width: 100%; |
| 24 |
|
| 25 |
.parsely-panel-settings-header-label { |
| 26 |
margin: 0 0 0 to_rem(5px); |
| 27 |
flex-grow: 2; |
| 28 |
text-align: left; |
| 29 |
|
| 30 |
.components-base-control__field { |
| 31 |
display: flex; |
| 32 |
align-items: center; |
| 33 |
justify-content: space-between; |
| 34 |
|
| 35 |
.components-base-control__label { |
| 36 |
margin-bottom: 0; |
| 37 |
} |
| 38 |
} |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
.parsely-panel-settings-body { |
| 43 |
display: flex; |
| 44 |
padding: to_rem(6px) 0 var(--grid-unit-20) 0; |
| 45 |
flex-direction: column; |
| 46 |
gap: to_rem(10px); |
| 47 |
align-self: stretch; |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
.wp-parsely-editor-sidebar-label { |
| 52 |
// Replicate native label styles. |
| 53 |
align-self: stretch; |
| 54 |
color: var(--sidebar-black); |
| 55 |
font-size: var(--font-size--smaller); |
| 56 |
font-style: normal; |
| 57 |
font-weight: 500; |
| 58 |
line-height: 1.4; |
| 59 |
text-transform: uppercase; |
| 60 |
} |
| 61 |
|
| 62 |
.wp-parsely-content-helper-error { |
| 63 |
margin: 0; |
| 64 |
align-self: flex-start; |
| 65 |
|
| 66 |
p { |
| 67 |
margin: 0; |
| 68 |
} |
| 69 |
|
| 70 |
.content-helper-error-message { |
| 71 |
margin: 0 !important; |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
.wp-parsely-collapsible-panel { |
| 76 |
display: flex; |
| 77 |
flex-direction: column; |
| 78 |
align-items: flex-start; |
| 79 |
gap: var(--grid-unit-20); |
| 80 |
align-self: stretch; |
| 81 |
border-radius: 2px; |
| 82 |
border-bottom: none; |
| 83 |
border-top: none; |
| 84 |
margin: 0; |
| 85 |
padding: 0; |
| 86 |
margin-bottom: to_rem(8px); |
| 87 |
|
| 88 |
.components-panel__body-title { |
| 89 |
display: flex; |
| 90 |
align-items: center; |
| 91 |
align-self: stretch; |
| 92 |
margin: 0 to_rem(-16px) to_rem(6px); |
| 93 |
padding: 0; |
| 94 |
|
| 95 |
.components-panel__icon, |
| 96 |
svg { |
| 97 |
order: -1; |
| 98 |
margin-right: var(--grid-unit-10); |
| 99 |
margin-left: 0; |
| 100 |
} |
| 101 |
|
| 102 |
&:hover { |
| 103 |
background-color: transparent; |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
&.is-opened { |
| 108 |
padding: 0; |
| 109 |
|
| 110 |
> div:first-of-type { |
| 111 |
margin-top: calc(-1 * var(--grid-unit-20)); |
| 112 |
} |
| 113 |
|
| 114 |
.components-panel__body-title { |
| 115 |
margin: 0 calc(-1 * var(--grid-unit-20)) to_rem(6px); |
| 116 |
padding-bottom: 0; |
| 117 |
} |
| 118 |
} |
| 119 |
|
| 120 |
.components-panel__body-toggle.components-button { |
| 121 |
padding: var(--grid-unit-20) var(--grid-unit-20); |
| 122 |
color: var(--Gutenberg-Gray-900, #1e1e1e); |
| 123 |
font-size: to_rem(11px); |
| 124 |
font-style: normal; |
| 125 |
font-weight: 600; |
| 126 |
line-height: to_rem(16px); /* 145.455% */ |
| 127 |
text-transform: uppercase; |
| 128 |
|
| 129 |
.components-panel__arrow { |
| 130 |
margin-right: 0; |
| 131 |
} |
| 132 |
} |
| 133 |
|
| 134 |
.components-panel__body { |
| 135 |
&.is-opened { |
| 136 |
padding: 0; |
| 137 |
} |
| 138 |
} |
| 139 |
} |
| 140 |
|