{"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:\/\/malwaretips.com\/blogs\/css-styling\/","title":{"rendered":"CSS Styling"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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><div id=\"mwtad716060604\" class=\"gas_fallback-ad_309684--placement_360520\" style=\"margin-top: 30px;margin-bottom: 30px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7750719144850257\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7750719144850257\" \ndata-ad-slot=\"3957935887\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">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=\"mwtad1173528679\" class=\"gas_fallback-ad_309746-ad_309691-placement_360521\" style=\"margin-top: 30px;margin-bottom: 30px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7750719144850257\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7750719144850257\" \ndata-ad-slot=\"4456629336\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><h2 class=\"wp-block-heading\">Post navigation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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><div id=\"mwtad22784641\" class=\"gas_fallback-ad_381396-ad_309691-placement_360566\" style=\"margin-top: 30px;margin-bottom: 30px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7750719144850257\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7750719144850257\" \ndata-ad-slot=\"1471373341\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\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<div id=\"mwtad3641469876\" class=\"gas_fallback-ad_309747-ad_309691-placement_360587\" style=\"margin-top: 30px;margin-bottom: 30px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7750719144850257\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7750719144850257\" \ndata-ad-slot=\"9589536513\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><h2 class=\"wp-block-heading\">Single Post Featured Images<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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<div id=\"mwtad2259619478\" class=\"gas_fallback-ad_309748-ad_309691-placement_360588\" style=\"margin-top: 30px;margin-bottom: 30px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7750719144850257\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7750719144850257\" \ndata-ad-slot=\"3906789406\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><h2 class=\"wp-block-heading\">Post Archives align meta to bottom of post<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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<div id=\"mwtad2308241776\" class=\"gas_fallback-ad_318930-ad_309691-placement_360589\" style=\"margin-top: 30px;margin-bottom: 30px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7750719144850257\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block;\" data-ad-client=\"ca-pub-7750719144850257\" \ndata-ad-slot=\"3818335085\" \ndata-ad-format=\"auto\" data-full-width-responsive=\"true\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><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":1200,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scam-reports","masonry-post","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/comments?post=928"}],"version-history":[{"count":0,"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/posts\/928\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/media\/1200"}],"wp:attachment":[{"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/media?parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/categories?post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/malwaretips.com\/blogs\/wp-json\/wp\/v2\/tags?post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}