Coder Social home page Coder Social logo

zalando / dress-code Goto Github PK

View Code? Open in Web Editor NEW
129.0 25.0 17.0 23.55 MB

The official style guide and framework for all Zalando Brand Solutions products

Home Page: http://zalando.github.io/dress-code

License: MIT License

JavaScript 18.07% CSS 81.93%
bem sass atomic-design css html demo web

dress-code's People

Contributors

ashwinaggarwal avatar avb1989 avatar cjhowald avatar dami-gg avatar fogfish avatar frontendherodk avatar gabrielhl avatar gregdeane avatar leoaref avatar nagogus avatar rbarilani avatar sambhav-gore avatar xonic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dress-code's Issues

Refactor pre-release 1.0.0-alpha

  • refactor folder and files (dir layout and naming) to match BEM vocabulary
  • un-nesting BEM selectors
  • "modularize" everything as much as possible (avoid implicit imports, it must be possible to import just a component without importing the whole library, must be possible to use just mixins/placeholders/variables to apply style to elements)

SVG icons.... confused

I think SVG icons are more or less unusable from a developer perspective.

We will never include something like this in our templates as shown in the doc section:

<svg class="i--interactive i--portal" width="36" height="36" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges">
      <title>
          Menu
      </title>
      <g fill="#979797" fill-rule="evenodd">
          <path d="M10.5 11H26v-1H10v1h.5zM10.5 18H26v-1H10v1h.5z" id="Shape"/>
          <path d="M10.5 25H26v-1H10v1h.5z"/>
      </g>
  </svg>

We want something like material icons by Google:
https://www.google.com/design/icons/

This issue can be related to #10

Create dividers

Create utility classes that allow to add horizontal or vertical dividers to containers.

spinner atom

Implement the spinner atom using the bsCommon version as a blue print....

Different README for the bower version

We need a different and simplified README for the bower version, basically explain that this repository is just the bower version of the holy bible and a link to the source code.

testing?

How to test this thing?
we can run a travis job that check the style #9, but then how to test the visual part?

Use ligatures for font icons

I want to be able to do like this:

<i class="dc-font-icons">add</i>

I think is related to how we export svg icons, how we build the font, how we define the dc-font-icons class.

Rename Repository

The current repo name is too generic and looks like it's a company-wide thing. I'll think about a new name and then rename it.

Dialog

We need the dialog element in the dress code.

Components List for 1.0.0-alpha

Components that must or should be implemented in 1.0.0:

  • responsive grid, responsive utility classes (ex. hide-md) (moved to 1.0.0-alpha.1)
  • divider
  • buttons (small, medium, big, block, icon button, with icon and text... etc)
  • button group
  • icons (font icon)
  • dropdown, dropup
  • input group
  • progress bar (high priority)
  • spinner/loader (high priority)
  • thumbnails (removed: not a use case)
  • avatar (removed: not a use case)
  • autocomplete (removed: not a use case)
  • dialog (high priority)
  • card
  • tooltip
  • messages/alert
  • toast (high priority)
  • sticky list headers (removed: not a use case)

New Shiny Grid

We have to came up with a shiny, super-simple grid, the one that we had is too complex and not really usable (will be removed). Maybe we can use directly the flex-box model.

Default cursor for buttons

Shouldn't all buttons (dc-btn) have a cursor: pointer; by default?

Otherwise the property will likely need to be overridden in the projects using it

Improve Input Group

A basic input group exists in the price input. Let's improve it:

  • Accept any size of addon
  • Accept left or right addon
  • Can be used with other input than text (number, password, phone, etc)

Improve tables

  • Add a way to modify internal (vertical) padding
  • Verify compatibility of dropdowns in tables
  • Verify compatibility of checkboxes and radios in tables
  • Verify compatibility of buttons (+dropdown/dropup) in tables

Sass compilation fails after installing with npm

This line in _base.scss is causing a compilation error after installing the dress code via npm:

@import "../../node_modules/normalize-css/normalize";

Steps to reproduce:

  1. npm install dress code
  2. run scss compilation (in central services, 'gulp styles')
  3. compilation fails

The root issue is that _base.scss is assuming a particular structure of packages within node_modules, and that structure is not guaranteed.

For now, I am working around this by just using the compiled css directly, but I would prefer to use standard sass importing.

Provide icon font

Provide icon font and something simple to use those icons with css classes.

Grid classes

Add responsive grid classes like:

row
col-sm-1
col-md-2

or something like that.

General clean up

Remove "dead bodies", remove unused sass files, remove unused doc sections

Compiling SASS with Bower fails

I pulled the library via Bower and added the toolkit import as directed in the README. The compile failed with errors until I made the following changes:

  • _import.scss: ...normalize -> ...normalize.css
  • _btn.scss: @extend .dc-cf -> @extend %dc-cf
  • _dropdown.scss: @extend .dc-cf -> @extend %dc-cf

Please fix these changes in the base library if they are indeed bugs or advise on how to avoid these compile issues.

Publish the first release 0.1.0-alpha

STEPS

  • merge the remaining accepted pull request into the develop branch
  • open a release branch from develop branch
  • build the dist, demo and docs
  • updates the package versions (bower.json and package.json)
  • updates the changelog with (https://github.com/ajoslin/conventional-changelog)
  • commit with -m "bump version number to 0.1.0-alpha"
  • merge the release branch into the master
  • add the git tag
  • build the bower version
  • add the git tag to the bower version
  • merge master into develop

remove "select all on click"

in the code block of the style guid page, please disable select all if you click into the code block textarea.

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.