Coder Social home page Coder Social logo

impressivewebs / css-values Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 4.0 3 KB

A PWA that allows you to search for any CSS property to get a quick reference on possible values and browser support.

Home Page: https://cssvalues.com

cascading-style-sheets css css-reference pwa

css-values's Introduction

Hi there ⚡

css-values's People

Contributors

impressivewebs 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

Watchers

 avatar  avatar

css-values's Issues

Alternate values

Display the alternate values for a property. For example for margin you display:
[margin-top] [margin-right] [margin-bottom] [margin-left]
why not also display
[margin-top] [margin-right & margin-left] [margin-bottom]
[margin-top & margin-bottom] [margin-right & margin-left]
[margin-top & margin-right & margin-bottom & margin-left] or [all margins]

same goes for padding and any other property like that.

Missing properties. Difference with javascript list.

Navigation idea

It could be great to fix position of the header and searchbox.
Active search will always been shown on scrolling.

Suggestions for some background-related properties

Russ Weakley sent the following suggestions via email:


  1. When you type a property, you get a list of all possible values. It would be GREAT to visually flag the initial value differently to all other values in the list.
  2. Background-size shows

auto
cover
contain
<length>
<percentage>
<length> auto
auto <percentage>
<length> <percentage>
<percentage> <length>

This possibly gives a false impression that these are the total number of options. In reality there are others such as:

auto (default)
cover
contain
length (auto)
length auto
percentage (auto)
percentage auto
length length
length percentage
percentage percentage
percentage length

  1. Another example is background-repeat. The values shown are:

repeat
repeat-x
repeat-y
no-repeat
space
round

Again, there are other options

repeat-x (auto)
repeat-x auto
repeat-y (auto)
repeat-y auto
repeat (repeat)
repeat repeat
space (space)
space space
round (round)
round round
no-repeat (no-repeat)
no-repeat no-repeat

  1. Another one is background-position

0% 0%

left top
center center
right bottom

There are a wide range of options here

length length
length percentage
length keyword
percentage percentage
percentage length
percentage keyword
keyword keyword

and four keywords...

keyword length keyword length
keyword percent keyword percent

CSS-Values API

Hi Louis,

thanks for that handy compendium! Did you think of providing a simple api which may take the searchterm as argument and return some json with the CSS-VAlues for that term?

thanks + greets,
Hans

position property is missing

I searched for the property: position but it was missing.

Steps to reproduce:

  1. Enter the word position
  2. Wait :P

I'm using Chrome 21 on a Mac

Not so much "issue" as "suggestion"

Helpful as current reference to include which properties are css3/experimental and which are fully supported by CSS2.1 and below.

Great resource though, love it!

Alphabetical Entries

When you type in "padding", the first entry is "padding-top" where the expected result would be "padding".

In fact, "padding" is the last result displayed.

Display Default Values

How about putting in the reset/default/inherited values for some of them?

Here on nimbupani.com there's a list of safe CSS defaults for the most standard properties. I think it would make it super slick.

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.