| 1 |
.sp-smart-image-preset-template { |
| 2 |
&.sp-smart-image-preset-wrapper { |
| 3 |
display: flex; |
| 4 |
flex-direction: column; |
| 5 |
align-items: center; |
| 6 |
justify-content: center; |
| 7 |
gap: 24px; |
| 8 |
border: 1px dashed #ccc; |
| 9 |
padding: 68px 0; |
| 10 |
text-align: center; |
| 11 |
min-height: 137px; |
| 12 |
} |
| 13 |
&.is-medium.sp-smart-image-preset-wrapper { |
| 14 |
padding: 68px 40px |
| 15 |
} |
| 16 |
.components-placeholder__label { |
| 17 |
display: flex; |
| 18 |
flex-direction: row; |
| 19 |
gap: 10px; |
| 20 |
align-items: center; |
| 21 |
color: #3D3B3A; |
| 22 |
text-align: center; |
| 23 |
font-family: Roboto; |
| 24 |
font-size: 22px; |
| 25 |
font-style: normal; |
| 26 |
font-weight: 500; |
| 27 |
line-height: 20px; |
| 28 |
} |
| 29 |
.components-placeholder__instructions { |
| 30 |
color: #706D6C; |
| 31 |
text-align: center; |
| 32 |
font-family: Roboto; |
| 33 |
font-size: 14px; |
| 34 |
font-style: normal; |
| 35 |
font-weight: 400; |
| 36 |
line-height: 20px; |
| 37 |
margin: 0; |
| 38 |
} |
| 39 |
.components-placeholder__fieldset { |
| 40 |
justify-content: center; |
| 41 |
} |
| 42 |
.smart-image-upload-button { |
| 43 |
display: flex; |
| 44 |
flex-direction: row; |
| 45 |
flex-wrap: wrap; |
| 46 |
gap: 16px; |
| 47 |
|
| 48 |
.sp-smart-image-preset-btn { |
| 49 |
display: flex; |
| 50 |
padding: 8px 12px; |
| 51 |
justify-content: center; |
| 52 |
align-items: center; |
| 53 |
gap: 10px; |
| 54 |
height: 40px; |
| 55 |
background-color: transparent; |
| 56 |
border: 1.5px solid var(--sp-smart-primary-2-400); |
| 57 |
border-radius: 2px; |
| 58 |
cursor: pointer; |
| 59 |
transition: all 0.3s ease-in-out; |
| 60 |
|
| 61 |
&:hover .smart-image-upload--text { |
| 62 |
color: #FFFFFF; |
| 63 |
} |
| 64 |
.smart-image-upload-icon path { |
| 65 |
stroke: var(--sp-smart-primary-2-400); |
| 66 |
} |
| 67 |
&:hover .smart-image-upload-icon path { |
| 68 |
stroke: #FFFFFF; |
| 69 |
} |
| 70 |
} |
| 71 |
.sp-smart-image-preset-btn:hover { |
| 72 |
background-color: var(--sp-smart-primary-2-400); |
| 73 |
} |
| 74 |
.smart-image-upload--text { |
| 75 |
color: var(--sp-smart-primary-2-400); |
| 76 |
text-align: center; |
| 77 |
font-family: Roboto; |
| 78 |
font-size: 16px; |
| 79 |
font-style: normal; |
| 80 |
font-weight: 500; |
| 81 |
line-height: 20px; /* 125% */ |
| 82 |
} |
| 83 |
.sp-btn-fill { |
| 84 |
background-color: var(--sp-smart-primary-2-400); |
| 85 |
.smart-image-upload--text { |
| 86 |
color: #fff; |
| 87 |
} |
| 88 |
.smart-image-upload-icon path { |
| 89 |
stroke: #fff; |
| 90 |
fill: var(--sp-smart-primary-2-400); |
| 91 |
} |
| 92 |
} |
| 93 |
.components-form-file-upload { |
| 94 |
button { |
| 95 |
width: inherit; |
| 96 |
height: inherit; |
| 97 |
gap: 10px; |
| 98 |
padding: 0; |
| 99 |
} |
| 100 |
} |
| 101 |
} |
| 102 |
&.is-medium { |
| 103 |
.components-placeholder__label { |
| 104 |
font-size: 18px; |
| 105 |
line-height: 1.2; |
| 106 |
} |
| 107 |
.smart-image-upload-button { |
| 108 |
display: flex; |
| 109 |
flex-direction: column; |
| 110 |
.components-form-file-upload button { |
| 111 |
width: 100%; |
| 112 |
.sp-smart-image-preset-btn { |
| 113 |
width: inherit; |
| 114 |
} |
| 115 |
} |
| 116 |
} |
| 117 |
} |
| 118 |
} |
| 119 |
.sp-url-input { |
| 120 |
width: 150px; |
| 121 |
} |
| 122 |
.sp-smart-post-show.url-inserter-form { |
| 123 |
width: 300px; |
| 124 |
height: 50px; |
| 125 |
position: absolute; |
| 126 |
top: 45px; |
| 127 |
left: unset; |
| 128 |
right: 0; |
| 129 |
box-shadow: 0 3px 6px 0 #dddddd93; |
| 130 |
display: flex; |
| 131 |
align-items: center; |
| 132 |
justify-content: space-around; |
| 133 |
background-color: #FFF; |
| 134 |
input.url-inserter-input { |
| 135 |
height: 35px; |
| 136 |
width: 80%; |
| 137 |
border-color: #ddd; |
| 138 |
} |
| 139 |
button { |
| 140 |
width: 24px; |
| 141 |
height: 24px; |
| 142 |
|
| 143 |
svg { |
| 144 |
max-width: 24px; |
| 145 |
width: 24px; |
| 146 |
height: 24px; |
| 147 |
path { |
| 148 |
fill: var(--sp-smart-primary-2-400); |
| 149 |
} |
| 150 |
} |
| 151 |
&.sp-disabled { |
| 152 |
opacity: 0.7; |
| 153 |
cursor: auto; |
| 154 |
} |
| 155 |
} |
| 156 |
} |
| 157 |
.sp-inserter-btn { |
| 158 |
position: relative; |
| 159 |
cursor: pointer; |
| 160 |
} |
| 161 |
|
| 162 |
.sp-smart-image-upload-preloader { |
| 163 |
min-height: 300px; |
| 164 |
display: flex; |
| 165 |
align-items: center; |
| 166 |
justify-content: center; |
| 167 |
|
| 168 |
img { |
| 169 |
width: 50px; |
| 170 |
margin: auto; |
| 171 |
} |
| 172 |
} |
| 173 |
|
| 174 |
.sp-hide-on-desktop { |
| 175 |
display: block !important; |
| 176 |
position: relative; |
| 177 |
background: repeating-linear-gradient(125deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 2px, transparent 9px); |
| 178 |
&::before { |
| 179 |
content: ""; |
| 180 |
display: block; |
| 181 |
position: absolute; |
| 182 |
top: 0; |
| 183 |
left: 0; |
| 184 |
width: 100%; |
| 185 |
height: 100%; |
| 186 |
background-color: rgba(255, 255, 255, 0.6); |
| 187 |
z-index: 9997; |
| 188 |
} |
| 189 |
} |
| 190 |
@media only screen and (max-width: 1023px) { |
| 191 |
.sp-hide-on-tablet { |
| 192 |
display: block !important; |
| 193 |
position: relative; |
| 194 |
background: repeating-linear-gradient(125deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 2px, transparent 9px); |
| 195 |
&::before { |
| 196 |
content: ""; |
| 197 |
display: block; |
| 198 |
position: absolute; |
| 199 |
top: 0; |
| 200 |
left: 0; |
| 201 |
width: 100%; |
| 202 |
height: 100%; |
| 203 |
background-color: rgba(255, 255, 255, 0.6); |
| 204 |
z-index: 9997; |
| 205 |
} |
| 206 |
} |
| 207 |
.sp-smart-post-block-wrapper:not(.sp-hide-on-tablet) { |
| 208 |
display: block; |
| 209 |
} |
| 210 |
} |
| 211 |
@media only screen and (max-width: 599px) { |
| 212 |
.sp-smart-post-block-wrapper.sp-hide-on-mobile { |
| 213 |
display: block !important; |
| 214 |
position: relative; |
| 215 |
background: repeating-linear-gradient(125deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 1px, transparent 2px, transparent 9px); |
| 216 |
&::before { |
| 217 |
content: ""; |
| 218 |
display: block; |
| 219 |
position: absolute; |
| 220 |
top: 0; |
| 221 |
left: 0; |
| 222 |
width: 100%; |
| 223 |
height: 100%; |
| 224 |
background-color: rgba(255, 255, 255, 0.6); |
| 225 |
z-index: 9997; |
| 226 |
} |
| 227 |
} |
| 228 |
.sp-smart-post-block-wrapper:not(.sp-hide-on-mobile) { |
| 229 |
display: block; |
| 230 |
} |
| 231 |
} |