Comments (5)
Layout schema proposal:
.cols > .col
where cols
handles margin auto, & display: flexbox
with no padding
.grid > .grid-col / .grid-row
where grid
handles display: grid
with vars for grid-template-columns
& grid-template-rows
that are passed through style="--grid-cols: 4"
and grid-col
uses vars for spanning that are passed through style="--grid-column: 3/4"
from fortune.
Created a codepen that captures how you can use flexbox or grid or grid in flexbox and the styles method to pass variables for grid. Question, is the styles method ok or strive for purely classes @winkerVSbecks @chasestarr? https://codepen.io/atav1k/pen/wjwOpp
from fortune.
Don't really have a strong opinion. If you find yourself repeating the same styles then maybe make a class.
from fortune.
Grids vs flex columns treat gutters differently, padding vs margins.
from fortune.
Confusions between .col-
& .col-count
with css selectors so using multi-col
to distinguish.
from fortune.
Related Issues (20)
- Shorthand and longhand versions HOT 1
- Add debugging class HOT 3
- Add inline documentation HOT 2
- Make the source compartmentalized HOT 2
- Class names inconsistency HOT 5
- Feature CodePen in GitHub Docs
- Mobile dimensions & positionining HOT 5
- devhint docs HOT 1
- Fix postcss-cssnext deprecation
- Fix &, @nestnesting support HOT 2
- Extended spacing systems with fallback HOT 3
- Exposing component variables HOT 2
- Replace transform.css with animate.css HOT 1
- Change npm to fortune.css HOT 1
- add --chip-link-color
- Consider HEX > HSLA transfer for colors
- max width helper classes
- @media width bug
- interactive documentation site HOT 5
- Nav purpose
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 fortune.