.c-ob__bg-caption {
background: var(--ob-C-bg0);
color: var(--ob-C-c0);
font-family: var(--ob-C-ff0);
font-size: var(--ob-C-fz0);
font-weight: var(--ob-C-fw0);
grid-area: caption;
line-height: var(--ob-C-lh0);
padding: var(--ob-C-pt0) var(--ob-C-pl0);
position: absolute;
text-transform: var(--ob-C-tt0);
top: var(--ob-distance-tb);
}
NOTE: When IE dies, it's not nessecary to toggle micro-classes, but simply updating CSS Custom Props.
/* Prefixes for modifier classes
=================================
-B Background Image/Video
-C Image Caption
-E Content Wrapper
-H Headline
-I Image
-K Secondary Link
-L Primary Link
-M Meta
-N Tagline
-O OneBlock
-S Splash
-T Text
-W Background Image/Video Wrapper
-X Section / Wrapper
*/
/* EMETT
=================================
bgc : background-color
c: color
ff: font-family
fz: font-size
etc.
*/
{
"header": "Border Radius",
"group": "-O-br",
"items": [
{
"name": "none",
"type": "text",
"value": "-O-br00",
"checked": true
},
{
"name": "2px",
"type": "text",
"value": "-O-br1"
},
{
"name": "3px",
"type": "text",
"value": "-O-br2"
}
]
}
NOTE: The OB-editor will replace any CSS-key matching a pattern. A key ending with double zeroes (00) is considered "default", and the key will be removed.
oneblock:clientsideupdate (OB changed)
oneblock:serversideupdate (Change OB)
this.app.dispatchEvent(
new CustomEvent(this.settings.eventPresetChange, {
detail: JSON.stringify(preset)
})
)