Skip to content

Commit 730b072

Browse files
committed
Added styles for the Separator element.
1 parent 97bc9f9 commit 730b072

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

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.2';
29+
$theme->version = '1.3';
3030

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

styles/1.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
$date = '"color":"#aaa","font-family":"Arial","font-size":"12px","line-height":"180%"';
1818
$image = '"border-top-left-radius":"2px","border-top-right-radius":"2px","border-bottom-left-radius":"2px","border-bottom-right-radius":"2px"';
1919
$userImage = '"width":"50px","height":"50px","margin-right":"8px",' . $image;
20+
$separator = '"background-color":"rgba(255,255,255,0.2)","height":"2px","margin-top":"30px","margin-bottom":"30px"';
2021

21-
$getElementsStyles = function($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image) {
22+
$getElementsStyles = function ($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image, $separator) {
2223
return [
2324
$prefix . 'HeadingLargeCSS' => '{' . $h1 . '}',
2425
$prefix . 'HeadingMediumCSS' => '{' . $h2 . '}',
@@ -51,6 +52,9 @@
5152
$prefix . 'ForumPostsShowMoreButtonCSS' => '{' . $link . '}',
5253
$prefix . 'ForumPostsNewPostButtonCSS' => '{' . $link . '}',
5354
$prefix . 'ShareButtonCSS' => '{' . $button . '}',
55+
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
56+
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
57+
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
5458
];
5559
};
5660

styles/2.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
$date = '"color":"#000000","font-family":"Arial","font-size":"12px","line-height":"180%"';
1919
$image = '"border-top-left-radius":"2px","border-top-right-radius":"2px","border-bottom-left-radius":"2px","border-bottom-right-radius":"2px"';
2020
$userImage = '"width":"50px","height":"50px","margin-right":"8px",' . $image;
21+
$separator = '"background-color":"#333","height":"2px","margin-top":"30px","margin-bottom":"30px","margin-left":"auto","margin-right":"auto"';
2122

22-
$getElementsStyles = function($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image) {
23+
$getElementsStyles = function ($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image, $separator) {
2324
$center = $prefix === 'homePageContentElements';
2425
return [
2526
$prefix . 'HeadingLargeCSS' => '{' . $h1 . ($center ? ',"text-align":"center"' : '') . '}',
@@ -54,6 +55,9 @@
5455
$prefix . 'ForumPostsShowMoreButtonCSS' => '{' . $link . '}',
5556
$prefix . 'ForumPostsNewPostButtonCSS' => '{' . $link . '}',
5657
$prefix . 'ShareButtonCSS' => '{' . $button . '}',
58+
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
59+
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
60+
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
5761
];
5862
};
5963

styles/3.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
$date = '"color":"#ffffff","font-family":"Arial","font-size":"12px","line-height":"180%"';
1818
$image = '"border-top-left-radius":"2px","border-top-right-radius":"2px","border-bottom-left-radius":"2px","border-bottom-right-radius":"2px"';
1919
$userImage = '"width":"50px","height":"50px","margin-right":"8px",' . $image;
20+
$separator = '"background-color":"#333333","height":"1px","margin-top":"30px","margin-bottom":"30px"';
2021

21-
$getElementsStyles = function($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image) {
22+
$getElementsStyles = function ($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image, $separator) {
2223
if ($prefix === 'homePageContentElements') {
2324
$h1 .= ',"color":"#000000"';
2425
$h2 .= ',"color":"#000000"';
@@ -60,6 +61,9 @@
6061
$prefix . 'ForumPostsShowMoreButtonCSS' => '{' . $link . '}',
6162
$prefix . 'ForumPostsNewPostButtonCSS' => '{' . $link . '}',
6263
$prefix . 'ShareButtonCSS' => '{' . $button . '}',
64+
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
65+
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
66+
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
6367
];
6468
};
6569

styles/4.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
$date = '"color":"#aaa","font-family":"Arial","font-size":"12px","line-height":"180%"';
1818
$image = '"border-top-left-radius":"2px","border-top-right-radius":"2px","border-bottom-left-radius":"2px","border-bottom-right-radius":"2px"';
1919
$userImage = '"width":"50px","height":"50px","margin-right":"8px",' . $image;
20+
$separator = '"background-color":"rgba(255,255,255,0.2)","height":"2px","margin-top":"30px","margin-bottom":"30px"';
2021

21-
$getElementsStyles = function($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image) {
22+
$getElementsStyles = function ($prefix) use ($text, $h1, $h2, $h3, $input, $link, $button, $date, $userImage, $image, $separator) {
2223
return [
2324
$prefix . 'HeadingLargeCSS' => '{' . $h1 . '}',
2425
$prefix . 'HeadingMediumCSS' => '{' . $h2 . '}',
@@ -52,6 +53,9 @@
5253
$prefix . 'ForumPostsShowMoreButtonCSS' => '{' . $link . '}',
5354
$prefix . 'ForumPostsNewPostButtonCSS' => '{' . $link . '}',
5455
$prefix . 'ShareButtonCSS' => '{' . $button . '}',
56+
$prefix . 'SeparatorLargeCSS' => '{' . $separator . ',"width":"80%"}',
57+
$prefix . 'SeparatorMediumCSS' => '{' . $separator . ',"width":"60%"}',
58+
$prefix . 'SeparatorSmallCSS' => '{' . $separator . ',"width":"40%"}',
5559
];
5660
};
5761

0 commit comments

Comments
 (0)