Sistema basico de layout CSS

This commit is contained in:
Juan Ferrer Toribio 2016-11-10 11:05:28 +01:00
parent 379521e3d2
commit 0054e829a4
4 changed files with 112 additions and 57 deletions

View File

@ -2,6 +2,8 @@
* export public module
*/
import style from './style/layout.css'
export * from './module'
export * from './util'

View File

@ -0,0 +1,110 @@
html, body {
height: 100%;
margin: 0px;
padding: 0px;
}
html [full-height], .full-height {
height: 100%;
}
html [self-scroll], .self-scroll {
overflow: auto;
}
/* Horizontal & vertical */
html [vn-horizontal], vn-horizontal, .vn-horizontal,
html [vn-vertical], vn-vertical, .vn-vertical {
display: flex;
}
html [vn-horizontal], vn-horizontal, .vn-horizontal {
flex-direction: row;
}
vn-horizontal [reverse] {
flex-direction: row-reverse;
}
html [vn-vertical], vn-vertical, .vn-vertical {
flex-direction: column;
}
vn-vertical [reverse] {
flex-direction: column-reverse;
}
html [wrap] {
flex-wrap: wrap;
}
html [wrap-reverse] {
flex-wrap: wrap-reverse;
}
html [scrollable] {
min-height: 1px;
flex: 1;
flex-basis: 0.000000001px;
}
/* Horizontal & vertical childs */
html [vn-auto],
html [vn-none],
html [vn-one],
html [vn-two],
html [vn-three],
html [vn-four],
html [vn-five],
html [vn-six],
html [vn-seven],
html [vn-eight],
html [vn-nine],
html [vn-ten],
html [vn-eleven],
html [vn-twelve]{
flex-basis: 0.000000001px;
}
html [vn-auto], vn-auto, .vn-auto {
flex: 1;
flex-basis: auto;
}
html [vn-empty], vn-empty, .vn-empty {
display: block;
}
html [vn-none], vn-none, .vn-none {
flex: 1;
flex: none;
}
html [vn-one], vn-one, .vn-one {
flex: 1;
}
html [vn-two], vn-two, .vn-two {
flex: 2;
}
html [vn-three], vn-three, .vn-three {
flex: 3;
}
html [vn-four], vn-four, .vn-four {
flex: 4;
}
html [vn-five], vn-five, .vn-five {
flex: 5;
}
html [vn-six], vn-six, .vn-six {
flex: 6;
}
html [vn-seven], vn-seven, .vn-seven {
flex: 7;
}
html [vn-eight], vn-eight, .vn-eight {
flex: 8;
}
html [vn-nine], vn-nine, .vn-nine {
flex: 9;
}
html [vn-ten], vn-ten, .vn-ten {
flex: 10;
}
html [vn-eleven], vn-eleven, .vn-eleven {
flex: 11;
}
html [vn-twelve], vn-twelve, .vn-twelve {
flex: 12;
}

View File

@ -1,12 +0,0 @@
{
"ids": {
"User": 2,
"AccessToken": 1
},
"models": {
"User": {
"1": "{\"password\":\"$2a$10$ktoGSPHvrhUPSEytSIRoQuQbq9HRGXEYhrIjP7f4Xx9LXwxeU7vHG\",\"email\":\"admin@admin.com\",\"id\":1}"
},
"AccessToken": {}
}
}

View File

@ -1,45 +0,0 @@
worker_processes 1;
error_log build/nginx/error.log;
pid build/nginx/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;
default_type application/octet-stream;
access_log build/nginx/access.log;
client_body_temp_path build/nginx/client-body;
proxy_temp_path build/nginx/proxy;
fastcgi_temp_path build/nginx/fastcgi;
uwsgi_temp_path build/nginx/uwsgi;
scgi_temp_path build/nginx/scgi;
server {
listen 8080;
server_name localhost;
autoindex off;
location /static {
alias build/public/;
autoindex on;
}
location ~ ^/account(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3000/$1$is_args$args;
}
location ~ ^/salix(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3001/$1$is_args$args;
}
location ~ ^/customer(?:/(.*))?$ {
proxy_pass http://127.0.0.1:3002/$1$is_args$args;
}
}
}