Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://blog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 23/06/2017
    3
    @rastapopoulos
    @mukt
    @jeanmarie
    3

    #Fluid #Responsive #Typography With #CSS Poly Fluid Sizing
    ▻https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing

    Fluid layouts have been a normal part of front-end development for years. The idea of fluid typography, however, is relatively new and has yet to be fully explored. Up until now, most developers’ idea of fluid typography is simply using Viewport units maybe with some minimum and maximum sizes.

    https://www.smashingmagazine.com/wp-content/uploads/2017/05/2-scatter-plot-font-size-opt.png

    That’s called a trendline. It’s a way to find an interpolated font-size value for any viewport width, based on the data provided.

    The are several methods for determining the slope and y-intercept. When multiple values are involved, a common method is the Least Squares fit:

    https://www.smashingmagazine.com/wp-content/uploads/2017/05/4-least-squares-fit-opt.png

    You can use the trendline equation like this:

    h1 {
      font-size: calc({slope}*100vw + {y-intercept}px);
    }

    Once you find your slope and y-intercept you just plug them in!

    b_b @b_b PUBLIC DOMAIN
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 23/06/2017
      @drbouvierleduc

      ▻https://fr.wikipedia.org/wiki/M%C3%A9thode_des_moindres_carr%C3%A9s

      #intégration #web #lisibilité #typographie
      cc @drbouvierleduc

      RastaPopoulos @rastapopoulos CC BY-NC
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 23/06/2017

      Ya des gens qui sont pétés du bulbe quand même. :D
      Et une preuve de plus que le métier d’intégrateurice n’a rien à envier en complexité aux devs « backend ». :)

      RastaPopoulos @rastapopoulos CC BY-NC
    • @jeanmarie
      jeanmarie @jeanmarie CC BY-NC-SA 3/01/2018

      Ouais, alors bon, faut quand même un petit niveau de math !

      J’ai calculé ma pente, mais le y-intercept, c’est autre chose... c’est quoi les Y et X avec une barre dessus dans cette formule :

      https://www.smashingmagazine.com/wp-content/uploads/2017/05/4-least-squares-fit-opt.png

      Note pour plus tard : penser à mieux écouter les cours de math...

      jeanmarie @jeanmarie CC BY-NC-SA
    Écrire un commentaire

thèmes

  • #CSS
  • #Fluid
  • #Responsive
  • #Typography
Propriété intellectuelle Recommandations API