Containers
</>| Extra small <768px
|
Small ≥768px
|
Medium ≥992px
|
Large ≥1200px
|
|
|---|---|---|---|---|
container |
100% - 30px | 750px | 970px | 1170px |
container-fluid |
100% - 30px | 100% - 30px | 100% - 30px | 100% - 30px |
Row
</>Column
</>Align any content centered middle
</>Form Control
Basic form
Input Colors (Label + Input)
</>Textarea form-group form-control
Select list dropdown
</>Badges and Labels
Badge
btn > badge
panel > badge
Labels
Default labels
Button Style
Transparent buttons
Block button
Button group (btn-group)
Table
Table Color
| Firstname | Lastname | |
|---|---|---|
| Default | Defaultson | [email protected] |
| <tr class="success"> <td>Success</td> </tr> | Doe | [email protected] |
| <tr class="danger"> <td>danger</td> </tr> | Moe | [email protected] |
| <tr class="info"> <td>info</td> </tr> | Dooley | [email protected] |
| <tr class="warning"> <td>warning</td> </tr> | Refs | [email protected] |
| <tr class="active"> <td>table data</td> </tr> | Activeson | [email protected] |
table table-bordered table-striped table-hover
| # | Firstname |
|---|---|
| 1 | Anna |
| 2 | Debbie |
| 3 | John |
| 4 | Mehedi |
| 5 | Riad |
| # | Firstname |
|---|---|
| 1 | Anna |
| 2 | Debbie |
| 3 | John |
| 4 | Mehedi |
| 5 | Riad |
| # | Firstname |
|---|---|
| 1 | Anna |
| 2 | Debbie |
| 3 | John |
| 4 | Mehedi |
| 5 | Riad |
| # | Firstname |
|---|---|
| 1 | Anna |
| 2 | Debbie |
| 3 | John |
| 4 | Mehedi |
| 5 | Riad |
| # | Firstname |
|---|---|
| 1 | Anna |
| 2 | Debbie |
| 3 | John |
| 4 | Mehedi |
| 5 | Riad |
panel > panel-group
Card
Card with top image
card-title
card-text Lorem ipsum, dolor sit amet consectetur adipisicing elit. Aut, voluptatum.
btn btn-primaryCard with bottom image
Card title
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Last updated 3 mins ago
Card with Header and Footer
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereImage overlays
Horizontal Card
Card title
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Last updated 3 mins ago
Featured card
Featured
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereBackground and color
Primary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
secondary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
success card title
Some quick example text to build on the card title and make up the bulk of the card's content.
danger card title
Some quick example text to build on the card title and make up the bulk of the card's content.
warning card title
Some quick example text to build on the card title and make up the bulk of the card's content.
info card title
Some quick example text to build on the card title and make up the bulk of the card's content.
light card title
Some quick example text to build on the card title and make up the bulk of the card's content.
dark card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Border and text
Primary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
secondary card title
Some quick example text to build on the card title and make up the bulk of the card's content.
success card title
Some quick example text to build on the card title and make up the bulk of the card's content.
danger card title
Some quick example text to build on the card title and make up the bulk of the card's content.
warning card title
Some quick example text to build on the card title and make up the bulk of the card's content.
info card title
Some quick example text to build on the card title and make up the bulk of the card's content.
light card title
Some quick example text to build on the card title and make up the bulk of the card's content.
dark card title
Some quick example text to build on the card title and make up the bulk of the card's content.
Card Group
Card title
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Natus quaerat praesentium eligendi vitae. Ex, sed!
Card title
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dignissimos odit vero quos necessitatibus! Enim, iure totam. Ea similique, explicabo officia doloribus voluptatibus numquam iure eius illo omnis quas doloremque deserunt quasi! Sapiente.
Card title
Lorem ipsum dolor sit amet.
Card with Nav tab
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereMenu 1
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Menu 2
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
Card with Nav pill
Special title treatment
With supporting text below as a natural lead-in to additional content.
Go somewhereMenu 1
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Menu 2
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
Card with Quote
A well-known quote, contained in a blockquote element.
Collapse (Accordion)
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Dicta perspiciatis illum vero temporibus, odit omnis maiores sed quidem iure dolore aliquid explicabo distinctio nam excepturi voluptas facere quae tempore. Alias, distinctio cumque?
Collapsible Card Group
Collapsible Panel Group
Alert
Alert Links
Dropdown
Modal
Welcome to observer area
<div id="" class="" observer="true" funcName="" onHideFuncName=""></div>
observer="true" andthis function for visible element
funcName=""& this function for invisible element
onHideFuncName=""
CSS Flex
| Media table | ||||
|---|---|---|---|---|
| xs | sm | md | lg | xxl |
| <767px | ≥768 | ≥992 | ≥1200 | ≥1400 |
Enable flex behaviors
Justify content
justify-content- or align-items / content also working with
media xs / sm / md / lg and xxl
Align items
Align self
Flex Fill
Flex Grow
Fkex Shrink
Flex Direction
d-flex flex-row-reverse
Flex Direction
d-flex flex-row
d-flex flex-column
d-flex flex-column-reverse
Utilities Spacing
Margin and padding
Assign responsive-friendly margin or padding values to an
element or a subset of its
sides with shorthand classes.
Notation
Spacing utilities that apply to all breakpoints, from xs to
lg and bonus feature is
xxl also
The classes are named using the format {property}{sides}-{size} for
xs and
{property}{sides}-{breakpoint}-{size} for xs,
sm,
md, lg,
and bonus xxl.
Where property is one of:
m- for classes that setmarginp- for classes that setpadding
Where sides is one of:
t- for classes that setmargin-toporpadding-topb- for classes that setmargin-bottomorpadding-bottoms- (start) for classes that setmargin-leftorpadding-leftin LTR,margin-rightorpadding-rightin RTLe- (end) for classes that setmargin-rightorpadding-rightin LTR,margin-leftorpadding-leftin RTLx- for classes that set both*-leftand*-righty- for classes that set both*-topand*-bottom- blank - for classes that set a
marginorpaddingon all 4 sides of the element
Where size is one of:
0- for classes that eliminate themarginorpaddingby setting it to01- (by default) for classes that set themarginorpaddingto1px2- (by default) for classes that set themarginorpaddingto2px3- (by default) for classes that set themarginorpaddingto3px4- (by default) for classes that set themarginorpaddingto4px5- (by default) for classes that set themarginorpaddingto5px6- (by default) for classes that set themarginorpaddingto6px7- (by default) for classes that set themarginorpaddingto7px8- (by default) for classes that set themarginorpaddingto8px9- (by default) for classes that set themarginorpaddingto9px10- (by default) for classes that set themarginorpaddingto10px15- (by default) for classes that set themarginorpaddingto15px20- (by default) for classes that set themarginorpaddingto20px25- (by default) for classes that set themarginorpaddingto25px50- (by default) for classes that set themarginorpaddingto50pxauto- for classes that set themargintoauto
Examples
Here are some representative examples of these classes:
.mt-0 {
margin-top: 0px;
}
.ml-0, .ms-0 {
margin-left: 0px;
}
.mb-0 {
margin-bottom: 0px;
}
.mr-0, .me-0 {
margin-right: 0px;
}
.mx-0 {
margin-inline: 0px;
}
.my-0 {
margin-block: 0px;
}
.m-auto {
margin: auto;
}
Horizontal centering
Additionally, osl-css-framework also includes an .mx-auto class for
horizontally
centering fixed-width block
level content—that is, content that has display: block and a
width set—by setting the
horizontal margins to auto.
Verticallly centering
Additionally, osl-css-framework also includes an .my-auto class for
Verticallly
centering fixed-height block
level content
Utilities Position
This utilities for Position relative / absolute / fixed / sticky etc
set position using class:
position-relativeorrelativefor position: relativeposition-absoluteorabsolutefor position: absoluteposition-absolute-autoorabsolute-autoorposition-absolute-middleorabsolute-middlefor position: middle on relative contentposition-fixedorfixedfor position: fixedposition-staticorstaticfor position: staticposition-stickyorstickyfor position: stickyposition-inheritfor position: inheritposition-unsetfor position: unset
Where sides is one of:
tortop- for classes that settopborbottom- for classes that setbottoms/lorstart/left- for classes that setlefte/rorend/right- for classes that setright- for classes that setright
----- new
inset-0for classes that set top + right + bottom + left 0pxinset-x-0orinset-block-0- for classes that set both*-leftand*-right0inset-y-0orinset-inline-0- for classes that set both*-topand*-bottom0
Where size is one of:
0- for classes that eliminate the above/below by setting it to0px1- (by default) for classes that set the1px2- (by default) for classes that set the2px3- (by default) for classes that set the3px4- (by default) for classes that set the4px5- (by default) for classes that set the5px6- (by default) for classes that set the6px7- (by default) for classes that set the7px8- (by default) for classes that set the8px9- (by default) for classes that set the9px10- (by default) for classes that set the10px15- (by default) for classes that set the15px20- (by default) for classes that set the20px25- (by default) for classes that set the25px50- (by default) for classes that set the50pxauto- for classes that set theauto
Utilities Font weight and style
This utilities for font-weight and font-style
set font weight using class:
fw-boldorfont-boldfor font-weight: boldfw-bolderorfont-bolderfor font-weight: bolderfw-lighterorfont-lighterfor font-weight: lighterfw-100orfont-100for font-weight: 100fw-200orfont-200for font-weight: 200fw-300orfont-300orfw-lightorfont-lightfor font-weight: 300fw-400orfont-400orfw-normalorfont-normalfor font-weight: 400fw-500orfont-500for font-weight: 500fw-600orfont-600for font-weight: 600fw-700orfont-700for font-weight: 700fw-800orfont-800for font-weight: 800fw-900orfont-900for font-weight: 900fw-950orfont-950for font-weight: 950fst-italicorfont-italicorfont-style-italicfor font-style: italicfst-normalorfont-style-normalfor font-style: normal
Utilities Font size
font-size increase using parent font-size
fs-1= parentFontSize *1; }fs-1_1= parentFontSize *1.1; }fs-1_2= parentFontSize *1.2; }fs-1_3= parentFontSize *1.3; }fs-1_4= parentFontSize *1.4; }fs-1_5= parentFontSize *1.5; }fs-1_6= parentFontSize *1.6; }fs-1_7= parentFontSize *1.7; }fs-1_8= parentFontSize *1.8; }fs-1_9= parentFontSize *1.9; }fs-2= parentFontSize *2; }fs-2_5= parentFontSize *2.5; }fs-3= parentFontSize *3; }fs-3_5= parentFontSize *3.5; }fs-4= parentFontSize *4; }fs-4_5= parentFontSize *4.5; }fs-5= parentFontSize *5; }fs-5_5= parentFontSize *5.5; }fs-6= parentFontSize *6; }fs-6_5= parentFontSize *6.5; }
Utilities Color
This utilities for set background / text color
set text and background both using class:
- text-bg-primary
- text-bg-secondary
- text-bg-success
- text-bg-danger
- text-bg-warning / text-bg-warn
- text-bg-info
- text-bg-light
- text-bg-dark
set background color using class:
- bg-light / bg-white
- bg-primary
- bg-secondary
- bg-disabled
- bg-success
- bg-danger
- bg-warning / bg-warn
- bg-info
- bg-dark text-light
- bg-transparent border
set text color using class:
- text-primary
- text-secondary
- text-success
- text-danger
- text-warning
- text-info
- bg-dark text-light
- text-dark
Utilities Show / Hide / visible / invisible
This utilities for show and hide
hide / hiddenfor classes that set the display: none;showfor classes that set the display: block;invisiblefor classes that set the visibility: hidden;affixfor classes that set the position: fixed; with z-index: 1029;
Utilities Table Cell Align
The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box.
| align-baseline | align-top | align-middle | align-bottom |
| text-left | text-start | text-right | text-end |
| text-justify Lorem ipsum, dolor sit amet consectetur adipisicing elit. Exercitationem, reiciendis! | text-center |
top: ⭐ middle: ⭐ bottom: ⭐ super: ⭐ sub: ⭐ text-top: ⭐ text-bottom: ⭐
Section Scroll
Customize your scrollbar
Use class customScrollbar
assign Variables for customize :
scrollbar size --scroll-thumb-color: #ff000051;
scrollbar color --scroll-size: 10px;
Scroll X set width
--scrollX-width: 100%;
Scroll Y set height
--scrollY-height: 500px
Scroll Both set height and width
--scrollBoth-height: 500px;
--scrollBoth-width: 100%;
Text Selection
user-select-all
user-select-auto
user-select-none
Border
border-0
border-top-0
border-end-0
border-right-0
border-bottom-0
border-start-0
border-left-0
JavaScript Global Variables, It's update with event lister
-
isScrollTop→ It's returntrue / falseafter scroll -
checkImageUrl('https://****.com')→ It's returntrue / falseafter check. async func -
getDomainFromUrl('https://****.com')→ It's returndomain name -
copyContent('copy target', 'type', 'successMessageTarget element')↓ more detailsCopy contentExample 1: String pass #ID or .ClassName with hash '#' / dot '.'
copyContent('#demoTarget', 'text', #successMessageTarget); copyContent('.demoTarget', 'html', .successMessageTarget);Example 2: JavaScript
const demoTarget = document.querySelector('#demoTarget'); copyContent(demoTarget); const demoTarget2 = document.querySelector('.demoTarget2'); copyContent(demoTarget2);Example 3: jQuery
copyContent($('#demoTarget')); copyContent($('.demoTarget')); -
getRandomHexColor()→ It's return random hex color code as"#198754"Reload color