{"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:\/\/meansfind.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<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/meansfind.com\/?p=928\/#Post_navigation\" >Post navigation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/meansfind.com\/?p=928\/#Single_Post_Featured_Images\" >Single Post Featured Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/meansfind.com\/?p=928\/#Post_Archives_align_meta_to_bottom_of_post\" >Post Archives align meta to bottom of post<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/meansfind.com\/?p=928\/#Border_radius_on_post_archive_images\" >Border radius on post archive images<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Post_navigation\"><\/span>Post navigation<span class=\"ez-toc-section-end\"><\/span><\/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\"><span class=\"ez-toc-section\" id=\"Single_Post_Featured_Images\"><\/span>Single Post Featured Images<span class=\"ez-toc-section-end\"><\/span><\/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\"><span class=\"ez-toc-section\" id=\"Post_Archives_align_meta_to_bottom_of_post\"><\/span>Post Archives align meta to bottom of post<span class=\"ez-toc-section-end\"><\/span><\/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\"><span class=\"ez-toc-section\" id=\"Border_radius_on_post_archive_images\"><\/span>Border radius on post archive images<span class=\"ez-toc-section-end\"><\/span><\/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":1200,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-meanings"],"_links":{"self":[{"href":"https:\/\/meansfind.com\/index.php?rest_route=\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meansfind.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meansfind.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meansfind.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meansfind.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=928"}],"version-history":[{"count":0,"href":"https:\/\/meansfind.com\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/meansfind.com\/index.php?rest_route=\/wp\/v2\/media\/1200"}],"wp:attachment":[{"href":"https:\/\/meansfind.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meansfind.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meansfind.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}