Uncategorized

CSS Styling

In this article

It wouldn't be a FlintSkin site without a little CSS... and i mean a very little CSS.

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.

The CSS added to the Site can be found in Customizer > Additional CSS. Lets take a closer look at what each of them does

Post navigation

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.

/* Custom Post Navigation remove empty classes */
.featured-navigation .gb-grid-column:empty {
    flex: 0 1;
}

@media(min-width: 769px) {
    .featured-navigation .gb-grid-column:not(:empty) {
        flex: 1 0;
    }
}

Single Post Featured Images

the following CSS adjusts the featured image background size for tablet, and removes it from Mobile

/* Single Post Hero image responsive controls */
@media(max-width: 1024px) and (min-width: 769px) {
    .page-hero-block:before {
        background-size: cover;
    }
    .featured-column,
    .featured-column img.wp-post-image {
        width: 100% !important;
    }
}

@media(max-width: 768px) {
    .page-hero-block:before {
        background: none;
    }
}

Post Archives align meta to bottom of post

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.

/* Post Archives - force post meta to vertically align bottom */
.generate-columns-container .post>.gb-container,
.generate-columns-container .post>.gb-container>.gb-inside-container,
.post-summary>.gb-inside-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-summary {
    flex: 1;
}

.post-summary>.gb-inside-container>*:last-child {
    margin-top: auto;
}

Border radius on post archive images

/* Add border radius to post archive images */
.generate-columns-container .dynamic-featured-image {
    border-radius: 4px;
}

Julia Sanua

You Might Also Enjoy

Working in Japan

Read more
car on highway

Getting a Car and the Related Costs

All JETs have the right to own a car, even JETs who do not live in driving placements. Please keep in mind that car ...
Read more
Category

This Is An Article Title

__________________________________________
Lauren Suna

Author Name

Published Date

In this article

Cheese strings hard cheese cut the cheese. Pecorino squirty cheese red leicester stilton cheese strings port-salut danish fontina taleggio. Cow danish fontina the big cheese red leicester bocconcini cauliflower cheese dolcelatte stilton.

This is a title

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.

The CSS added to the Site can be found in Customizer > Additional CSS. Lets take a closer look at what each of them does

Post navigation

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.

/* Custom Post Navigation remove empty classes */
.featured-navigation .gb-grid-column:empty {
    flex: 0 1;
}

@media(min-width: 769px) {
    .featured-navigation .gb-grid-column:not(:empty) {
        flex: 1 0;
    }
}

Single Post Featured Images

the following CSS adjusts the featured image background size for tablet, and removes it from Mobile

/* Single Post Hero image responsive controls */
@media(max-width: 1024px) and (min-width: 769px) {
    .page-hero-block:before {
        background-size: cover;
    }
    .featured-column,
    .featured-column img.wp-post-image {
        width: 100% !important;
    }
}

@media(max-width: 768px) {
    .page-hero-block:before {
        background: none;
    }
}

Post Archives align meta to bottom of post

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.

/* Post Archives - force post meta to vertically align bottom */
.generate-columns-container .post>.gb-container,
.generate-columns-container .post>.gb-container>.gb-inside-container,
.post-summary>.gb-inside-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-summary {
    flex: 1;
}

.post-summary>.gb-inside-container>*:last-child {
    margin-top: auto;
}

Border radius on post archive images

/* Add border radius to post archive images */
.generate-columns-container .dynamic-featured-image {
    border-radius: 4px;
}
Lauren Suna

Author's Name

Boursin parmesan fromage frais. Pecorino boursin roquefort paneer st. agur blue cheese goat cheesecake bavarian bergkase. Mascarpone red leicester emmental dolcelatte

You Might Also Like...

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Japan disaster preparedness

Emergency Preparedness in Japan

According to the Institute for Environment and Human Security at the UN, Japan ranks in the highest category for disaster potential. This is partially due to the wide-range of disasters that occur here: earthquakes, tsunami, typhoons, flooding, landslides, heavy precipitation events, and extreme heat and cold. Due to this, Japan has very strong disaster response teams and preparedness. Using the tips below and as well as information from your local municipality and the Japanese government, you too can be prepared for potential disasters.
Read more
blue Honda minivan during daytime

Getting a Japanese Driver’s License-test

Please note that when driving in Japan, your contracting organization has the right to require or deny that you drive during work hours–including your commute.This is because your employer is legally responsible for you during commute and work hours if there is an accident. Without your contracting organization's (not CLAIR or the JET Program) explicit permission, DO NOT drive to/from/during work. If you know that you will need a driver’s license for work or are considering getting one for your personal use, here are the things you need to know.
Read more
person drives bike with basket at the back with backpack

Bike Registration and Insurance in Japan

Almost everyone in Japan has a bike and many people use their bikes daily. As soon as you get here, whether you buy a new bike or inherit one from your predecessor, there are two steps you will want to take ASAP. (1) Registering your bike with the police and (2) getting insurance for your bike.
Read more