issue123:c_c
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue123:c_c [2017/08/09 09:29] – d52fr | issue123:c_c [2017/08/10 17:12] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
Since writing last month’s article, I have been working on a project for my degree, and in doing so, have spent a fair bit of time reading up on new CSS technologies (CSS Custom Properties and CSS Grids), as well as new features in the current version of Chrome which I think will be extremely helpful to developers. As such, I thought summarizing some of these will be useful for anyone who may have missed some of this news. For anyone curious, I get most of my news on these developments from CSS-Tricks (either via RSS or through twitter).** | Since writing last month’s article, I have been working on a project for my degree, and in doing so, have spent a fair bit of time reading up on new CSS technologies (CSS Custom Properties and CSS Grids), as well as new features in the current version of Chrome which I think will be extremely helpful to developers. As such, I thought summarizing some of these will be useful for anyone who may have missed some of this news. For anyone curious, I get most of my news on these developments from CSS-Tricks (either via RSS or through twitter).** | ||
+ | |||
+ | Le mois dernier, C&C s'est concentré sur la programmation, | ||
+ | |||
+ | Depuis le dernier article, je travaille sur un projet pour mon diplôme, et, ce faisant, j'ai passé un bon bout de temps à me documenter sur les nouvelles technologies de CSS (CCS Custom Properties - Propriétés personnalisées de CSS - et CCS Grids - Grilles CSS), ainsi que sur les nouvelles fonctionnalités de la version actuelle de Chrome qui, je le pense, seront extrêmement pratiques pour les développeurs. Ainsi, je pensais qu'un résumé de certaines de celles-ci serait utile à tous ceux qui auraient loupé une partie de ces informations. Pour toute personne curieuse, j'ai tiré la plupart de mes informations sur ces développements à partir de CSS-Tricks (via RSS ou Twitter). | ||
**CSS | **CSS | ||
Ligne 8: | Ligne 12: | ||
A couple of quick notes: the auto declaration (so the second row expands to fill the page) has given me a few issues in Firefox and Safari, where 100% seems to work. And the fr is a new fractional unit - meaning the column declaration is saying the sidebar is 1/4th the size of the body text column.** | A couple of quick notes: the auto declaration (so the second row expands to fill the page) has given me a few issues in Firefox and Safari, where 100% seems to work. And the fr is a new fractional unit - meaning the column declaration is saying the sidebar is 1/4th the size of the body text column.** | ||
+ | |||
+ | CSS | ||
+ | |||
+ | Il n'y a pas si longtemps, le support de Flexbox commençait à décoller dans tous les navigateurs Web majeurs. Et, alors que Flexbox est un choix sensationnel pour disposer les choses dans une seule direction (en lignes ou en colonnes, mais pas les deux), il n'a vraiment pas été conçu pour mettre en place la structure de toute une page Web. Alors qu'il peut être (ou est) utilisé pour cela, il en résulte différents problèmes et piratages. C'est une réelle amélioration par rapport aux grilles basées sur les zones flottantes, mais ce n'est pas encore parfait. C'est là que les grilles CSS entrent en scène. Elles vous permettront de créer une grille basée sur CSS pour votre page Web. Vous définissez les lignes et les colonnes et pouvez même leur donner des étiquettes. Ensuite, vous pouvez assigner les éléments aux lignes et aux colonnes comme vous le souhaitez (sans se soucier d'où ils apparaissent dans le DOM (Document Object Model). Ceci rend plus facile la création de la mise en page typique Entête/ | ||
+ | |||
+ | Deux courtes notes : la déclaration auto (de sorte que la seconde ligne s' | ||
**Naturally, | **Naturally, | ||
The key benefit of this approach is the fact that you need only the media query to redefine the variables, and that the actual layout definition lines (in the body selector) never change. This makes it even easier to wrap the layout section in an @supports(display: | The key benefit of this approach is the fact that you need only the media query to redefine the variables, and that the actual layout definition lines (in the body selector) never change. This makes it even easier to wrap the layout section in an @supports(display: | ||
+ | |||
+ | Naturellement, | ||
+ | |||
+ | Le premier bénéfice de cette approche est le fait que vous n'avez besoin que de la requête de média pour redéfinir les variables et que les vraies lignes de définition de la mise en page (dans le sélecteur du corps) ne changent jamais. Cela rend même plus facile l' | ||
**Chrome DevTools | **Chrome DevTools | ||
Ligne 21: | Ligne 35: | ||
The ability to view CSS and JS coverage | The ability to view CSS and JS coverage | ||
This addition allows you to see a bar indicating how much of the loaded CSS and JS was executed for a page load. This is ideal for seeing which methods or selectors you may want to move into a different file, which is included only on required pages. Or perhaps you can remove just unused styles and code. The inspector will even highlight the lines when viewing the file in the source panel.** | This addition allows you to see a bar indicating how much of the loaded CSS and JS was executed for a page load. This is ideal for seeing which methods or selectors you may want to move into a different file, which is included only on required pages. Or perhaps you can remove just unused styles and code. The inspector will even highlight the lines when viewing the file in the source panel.** | ||
+ | |||
+ | Les Chrome DevTools | ||
+ | |||
+ | La version 59 de Chrome apporte quelques nouveaux ajouts aux Chrome DevTools. Un message sur ces changements a été posté sur leur blog, que vous pouvez trouver ici : https:// | ||
+ | |||
+ | Les principaux ajouts qu'ils ont traités : | ||
+ | |||
+ | La possibilité de voir la couverture de CSS et JS. | ||
+ | Cet ajout vous permet de voir une barre indiquant la part des CSS et JS chargés qui a été exécutée au chargement d'une page. C'est idéal pour voir quelles méthodes ou sélecteurs vous pourriez vouloir déplacer dans un fichier différent, qui est inclus uniquement dans les pages nécessaires. Ou vous pouvez, peut-être, simplement supprimer les styles et code inutilisés. L' | ||
**Full Page Screenshots | **Full Page Screenshots | ||
For a long time when I needed to take screenshots of longer pages, I either used a 3rd party app, or else took a series of screenshots and stitched them together in the GIMP. Now, you can open the inspector, and enable the device toolbar (which emulates mobile devices). The menu in the top right then offers you a few screenshot options. Naturally, if you want to screenshot the desktop view, you’ll want to set it to a responsive size, and expand the viewport to the desired layout. But it is possible (even if you use only the device toolbar for testing smaller viewports). It then takes the photo, and begins a download of it.** | For a long time when I needed to take screenshots of longer pages, I either used a 3rd party app, or else took a series of screenshots and stitched them together in the GIMP. Now, you can open the inspector, and enable the device toolbar (which emulates mobile devices). The menu in the top right then offers you a few screenshot options. Naturally, if you want to screenshot the desktop view, you’ll want to set it to a responsive size, and expand the viewport to the desired layout. But it is possible (even if you use only the device toolbar for testing smaller viewports). It then takes the photo, and begins a download of it.** | ||
+ | |||
+ | Les copies d' | ||
+ | Pendant longtemps, quand j' | ||
**Blocking requests | **Blocking requests | ||
Ligne 29: | Ligne 55: | ||
Overall, this is a step into the future for CSS, and finally a chance for me to cut back on some of my development tools. If you have any cool use cases for CSS Grids or CSS Custom Properties you’d like to share with me (and our readers), then send me an email at lswest34+fcm@gmail.com. The same goes for any readers who may have questions, problems, or suggestions for future articles.** | Overall, this is a step into the future for CSS, and finally a chance for me to cut back on some of my development tools. If you have any cool use cases for CSS Grids or CSS Custom Properties you’d like to share with me (and our readers), then send me an email at lswest34+fcm@gmail.com. The same goes for any readers who may have questions, problems, or suggestions for future articles.** | ||
+ | |||
+ | Demandes de blocage | ||
+ | Le dernier changement qui m'a beaucoup plu est la possibilité de bloquer un fichier individuel, de façon à voir comment votre page se charge sans lui. Occasionnellement, | ||
+ | |||
+ | Globalement, | ||
Ligne 44: | Ligne 75: | ||
Pour aller plus loin | Pour aller plus loin | ||
- | https:// | + | https:// |
- | https:// | + | https:// |
- | https:// | + | https:// |
- | https:// | + | https:// |
issue123/c_c.1502263787.txt.gz · Dernière modification : 2017/08/09 09:29 de d52fr