{"id":928,"date":"2018-09-21T17:48:30","date_gmt":"2018-09-21T17:48:30","guid":{"rendered":"https:\/\/sites.generatepress.com\/volume\/?p=928"},"modified":"2018-09-21T17:48:30","modified_gmt":"2018-09-21T17:48:30","slug":"css-styling","status":"publish","type":"post","link":"https:\/\/santhoshrcf.com\/?p=928","title":{"rendered":"CSS Styling"},"content":{"rendered":"\n<p>In Comparison to the original Volume which required over 350 lines of CSS, Volume remastered uses less that 50. But why do we need CSS when Blocks does it all? I hear you ask. Well there are somethings that i just like to tweak and sometimes a little CSS is required.<\/p>\n\n\n\n<p>The CSS added to the Site can be found in Customizer &gt; Additional CSS. Lets take a closer look at what each of them does<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Post navigation<\/h2>\n\n\n\n<p>the default behaviour of the Post Navigation Block Element is to display a 50\/50 row showing the previous and next post. The following CSS removes the empty space when a user is on the first or last post so the block spans the full width.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Custom Post Navigation remove empty classes *\/\n.featured-navigation .gb-grid-column:empty {\n    flex: 0 1;\n}\n\n@media(min-width: 769px) {\n    .featured-navigation .gb-grid-column:not(:empty) {\n        flex: 1 0;\n    }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Single Post Featured Images<\/h2>\n\n\n\n<p>the following CSS adjusts the featured image background size for tablet, and removes it from Mobile<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Single Post Hero image responsive controls *\/\n@media(max-width: 1024px) and (min-width: 769px) {\n    .page-hero-block:before {\n        background-size: cover;\n    }\n    .featured-column,\n    .featured-column img.wp-post-image {\n        width: 100% !important;\n    }\n}\n\n@media(max-width: 768px) {\n    .page-hero-block:before {\n        background: none;\n    }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Post Archives align meta to bottom of post<\/h2>\n\n\n\n<p>A simple flex box CSS to push the last element in the post-summary ( the post meta ) to align vertically at the bottom of the post.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Post Archives - force post meta to vertically align bottom *\/\n.generate-columns-container .post&gt;.gb-container,\n.generate-columns-container .post&gt;.gb-container&gt;.gb-inside-container,\n.post-summary&gt;.gb-inside-container {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n}\n\n.post-summary {\n    flex: 1;\n}\n\n.post-summary&gt;.gb-inside-container&gt;*:last-child {\n    margin-top: auto;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Border radius on post archive images<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Add border radius to post archive images *\/\n.generate-columns-container .dynamic-featured-image {\n    border-radius: 4px;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It wouldn&#8217;t be a FlintSkin site without a little CSS&#8230; and i mean a very little CSS.<\/p>\n","protected":false},"author":1,"featured_media":20009,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[186],"tags":[],"class_list":["post-928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-styling","infinite-scroll-item","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=928"}],"version-history":[{"count":0,"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=\/wp\/v2\/media\/20009"}],"wp:attachment":[{"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/santhoshrcf.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}