How to make category selector sideways via css

AI-generated summary

Category Selector Sideways via CSS

Bank_Live asked for help in making a category selector sideways via CSS, similar to the one on http://tidbits.io. Stephen provided a starting point for the CSS styles, which included rotating, repositioning, and offsetting the category selector.

Bank_Live asked how to implement these styles in the customize > themes > Edit CSS section. HAWK provided the location to add the CSS code.

However, Bank_Live encountered issues with the code not working. Stephen asked for clarification on the implementation and suggested checking the siteโ€™s live status.

After Bank_Live shared a screenshot of their implementation, Stephen pointed out a missing bracket {}. Bank_Live then encountered a CSS error, which Stephen helped resolve by formatting the code correctly.

Finally, Bank_Live was able to implement the sideways category selector successfully.

Hello @rewphus I like a categories at you make in website.

http://tidbits.io

I want to make same categories from example pictures. I can it how to make. Thank you very much. :grinning:

Edit: Yeah, itโ€™s CSS. Itโ€™s technically public but Iโ€™ll leave it up to Ryan if he wants is shared or not.

Looks like the selector:

@media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category-breadcrumb li:first-of-type>a.badge-category:first-of-type

sets:
transform: rotate(-90deg); transform-origin: right bottom 0; background-color: transparent !important; font-weight: bold; font-size: 5em; position: fixed; right: 87vw; text-align: right; min-width: 80vh;

Which rotates, repositions and offsets it to the left. Almost certainly not the entire style, but a start.

How to set in customize>themes>Edit:CSS :sweat_smile:

/admin/customize/themes

Then edit the CSS to add the code above.

I copy to paste it not work.

Show us what you pasted and where you pasted it.

Is the style you created currently applied to your site?

Are you doing this on a live community, or a test instance somewhere?

Iโ€™m not sure if itโ€™s set correctly. :sweat_smile:

Yep, you need {}

So:

@media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category-breadcrumb li:first-of-type>a.badge-category:first-of-type {
transform: rotate(-90deg); transform-origin: right bottom 0; background-color: transparent !important; font-weight: bold; font-size: 5em; position: fixed; right: 87vw; text-align: right; min-width: 80vh;
}

@jomaxro image above isnโ€™t lightboxing either.

Yeah, @zogstrip is aware and has cloned the site so he can test locally.

it show

Error: Invalid CSS after "...-width: 1280px)": expected "{", was "desktop-scss-stack."
        on line 1 of theme_field.scss
>> @media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category
   -------------------------^

The text in your editor isnโ€™t wrapping, so we canโ€™t see what youโ€™ve entered.

Try formatting it like this:

@media (min-width: 1280px) desktop-scss-stack.scss:95 .list-controls .category-breadcrumb li:first-of-type>a.badge-category:first-of-type {
transform: rotate(-90deg);
transform-origin: right bottom 0;
background-color: transparent !important;
font-weight: bold;
font-size: 5em;
position: fixed;
right: 87vw;
text-align: right;
min-width: 80vh;
}

Iโ€™ve not dug into it too far, even with this in place you may need to make other styling changes.

No work. :joy: but will try.

Now i can make it work follow as me want. :smiley: