-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd86457
commit b143da3
Showing
33 changed files
with
238 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
extends ../layout.pug | ||
|
||
block variables | ||
- var title = 'Grid system' | ||
- var page = 'grid' | ||
|
||
block content | ||
h2.section-title Grid system | ||
p This Flexbox-based grid system, inspired by Bootstrap, allows for easy, responsive layouts. Here’s a quick guide on how to use it: | ||
|
||
h3 Flexbox Grid System Tutorial | ||
|
||
.tutorial-container | ||
h4 Step 1: Set Up a Container | ||
p Start by adding a container to center and add padding around your content. | ||
pre | ||
code.language-html | ||
| <div class="container"> | ||
| <div class="row"> | ||
| <div class="col col-12">Full Width Column</div> | ||
| </div> | ||
| </div> | ||
|
||
h4 Step 2: Use Rows to Wrap Columns | ||
p Wrap your columns in a row to structure them in a horizontal layout. | ||
pre | ||
code.language-html | ||
| <div class="row"> | ||
| <div class="col col-6">Half Width</div> | ||
| <div class="col col-6">Half Width</div> | ||
| </div> | ||
|
||
h4 Step 3: Define Columns with Responsive Classes | ||
p Assign column classes to control width at different screen sizes: | ||
pre | ||
code.language-html | ||
| <div class="row"> | ||
| <div class="col-sm-12 col-md-6 col-lg-4">Responsive Column</div> | ||
| <div class="col-sm-12 col-md-6 col-lg-4">Responsive Column</div> | ||
| <div class="col-sm-12 col-md-6 col-lg-4">Responsive Column</div> | ||
| </div> | ||
|
||
h4 Step 4: Responsive Adjustments | ||
p As the viewport changes, columns adjust based on their class. For instance: | ||
ul | ||
li `col-12`: Full width on all screens | ||
li `col-md-6`: Half width on medium and larger screens | ||
li `col-lg-4`: One-third width on large screens | ||
|
||
h4 Step 5: Example of Nested Columns | ||
p You can nest rows within columns for more complex layouts: | ||
pre | ||
code.language-html | ||
| <div class="container"> | ||
| <div class="row"> | ||
| <div class="col col-6"> | ||
| <div class="row"> | ||
| <div class="col col-6">Nested Column</div> | ||
| <div class="col col-6">Nested Column</div> | ||
| </div> | ||
| </div> | ||
| <div class="col col-6">Half Width Column</div> | ||
| </div> | ||
| </div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@use 'sass:map'; | ||
|
||
$grid: () !default; | ||
$grid: map.merge( | ||
( | ||
'container-max-width': 1320px, // Maximum width of the container | ||
'grid-columns': 12, // 12 columns by default | ||
'gutter-width': 1.5rem, // 1.5rem gutters | ||
'grid-breakpoints': ( | ||
'xs': 0, // Extra small devices (portrait phones) | ||
'sm': 576px, // Small devices (landscape phones) | ||
'md': 768px, // Medium devices (tablets) | ||
'lg': 992px, // Large devices (desktops) | ||
'xl': 1200px, // Extra large devices (large desktops) | ||
'xxl': 1400px // Extra extra large devices (larger desktops) | ||
), | ||
'container-widths': ( | ||
'sm': 540px, | ||
'md': 720px, | ||
'lg': 960px, | ||
'xl': 1140px, | ||
'xxl': 1320px | ||
) | ||
), | ||
$grid | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.