Git Product home page Git Product logo

zss's Issues

Replace flex grid with css grid

Provide a simple implementation of the CSS Grid module to replace the flex grid.

  • Move the current flex grid to a separate package, for backwards compatibility.
  • Mark the flex grid as obsolete using @warn
  • Refactor current grid classes to use CSS Grid.
  • Consider extra util classes for columns and rows.

Column classes

CSS Grid is so powerful that ZSS would need to contain an enormous amount of CSS to harness all that power. So I'm thinking of providing just a few basic classes that can be used to setup a quick grid similar to our current grid. (They can even be placed in a separate SCSS file so they're entirely optional.) For custom grids, it's probably best to write a few classes in the project itself.

Possible options:

  • Provide a few classes for an automatic responsive grid. For example, .o-grid--auto--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } is enough for a responsive grid that has 4 columns on desktop. You don't need to use any extra row or column elements:
<div class="o-grid  o-grid--auto--3">
   <!-- Add cards here -->
</div>
  • Add utility classes to position rows and columns on specific tracks. Something like this:
.o-grid__col--1/5 { grid-column: 1 / 5; }
.o-grid__col--2/end { grid-column: 2 / -1; }
.o-grid__row--2/4 { grid-row: 2 / 4; }

Possibility to use column-offsets for the grid

Sometimes there is the need to have a little whitespace on the left, following the flow of the columns. SO it would be handy if something like o-grid__col--offset--1 or o-grid__col--1--offset can be used.

utility background-color uses wrong BEM-notification

The utility color uses: 'u-white'. with one dash, while the utility background-color uses a modifier-style dash: 'u-bg--white'.
Solving this will introduce backwards compatibility issues's, but maybe for a new release version?

Warnings from ZSS

Are the limits within these checks outdated? Perhaps these days we need more values (we have more devices and screen sizes than before).

Also, at first, I did not have a clue where these warnings during an NPM build were coming from. I Googled them and, of course, did not find anything. Maybe Zicht ZSS should be included in the description somewhere (for instance WARNING [Zicht ZSS]: ...)

And... The link to the details does not exist anymore because we've removed all the release/z.y.x branches.

WARNING: `$zss--spacing-scale` contains more than 8 values.        This is a design smell that should probably be fixed.        More details: https://github.com/zicht/zss/blob/release/2.1.x/errors/too-many-values.md
         on line 47 of node_modules/zss/src/dev/_strict.scss
         from line 143 of stdin

WARNING: $zss--border-radius-scale` contains more than 5 values.        This is a design smell that should probably be fixed.        More details: https://github.com/zicht/zss/blob/release/2.1.x/errors/too-many-values.md
         on line 138 of node_modules/zss/src/dev/_strict.scss
         from line 143 of stdin

Transition classes

Would like to have several transition classes that work in conjunction with the u-hidden class.

Current behavior:
Toggling the u-hidden class on an element will hide or show it, without any animation.

Requested behavior:
Toggling the u-hidden class on an element that also has a c-transition--slide will hide or show it, with a slide animation.

Perhaps it is possible to combine multiple transitions, i.e. c-transition--slide and c-transition--fade etc...

Some things should be configurable per project, for example how fast the animations should be.

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.