From f3cfe4a39a5be30bb818f0bb468d510394acef22 Mon Sep 17 00:00:00 2001 From: briandunnigan Date: Thu, 11 Feb 2016 16:26:19 -0500 Subject: [PATCH] 2 new page templates for Page Builder + Styles --- content-featured_image.php | 32 +++++++++++++++++++++ page-pagebuilder-cards.php | 30 ++++++++++++++++++++ page-pagebuilder.php | 18 +++++++----- sass/_page-builder.scss | 58 ++++++++++++++++++++++++++++++++++++++ sass/_widgets.scss | 16 +++++++++++ style.css | 47 ++++++++++++++++++++++++++++++ 6 files changed, 194 insertions(+), 7 deletions(-) create mode 100644 content-featured_image.php create mode 100644 page-pagebuilder-cards.php diff --git a/content-featured_image.php b/content-featured_image.php new file mode 100644 index 0000000..392e948 --- /dev/null +++ b/content-featured_image.php @@ -0,0 +1,32 @@ + + +
> +
+ + ', esc_url( get_permalink() ) ), '' ); ?> + + + + +
+ +
+ [Read More] + '', + ) ); + ?> +
+ + + ', '' ); ?> + +
\ No newline at end of file diff --git a/page-pagebuilder-cards.php b/page-pagebuilder-cards.php new file mode 100644 index 0000000..05ff7d5 --- /dev/null +++ b/page-pagebuilder-cards.php @@ -0,0 +1,30 @@ + +
+ + + +
+
+
+
+ + +
+
+
+ +
+ + +
+ diff --git a/page-pagebuilder.php b/page-pagebuilder.php index 3736792..1f665a8 100644 --- a/page-pagebuilder.php +++ b/page-pagebuilder.php @@ -10,13 +10,17 @@ get_header(); ?>
- - +
+
+ + +
+
diff --git a/sass/_page-builder.scss b/sass/_page-builder.scss index 5a7ddc7..bd2dd00 100644 --- a/sass/_page-builder.scss +++ b/sass/_page-builder.scss @@ -20,3 +20,61 @@ } } +#page-page-builder { + #primary { + #main { + .page { + h3.widget-title { + margin-top:0px; + margin-bottom:0.75em; + font-weight:500; + + } + } + } + } +} + +#page-page-builder-cards { + #primary { + #main { + background-color:transparent; + border:none; + padding-left:0px; + padding-right:0px; + + .page { + + .entry-content { + margin-top:0; + + h3.widget-title { + margin-top:0px; + margin-bottom:0.75em; + font-weight:500; + + } + .widget { + background-color:white; + border:1px solid #eaeaea; + padding:2em; + margin-bottom:10px; + } + } + + } + .panel-grid { + margin-bottom:0px; + margin-left:-5px; + margin-right:-5px; + + .panel-grid-cell { + padding-left:5px; + padding-right:5px; + } + } + } + } +} + + diff --git a/sass/_widgets.scss b/sass/_widgets.scss index 4bc99ff..02de3fe 100644 --- a/sass/_widgets.scss +++ b/sass/_widgets.scss @@ -817,6 +817,22 @@ } +/* Post Loop Styling */ + +.widget_siteorigin-panels-postloop { + .content-template-date { + font-size:12px; + } + h2.entry-title { + line-height:1.25em; + } + .entry-content { + margin-top:0.75em; + } +} + + + diff --git a/style.css b/style.css index c3afec0..11704de 100644 --- a/style.css +++ b/style.css @@ -7462,6 +7462,17 @@ button.close { color: #474747 !important; } +/* Post Loop Styling */ +.widget_siteorigin-panels-postloop .content-template-date { + font-size: 12px; +} +.widget_siteorigin-panels-postloop h2.entry-title { + line-height: 1.25em; +} +.widget_siteorigin-panels-postloop .entry-content { + margin-top: 0.75em; +} + /* - - - - - - - - - - - - - - - - - - - == Content - - - - - - - - - - - - - - - - - - - */ @@ -10629,3 +10640,39 @@ input[type="button"]#footers.btn-block { display: none !important; content: none !important; } + +#page-page-builder #primary #main .page h3.widget-title { + margin-top: 0px; + margin-bottom: 0.75em; + font-weight: 500; +} + +#page-page-builder-cards #primary #main { + background-color: transparent; + border: none; + padding-left: 0px; + padding-right: 0px; +} +#page-page-builder-cards #primary #main .page .entry-content { + margin-top: 0; +} +#page-page-builder-cards #primary #main .page .entry-content h3.widget-title { + margin-top: 0px; + margin-bottom: 0.75em; + font-weight: 500; +} +#page-page-builder-cards #primary #main .page .entry-content .widget { + background-color: white; + border: 1px solid #eaeaea; + padding: 2em; + margin-bottom: 10px; +} +#page-page-builder-cards #primary #main .panel-grid { + margin-bottom: 0px; + margin-left: -5px; + margin-right: -5px; +} +#page-page-builder-cards #primary #main .panel-grid .panel-grid-cell { + padding-left: 5px; + padding-right: 5px; +}