Giter VIP home page Giter VIP logo

css-reference's People

Contributors

itsjw avatar jgthms avatar vkammerer 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  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

css-reference's Issues

Add GH repo link on website

Add GH repo link on website, so that more people can contribute and keep the project alive

PS: I'll submit a PR later if possible, but don't count on it

flex-flow wrong description

The flex-flow description is wrong:
"Shorthand property for flex-direction and flex-flow."

should be:
"Shorthand property for flex-direction and flex-wrap."

Fix formatting for z-index definition

It reads:

Defines the order of the elements on the z-axis*8. It only works on positioned elements (anything apart from static).

It should probably read:

Defines the order of the elements on the z-axis. It only works on positioned elements (anything apart from static).

Add a contributing guide

As newbie, I'd like to help but I'm little bit lost I don't know where I can add/edit properties.

Add code preview

I suggest to add a "show code" button next to the preview image. It would make it much easier to understand the details of what is written in words and shown in pictures if you can see the code next to it.

Example:
This image and text talks about some container. But what is the container? Its not visible in the image. Is it a wrapper around "first line" and "second line"? This questions could be easily solved by looking at the code that generated the image.

bildschirmfoto 2016-11-26 um 11 31 39

z-index: -1; hides target element

z-index

Assigning z-index of 0 to the container #z-index--1 seems to fix the issue, but I don't know if this is the appropriate solution.

Why is this happening? I would have expected the default z-index of the container to be 0.

Translate content

Hi! Can I translate this content to pt-br?
I really liked this content and wanted to show it to people who do not know how to communicate in English

Browser support / can i use info

First, great work. Nice reference page.

But I'm missing the browser support info. Often this is pretty important ;)
So maybe a link to the caniuse.com entry or even automatically pulled in info would be great!

CanIUse Integration?

Some features have varying amounts of support, so I wonder if there's a nice way to reveal whether and where a feature is supported. I initially imagined something sitting adjacent to "link / share / mdn" in some way. Thoughts?

Does Can I Use provide some lightweight API for pulling compatibility information in? or some microformat like:

( F: 35+ | C: 50+ | S: 10+ | I: Edge )

Feature request - filter by domain

First a massive thank you - this is awesome and will I'm sure be a great resource for people learning CSS.

My feature request is to have the ability to filter by domain eg:

Typography:

  • font-size
  • line-break
  • etc

Flexbox:

  • display
  • flex-basis
  • align-items

As someone who's been coding for a while but learning Flexbox being able to see just the Flexbox rules with examples would make it a lot easier. Also, with the typography example, not all the rules are named logically.

align-self: flex-start;

The red line with the "self" tag should be aligned with the targeted flex item at the flex-start. Great site btw!

Few grammatical errors

In #align-items section, align-items: flex-end; property, redundant underscore:

By default, the cross axis is vertical. This means the flexbox items will be aligned vertically at the _bottom.

In #position section, all properties text description refer to yellow block, while block itself is reddish:

It also makes the element positioned: it will act as an anchor point for the absolutely positioned yellow block.

Overall, very useful project for CSS study, thank you.

Add units

It would be awesome if you add CSS units. BTW, thanks for this website. You are the best!

When showing a collection, filter the property list in the sidebar

When viewing a collection, I would like a quick overview of all the properties in that collection, so I can more easily memorize what properties can be used for what. For example, when viewing the flexbox collection, I would like to see this list of properties:

  • align-content
  • align-items
  • align-self
  • flex-basis
  • flex-direction
  • flex-flow
  • flex-grow
  • flex-shrink
  • flex-wrap
  • justify-content
  • order

The natural place for such an overview would be the list of the properties in the sidebar, below “Search for a property”. That search would also be restricted to properties in that list. Only on the index page would that list show all properties.

If you think browsing and searching through all properties on any page is a big use-case, you could have radio buttons like these that appear only on collection pages:

Properties: ◉ in collection ◎ all

🔍 Search for a property

  • align-content

align-content stretch's caculation problem

screenshot from 2016-11-26 13-04-17

http://cssreference.io/#align-content

Hi ~ Can align-content: stretch;'s example add some description about why cause the second line's item are suspending there?

Reference to the spec: https://drafts.csswg.org/css-flexbox-1/#valdef-align-content-stretch

  1. the remain space is: 300px(container) - 100px(line 1 highest item) - 50px(line 2 highest item) = 150px
  2. 150px split it up: 150px / 2 = 75px
  3. line one's content height: 100px(line 1 highest item) + 75px = 175px
  4. line two's content height: 50px(line 2 highest item) + 75px = 125px

The steps may be above steps.
And the first line red box height is 175px and second line green box is 125px
Like below one:
screenshot from 2016-11-28 09-42-10

align-self mistaken description?

Hello,
I think there is a typo on align-self descriptions
http://cssreference.io/property/align-self/

#align-self: flex-start;

If the container has align-items: center and the target has align-items: flex-start, only the target will be at the start of the cross axis.

The second rule should be align-self: flex-start, shouldn't it?
Same remark for other descriptions of align-self
Thank for your work.

Request: Add links to relevant W3C specs

As awesome as this site is the lack of W3C links prevents me from using it as my primary reference for CSS properties. Until then cssvalues.com will remain my go to reference site.

Add service worker

Why?

  1. Adding static files to cache makes the repeated visits faster

  2. Bringing offline support.

box-sizing: border-box; wrong description.

The box has the defined width. The content accomodates for those dimensions, and ends up being 200px - 30px - 24px = 146px.

should be

The box has the defined width. The content accommodates for those dimensions, and ends up being 200px - 60px - 24px = 116px.

about border-radius

http://cssreference.io/property/border-radius/

The description of two value may be a mistake.
From [MDN[(https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius) about this two value,
the first is top-left/bottom-right and the second is top-right/bottom-left;

And could it be possible if add more border-radius example like 4 value(clockwise); slash value.etc

[Request] Add grid reference

All major browsers will soon support CSS grids. So it might be a good idea to add CSS grid reference.

PS: 👍 Thanks for this reference. Flexbox visual reference was both comprehensive and concise.

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.