Skip to content

Heifarabuval/Fake-Framework-Bootstrap

Repository files navigation

LinkedIn


Logo

Css Framework

Quickly design and customize responsive pages.

Table of Contents
  1. About The Project
  2. Installation
  3. Usage

About The Project

Product Name Screen Shot

This project reproduce a number of bootstrap features.

Restrictions:

  • Use Sass for css part
  • Use Jquery for javascript part

Installation

What you need to use the framework and how to install it:

  1. First import jQuery library in your HTML head before including the framework :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  1. Import the framework:
<script rel="script" src="Scripts/main.js"></script>

Now you should be able to use the framework.

Usage

Responsive

Create responsive view using col- class :

<div class="container">
    <div class="row">
        <div class="col-12-xs col-12-sm col-12-md col-12-lg box box--blue">Box1</div>
        <div class="col-12-xs col-12-sm col-6-md col-3-lg box box--violet">Box2</div>
        <div class="col-12-xs col-12-sm col-6-md col-3-lg box box--red">Box3</div>
        <div class="col-12-xs col-12-sm col-6-md col-3-lg box box--yellow">Box4</div>
        <div class="col-12-xs col-12-sm col-6-md col-3-lg box box--green">Box5</div>
    </div>
</div>

Scss

.box{
  padding-bottom: 50px;
  box-sizing: border-box;
  margin: 5px;

  &--blue{
    background-color: blue;
  }
  &--violet{
    background-color: blueviolet;
  }
  &--red{
    background-color: red;
  }
  &--yellow{
    background-color: yellow;
  }
  &--green{
    background-color: green;
  }
}

Result

Laptop Tablet Phone
Logo Logo Logo

Buttons

Create buttons using btn- class :

<button type="button" class="btn">Button basic</button>
<button type="button" class="btn-default">Button default</button>
<button type="button" class="btn-primary btn-lg" disabled>Button primary large</button>
<button type="button" class="btn-success btn-sm">Button success small</button>
<button type="button" class="btn-info btn-xs">Button info</button>
<button type="button" class="btn-warning">Button warning</button>
<button type="button" class="btn-danger">Button danger</button>
<button type="button" class="btn-link">Button link</button>

Result Logo


Images

Change images style using images- class :

<div class="row">
    <div class="img-container col-4-lg col-4-sm col-4-md col-4-xs"><img class="img-rounded img-responsive" src="dbzDragon.jpg" alt="dbz dragon"></div>
    <div class="img-container col-4-lg col-4-sm col-4-md col-4-xs"><img class="img-circle img-blur img-responsive" src="dbzDragon.jpg" alt="dbz dragon"></div>
    <div class="img-container col-4-lg col-4-sm col-4-md col-4-xs"><img class="img-thumbnail img-responsive" src="dbzDragon.jpg" alt="dbz dragon"></div>
</div>

Result Logo

Text background & font color

Change text background & font color: font: text- | background: bg- :

<div class="text-container row">
    
    //Text color
    <div class="col-6-lg col-6-md col-6-sm col-6-xs">
        <p class="text-muted">Muted</p>
        <p class="text-primary">Primary</p>
        <p class="text-success">Success</p>
        <p class="text-info">Info</p>
        <p class="text-warning">Warning</p>
        <p class="text-danger">Danger</p>
        <p class="text-secondary">Secondary</p>
        <p class="text-dark">Dark</p>
        <p class="text-body">Body</p>
        <p class="text-white">White</p>
    </div>
    
    //Background text color
    <div class="col-6-lg col-6-md col-6-sm col-6-xs">
        <p class="bg-muted text-white">Muted</p>
        <p class="bg-primary text-white">Primary</p>
        <p class="bg-success text-white">Success</p>
        <p class="bg-info text-white">Info</p>
        <p class="bg-warning text-white">Warning</p>
        <p class="bg-danger text-white">Danger</p>
        <p class="bg-secondary text-white">Secondary</p>
        <p class="bg-dark text-white">Dark</p>
        <p class="bg-body text-white">Body</p>
        <p class="bg-light">Body</p>
    </div>
</div>

Result Logo


Alerts

Create box alerts using alert- class :

<div class="row">
    <div class="alert-container col-6-xs col-6-sm col-6-md col-6-lg">
        <div class="alert-success">Success alert</div>
    </div>
    <div class="alert-container col-6-xs col-6-sm col-6-md col-6-lg">
        <div class="alert-success">Success alert</div>
    </div>

    <div class="alert-container col-12-xs col-12-sm col-12-md col-12-lg">
        <div class="alert-info">Info alert</div>
    </div>
    <div class="alert-container col-12-xs col-12-sm col-12-md col-12-lg">
        <div class="alert-warning"> Warning alert</div>
    </div>
    <div class="alert-container col-12-xs col-12-sm col-12-md col-12-lg">
        <div class="alert-danger">Danger alert</div>
    </div>
</div>

Result
Navbar demo

Navbar

Create complex navbar with dropdowns:

<nav class="navbar">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">
            <img src="800px-Web@cadémie_Logo.png" style="width: 170px">
        </a>

    </div>
    <ul class="navbar-nav">
        <li class="active"><a class="nav-link" href="#">Home</a></li>
        <li>
            <a class="nav-link dropdown" href="#">Dropdown<span class="caret"></span></a>
            <div class="dropdown-menu">
                <a href="#" class="dropdown-item">Link1</a>
                <a href="#" class="dropdown-item">Link2</a>
                <a href="#" class="dropdown-item">Link3</a>
                <a href="#" class="dropdown-item">Link4</a>
            </div>
        </li>

        <li><a class="nav-link" href="#">Page 1</a></li>
        <li><a class="nav-link" href="#">Page 2</a></li>

        <li>
            <a  class="nav-link dropdown" href="#">Dropdown 2<span class="caret"></span></a>
            <div class="dropdown-menu">
                <a href="#" class="dropdown-item">Link1</a>
                <a href="#" class="dropdown-item">Link2</a>
                <a href="#" class="dropdown-item">Link3</a>
                <a href="#" class="dropdown-item">Link4</a>
            </div>
        </li>
        <li>
            <a class="nav-link" href="#">Page 3</a>
        </li>
    </ul>
    <ul class="navbar-nav navbar-right">
        <li><a href="#">Connexion</a></li>
    </ul>
</nav>

Result
Navbar demo

If you prefer dark nav bar you can add to your nav bg-dark class :

<nav class="navbar bg-dark">

Result Logo


ModalView

Create modal view using modal- class :

   <button type="button" class="btn btn-primary">Button basic</button>
<button type="button" class="btn btn-default" data-target="myModal">Button default/ active modal view</button>
<div id="myModal" class="modal container">
    <div class="modal-content">
        <div class="modal-header">Modal view</div>
        <div class="modal-message">Message to pop</div>
        <div class="container">
            <div class="row">
                <div style="background-color: #e0d6d6" class="box col-12-lg col-12-md col-12-sm col-12-xs"></div>
                <div style="background-color: #474b53" class="box col-6-lg col-6-md col-12-sm col-12-xs"></div>
                <div style="background-color: #70c2d1" class="box col-6-lg col-6-md col-12-sm col-12-xs"></div>
            </div>
        </div>
    </div>
</div>

Result
Navbar demo

Tabs

Create modal view using tab- class :

    <div class="tabs-container">
    <div class="tab-content">
        <ul class="tab-list">
            <li class="tab-item active" data-target="tab1">Tab 1</li>
            <li class="tab-item" data-target="tab2">Tab 2</li>
            <li class="tab-item" data-target="tab3">Tab 3</li>
        </ul>
        <div  class="tab-pane active" id="tab1">Content Tab 1</div>
        <div  class="tab-pane" id="tab2">Content Tab 2</div>
        <div class="tab-pane" id="tab3">Content Tab 3</div>
    </div>
</div>

Result
Navbar demo


Tooltip

Create tooltip using tooltip class :

    <div>
    <button type="button"  class="btn-danger tooltip" title="right" data-bgcolor="#007bff" data-placement="right">Button danger right</button>
    <button type="button"  class="btn-danger tooltip" title="left" data-placement="left">Button danger left</button>
    <button type="button"  class="btn-danger tooltip" title="top" data-placement="top">Button danger top</button>
    <button type="button"  class="btn-danger tooltip" title="bottom" data-placement="bottom">Button danger bottom</button>
</div>

Result
Navbar demo


Hide print

Hide element when printing using hidden-print class :

<div style="font-size: 200px" class="hidden-print">Hidden Print</div>

Contributing

Contributions are what make the open source community such an amazing place to learn, be inspired, and create. Any contributions are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Free license

Contact

Heifara BUVAL - linkedIn - [email protected]

Project Link: https://github.com/Heifarabuval/Css-Generator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published