1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-05 21:57:32 +02:00

feat: Sticky sections

This commit is contained in:
Phuoc Nguyen
2022-09-21 14:30:45 +07:00
parent 8191785762
commit d166d682ea
289 changed files with 251 additions and 387 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 703 B

View File

@@ -1,3 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM4 11.5518V12.9531H11.6836V9.72656H9.85156L9.79688 11.1143H7.43164V4.62695L8.68945 4.4082V3H7.43164H5.03223H4V4.4082L5.03223 4.62695V11.333L4 11.5518Z" fill="#1975FF"/>
</svg>

Before

Width:  |  Height:  |  Size: 429 B

View File

@@ -1,3 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM4 11.5518V12.9531H11.6836V9.72656H9.85156L9.79688 11.1143H7.43164V4.62695L8.68945 4.4082V3H7.43164H5.03223H4V4.4082L5.03223 4.62695V11.333L4 11.5518Z" fill="black"/>
</svg>

Before

Width:  |  Height:  |  Size: 427 B

View File

@@ -0,0 +1,5 @@
<div class="sticky-sections">
{% for i in range(0, 4) -%}
<section class="sticky-sections__section"></section>
{%- endfor %}
</div>

View File

@@ -2,9 +2,6 @@
<html lang="{{ metadata.language }}">
<head>
<title>{{ title or metadata.title }} - CSS Layout</title>
<link rel="icon" href="/assets/favicon.png" type="image/png" />
<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml" />
<link rel="mask-icon" href="/assets/mask-favicon.svg" color="#1975FF" />
<meta charset="utf-8">
<meta name="author" content="Nguyen Huu Phuoc" />
<meta name="description" content="{{ description or title }}" />

View File

@@ -85,5 +85,5 @@ keywords: css accordion, css flexbox
```
{% demo %}
{% include "patterns/accordion.njk" %}
{% include "covers/accordion.njk" %}
{% enddemo %}

View File

@@ -87,5 +87,5 @@ keywords: css arrow buttons
```
{% demo %}
{% include "patterns/arrow-buttons.njk" %}
{% include "covers/arrow-buttons.njk" %}
{% enddemo %}

View File

@@ -49,5 +49,5 @@ keywords: css avatar, css flexbox
```
{% demo %}
{% include "patterns/avatar-list.njk" %}
{% include "covers/avatar-list.njk" %}
{% enddemo %}

View File

@@ -39,5 +39,5 @@ keywords: css avatar, css flexbox
```
{% demo %}
{% include "patterns/avatar.njk" %}
{% include "covers/avatar.njk" %}
{% enddemo %}

View File

@@ -33,4 +33,4 @@ keywords: css badge, css flexbox
}
```
{% demo %}{% include "patterns/badge.njk" %}{% enddemo %}
{% demo %}{% include "covers/badge.njk" %}{% enddemo %}

View File

@@ -36,5 +36,5 @@ keywords: css flexbox, css icon button
```
{% demo %}
{% include "patterns/button-with-icon.njk" %}
{% include "covers/button-with-icon.njk" %}
{% enddemo %}

View File

@@ -41,4 +41,4 @@ keywords: css card layout, css flexbox, css layout
}
```
{% demo %}{% include "patterns/card-layout.njk" %}{% enddemo %}
{% demo %}{% include "covers/card-layout.njk" %}{% enddemo %}

View File

@@ -42,5 +42,5 @@ keywords: css card, css flexbox
```
{% demo %}
{% include "patterns/card.njk" %}
{% include "covers/card.njk" %}
{% enddemo %}

Some files were not shown because too many files have changed in this diff Show More