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

 
  • #v
  • #vi
  • #vie
  • #view
RSS: #viewport

#viewport

  • #viewport_units_typography_font-size_css_rwd
  • #viewport_units_fix_100vh_javascript_clevermark
  • #viewport_units_rwd_font_size_sass_mixin_clevermarks
  • @aurelie
    Aurélie @aurelie 2/01/2022

    2022 s’annonce plutôt bien du côté du #CSS ! 🥳🥳🥳

    Quelqu’un a déjà testé les color-function() ?
    ▻https://www.bram.us/2021/12/27/css-in-2022/#the-hotlist--color-functions

    Quand ce sera bien opérationnel, ça me facilitera beaucoup les choses avec la personnalisation qu’on propose à nos clients.

    J’espère aussi que les #viewport units mettront fin aux soucis #Safari sur #smartphone ☺
    ▻https://www.bram.us/2021/12/27/css-in-2022/#the-hotlist--viewport-units

    Vous avez repéré quoi en particulier ?

    #integration #integrationWeb #ui #HTML #responsive #variables

    Aurélie @aurelie
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 15/07/2021
    4
    @jeanmarie
    @arno
    @rastapopoulos
    @tofulm
    4

    Corriger le problème de hauteur 100% (100vh) sur mobile - Alsacreations
    ▻https://www.alsacreations.com/astuce/lire/1831-corriger-le-probleme-de-hauteur-100vh-sur-mobile.html

    2 contournements (CSS ou JS) du bogue de Safari sur le calcul du 100vh
    (comme Microsoft avec IE6 il y a quelques années, Apple se sent suffisamment en position de force sur les navigateurs mobiles pour faire n’importe quoi et si possible non compatible avec les standards...)

    #safari #100vh #viewport

    cy_altern @cy_altern CC BY-SA
    • @arno
      ARN😷* @arno ART LIBRE 16/07/2021

      Le hack de cette solution, c’est le @support pour détecter uniquement Safari (et en théorie, ce genre de chose c’est mal…). Sans cela, dans mon expérience, la valeur -webkit-fill-available est détectée par Chrome (au lieu d’être ignorée), mais qui la met à zéro, ce qui casse totalement la maquette.

      /* Avoid Chrome to see Safari hack */
      @supports (-webkit-touch-callout: none) {
       body {
         /* The hack for Safari */
         min-height: -webkit-fill-available;
       }
      }
      ARN😷* @arno ART LIBRE
    Écrire un commentaire
  • @cy_altern
    cy_altern @cy_altern CC BY-SA 18/10/2018
    3
    @tofulm
    @jeanmarie
    @gastlag
    3

    Comprendre SVG viewBox et viewport
    ▻https://la-cascade.io/comprendre-svg-viewbox-et-viewport

    Un des casse-tête de l’affichage « inline » du SVG : gérer la taille d’affichage pour ne pas le tronquer.
    Une affaire d’attributs viewport , viewBox et preserveAspectRatio
    Voir aussi :
    ▻https://la-cascade.io/comprendre-svg-viewbox
    ▻https://la-cascade.io/comprendre-svg-preserveaspectratio

    #svg #viewport #viewBox #preserveAspectRatio #ratio #affichage

    cy_altern @cy_altern CC BY-SA
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 18/10/2018

      Marrant, on s’est cassé la tête la dessus pas plus tard que la semaine dernière, mais c’était pour que ça soit responsive et que ça se retaille comme il faut.

      L’erreur la plus conne qui a bouffé le plus de temps, c’est qu’il faut UN B MAJUSCULE BORDEL à viewBox, sinon ça ne marche pas comme il faut. :D

      RastaPopoulos @rastapopoulos CC BY-NC
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 23/10/2018

      c’était pour que ça soit responsive et que ça se retaille comme il faut.

      hé hé ! exactement le même problème... Je suis preneur d’une solution qui permettrait d’avoir un affichage responsive « automagiquement » en pur CSS (sans avoir à donner une taille « en dur » à viewport/viewBox)...

      cy_altern @cy_altern CC BY-SA
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 23/10/2018

      C’est pas possible, mais la vaille de la viewBox c’est juste une taille qui sert à donner un ratio, une proportion, ça veut pas dire que ça sera cette taille là. Une fois que tu as définis cette proportion, bah en CSS là tu donnes la taille que tu veux, et avec un max-width:100% et un height:auto comme sur les images, bah hop ça te fait un truc responsive. Faut juste pas oublier le B majuscule…

      RastaPopoulos @rastapopoulos CC BY-NC
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 22/09/2017

    What you really wanted when you asked for viewport units
    ▻https://github.com/colingourlay/root-units

    “Viewport units were an awesome idea. They let us set CSS properties to lengths that are proportion to the viewport’s width, height, or the min/max of the two. There’s a small caveat that’ll trip you up sooner or later though : they don’t play nicely with scroll bars.”

    #viewport_units_fix_100vh_JavaScript_clevermark

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @b_b
    b_b @b_b PUBLIC DOMAIN 3/08/2017
    7
    @02myseenthis01
    @tofulm
    @monolecte
    @fil
    @cocoadaemon
    @7h36
    @cy_altern
    7

    Intersection Observer comes to Firefox
    ▻https://hacks.mozilla.org/2017/08/intersection-observer-comes-to-firefox

    https://hacks.mozilla.org/files/2017/08/Blank-Diagram-Page-1-500x355.png

    Knowing whether or not an element is #visible has traditionally been difficult on the Web. Most solutions listen for scroll and resize events, then use #DOM #APIs like getBoundingClientRect() to manually calculate where elements are relative to the #viewport. This usually works, but it’s inefficient and doesn’t take into account other ways in which an element’s visibility can change, such as a large image finally loading higher up on the page, which pushes everything else downward.
    These techniques kill performance, drain batteries, and would be completely unnecessary if the browser could just notify us whenever an element’s visibility changed.
    At its most basic, the #IntersectionObserver API looks something like:

    let observer = new IntersectionObserver(handler);
    observer.observe(target); // <-- Element to watch

    IntersectionObserver is available by default in Edge 15, Chrome 51, and Firefox 55, which is due for release next week.

    A polyfill is available which works effectively everywhere, albeit without the performance benefits of native implementations.
    ▻https://github.com/WICG/IntersectionObserver/tree/gh-pages/polyfill

    b_b @b_b PUBLIC DOMAIN
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 26/09/2016
    7
    @monolecte
    @fil
    @7h36
    @lluc
    @biggrizzly
    @rastapopoulos
    @kent1
    7

    SVG has more potential
    ▻https://madebymike.com.au/writing/svg-has-more-potential
    #SVG_RWD

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    • @monolecte
      M😷N😷LECTE 🤬 @monolecte CC BY-NC-SA 26/09/2016

      #web-design #image #responsive
      Trop beau!!!

      M😷N😷LECTE 🤬 @monolecte CC BY-NC-SA
    • @robin
      robin @robin CC BY 26/09/2016

      Et encore, on peut faire bien plus :)

      robin @robin CC BY
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 26/09/2016

      référencé dans l’article :
      - « How to Scale SVG » ▻https://css-tricks.com/scale-svg pour les différences de mise à l’échelle d’un SVG en fonction du mode d’inclusion dans le HTML
      - « Understanding SVG Coordinate Systems and Transformations » ▻https://sarasoueidan.com/blog/svg-coordinate-systems pour les subtilités d’utilisation des attributs viewport, viewBox, et preserveAspectRatio
      avec une interface de démo et une « cheatsheet » pour ces attributs sur ▻https://sarasoueidan.com/demos/interactive-svg-coordinate-system/index.html

      #viewport #viewbox #preserveAspectRatio #échelle #ratio

      cy_altern @cy_altern CC BY-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 28/07/2016

    Viewport Sized Typography with Minimum and Maximum Sizes
    ▻https://css-tricks.com/snippets/sass/viewport-sized-typography-minimum-maximum-sizes

    This Sass mixin makes use of media queries to define a minimum and maximum size for the font, in pixels. It also supports an optional parameter to serve as a fallback to browsers that don’t support viewport units.

    #viewport_units_RWD_font_size_Sass_mixin_clevermarks

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 15/03/2016
    3
    @rastapopoulos
    @monolecte
    @mukt
    3

    Viewport Unit Based Typography
    ▻http://zellwk.com/blog/viewport-based-typography
    #viewport_units_typography_font-size_CSS_RWD

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 15/03/2016

      Excellent.
      CanIUse me dit 94% en France, c’est pas mal…

      Ça peut aussi servir à faire des blocs dont on est sûr qu’il font la hauteur de l’écran aussi (alors qu’on peut le faire avec height:100% uniquement si c’est à la racine ou si chaque parent à height indiqué…).

      #intégration #web #CSS #responsive #typographie #viewport

      RastaPopoulos @rastapopoulos CC BY-NC
    • @nhoizey
      Nicolas Hoizey @nhoizey CC BY-NC-SA 15/03/2016

      Attention, 100vh ne représente pas toujours la hauteur totale visible : ▻http://nicolas-hoizey.com/2015/02/viewport-height-is-taller-than-the-visible-part-of-the-document-in-s

      Nicolas Hoizey @nhoizey CC BY-NC-SA
    • @rastapopoulos
      RastaPopoulos @rastapopoulos CC BY-NC 15/03/2016

      Arf, c’est ballot, merci de l’info. Après c’est plus ou moins critique (là dans ton cas pour faire du faux fullscreen, pour un truc qui DOIT être pile de la taille, ça l’est). Si c’est pour que avoir un grand bloc de la hauteur d’écran au-dessus de la ligne de flottaison, mais avec d’autres choses en scroll dessous, c’est moins grave.

      RastaPopoulos @rastapopoulos CC BY-NC
    • @nhoizey
      Nicolas Hoizey @nhoizey CC BY-NC-SA 15/03/2016

      Exactement

      Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 20/01/2015

    Gaunt Face | Matt Gaunt - What the #virtual #viewport?
    ▻https://gauntface.com/blog/2015/01/16/what-the-virtual-viewport

    the idea is splitting the notion of “the viewport” into the “layout viewport” (where fixed position items are attached) and the “visual viewport” (What the users actually see) Tags: viewport virtual #layout #RWD

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 3/06/2014
    2
    @la_taupe
    2

    #SVG “symbol” a Good Choice for Icons
    ▻http://css-tricks.com/svg-symbol-good-choice-icons/#comment-1582036

    Tags : SVG #symbol #icône #sprite #viewport

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 16/04/2014

    Advanced web typography: Responsive web typography » Blog » Elliot Jay Stocks
    ▻http://elliotjaystocks.com/blog/responsive-web-typography

    “Viewport Units have a huge amount of promise for layout, I don’t think they really fit (sorry) for scaling type. The issue for me is relative proportion to body copy – which I believe you generally should not change away from whatever renders as ‘1em’.” Tags: #em #viewport #échelle

    • #web typography
    • #Elliot Jay
    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @booz
    BoOz @booz 5/03/2014
    2
    @jeanmarie
    @monolecte
    2

    Comprendre le #Viewport dans le Web mobile - Alsacreations
    ►http://www.alsacreations.com/article/lire/1490-comprendre-le-viewport-dans-le-web-mobile.html

    Le Viewport désigne schématiquement la surface de la fenêtre du navigateur. Cependant, la notion de viewport sur un appareil mobile est différente de celle sur un écran de bureau : sur mobile, le navigateur ne dispose pas de « fenêtre » réelle, ni de barres de défilement car tout est prévu pour naviguer de manière tactile.

    Comprendre la notion de viewport est absolument indispensable dans un projet d’intégration de site web pour tablettes et smartphones, ou dans un esprit d’adaptation « #Responsive Web Design ».

    • #Viewport
    BoOz @booz
    Écrire un commentaire
  • @booz
    BoOz @booz 11/03/2013

    Controlling text size in Safari for iOS without disabling user zoom | 456 Berea Street
    ▻http://www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom

    -webkit-text-size-adjust:100% ;

    #viewport #mobile

    BoOz @booz
    Écrire un commentaire
  • @booz
    BoOz @booz 8/03/2013
    3
    @james
    @rastapopoulos
    3

    Comprendre le #Viewport dans le Web mobile - Alsacreations
    ►http://www.alsacreations.com/article/lire/1490-comprendre-le-viewport-dans-le-web-mobile.html

    Pour résumer, Safari mobile sur iPhone 4 va afficher par défaut les pages web dans une fenêtre de 980px de large au sein des 320px de largeur qu’il croit avoir… bien qu’il en ait physiquement 640px.
    Une image de 320px de large va, par conséquent, occuper par défaut 1/3 de la largeur de l’écran. Tordu, non ?

    • #Viewport
    BoOz @booz
    Écrire un commentaire
  • @booz
    BoOz @booz 8/03/2013
    1
    @fil
    1

    Mobile and Tablet #Viewport #Sizes with #screen DPI and size | i-Skool
    ▻http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes

    BoOz @booz
    • @fil
      Fil @fil 8/03/2013

      #mobile

      Fil @fil
    Écrire un commentaire
  • @booz
    BoOz @booz 1/11/2011

    The viewport metatag (Mobile web part 1) | David Calhoun’s Developer Blog
    ►http://davidbcalhoun.com/2010/viewport-metatag

    #webapp #viewport

    BoOz @booz
    Écrire un commentaire
  • @booz
    BoOz @booz 1/11/2011

    Philosophical Games: Customize Android Browser Scaling with target-densityDpi
    ►http://darkforge.blogspot.com/2010/05/customize-android-browser-scaling-with.html

    #webapp #viewport #android

    BoOz @booz
    Écrire un commentaire
  • @booz
    BoOz @booz 31/10/2011

    Choosing a viewport for iPad sites - Allen Pike
    ►http://www.allenpike.com/2010/choosing-a-viewport-for-ipad-sites

    “device-width is the width of the physical device (320px or 768px), not the width of the screen in the current orientation. As a consequence, you can get content rendered at 768px and blown up to 1024px.”

    #webapp #ipad #viewport

    BoOz @booz
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 10/08/2011

    responsivepx - find that tricky breakpoint
    ►http://responsivepx.com

    Enter the url to your site - local or online: both work - and use the controls to adjust the #width and #height of your #viewport to find exact breakpoint widths in pixels. Then use that information in your #media_queries to create a #responsive_design.

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 4/08/2011
    1
    @0gust1
    1

    jQuery.fracs
    ►http://larsjung.de/fracs

    jQuery.fracs determines the #fraction of an HTML element that is currently in the #viewport, as well as the fraction it takes of the complete viewport and the fraction of the area that might possibly be #visible. It also provides the coordinates of the visible rectangle in document, element and viewport space.

    #jQuery #plugin #canvas #fold #page #javascript

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire
  • @nhoizey
    Nicolas Hoizey @nhoizey CC BY-NC-SA 22/01/2010

    Mark Finkle’s Weblog » Perils of the viewport meta tag
    ►http://starkravingfinkle.org/blog/2010/01/perils-of-the-viewport-meta-tag

    #interface #mobile #web #dev #taille #écran #viewport #largeur #hauteur #résolution #clevermarks

    Nicolas Hoizey @nhoizey CC BY-NC-SA
    Écrire un commentaire

Thèmes liés

  • #webapp
  • city: viewport
  • #mobile
  • #responsive
  • #visible
  • #web
  • #viewport
  • #android
  • operatingsystem: android
  • #ipad
  • #plugin
  • industryterm: physical device
  • #width
  • #height
  • #media_queries
  • industryterm: web part
  • #responsive_design
  • #fraction
  • person: david calhoun
  • #jquery
  • #échelle
  • facility: allen pike
  • #css
  • #canvas
  • #taille
  • #clevermarks
  • #résolution
  • #hauteur
  • #fold
  • #écran
  • #largeur
  • #dev
  • #preserveaspectratio
  • #ratio
  • #interface
  • technology: html
  • #javascript
  • #page