Comments (6)
So the grid span function returns a column-span using it's given attributes. We could let grid-span accept multiple sets of attributes along with breakpoints, and then walk through them creating all of the media queries. Similar to grid-objects. It would certainly make sense to have a similar syntax for the function and object.
Am I understanding this issue correctly?
from singularity.
There are a bunch of functions that need to be updated to to work with $grids
, so I'm going to do a bit of refactoring today to get that to work.
from singularity.
FYI, doing a lot of restructuring in my branch: https://github.com/scottkellum/Singularity/tree/grid-output-api
mostly breaking things down into separate files.
from singularity.
Also, I really love the logic you set up for this, possibly break this into a separate function that returns nth($grids, 1)?
Maybe structured like this? that way it can be easily injected into other functions/mixins?
@function find-grid() {
@if $length > 0 {
@return nth($grids, 1);
@else {
@return $columns;
}
}
from singularity.
Yah, I was going to spend some time today breaking the logic in grid-span into find-columns, find-gutter, and find-padding.
On Oct 28, 2012, at 11:26 AM, Scott Kellum [email protected] wrote:
Also, I really love the logic you set up for this, possibly break this into a separate function that returns nth($grids, 1)?
Maybe structured like this? that way it can be easily injected into other functions/mixins?
@function find-grid() {
@if $length > 0 {
@return nth($grids, 1);
@else {
@return $columns;
}
}
—
Reply to this email directly or view it on GitHub.
from singularity.
Closing this as I'm about to push the update to make this work!
from singularity.
Related Issues (20)
- Declare an eyeglass version HOT 1
- Update on Flexbox-based output style? HOT 9
- Incorrect compilation of media queries HOT 2
- Typos in wiki
- Clarifying how to override default grid, creating grids within grids HOT 1
- "WARNING: DEPRECATION: In order to remove global variable naming conflicts, Singularity's settings" ... in Singularity 1.6.2? HOT 1
- Compound Grids still available?
- not compiling if two class declarations?
- Element out of view because of negative left margin HOT 1
- Compass no longer supported HOT 1
- Responsive grids not compiling with breakpoints, for example add-grid(4 at 500px);
- Website Down? HOT 7
- All sub-pages of the installation page are identical HOT 1
- vertical heights is not working
- Thank you
- DEPRECATION WARNING: Passing 12, a non-string value, to unquote()
- Fixed gutters issue HOT 3
- Wiki mentions pull and push
- Loop-color
- DEPRECATION WARNING: Passing a string to call() is deprecated and will be illegal in Sass 4.0. Use call(get-function("output-isolation")) instead. HOT 2
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 singularity.