rsms / raster Goto Github PK
View Code? Open in Web Editor NEWRaster — simple CSS grid system
Home Page: https://rsms.me/raster/
License: MIT License
Raster — simple CSS grid system
Home Page: https://rsms.me/raster/
License: MIT License
Hey there!
What a splendid grid system. I ported it to Sass, which fits my worflow: https://github.com/johannschopplich/raster-sass/
Almost every paramter is configurable just like in the original JS generator, for example:
$raster-element: r-grid !default;
$grid-attribute: columns !default;
$cell-attribute: span !default;
$columns: 12 !default;
$small-breakpoint: 600px;
$small-suffix: s;
$large-breakpoint: 1600px;
$large-suffix: l;
If you should create a README at some point, you are welcome to link to the project. I can imagine that some users will benefit from a Sass implementation. Thanks in advance!
There is padding between grids in "raster2.css" expressions. When I use "raster.grid.css" there is no padding between grids.
How do I adjust the paddings as I want?
Thanks.
I was wondering why in the newer versions you added a prefix on <grid>
and <c>
?! Is it for browser compatibility or else.. ? Should I switch also?
.
Hi, thanks for the library. I'm trying to use it with yarn but it doesn't like the version specified in package.json.
$ yarn add https://github.com/rsms/raster.git#v6
yarn add v1.19.1
[1/4] Resolving packages...
error Can't add "raster": invalid package version "4".
I believe the field is required to be semver formatted, so in this case it would be 6.0
.
It seems not, but how do I know it would work on all browsers ?
Maybe the docs should have a little paragraph about it.
Thanks a lot for this great CSS Grid / Framework implementation, it's a breeze to work with! I'm super happy with it.
After using it for a while, I noticed some inconsistencies across the files.
Like the raster.grid.css
doesn't include the [flow-cols="X"]
option and miss the
r-grid {
grid-column-gap: var(--columnGap);
grid-row-gap: var(--rowGap)
}
part, both which is very helpful for some grid implementation.
If you then reach for the framework raster2.css
file, you get a lot more general styling for regular tags which you actually don't need or want.
Can you provide one full-featured raster.grid.css
which is "feature-complete" in terms of the grid?
Thanks a lot! I do not expect an answer to this, just some thoughts.
mega noob incoming.
Im hacking my way around angular and raster grid then made the foolish error of trying to include the .css files in an angular component and the 'r-cell' etc html in the template. this throws up all kind of errors, and im starting to learn why.
Has anyone successfully incorporated raster grid into an angular app please?
Do the 'r-cell' 'r-grid' etc elements need to be declared in angular via Angular Elements?
Many thanks, would be good to use raster in my little angular project.
Jeremy
slonch.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.