Skip to content

Commit b0959a8

Browse files
committed
Add Overflow docs
1 parent 3568fad commit b0959a8

File tree

3 files changed

+35
-25
lines changed

3 files changed

+35
-25
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
global $data_var;
33
$data_var = array(
4-
'main_title' => '[Name]',
5-
'seo_title' => '[Name] - Bootstrap 5 & Material Design 2.0',
6-
'description' => '[Name] built with the latest Bootstrap 5 & Material Design 2.0. Multiple examples, a user-friendly guide, extensive API, and customization tools',
7-
'url' => 'https://mdbootstrap.com/docs/standard/utilities/',
8-
'image' => '',
4+
'main_title' => 'Overflow',
5+
'seo_title' => 'Overflow - Bootstrap 5 & Material Design 2.0',
6+
'description' => 'Overflow utilities built with the latest Bootstrap 5 & Material Design 2.0. Multiple examples, a user-friendly guide, extensive api, and customization tools',
7+
'url' => 'https://mdbootstrap.com/docs/standard/utilities/overflow/',
8+
'image' => 'https://mdbootstrap.com/wp-content/themes/mdbootstrap4/content-gh/en/_mdb5/standard/web/docs/utilities/overflow/overflow.jpg',
99
'video' => 'https://www.youtube.com/watch?v=c9B4TPnak1A',
1010
);

en/_mdb5/standard/web/docs/utilities/overflow/o-ss.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,3 @@
44
<li class="nav-item">
55
<a class="nav-link" href="#section-basic-example">Basic example</a>
66
</li>
7-
<!-- Subsections (if needed) -->
8-
<li class="nav-item">
9-
<a class="nav-link" href="#section-">Section</a>
10-
<ul class="nav flex-column pl-3">
11-
<li class="nav-item">
12-
<a class="nav-link" href="#subsection-">Subsection</a>
13-
</li>
14-
<li class="nav-item">
15-
<a class="nav-link" href="#subsection-">Subsection</a>
16-
</li>
17-
</ul>
18-
</li>

en/_mdb5/standard/web/docs/utilities/overflow/o.html

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2 class="h1 font-weight-bold"><?= $data_var['main_title']; ?></h2>
99
<h1 class="h6"><?= $data_var['seo_title']; ?></h1>
1010

1111
<!-- Description -->
12-
<p></p>
12+
<p>Use these shorthand utilities for quickly configuring how content overflows an element.</p>
1313
</section>
1414
<!--Section: Introduction-->
1515

@@ -20,21 +20,43 @@ <h1 class="h6"><?= $data_var['seo_title']; ?></h1>
2020
<!-- Section title -->
2121
<h2 class="mb-4">Basic example</h2>
2222

23+
<p>
24+
Barebones <code>overflow</code> functionality is provided for two values by default, and they
25+
are not responsive.
26+
</p>
27+
2328
<!--Section: Demo-->
24-
<section class="border p-4 text-center mb-4"></section>
29+
<section class="border p-4 d-flex justify-content-center mb-4">
30+
<div
31+
class="overflow-auto p-3 mb-3 mb-md-0 mr-md-3 bg-light"
32+
style="max-width: 260px; max-height: 100px;"
33+
>
34+
This is an example of using <code>.overflow-auto</code> on an element with set width and
35+
height dimensions. By design, this content will vertically scroll.
36+
</div>
37+
38+
<div class="overflow-hidden p-3 bg-light" style="max-width: 260px; max-height: 100px;">
39+
This is an example of using <code>.overflow-hidden</code> on an element with set width and
40+
height dimensions.
41+
</div>
42+
</section>
2543
<!--Section: Demo-->
2644

2745
<!--Section: Code-->
28-
<section>
46+
<section class="mb-4">
2947
<mdbsnippet>
30-
<code data-lang="html" data-name="HTML"> </code>
31-
32-
<code data-lang="css" data-name="CSS"> </code>
33-
34-
<code data-lang="js" data-name="JavaScript"> </code>
48+
<code data-lang="html" data-name="HTML">
49+
<div class="overflow-auto">...</div>
50+
<div class="overflow-hidden">...</div>
51+
</code>
3552
</mdbsnippet>
3653
</section>
3754
<!--Section: Code-->
55+
56+
<p>
57+
Using Sass variables, you may customize the overflow utilities by changing the
58+
<code>$overflows</code> variable in <code>_variables.scss</code>.
59+
</p>
3860
</section>
3961
<!--Section: Basic example-->
4062

0 commit comments

Comments
 (0)