Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dotsunited/off-canvas-navigation

Off-Canvas Navigation utilities.
https://github.com/dotsunited/off-canvas-navigation

Last synced: about 21 hours ago
JSON representation

Off-Canvas Navigation utilities.

Awesome Lists containing this project

README

        

Off-Canvas Navigation
=====================

Off-Canvas Navigation utilities.

Usage
-----

With webpack:

```javascript
var setup = require('dotsunited-off-canvas-navigation/lib/setup');
setup('off-canvas-navigation');
```

```less
@import "~dotsunited-off-canvas-navigation/lib/mixins";

.off-canvas-navigation-button {
.dotsunited-off-canvas-navigation-button(off-canvas-navigation);

// Custom styles
position: absolute;
top: 10px;
right: 10px;
}

.off-canvas-navigation-menu {
.dotsunited-off-canvas-navigation-menu(off-canvas-navigation);
}

.off-canvas-navigation-backdrop {
.dotsunited-off-canvas-navigation-backdrop(off-canvas-navigation);
}
```

HTML
-----

```html



  • ...


```

How-tos
-------

### Change the size of the button

To change the size of the button, just set a different width and height for the
first nested ``.

```css
@import "~dotsunited-off-canvas-navigation/lib/mixins";

.off-canvas-navigation-button {
.dotsunited-off-canvas-navigation-button(off-canvas-navigation);

> span {
width: 100px;
height: 90px;
}
}
```

License
-------

Copyright (c) 2015-2016 Dots United GmbH.
Released under the [MIT](LICENSE?raw=1) license.