• Stars
    star
    693
  • Rank 65,262 (Top 2 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 10 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

☕ A set of common UI Components using just the power of CSS and without JavaScript.

⚠️ Disclaimer

This is an old project, when I made it in 2014 I was tried use some possibilities about HTML/CSS and I loved the result. So I know a lot of people that used these components in production projects (I've used a lot of times).

But the things changed in the nexts years and there are better choices to made these components.

So I just maintain this project as an experimental thing and I probability won't make changes anymore.

But you is free to use it as you want 😁❤️


Pure CSS Components Logo

Netlify Status license GitHub contributors

A set of common UI Components using the power of CSS and without Javascript

View the project

Install

Install via Bower or download the zip

bower install css-components

Components

Browser Support

Chrome Firefox Edge Safari
Android Yes Yes Yes Yes
iOS Yes Yes Yes Yes
Mac OS X Yes Yes Yes Yes
Windows Yes Yes Yes. Yes

* CSS3 transitions are not supported in IE8 and below. ** Janky z-index. See tooltip on right example.

Notes:

  • Most tests performed with Browserstack.
  • Components that perform action on hover may not work on touchscreens eg. dropdown with hover. Oddly tooltip does work. Bootstrap mentions this, “Sticky :hover/:focus on mobile. Even though real hovering isn't possible on most touchscreens, most mobile browsers emulate hovering support and make :hover ‘sticky’. In other words, :hover styles start applying after tapping an element and only stop applying after the user taps some other element.”
  • Probably the main reason why the components fail in earlier versions of IE is because they use advanced CSS selectors which aren’t supported. It may be possible to patch this with the use of something like selectivizr. This may defeat the purpose of using these javascript free components but on the other hand it may be acceptable for older IE.
  • The components do not fail gracefully. In most cases some elements are visible but interaction will not have any effect. The carousel component won't show anything.
  • Some layout issues with tab when wrapping on smaller screen sizes.
  • Weird flash when carousel loops around to first slide.

Contributing

Please read this Coding Style for Issues, pull requests and coding standards.

All changes must be made in /dev folder. The CSS should be modified using the Stylus preprocessor.

Getting Started

# 1. Fork this repository and clone it into the current directory
git clone https://github.com/<your-username>/css-components.git

# 2. Navigate to the newly cloned directory
cd css-components

# 3. Install the dependencies
npm install

Development

# For start the server, watching your .styl files changes and compile CSS
grunt w

Pull Requests

# Compress zip files
grunt build

# Build the project for deploy
grunt dist

# View your project release in GhPages
https://<your-username>.github.io/css-components/

# Open your Pull Request

License

MIT License © Felipe Fialho

More Repositories

1

frontend-challenges

A public list of open-source challenges from companies around the world
13,883
star
2

awesome-made-by-brazilians

🇧🇷 A collection of amazing open source projects built by brazilian developers
1,516
star
3

frontend-tools

🚒 Useful tools to frontenders
474
star
4

frontend-feed

🇧🇷 Lista de blogs e sites úteis para frontenders
454
star
5

coding-style

[outdated/deprecated] My rules coding for HTML, CSS and JavaScript development
356
star
6

piano

🎹 To play piano using CSS and JavaScript
JavaScript
336
star
7

kratos-boilerplate

🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
JavaScript
311
star
8

felipefialho.com

😺 My personal website
JavaScript
268
star
9

felipefriends

[stopped 🚧] Instruções iniciais e desafios do @training-center
56
star
10

chess

A modern and light chess game developed with HTML, CSS and Javascript.
CSS
52
star
11

felipefialho

About me
46
star
12

dailylog

🚧 [PAUSED] Day after day
39
star
13

old-felipefialho.github.io

[deprecated] My personal website
HTML
30
star
14

grunt-boilerplate

Base files for use of Grunt
JavaScript
23
star
15

my-first-website-in-2007

My first experimental website made in 2007 😱
HTML
19
star
16

survey

Pesquisa salarial entre frontenders do Brasil
HTML
18
star
17

Website

[DEPRECATED] A new version is managed here
CoffeeScript
12
star
18

sublime.config

My packages and settings for SublimeText 3
Python
11
star
19

newsletter-boilerplate

A boilerplate for quick newsletters templates.
HTML
8
star
20

generator-kratos-boilerplate

Yeoman generator for Kratos Boilerplate.
JavaScript
7
star
21

1500-translator

[deprecated]
HTML
4
star
22

whatiwatchtoday

What I Watch Today?
2
star
23

talk-css-components-14-08-08

Apresentação da talk do CSS Meetup do dia 08/08/2014
JavaScript
2
star