GithubHelp home page GithubHelp logo

adamschwartz / magic-of-css Goto Github PK

View Code? Open in Web Editor NEW
6.6K 197.0 415.0 3.77 MB

A CSS course to turn you into a magician.

Home Page: https://adamschwartz.co/magic-of-css

License: MIT License

Ruby 0.08% CSS 60.44% CoffeeScript 2.74% JavaScript 2.36% HTML 28.95% Sass 5.44%
css textbook design examples tutorials

magic-of-css's Introduction

magic-of-css's People

Contributors

adamschwartz avatar b0yfriend avatar baumannzone avatar cvrebert avatar gerche avatar i2echo avatar jcfranco avatar petty avatar timmfin avatar weichiachang 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  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

magic-of-css's Issues

'Button' potion - focus states

Given best practices in accessibility, it's probably a good idea to have keyboard focus states for your buttons. Pretty commonly forgotten by newbies, but makes a great deal of difference to those who rely on them.

Background color

One thing I learned the hard way: Do not assume the user has its background set to white.
So please set a background-color.

foo

HTML validation error in Chapter 2

_site/chapters/2-layout/index.html:

  • "Element <div> not allowed as child of element <code> in this context. (Suppressing further errors from this subtree.)" Line no: 136
  • "Element <div> not allowed as child of element <code> in this context. (Suppressing further errors from this subtree.)" Line no: 137
  • "Element <div> not allowed as child of element <code> in this context. (Suppressing further errors from this subtree.)" Line no: 138
  • "Element <div> not allowed as child of element <code> in this context. (Suppressing further errors from this subtree.)" Line no: 154

The New CSS Layout

With the rise of Flexboxes and Grids. This resource is quickly being outdated, unfortunately.
I think it's worth forking, maintaining or reinventing.

For example, reliable center alignment with two lines:

display: grid;
place-items: center;

Likewise, lots more potions with css grids would be amazing.
CSS Framework-style abuse of inline-blocks for grid layout becomes unnecessary.

Rachel Andrew wrote an excellent book on the topic: https://abookapart.com/products/the-new-css-layout

I think an updated magic of css online resource that distils the same teachings would be invaluable.

Accident...

when next chapters?

Sorry for making an issue for this, but I've read the "magic of css" and I love it, for the first time I've read something about css that had sense.. and humour, yet I see that since several months there was no updates, so I was wondering if you will find time to write next chapters, or this project is RIP?..

If not and you are planning adding new chapters soon, I would love to translate the whole text into polish , with your permission, because I think that it is worth to spread the magic of css around the globe ;)

thank you for excellent work so far and good luck with eager.io!

3 Pane App

While playing around with the 3 Pane App, depending on the size of my browser window / if I added too much content to the middle section, the content would get cut off and become unreadable beyond the bottom of the browser window.

I found adding the following css to the .middle selector fixed the issue.

.three-pane-app .bottom .middle {
height: 100%;
overflow: auto;
}

however, if the point of the middle column was to not vertically scroll, then never mind :)

Thanks

Animation chapter

I think it needs a chapter about animations / keyframes to be more magic ...

...brilliant

a quick note to say thank you. Your chapter 2, Layout: "Grid with text-align justify" has clearly and succinctly just solved an issue I was grappling with... I look forward to any new chapters

Footers

Great project! One request:

Over the years, footers have really given people a heck of a time, myself included. Would you mind adding idiomatic footers to your app potions? I'm hoping there's an opportunity for some applied magic. :)

Thanks!

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.