Advertisement
Advertisement

More Related Content

Advertisement

The Great State of Design with CSS Grid Layout and Friends

  1. GreatTHE Design S TATE O F with CSS Grid Layout and friends Front-End Camp 2017
  2. display: none !important; classification job titles
  3. shape-outside
  4. ? Is web design a solved problem
  5. ‘‘ Douglas Adams I love the whooshing noise they make as they go by. I love deadlines.
  6. craft & create Artist Spotlight Shyama Golden Shyama Golden,1 known for her huge, humorous paintings, has transitioned from being a graphic designer to an illustrator and, more recently, from oil paints to the iPad. interview Elliot Jay Stocks artwork courtesy of Shyama Golden D id you always want to be an illustrator? Yes—I’ve been drawing ever since I was really little, but I studied graphic design when I went to col- lege, and pretty much worked solely on graphic design for 10 years after that. However, the school I went to was really focused on studio art; it was more traditional, I think, than most schools. I did a lot of screen printing too, which I love because it uses both the problem- solving skills of a designer and the drawing skill of an illustrator. I stuck with graphic design for a really long time, but there was always a part of me that wanted to draw more. Recently I’ve transitioned into doing that: these days I do branding and identity design as a part-time job, and spend most of my time doing illustration. Even with 80 1. shyamagolden.com
  7. .intro::first-letter { initial-letter: 7; } initial-letter ::first-letter 7
  8. @supports (property: value) { property: value; } @supports ( property: value ) feature queries
  9. @supports (initial-letter: 7) { .intro::first-letter { initial-letter: 7; } } initial letter
  10. @supports (initial-letter: 7) or (-webkit-initial-letter: 7) { .intro::first-letter { initial-letter: 7; -webkit-initial-letter: 7; } } initial letter
  11. ::initial-letter::initial-letter
  12. ::initial-letter::initial-letter
  13. blending mode background-blend-mode: value ; background-blend-mode: multiply;
  14. Shape-inside
  15. h1 { } background-color: #fff; mix-blend-mode: screen;
  16. .bg { } filter: sepia(30%);
  17. css filter
  18. http://codepen.io/stacy/pen/86840fb6d32b941a73e5435f4f27d4e9?editors=1100
  19. shape-outside: circle(); geometric shapes that can be applied to floated elements css shapes
  20. CSS Shapes
  21. prevents a portion of an element from getting displayed clip-path clip-path: url(#svgname);
  22. clip-path: $path; shape-outside: $path;
  23. css “layout” methods history tables flexbox floats grid
  24. flexbox or
  25. grid-template-columns rows size, size, … ; grid-template-columns: 25% 50% 25%;
  26. fraction unit fr calculation of the remaining space after any fixed items have been accounted for
  27. grid-template-columns: 1fr 2fr 1fr; display: grid; .grid-parent { 1fr 2fr 1fr
  28. grid-template-columns: 1fr 2fr 1fr; display: grid; .grid-parent {
  29. grid-template-columns: 25% 50% 25%; display: grid; .grid-parent {
  30. grid-gap: 1rem; grid-template-columns: 1fr 2fr 1fr; display: grid; .grid-parent {
  31. display: grid; .grid-parent { grid-gap: 1rem; grid-template-columns: 25% 50% 25%;
  32. grid-template-columns: 1fr 2fr 1fr; display: grid; .grid-parent {
  33. grid-template-columns: 1fr 2fr 50vw; display: grid; .grid-parent {
  34. grid-template-columns: 1fr 2fr 50vw 100px; display: grid; .grid-parent {
  35. display: grid; .grid-parent { grid-template-columns: 1fr 2fr 50vw 100px 12rem;
  36. display: grid; .grid-parent { grid-template-columns: 1fr 2fr 50vw 100px 9rem 5%;
  37. grid-template-columns: 1fr 1fr 1fr; display: grid; .grid-parent {
  38. repeat( number of repitions, size ) repeat grid-template-columns: repeat(3, 1fr);
  39. grid-template-columns: repeat(3, 1fr); display: grid; .grid-parent {
  40. grid-column-start / grid-column-end | grid-column: value; grid-column: 1 / 4; grid-column
  41. grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-column-start: 1; .grid-cell { }
  42. grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-column-start: 1; .grid-cell { grid-column-end: 4; }
  43. grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-column: 1 / 4; .grid-cell { }
  44. grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-column: 1 / span 3; .grid-cell { }
  45. span span number ; grid-column: 1 / span 3;
  46. grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-column: 1 / -1; .grid-cell { }
  47. -x grid-column: 1 / -1; -x = span x number of tracks counting from opposite end
  48. 3 2 1 grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-column: 1 / -3; .grid-cell { }
  49. grid-row-start / grid-row-end | grid-row: value; grid-row grid-row: 1 / 4;
  50. grid-template-columns: repeat(4, 1fr);
 grid-template-rows: repeat(4, 1fr); display: grid; .grid-parent { } grid-row-start: 1 ; .grid-cell { }
  51. grid-template-columns: repeat(4, 1fr);
 grid-template-rows: repeat(4, 1fr); display: grid; .grid-parent { } grid-row-start: 1 ; grid-row-end: 3 ; .grid-cell { }
  52. grid-template-columns: repeat(4, 1fr);
 grid-template-rows: repeat(4, 1fr); display: grid; .grid-parent { } grid-row: 1 / 3 ; .grid-cell { }
  53. grid-template-columns: repeat(4, 1fr);
 grid-template-rows: repeat(4, 1fr); display: grid; .grid-parent { } grid-row: 1 / span 2; .grid-cell { }
  54. grid-template-columns: repeat(4, 1fr);
 grid-template-rows: repeat(4, 1fr); display: grid; .grid-parent { } grid-row: 1 / - 1; .grid-cell { }
  55. grid-row-start / grid-column-start / grid-row-end / grid-column-end grid-area grid-area: 1/1/3/4;
  56. grid-template-columns: repeat(4, 1fr); display: grid; .grid-parent { } grid-area: 1 / 1 / 4 / 3 ; .grid-cell { }
  57. [ line-name ] size [ naming-is-hard another-name ] size named lines grid-column:naming-is-hard;
  58. grid-template-columns: 1fr [ohyeah] 1fr 1fr [ok] 1fr; display: grid; .grid-parent { } grid-column: ohyeah / ok; .grid-cell { }
  59. grid-row-start / grid-column-start / grid-row-end / grid-column-end grid-area: row-main / col-large / row-gallery / col-small; grid-area
  60. “header” “byline” “content” “aside” “footer”; grid-template-areas:
  61. header { grid-area: header; } grid-area named area
  62. “header header header” “content content byline” “………………… aside ………………” “footer footer footer”; grid-template-areas:
  63. size grid-auto-rows: 30vh; grid-auto-columns rows
  64. row - fill in each row in turn, adding new rows as necessary column - fill in each column in turn, adding new columns as necessary dense - fill in holes earlier in the grid if smaller items come up later sparse | dense & row | column grid-auto-flow
  65. grid-auto-flow grid-auto-flow: dense; sparse | dense & row | column
  66. grid-template-columns: repeat(3, 1fr); display: grid; .grid-parent { } grid-auto-flow: dense;
  67. minmax minmax( min size, max size ) grid-auto-rows: minmax(100px, 300px);
  68. auto-fill repeat( auto-fill, size ) grid-template-columns: repeat(auto-fill, 1fr);
  69. put it all together repeat( auto-fill, minmax( min size, max size ) ) grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
  70. grid-gap grid-column-gap | grid-row-gap: size grid-gap:30px; px, rem, em, %
  71. .gallery { display: grid; grid-gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: minmax(26vh, 190px); }
  72. display: grid;
  73. grid-gap: 1rem;
  74. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  75. grid-auto-rows: minmax(26vh, 190px);
  76. flexbox or grid?
  77. css exclusions arbitrary areas around which inline content can flow
  78. css regions Allow content from one or more elements to flow through one or more boxes called CSS Regions.
  79. CSS Regions CSS Regions and Exclusions
  80. Noooooo!
  81. css regions + exclusions
  82. Wilson Miner “When We Build” ‘‘We’re actually in the process of building an environment where we’ll spend most of our time for the rest of our lives …
  83. igalia.github.io/css-grid-layout/gridbyexample.com labs.jensimmons.com codepen.io/collection/XRRJGq resources css-tricks guide to grid drafts.csswg.org/css-grid/ codepen.io/collection/DjVBvr
  84. Stacy Kvernmo @StacyKvernmo GreatTHE Design S TATE O F
Advertisement