Skip to content

Commit 0e3d0ac

Browse files
committed
Added styles for the Search box element.
1 parent 730b072 commit 0e3d0ac

File tree

7 files changed

+9
-1
lines changed

7 files changed

+9
-1
lines changed

assets/search-icon.png

896 Bytes
Loading

assets/search-icon2.png

886 Bytes
Loading

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
$context->assets
2727
->addDir('assets');
2828

29-
$theme->version = '1.3';
29+
$theme->version = '1.4';
3030

3131
$theme->get = function (\BearCMS\Themes\Theme\Customizations $customizations) use ($context) {
3232
$templateFilename = $context->dir . '/components/template.php';

styles/1.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
5656
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
5757
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
58+
$prefix . 'SearchBoxInputCSS' => '{' . $input . '}',
59+
$prefix . 'SearchBoxButtonCSS' => '{' . $button . ',"width":"46px","height":"100%","background-image":"url(addon:bearcms\/focus-theme-addon:assets\/search-icon2.png)","background-position":"center center","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"cover"}',
5860
];
5961
};
6062

styles/2.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
5959
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
6060
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
61+
$prefix . 'SearchBoxInputCSS' => '{' . $input . '}',
62+
$prefix . 'SearchBoxButtonCSS' => '{' . $button . ',"margin-top":"0","width":"46px","height":"100%","background-image":"url(addon:bearcms\/focus-theme-addon:assets\/search-icon2.png)","background-image:hover":"url(addon:bearcms\/focus-theme-addon:assets\/search-icon.png)","background-position":"center center","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"cover"}',
6163
];
6264
};
6365

styles/3.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
6565
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
6666
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
67+
$prefix . 'SearchBoxInputCSS' => '{' . $input . '}',
68+
$prefix . 'SearchBoxButtonCSS' => '{' . $button . ',"margin-top":"0","width":"46px","height":"100%","background-image":"url(addon:bearcms\/focus-theme-addon:assets\/search-icon.png)","background-position":"center center","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"cover"}',
6769
];
6870
};
6971

styles/4.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
5757
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
5858
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
59+
$prefix . 'SearchBoxInputCSS' => '{' . $input . '}',
60+
$prefix . 'SearchBoxButtonCSS' => '{' . $button . ',"margin-top":"0","width":"46px","height":"100%","background-image":"url(addon:bearcms\/focus-theme-addon:assets\/search-icon.png)","background-position":"center center","background-repeat":"no-repeat","background-attachment":"scroll","background-size":"cover"}',
5961
];
6062
};
6163

0 commit comments

Comments
 (0)