4.1.0 • Published 3 years ago

@massimo-cassandro/layout-tools v4.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Layout Tools (v. 3)

Layout development utility.

Demo: https://massimo-cassandro.github.io/layout-tools/test/

Installation

Install Layout Tools using npm:

npm i --save-dev @massimo-cassandro/layout-tools

Then add it to the page to be monitored:

<script src="[path_to_layout_tools]/layout_tools-min.js" data-fw="__framework__"></script>

where __framework__ corresponds to the used css framework. Choose between bootstrap3, bootstrap4 or foundation6.

Default is bootstrap4.

The scripts loads the layout_tools.css file searching for it in same folder of the js one. If necessary, you can set an alternative css path thru the data-css attribute:

<script src="[path_to_layout_tools]/layout_tools-min.js" data-css="path/layout_tools.css"></script>

The tools

The script reports the active CSS breakpoint at the top left of the page. Clicking on it will display:

  • a button to hide the layout tools (it remains translucent on mouseover). To show it again you need to click the button again. If present, the Symfony debug bar is also hidden. You can add more toolbars to be removed by editing the other_toolbars_selectors constant in the_ui.js module
  • a button to completely remove layout tools and other toolbars. This is useful when you need to completely delete all toolbars for demonstration and documentation purposes. When the page reloads, all tools will be visible again
  • the size of the window
  • userAgent, pixel density and screen size
  • a checkbox to show informations about all the images that are loaded with the page.
  • Some settings are saved in the browser session storage, so that, when the page is reloaded, their status is restored.
4.1.0

3 years ago

3.4.2

3 years ago

3.4.1

3 years ago

3.4.0

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago