Giter Club home page Giter Club logo

Comments (9)

designerbrent avatar designerbrent commented on September 21, 2024

Thoughts on this, @tpitre?

from alps.

designerbrent avatar designerbrent commented on September 21, 2024

How does Grid and Layout differ? In looking at the code, I see the grid is specific classes. Maybe these shouldn't be combined?

from alps.

tpitre avatar tpitre commented on September 21, 2024

@designerbrent I'm open to it, but it deviates a little from our current naming convention. In more recent projects, I've moved from naming column layouts from g-- or grid-- to layout--. If we do it fro this one, we might as well do it for all.

from alps.

tpitre avatar tpitre commented on September 21, 2024

Grids have columns and sometimes rows. Layout containers keep content centered within a maximum width and don't ever split content up.

from alps.

tpitre avatar tpitre commented on September 21, 2024

Layout

.layout-container {
  max-width: $max-width;
  margin: 0 auto;
  position: relative;
  padding-left: $pad;
  padding-right: $pad;
  width: 100%;
  @include media('>large') {
    padding-left: $pad;
    padding-right: $pad;
  }
  @include media('>xxlarge') {
    padding-left: 0;
    padding-right: 0;
  }
}

Grid

.g-2up--35-65--at-medium {
  @include media('>medium') {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    > .gi {
      float: left;
      align-items: stretch;
      display: flex;
      &:first-child {
        width: 35%;
      }
      &:last-child {
        width: 65%;
      }
    }
  }
}

from alps.

designerbrent avatar designerbrent commented on September 21, 2024

I'm fine with leaving it, but just want to understand the difference between the two. This probably should get annotated.

from alps.

tpitre avatar tpitre commented on September 21, 2024

Ok, sounds good. I have the Layout classes commented here in the code, and each grid class has their own description, but an annotation on the ALPS side could help as well. We could also set up individual templates or one template illustrating each of these grid variations.

from alps.

designerbrent avatar designerbrent commented on September 21, 2024

Alright, I think I'm clearer now. So layout is our outer holder containers, like 100, 70/30 and 30/70, while grid is what goes inside of those containers, like 70/30, 30/70, 50/50, 33/34/33, etc? This makes sense.

Pulling them into an example pattern would be helpful, I think.

from alps.

tpitre avatar tpitre commented on September 21, 2024

@designerbrent That's correct. Those "shifter" classes are for mainly page layout and wouldn't necessarily work well when nested within another column. There's nothing stopping you from using the grid containers to create a page layout, but it I reserved the layout classes specifically for that.

from alps.

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.