Giter Club home page Giter Club logo

Comments (3)

EnMod avatar EnMod commented on June 15, 2024 2

A handy CSS feature I've found useful situations like these where I can't rely on consistent class names or styles is the CSS attribute selector.

class can be used with attribute selectors just like any other attribute, so you can target just the first "word" or two in the class name that gets you what you want, dropping the random hash at the end. This can be done with the substring modifier, noted by * in the selector.

For example, in your CSS:

.Layout_Container__2Hv3J

would instead be:

[class*="Layout_Container"]

You can select elements with specific href values in a similar way. By selecting without * you can select elements with exactly the value in the selector, if you wanted to target just /applications and not, say, /applications-old (if that existed):

a[href="/applications"]

MDN has a great guide to CSS attribute selectors here:
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

That said, it would be ideal to have major, consistent CSS classes available for styling without needing to work around the lack of them haha.

from flame.

badbox29 avatar badbox29 commented on June 15, 2024

Hey guys, sorry for the noob question but I legit do not know and have been looking for myself for a while now... Where can we find what the new names are for 2.3.1? I'd like to update my css so it at least works in the meantime. Thx in advance!

from flame.

Everyday-s avatar Everyday-s commented on June 15, 2024

Hey guys, sorry for the noob question but I legit do not know and have been looking for myself for a while now... Where can we find what the new names are for 2.3.1? I'd like to update my css so it at least works in the meantime. Thx in advance!

Using Chrome, right click on the page -> Inspect. Look around and you should find the names.

from flame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.