Refactor theme comments and descriptions to use a consistent hyphen format instead of an em dash. Update color palette values in theme settings and JSON configuration for improved aesthetics. Enhance contact section icons with Font Awesome for better visual representation. Add GitHub Copilot and contributor instructions for improved collaboration and development practices.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* OTS Theme — Custom Block Editor Scripts (InnerBlocks Architecture)
|
||||
* OTS Theme - Custom Block Editor Scripts (InnerBlocks Architecture)
|
||||
*
|
||||
* 13 blocks: 5 standalone + 4 parent/child pairs.
|
||||
* Parent blocks use InnerBlocks for child items.
|
||||
@@ -231,8 +231,8 @@ function iconControls(a, s) {
|
||||
|
||||
/**
|
||||
* Return the element to render in the card preview for the current icon state.
|
||||
* cssClass — the wrapper class, e.g. 'feature-icon' or 'value-icon'
|
||||
* extraStyle — optional inline style object for the wrapper
|
||||
* cssClass - the wrapper class, e.g. 'feature-icon' or 'value-icon'
|
||||
* extraStyle - optional inline style object for the wrapper
|
||||
*/
|
||||
function iconPreview(a, cssClass, extraStyle) {
|
||||
var useFa = a.iconType === 'fontawesome';
|
||||
@@ -272,7 +272,7 @@ function cardImageControls(a, s) {
|
||||
a.imgUrl ? el(Frag, null,
|
||||
el(RC, { label: 'Width (px)', value: imgW, min: 20, max: 600, step: 4,
|
||||
onChange: function(v){ s({ imgWidth: v }); } }),
|
||||
el(RC, { label: 'Height (px) — 0 = auto', value: imgH, min: 0, max: 600, step: 4,
|
||||
el(RC, { label: 'Height (px) - 0 = auto', value: imgH, min: 0, max: 600, step: 4,
|
||||
onChange: function(v){ s({ imgHeight: v }); } }),
|
||||
el(TG, { label: 'Scale to fill (cover)', checked: imgFit === 'cover',
|
||||
onChange: function(v){ s({ imgFit: v ? 'cover' : 'contain' }); } }),
|
||||
@@ -1738,7 +1738,7 @@ reg('oribi/site-header', {
|
||||
supports: { html: false, multiple: false, reusable: false },
|
||||
edit: function () {
|
||||
return el('div', {
|
||||
style: { background: '#0D1321', color: '#fff', padding: '20px 24px', borderRadius: '8px', display: 'flex', alignItems: 'center', justifyContent: 'space-between' }
|
||||
style: { background: '#111111', color: '#fff', padding: '20px 24px', borderRadius: '8px', display: 'flex', alignItems: 'center', justifyContent: 'space-between' }
|
||||
},
|
||||
el('div', { style: { display: 'flex', alignItems: 'center', gap: '8px' } },
|
||||
el('strong', { style: { fontSize: '1.2rem' } }, 'Oribi'),
|
||||
@@ -1762,9 +1762,9 @@ reg('oribi/site-footer', {
|
||||
supports: { html: false, multiple: false, reusable: false },
|
||||
edit: function () {
|
||||
return el('div', {
|
||||
style: { background: '#0D1321', color: '#fff', padding: '24px', borderRadius: '8px', textAlign: 'center' }
|
||||
style: { background: '#111111', color: '#fff', padding: '24px', borderRadius: '8px', textAlign: 'center' }
|
||||
},
|
||||
el('strong', { style: { fontSize: '1.1rem' } }, 'OTS Theme — Site Footer'),
|
||||
el('strong', { style: { fontSize: '1.1rem' } }, 'OTS Theme - Site Footer'),
|
||||
el('p', { style: { opacity: 0.5, margin: '8px 0 0', fontSize: '.85rem' } }, 'Brand · Service Links · Company Links · Connect · Copyright')
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user