Comments (9)
Thoughts on this, @tpitre?
from alps.
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.
@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.
Grids have columns and sometimes rows. Layout containers keep content centered within a maximum width and don't ever split content up.
from alps.
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.
I'm fine with leaving it, but just want to understand the difference between the two. This probably should get annotated.
from alps.
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.
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.
@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)
- Make theme elements translatable HOT 1
- UPDATE ESLINT plugin
- Issue with Alps Widget Text with Link
- Migration Support
- ALPS Library Support HOT 16
- wrong slack link on alps.adventist.io/v3
- Shadow menu on mobile HOT 2
- Footer localization
- Footer localisation | Site Branding Statement HOT 11
- CTA block contains HTML <title> tag HOT 10
- Search button is not responsive HOT 3
- Columns | No left margin on mobile devices HOT 6
- Secondary navigation menu overlaps Search and Menu HOT 1
- Secondary navigation menu colliding HOT 2
- To to go to the old page layout HOT 1
- ALPS for Drupal HOT 2
- New branch for pull request HOT 1
- Copy of Update global css styles file HOT 1
- Updates to changes made not showing HOT 1
- Conflict with Google Maps API HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alps.