Git Product home page Git Product logo

Comments (6)

fermion avatar fermion commented on August 23, 2024

+1, I understand wanting to support older browsers but that syntax could/should be optional if you only care about supporting, say, modern webkit-based browsers. Thanks for the great lib!

from cssgrid.

csswizardry avatar csswizardry commented on August 23, 2024

I was considering adding this to inuit.css but it's not feasible.

This method assumes your grid is only one row deep. Take the following: (x denotes :last-of-type)

Works
+-------------------+
| +---+ +---+ +---+ |
| |   | |   | | x | |
| +---+ +---+ +---+ |
+-------------------+

Doesn't work
+-------------------+
| +---+ +---+ +---+ |
| |   | |   | |   | |
| +---+ +---+ +---+ |
| +---+ +---+ +---+ |
| |   | |   | | x | |
| +---+ +---+ +---+ |
+-------------------+

The test case for this on inuit.css was the features list where there are several rows of grids in one parent.

However you can drop the .last class totally if you want. inuit.css does it ;)

H

from cssgrid.

gf3 avatar gf3 commented on August 23, 2024

The 1140 CSS Grid requires that all rows be wrapped in a .row, so calling :last-of-type or :last-child within a row is still feasible.

from cssgrid.

csswizardry avatar csswizardry commented on August 23, 2024

inuit.css also relies on .row (except mine’s called .grids) but that doesn’t mean the :last-of-type will be the right-most div. If you inspect the features list example that I gave you will see what I mean.

from cssgrid.

gf3 avatar gf3 commented on August 23, 2024

@csswizardry Ahh I see what you're saying. Unless my understanding is incorrect, 1140 doesn't even support those types of layouts currently! I'll probably be switching over to inuit! Thanks!

from cssgrid.

csswizardry avatar csswizardry commented on August 23, 2024

Oh, erm, sorry to hijack this. Just thought I'd point out potential problems with the :last-of-type method as I've already tried/researched it :)

Cheers,
Harry

from cssgrid.

Related Issues (7)

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.