Sébastien Lucas / Dev wiki
  • Blog Wiki
  • Story book
  • Developers comics
  • Angular
    • Angular CLI + Angular.json
    • ngTemplateOutlet
    • Angular Schematic
    • Interceptor
    • Micro frontend + Mono repo
    • Build a library module
    • Error handling
    • Virtual and infinite scroll
    • Angular i18n
    • Debug Angular
    • Angular LifeCycle Hook
    • Nested forms in Angular
    • Angular Recipes
    • Master component in Angular
    • Perfomance optimization
    • Service Workers + PWA
    • Mobile
    • Electron app / Desktop app
    • Unit test & Angular
      • Unit test recipes (Jasmine / Karma / Angular)
      • Testing services with httpMock
    • Communication between components
    • Angular snippet library
    • Release and version management
    • Angular tutorial selection
    • UI components libraries
    • Angular libraries
    • Angular Tutorials
    • NGRX
      • Angular NGRX / Tips and code examples
      • Angular new Redux (alternative to ngrx)
      • NGRX unit test
      • Angular ngrx / Basics
    • Angular 2/Angular 1 differences
  • Graphql
  • Three.js
  • Ag grid
  • Open source BIM and 3D
  • Javascript
    • Null vs undefined
    • Html API
    • Await API
    • Debug memory leaks
    • Offline and PWA
    • Javascript tutorials
    • Javascript recipes
    • Bluebird missing docs
    • Alternative to lodash with ES6
    • ES6 syntax the best parts
    • Vanilla JS
  • RXJS
    • Docs
    • Recipes
    • Mock API and sandbox
    • Observables rxjs recipes
    • Combination operators
  • NODE.js
    • Environment variables
    • Fix CORS
    • Pagination requests in API
    • API tests
    • Node.js security
    • Learn node.js
    • Best libraries for node.js
    • Mongoose recipe
    • Debug node.js
  • Gatsby / React
    • Hooks
    • React concepts
    • Gatsby internationalisation
  • Ghost blog
  • Services for developers
    • SaaS images services
    • Airtable API examples
  • MISC
    • JIRA debugging
    • Wordpress plugins
    • Interview Sébastien Lucas
    • English expression
    • True recipes
    • Science podcast
  • AI
    • Machine learning open source
    • Tensor flow
    • Machine learning
    • Code examples
    • Courses and tutorials
    • Datasets
    • The Future of AI
    • Learn algo and data structures
  • Typescript
    • Generic types
    • Typescript recipes
    • Advanced types
      • Conditional types
      • Type guards
    • d.ts files
  • Docker
    • Starting with docker
    • Dockerise simple node app
    • Docker by aymen el amri
  • Mongodb
    • Pattern and data modeling
  • Devops
    • Heroku
    • Scaleway
    • Github template
    • Gitlab CI
    • http2
    • nginx
    • zsh
    • CI Continuous integration
    • DNS
    • Devops resources
    • Gcloud useful commands
    • Authenticate Gcloud
    • Documentation generators
    • Firebase database
  • Developers ressources
    • Online platform coding
      • Online courses
      • Coding games
      • Coding test platforms
      • Links to check
    • Good developers blogs
    • Nice open source project / github
  • Tooling
    • The chrome urls
    • Linux Mac tips
    • Webstorm configuration
    • Develop in Windows
    • Mac debug hardware
    • Mac Setup for a developer
    • Chrome extension
    • Develop toolbox
  • HTML / CSS
    • Tailwind
    • Css grid
    • ☘️Nice styles & generators
    • Favicon
    • Flexbox grid
    • Flexbox layout
    • PUG templates tips
    • Html and css references
    • Css snippets
    • SASS-CSS libraries
    • New things in scss
    • SASS best practices
    • Style lint
  • Tests
    • Cypress
      • Learn cypress and more tests
      • Cypress commands
      • Cypress plugins
      • Page object && app actions
      • Flaky tests
    • Mobile test
    • BDD + Cucumber
    • Puppeteer
    • Type of tests + Ressources
    • Jasmine test
    • Mock, fake, stub in unit tests
    • E2e tests with protactor
    • Mocha
  • REVIT & AEC tools
  • Git
    • Git commits
    • Git tips
    • Git hooks
    • Set up a mono repo
  • Design Pattern
    • Functional Programming
  • Job board / Remote jobs
  • SVG
  • JSON
  • Github
    • Forking a github repo
  • NPM
    • Private NPM packages
    • Publish to NPM with np
  • Yarn
    • Yarn evolution / 2, 3...
    • Yarn Linking
Powered by GitBook
On this page
  • Boostrap 4
  • CSS Grid
  • CSS counter
  • transition
  • object fit
  • blend modes
  • Viemport units vh vw
  • always and ever a problem : vertical align
  • position sticky
  • Post css
  • SCSS / SASS
  • SASS module with @use

Was this helpful?

  1. HTML / CSS

New things in scss

PreviousSASS-CSS librariesNextSASS best practices

Last updated 3 years ago

Was this helpful?

CSS is still evoluting.

  • CSS 2 to CSS 3

  • From css to preprocessors

  • Post processor

  • CSS 4

Also the number of possibilities in css is high. And probably as me, you have missed some handy or cool stuff css3 or more have brought to css.

Boostrap 4

new featurs in boostrap 4
    • sass

    • grid with flexbox (allow vertical alignement)

    • grid unit less columns

    • rem font sizing

    • new small screen breakpoints

CSS Grid

  • Flexbox

CSS counter

When you have a list of item and use a content tag to define content with css. And what if you want to add to this content the number of item in a list without changing the js.

transition

  • Understand transition

  • Cubic bezier generator

object fit

Object fit allow to simulate cover property of background images It is good to make framing of an image or video inside an object...

blend modes

Blend mode are photoshop like fusion mode (multiply, transfer...) that allow to have an opacity without flattening everything

Example for a video with a gradient with mix-blend-mode

The html :

<figure>
    <video>
        <source src="lina.webm">
        <source src="lina.mp4">
    </video>
</figure>

The CSS :

figure {
    background: linear-gradient(90deg,#00f 50%,transparent 50.1%);
}
figure video {
  /* Mind we use mix-blend-mode as video is a normal html element
  not a background */
  mix-blend-mode: overlay;
}
  • Example with letter overlap

Viemport units vh vw

Allow to size depending of the screen size, ideal for full width

always and ever a problem : vertical align

Flexbox based solutions

position sticky

Classical solutions :

Post css

  • post css parts The module platform for post css

  • post css / css next

Plugin to use future of css now (a bit the equivalent of babel and typescript for the css)

  • post css / Autoprefixer

Set automatically browser prefix for you

  • post css web pack plugin

  • Flexbox nice tutorial

SCSS / SASS

  • SASS MAPS

  • Sass modules

SASS module with @use

Learn grid with learning game

use of css grid in production right now ?

another tutorial on css grid

Learn flexbox with learning game

The are exactly for that.

More in depth tuto

(Can I use Sticky)[]

Sticky Bits

More in depth article to understand position sticky

End of for position sticky: supported by all expept IE.

Introduction post about )

What changes in v4 version
grid garden
https://www.smashingmagazine.com/2017/06/building-production-ready-css-grid-layout
https://hacks.mozilla.org/2017/10/an-introduction-to-css-grid-layout-part-1/
flexbox froggy
css counter
Nice visualisation to choose a transition timing function or design custom bezier function
http://cubic-bezier.com/#.95,.23,.83,.67
The IA Fall back
https://medium.com/@bennettfeely/css-blend-modes-could-be-the-next-big-thing-in-web-design-6b51bf53743a
https://css-tricks.com/basics-css-blend-modes/
Original tuto
http://codepen.io/chriscoyier/pen/mvbpJ
http://www.tipue.com/blog/css3-vw-vh
https://caniuse.com/#feat=css-sticky
https://css-tricks.com/stickybits-alternative-position-sticky-polyfills/
https://www.sitepoint.com/css-position-sticky-introduction-polyfills/
2017 support
http://vanseodesign.com/css/vertical-centering/
post css
https://github.com/MoOx/postcss-cssnext
https://github.com/MoOx/postcss-cssnext
https://github.com/postcss/autoprefixer
https://github.com/postcss/postcss-loader
http://cssreference.io/flexbox/
How to use maps in Sass, syntax, examples, and other good thingshiljaa
Sass: @use
Logo
Introducing Sass Modules | CSS-TricksCSS-Tricks
Logo
Logo