home.social

#cssgrid — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cssgrid, aggregated by home.social.

fetched live
  1. 𝗙𝗿𝗲𝗲 𝘃𝗶𝗱𝗲𝗼 𝘀𝗲𝗿𝗶𝗲𝘀 𝘁𝗼 𝗹𝗲𝗮𝗿𝗻 𝗖𝗦𝗦 𝗚𝗿𝗶𝗱:

    #Videos #Courses #CSSGrid

    thewhale.cc/posts/free-video-s

    Learn CSS Grid with 25 online videos (4 hours) recorded by Wes Bos to learn from fundamentals to real examples.

  2. In #Google #Chrome, it is possible to apply self-alignment attributes such as align-self, justify-self, and place-self to the grid container within a block element. According to the official specification, this should not be possible. #Firefox is more precise in this case, so it is only possible to align an element (grid subelement) within a grid container itself.

    w3.org/TR/css-grid-1/#alignment

    #css #frontend #web #development #browser #cssgrid #grid #w3c #webstandards web #technology

  3. In #Google #Chrome, it is possible to apply self-alignment attributes such as align-self, justify-self, and place-self to the grid container within a block element. According to the official specification, this should not be possible. #Firefox is more precise in this case, so it is only possible to align an element (grid subelement) within a grid container itself.

    w3.org/TR/css-grid-1/#alignment

    #css #frontend #web #development #browser #cssgrid #grid #w3c #webstandards web #technology

  4. So I saw a demo in the @codepen Spark and I liked the idea, but it was too JS-heavy for my taste, plus I would have preferred the rotation animations to be "hinged" around the top/ bottom edge depending on direction.

    So I did it with pure #CSS on scroll codepen.io/thebabydino/pen/JoK

    cc @bramus

    #cssScrollAnimation #scrollEffect #code #cssTransforms #cssTransform #css3D #3D #coding #frontend #cssLayout #web #dev #webDev #webDevelopment #cssGrid #cssFlex #flexbox #cssVariables #cssTransition

  5. So I saw a demo in the @codepen Spark and I liked the idea, but it was too JS-heavy for my taste, plus I would have preferred the rotation animations to be "hinged" around the top/ bottom edge depending on direction.

    So I did it with pure #CSS on scroll codepen.io/thebabydino/pen/JoK

    cc @bramus

    #cssScrollAnimation #scrollEffect #code #cssTransforms #cssTransform #css3D #3D #coding #frontend #cssLayout #web #dev #webDev #webDevelopment #cssGrid #cssFlex #flexbox #cssVariables #cssTransition

  6. Simple pricing cards - a demo I made on @codepen: codepen.io/thebabydino/pen/ZYO

    I've posted even cooler pure #CSS ones (non-rectangular shapes + rounded corners, glassmorphism + border effects combined) for Ko-fi & Patreon supporters:

    ❇️ ko-fi.com/anatudor/tiers

    ❇️ patreon.com/c/anatudor/members

    #cssGrid #cssClipPath #clipping #code #web #dev #webDev #webDevelopment #coding #frontend

  7. Simple pricing cards - a demo I made on @codepen: codepen.io/thebabydino/pen/ZYO

    I've posted even cooler pure #CSS ones (non-rectangular shapes + rounded corners, glassmorphism + border effects combined) for Ko-fi & Patreon supporters:

    ❇️ ko-fi.com/anatudor/tiers

    ❇️ patreon.com/c/anatudor/members

    #cssGrid #cssClipPath #clipping #code #web #dev #webDev #webDevelopment #coding #frontend

  8. The tiny details make the difference - check out those roundings in the cards demo!

    Even cooler: the shape depends on the size of the sibling it wraps around, no magic numbers. If we need the shape to grow (for ex if we want it to have more content), there's no need to change any clip-path or mask.

    #CSS #SVG #filter #svgFilter #cssSubgrid #cssLayout #cssGrid

  9. The tiny details make the difference - check out those roundings in the cards demo!

    Even cooler: the shape depends on the size of the sibling it wraps around, no magic numbers. If we need the shape to grow (for ex if we want it to have more content), there's no need to change any clip-path or mask.

    #CSS #SVG #filter #svgFilter #cssSubgrid #cssLayout #cssGrid

  10. This is what I see browsers actually doing: what I want in my simple, no wrap use case.

    Slightly different things in the hypothetical case.

    Chrome, Firefox, Epiphany below.

    Also, please don't make fun of my browser themes. I'm a visual person, so I use themes that visually differentiate one browser from another.

    #CSS #cssGrid #cssLayout

  11. This is what I see browsers actually doing: what I want in my simple, no wrap use case.

    Slightly different things in the hypothetical case.

    Chrome, Firefox, Epiphany below.

    Also, please don't make fun of my browser themes. I'm a visual person, so I use themes that visually differentiate one browser from another.

    #CSS #cssGrid #cssLayout

  12. How to use wa-grid with Vue

    Last month, we explored using wa-card with Vue.js. In the final example, we created a grid layout using CSS, but Web Awesome also enables this with a WA component. Today, we’ll extend that example by integrating the WA component. Previously, we learned how to center content using Bulma and Bootstrap. WA provides a similar approach to these frameworks.

    Web Awesome wants a basic grid to look like this:

    <div class="wa-grid">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>

    You can get fancier with spans or gap definitions, but this is all you really need. So, what does the result look like?

    CodePen Embed Fallback

    The result looks very similar to what we did in the fourth wa-card example. The big difference is that it is more fully Web-Awesome-ized. We could end here, but we could also examine what it looks like with more data in the photos array. You might have guessed that the hard-coded examples come from JWS Pictures. When I created it, I ensured that all.json and all.xml were included so you can retrieve all the photos in your Vue app. If we add an onMounted() lifecycle hook, we can load the photos defined in the JSON file once the component has been mounted. Let’s see what that would look like.

    CodePen Embed Fallback

    Adding all the photos doesn’t seem to affect the design. In fact, it looks pretty good. I don’t want to just dump photos onto the page, so let’s see what Array.prototype.sort() can do for us.

    CodePen Embed Fallback

    Now, the images are sorted from newest to oldest rather than in the order they appear in the JSON file. The next step would be to sort and group the photos simultaneously. This way, it becomes clearer which photos belong to which batches. A photosByYear computed ref would allow for that.

    CodePen Embed Fallback

    The computed ref has properties for a year value and the photos taken in that year. Next time, we will see how we can further evolve this project.

    First example: https://codepen.io/steinbring/pen/gbPJLLK/e3b93e220312e05d6c51444c22ed12ba

    Second example: https://codepen.io/steinbring/pen/xbZNReX/9b05838c6096c00e08690c24900cd9be

    Third example: https://codepen.io/steinbring/pen/GgqKjwM/22f21efec564bee348b1db9eb8dd90de

    Fourth example: https://codepen.io/steinbring/pen/bNebwyx/5dadf66f9b55153a63a02d713f12ccc8

    #CSSGrid #displayGrid #VueJs #WebAwesome
  13. Interessante Features des CSS Grid Layouts

    CSS Grids erlauben Layouts die weit über die Gestaltungsmöglichkeiten von Floats und auch der Flexbox hinausgehen. Manuel Matuzovic präsentiert einige interessante und nützliche CSS Grid Layout-Features – beispielsweise negative Werte – und veranschaulicht diese anhand von Beispielen. Direkter Link zum Artikel

    kulturbanause.de/news/interess

  14. Explicit und Implicit Grids im CSS Grid Layout

    Das CSS Grid Layout bietet die Möglichkeit, Raster in CSS zu definieren und Objekte in Rasterzellen zu platzieren. Dabei müssen wir nicht jede Zelle, Spalte und Zeile manuell angeben und ebenso wenig müssen wir jedes Objekt manuell platzieren. CSS Grids sind flexibel genug, um sich Objekte automatisch zu platzieren. Dies wird durch das sogenannte explizite und implizite Raster gehandhabt. Um was es sich dabei handelt und worin der Unterschied besteht, erläutert Manuel Matuzovic. Direkter […]

    kulturbanause.de/news/explicit

  15. CSS Grid Layout und die repeat-Funktion

    Bei einer großen Anzahl von Spalten und/oder Zeilen können die CSS-Anweisungen durch die repeat-Notation präziser und leichter verständlich gestaltet werden. Die repeat-Funktion kann in den CSS-Grid-Eigenschaften grid-template-columns und grid-template-rows verwendet werden. Eine Übersicht vermittelt alligator.io. Direkter Link zum Artikel

    kulturbanause.de/news/css-grid

  16. Die Einheit »fr« im CSS Grid Layout

    Mit dem CSS Grid Layout erhalten wir eine neue Längeneinheit: Die fr-Einheit. fr ist eine Brucheinheit und 1fr ist 1 Teil des verfügbaren Platzes. Robin Rendle erklärt die flexible Längeneinheit und zeigt Vorteile auf. Direkter Link zum Artikel

    kulturbanause.de/news/die-einh

  17. Die minmax() Funktion des CSS Grid Layouts

    Eine der vielen neuen Eigenschaften des CSS Grid Layouts ist die äußerst nützliche minmax()-Funktion. Ire Aderinokun vermittelt alles Wissenswerte rund um dieses neue Merkmal und zeigt anhand von Beispielen die Einsatzgebiete der sechs verschiedenen Wertetypen. Direkter Link zum Artikel

    kulturbanause.de/news/minmax-c