3.0.2 • Published 6 years ago

@jporto/vue-flex-layout v3.0.2

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
6 years ago

@jporto/vue-flex-layout

logo

build status npm-publish semantic-release language count

A VueJS flexbox partitionable layout

Checkout the Demo which contains the component documentation.

If you enjoy this component, feel free to drop me feedback, either via the repository, or via joseporto@icloud.com.

Also, please verify my project at torre.co.

Instalation

yarn add @jporto/vue-flex-layout

or

npm install @jporto/vue-flex-layout

Setup

Vue.js

  • Add the following to you application main.js file:
import VueFlexLayout from '@jporto/vue-flex-layout'

Vue.use(VueFlexLayout)
  • import the styles
@import '@jporto/vue-flex-layout/dist/@jporto/main.scss';

NuxtJS

  • Similar as with Vue.js, but I recomend adding a components.js file to plugins, with the following content:

import Vue from 'vue'
import VueFlexLayout from '@jporto/vue-flex-layout';
Vue.use(VueFlexLayout);
  • Register the plugin in nuxt.config.js:
plugins: [
  '@/plugins/components',
],

Configure

note: configuration is still experimental.

Override the following variables prior to importing the main.scss file:

Variable NameDescriptionDefault
$layout-max-widthmaximum width of a non fluid container1420
$layout-columnsmaximum number of columns12
$layout-guttergutter size in px16
$layout-color-debug-containerbase color for when container is in debug modergb(57, 169, 219)
$layout-color-debug-rowbase color for when row is in debug modergb(163, 221, 122)
$layout-color-debug-columnbase color for when column is in debug modergb(242, 103, 48)
$layout-color-guide-right-limitcolor for the rightmost limit for column guide#ED0579
$layout-color-guide-left-limitcolor for the leftmost limit for column guide#01ABA3
$layout-color-guide-columncolor for the line representing each column limittransparentize(#F06925, .2)
$layout-color-guide-guttercolor for the line representing each column guttertransparentize(#0071BD, .9)
$layout-guides-zindexguides base z-index2147483647

note: values are represented exaclty as they are in the _variables.scss file. No units are used!

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago