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
  • What changes in v4 version

    • sass

    • grid with flexbox (allow vertical alignement)

    • grid unit less columns

    • rem font sizing

    • new small screen breakpoints

CSS Grid

  • Learn grid with grid garden learning game

  • use of css grid in production right now ? https://www.smashingmagazine.com/2017/06/building-production-ready-css-grid-layout

  • another tutorial on css grid https://hacks.mozilla.org/2017/10/an-introduction-to-css-grid-layout-part-1/

    Flexbox

Learn flexbox with flexbox froggy learning game

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.

The css counter are exactly for that.

transition

  • Understand transition

Nice visualisation to choose a transition timing function or design custom bezier function

  • Cubic bezier generator

http://cubic-bezier.com/#.95,.23,.83,.67

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...

The IA Fall back

blend modes

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

https://medium.com/@bennettfeely/css-blend-modes-could-be-the-next-big-thing-in-web-design-6b51bf53743a

More in depth tuto https://css-tricks.com/basics-css-blend-modes/

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

Original tuto

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

http://codepen.io/chriscoyier/pen/mvbpJ

Viemport units vh vw

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

http://www.tipue.com/blog/css3-vw-vh

always and ever a problem : vertical align

Flexbox based solutions

position sticky

  • (Can I use Sticky)[https://caniuse.com/#feat=css-sticky]

  • Sticky Bits https://css-tricks.com/stickybits-alternative-position-sticky-polyfills/

  • More in depth article to understand position sticky https://www.sitepoint.com/css-position-sticky-introduction-polyfills/

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

Classical solutions :

http://vanseodesign.com/css/vertical-centering/

Post css

  • Introduction post about post css https://github.com/MoOx/postcss-cssnext)

  • 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)

https://github.com/MoOx/postcss-cssnext

  • post css / Autoprefixer

Set automatically browser prefix for you

https://github.com/postcss/autoprefixer

  • post css web pack plugin

https://github.com/postcss/postcss-loader

  • Flexbox nice tutorial

http://cssreference.io/flexbox/

SCSS / SASS

  • SASS MAPS

  • Sass modules

SASS module with @use

How to use maps in Sass, syntax, examples, and other good thingshiljaa
Introducing Sass Modules | CSS-TricksCSS-Tricks
Sass: @use
Logo
Logo
Logo