Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSS for the backend web developer

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Avatar for aarti aarti
September 20, 2015

CSS for the backend web developer

An overview of CSS for the full stack web developer.

Avatar for aarti

aarti

September 20, 2015

More Decks by aarti

Other Decks in Technology

Transcript

  1. About Me Aarti Parikh Sr. Software Engineer Have shipped production

    code with Java, Ruby, JavaScript and Go. Full-stack engineer, but mostly backend. @classyhacker on twitter
  2. Declarations Properties: color: red; max-width: 20px @ rules: @font-face {

    font-family: MyHelvetica; src: local("Helvetica Neue Bold”); font-weight: bold;}, @media screen { body { width:75%;} } pseudo-classes: a:visited { color: purple } /* visited links */ pseudo elements: p::before { content: "Hello world!"; } /* inserts content before every p element */
  3. Cascade algorithm <div id=“test”> <span>Hello</span> </div> div#test span { color:

    green } div span { color: blue } span { color: red } In the above case, No matter what the order of CSS is, the text “Hello” will be green because that rule is most specific.
  4. Sass $font-stack: Helvetica, sans-serif; $primary-color: #333; .about { font: 100%

    $font-stack; color: $primary-color; .my-container{ $secondary-color: #343; } }