GithubHelp home page GithubHelp logo

css-lecture's Introduction

css-lecture

For starters: world without CSS

Try this (it removes all css in a website):

  document.querySelectorAll('[style]')
    .forEach(el => el.removeAttribute('style'));
  document.querySelectorAll('link[rel="stylesheet"]')
    .forEach(el => el.parentNode.removeChild(el));
  document.querySelectorAll('style')
    .forEach(el => el.parentNode.removeChild(el));

Press option + command + j then paste this code in and press enter

WARM UP: QUIZ

Open ./quiz.html in your browser.

Also: Bootstrap, Semantic UI, Materialize, Deque -> what is it? why would I (not) use it?

The Box Model

4 elements of the box model:

  • margin - the area outside the border (it is transparent);
  • border - it goes around the padding and content;
  • padding - the area around the content (it is transparent);
  • content - the content of the box, where text and images appear;

Cheat sheets:

  1. Button generator: https://www.bestcssbuttongenerator.com/#/3
  2. 10 animations generators (including fancy spinners you will love while doing React): https://www.hongkiat.com/blog/css3-animation-tools/
  3. CSS generator: http://angrytools.com/css-generator/
  4. Another CSS generator: https://webcode.tools/css-generator/
  5. Gradient generator: http://angrytools.com/gradient/
  6. Grid templates: https://gridbyexample.com/examples/

Practice:

  1. CSS: https://flukeout.github.io/
  2. Flexbox: https://flexboxfroggy.com/
  3. Grid: http://cssgridgarden.com/

Read more:

  1. All attributes: https://tympanus.net/codrops/css_reference/
  2. All about grid: https://css-tricks.com/snippets/css/complete-guide-grid/
  3. All about flexbox: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
  4. 20 tricks to make your life easier: https://www.webdesignerdepot.com/2016/10/20-essential-css-tricks-every-designer-should-know/

Accessibility tools:

  1. Font sizes: em, % sizes, named sizes
  2. Color contrast explanation: https://a11yproject.com/posts/what-is-color-contrast/
  3. :focus property https://a11yproject.com/posts/never-remove-css-outlines/
  4. Deque Pattern Library (instead of bootstrap or materialize): https://pattern-library.dequelabs.com/
  5. ADVANCED :maximum-scale property https://a11yproject.com/posts/never-use-maximum-scale/

DESSERT: ENJOY!

  1. This painting was made entirely with CSS: http://diana-adrianne.com/purecss-francine/
  2. All with CSS: https://a.singlediv.com/
  3. Zen Garden: http://cssgridgarden.com/
  4. Mind-blowing CSS projects: https://www.webdesignerdepot.com/2017/09/11-experimental-css-projects-thatll-blow-your-mind/

css-lecture's People

Contributors

sylwiavargas avatar

Watchers

 avatar

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.