Skip to content

Commit

Permalink
withStyle - Added inner-loader-wrapper for the possibility to add t…
Browse files Browse the repository at this point in the history
…he loader to an internal area on page and not only over entire document, documented in README and added to bower.json dependencies
  • Loading branch information
arturmamedov committed Jan 30, 2018
1 parent 1039916 commit a53c65d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 9 deletions.
41 changes: 36 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ Bootstrap - https://github.com/twbs/bootstrap

HEAD - https://github.com/joshbuchea/HEAD

 

### Dependency
#### Dependency and many Thank to:
jQuery - https://github.com/jquery/jquery

... raty, datepicker, selectize, iCheck
... raty, datepicker, selectize, iCheck, SVG-Loaders, nicescroll, bootstrapSwitch, bootstrap-daterangepicker, wArtur

(you can remove the dependencies or not include script and their not will be made nothing cause there are a check before any action)

## Documentation (How to use)

Expand Down Expand Up @@ -99,6 +98,38 @@ For add `padding` or `margin` to an element use the helper classes:

```

The same thing for add `padding` change the `m` that stand for marrgin to `p` and you done!
The same thing for add `padding` change the `m` that stand for marrgin to `p` padding and you done!
##### You can use this values with this classes m-/p-[t,r,b,l,v,h]-`0,5,10,15,20,25,30,35,40,50,60,70,80,90,100,150,200`



#### Loader
Thanks to [SamHerbert/SVG-Loaders](http://samherbert.net/svg-loaders/)

For add a loader to your site, that appears and automatically closes when all content is load:
```html
<div class="loader-wrapper">
<i class="fa fa-close fa-3x pull-right p-20 cursor-pointer loader-wrapper-close display-none"></i>
<div class="loader">
<img width="40" src="/bower_components/SVG-Loaders/circles.svg" alt="">

<span class="loader-title">Caricamento contenuti, attendere qualche secondo...</span>
</div>
</div>
```

You can also add `inner-loader-wrapper` class to `loader-wrapper` for include loader in a div and not over all content of document.

```html
<div class="loader-wrapper inner-loader-wrapper">
<i class="fa fa-close fa-3x pull-right p-20 cursor-pointer loader-wrapper-close display-none"></i>
<div class="loader">
<img width="40" src="/bower_components/SVG-Loaders/svg-loaders/spinning-circles.svg" alt="">

<span class="loader-title">Caricamento contenuti, attendere qualche secondo...</span>
</div>
</div>
```

Example: [loader-wrapper](https://insuperadmin.buonsito.net/assets/media/loader.png), [inner-loader-wrapper](https://insuperadmin.buonsito.net/assets/media/inner-loader.png)

13 changes: 9 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"name": "withFront",
"version": "v1.1.0",
"version": "v1.2.0",
"homepage": "https://github.com/arturmamedov/withFront",
"authors": [
"Artur Mamedov <[email protected]>"
],
"description": "Tools for frontend development especially with Bootstrap and jQuery",
"description": "Tools for frontend development especially with Bootstrap 3.x and jQuery 3.x",
"main": "withstyle.css, withplugins.js",
"keywords": [
"frontend",
"css",
"tools",
"bootstrap",
"jquery"
"jquery",
"loader",
"widgets"
],
"license": "MIT",
"ignore": [
Expand All @@ -21,5 +23,8 @@
"bower_components",
"test",
"tests"
]
],
"dependencies": {
"SVG-Loaders": "latest"
}
}
9 changes: 9 additions & 0 deletions withstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -1644,6 +1644,15 @@
PAGE LOADER
-------------------------------------------------------------------------*/

.inner-loader-wrapper {
height: 100%;
overflow: hidden;
position: absolute !important;
width: 100%;
z-index: 9999;
background-color: transparent !important;
}

.loader-wrapper {
height: 100%;
overflow: hidden;
Expand Down

0 comments on commit a53c65d

Please sign in to comment.