issue92:command_conquer
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue92:command_conquer [2015/01/07 16:03] – créée andre_domenech | issue92:command_conquer [2015/03/08 17:55] (Version actuelle) – [2] auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ===== 1 ===== | ||
+ | ** | ||
Last month, we talked about Jeet, and I mentioned Stylus. Since then, I’ve also started using Flexbox on a few websites. After a single website, I was tired of writing all the vendor prefixes by hand, and designed a Stylus file containing functions to minimize the amount of typing needed. Once I got it to a point where I was happy, I published it on github. | Last month, we talked about Jeet, and I mentioned Stylus. Since then, I’ve also started using Flexbox on a few websites. After a single website, I was tired of writing all the vendor prefixes by hand, and designed a Stylus file containing functions to minimize the amount of typing needed. Once I got it to a point where I was happy, I published it on github. | ||
Ligne 10: | Ligne 12: | ||
• flexbox.html file | • flexbox.html file | ||
- | The flexbox.html file and the css folder are used only as an example. In the stylus folder, you’ll see an example.styl folder, as well as a flexbox.styl file. The flexbox.styl file is the only file you need to copy to use the functions. | + | The flexbox.html file and the css folder are used only as an example. In the stylus folder, you’ll see an example.styl folder, as well as a flexbox.styl file. The flexbox.styl file is the only file you need to copy to use the functions.** |
- | What is Flexbox? | + | Le mois dernier, nous avons parlé de Jeet et j'ai mentionné Stylus. Depuis, j'ai aussi commencé à utiliser Flexbox sur quelques sites Web. Après un seul site, j' |
+ | |||
+ | Lien : https:// | ||
+ | |||
+ | Ce que vous y trouverez : | ||
+ | |||
+ | • Des dossiers avec les fichiers CSS et Stylus. | ||
+ | • Un fichier LICENSE. | ||
+ | • Readme.md. | ||
+ | • Un fichier flexbox.html. | ||
+ | |||
+ | Le fichier flexbox.html et le dossier CSS ne sont utilisés qu'à titre d' | ||
+ | |||
+ | **What is Flexbox? | ||
Flexbox is a new layout system introduced in CSS3, and is currently supported in one form or another in most commonly used versions of Firefox, Chrome, Safari and Opera. It’s also supported by IE 10 & 11. See here for a thorough breakdown: http:// | Flexbox is a new layout system introduced in CSS3, and is currently supported in one form or another in most commonly used versions of Firefox, Chrome, Safari and Opera. It’s also supported by IE 10 & 11. See here for a thorough breakdown: http:// | ||
Ligne 21: | Ligne 36: | ||
• http:// | • http:// | ||
• http:// | • http:// | ||
+ | ** | ||
+ | Qu' | ||
+ | |||
+ | Flexbox est un nouveau système de mise en page introduit en CSS3 ; il est actuellement pris en charge dans une forme ou une autre dans les versions les plus couramment utilisés de Firefox, Chrome, Safari et Opera. Il est aussi pris en charge par IE 10 et 11. Regardez ici pour une description approfondie : | ||
+ | http:// | ||
+ | |||
+ | Flexbox facilite l' | ||
+ | |||
+ | Liens : | ||
+ | • http:// | ||
+ | • http:// | ||
+ | |||
+ | ** | ||
Usage | Usage | ||
Ligne 38: | Ligne 66: | ||
• flex-group(value) accepts any positive number - Function for Flexbox' | • flex-group(value) accepts any positive number - Function for Flexbox' | ||
• flex-firefox() Helper function for legacy Firefox (where Flexboxes were treated as inline items). Place it inside the firefox-only selector (@-moz-document url-prefix()). See the example.styl file for an example. | • flex-firefox() Helper function for legacy Firefox (where Flexboxes were treated as inline items). Place it inside the firefox-only selector (@-moz-document url-prefix()). See the example.styl file for an example. | ||
+ | ** | ||
+ | Utilisation | ||
+ | |||
+ | Il suffit de placer le fichier flexbox.styl dans votre projet, puis de l' | ||
+ | |||
+ | Fonctions | ||
+ | |||
+ | • flexbox(valeur) ou la valeur est soit flex, soit inline-flex. | ||
+ | • flex(size, grow, shrink, basis) chaque valeur, sauf grow, est optionnelle. Size est utilisé pour l' | ||
+ | • flex-direction(valeur) la valeur peut être: row, row-reverse, | ||
+ | • flex-wrap(valeur) Accepte les 3 options: nowrap, wrap, wrap-reverse - Fonction pour le flex-wrap de Flexbox. | ||
+ | • flex-justify(valeur) la valeur peut être: start, end, center, space-bottom ou space-around - Fonction pour le justify-content de Flexbox. | ||
+ | • flex-content(valeur) la valeur peut être la même option que pour flex-justify(value) - Fonction pour l' | ||
+ | • flex-align(valeur) la valeur peut être : start, end, stretch, center, baseline - Fonction pour l' | ||
+ | • flex-self(valeur) accepte start, end, auto, center, baseline, stretch - Fonction pour l' | ||
+ | • flex-group(valeur) accepte tout nombre positif - Fonction pour l' | ||
+ | • flex-firefox() fontion d'aide pour les vieux Firefox (où les Flexboxes étaient traitées comme des éléments en ligne). Placez-le dans le sélecteur firefox-only (@-moz-document url-prefix()). Voir par exemple le fichier example.styl. | ||
+ | |||
+ | ===== 2 ===== | ||
+ | ** | ||
Holiday Bonus | Holiday Bonus | ||
Ligne 55: | Ligne 103: | ||
A rough outline (not a working program) is shown top right. | A rough outline (not a working program) is shown top right. | ||
+ | ** | ||
+ | Bonus de vacances | ||
+ | |||
+ | Et, en raison de la période de l' | ||
+ | |||
+ | Cette année, ma solution pour ceci était d' | ||
+ | |||
+ | Nom | ||
+ | Métier | ||
+ | Société | ||
+ | Rue | ||
+ | Ville Code postal | ||
+ | Pays | ||
+ | |||
+ | La seule petite information dans le csv nécessaire pour que cela fonctionne est la position des champs que vous souhaitez utiliser dans l' | ||
+ | |||
+ | Une ébauche (pas un programme qui fonctionne) est montré en haut à droite. | ||
+ | |||
+ | ** | ||
This creates a list where each element is another list containing the values of the fields for that line of the csv file. In other words - it’s a two dimensional list. I iterate over the list using the following code, and then write the necessary sections to the addresses.txt file. | This creates a list where each element is another list containing the values of the fields for that line of the csv file. In other words - it’s a two dimensional list. I iterate over the list using the following code, and then write the necessary sections to the addresses.txt file. | ||
Ligne 63: | Ligne 130: | ||
I hope this has been interesting for at least some users - and perhaps sending large numbers of cards in the new year will be easier. If you have corrections, | I hope this has been interesting for at least some users - and perhaps sending large numbers of cards in the new year will be easier. If you have corrections, | ||
+ | ** | ||
+ | |||
+ | Ceci crée une liste où chaque élément est une autre liste contenant les valeurs des champs de cette ligne du fichier csv. En d' | ||
+ | |||
+ | Une fois que le fichier est créé, vous pouvez copier le texte dans un autre programme pour le formater (ou l' | ||
+ | |||
+ | Un exemplaire complet d'un script qui fonctionne peut être trouvé ici : http:// | ||
+ | |||
+ | J' | ||
issue92/command_conquer.1420643009.txt.gz · Dernière modification : 2015/01/07 16:03 de andre_domenech