Style fixes

This commit is contained in:
Juan Ferrer 2019-02-06 11:24:29 +01:00
parent 1355fb80e4
commit 03406a7d9b
53 changed files with 398 additions and 1326 deletions

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-calendar {
display: block;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-check {
position: relative;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-chip {
margin: 0 0.5em 0.5em 0;

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-date-picker {
.mdl-chip__action {

View File

@ -1,5 +1,5 @@
@import "effects";
@import "colors";
@import "variables";
vn-drop-down {
.dropdown {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-fetched-tags {
&.noTitle vn-one {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-icon-button {
outline: 0;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
@import '../textfield/style.scss';
vn-input-number {

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-input-range {
label {
color: $main-01;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
@import '../textfield/style.scss';
vn-input-time {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-label-value > section {
& > vn-label {

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-log {
vn-td {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-paging {
display: block;

View File

@ -1,4 +1,4 @@
@import "padding";
@import "variables";
vn-searchbar {
padding-top: 6px;
@ -13,6 +13,6 @@ vn-searchbar {
max-height: 48em;
& > form {
@extend .pad-large;
padding: $pad-large;
}
}

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-snackbar #shapes {
max-height: 20.625em;

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-step-control {
display: flex;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-textarea {
& > .mdl-textfield {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-textfield {
margin: 20px 0!important;
display: inline-block;

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-treeview {
ul {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
/**
* Rewrited CSS rules from Material Design Lite.

View File

@ -1,9 +1,7 @@
@import "background";
@import "margin";
@import "variables";
body {
@extend .bg-content;
background-color: $bg-content;
overflow: auto;
}
vn-app {
@ -56,7 +54,7 @@ vn-app {
padding-top: $topbar-height;
}
.content-block {
@extend .margin-medium;
margin: $margin-medium;
form vn-horizontal {
& > * {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-login {
position: absolute;

View File

@ -1,4 +1,4 @@
@import "background";
@import "variables";
vn-topbar {
display: flex;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-user-configuration-popover {
vn-popover {

View File

@ -1,11 +1,4 @@
@import "colors";
$bg-main: $color-green;
$bg-minor: $color-orange;
$bg-content: $color-light-grey;
$bg-panel: $color-white;
$bg-dark-bar: $main-header;
$bg-dark-menu: $color-dark-grey;
@import "./variables";
html [bg-main], .bg-main {
background-color: $main-bg;

View File

@ -1,8 +1,5 @@
@import "colors";
$border-color: #AAA;
$border-thin: 1px;
$border-thick: 2px;
@import "./colors";
@import "./variables";
html [border-none], .border-none {
border: 0;

View File

@ -1,7 +1,7 @@
@import "./effects";
@import "./colors";
@import "./padding";
@import "./variables";
.vn-descriptor {
box-shadow: 0 .1em .2em rgba(1, 1, 1, .2);
@ -28,13 +28,13 @@
}
}
& > .body {
@extend .pad-small;
padding: $pad-small;
& > * {
@extend .pad-small;
padding: $pad-small;
}
& > .attributes > h5 {
@extend .pad-small-bottom;
padding-bottom: $pad-small;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
@ -46,7 +46,7 @@
padding: 0;
& > vn-icon {
@extend .pad-small;
padding: $pad-small;
color: #666;
opacity: .4;
font-size: 1.5em;
@ -64,7 +64,7 @@
padding: 0;
& > a {
@extend .pad-small;
padding: $pad-small;
& > vn-icon {
font-size: 1.8em;

View File

@ -1,5 +1,5 @@
@import "colors";
@import "font-family";
@import "./colors";
@import "./font-family";
body {
color: $main-font-color;

View File

@ -1,8 +1,4 @@
$margin-none: 0;
$margin-small: 8px;
$margin-medium: 16px;
$margin-large: 32px;
@import "variables";
/* None */

View File

@ -1,7 +1,5 @@
@import "./padding";
@import "./margin";
@import "./variables";
@import "./colors";
@import "./border";
@import "./effects";
a:focus,
@ -160,8 +158,8 @@ a.vn-list-item {
}
.vn-list-item {
@extend .pad-medium;
@extend .border-solid-bottom;
padding: $pad-medium;
border-bottom: $border-thin solid $border-color;
display: block;
text-decoration: none;

View File

@ -1,7 +1,5 @@
@import "./colors";
@media screen and (max-width: 1920px){
.catalog-list .product {
width: 25%;

View File

@ -1,8 +1,4 @@
$pad-none: 0;
$pad-small: 8px;
$pad-medium: 16px;
$pad-large: 32px;
@import "./variables";
/* None */

View File

@ -1,6 +1,5 @@
@import "./colors";
@import "./margin";
@import "./padding";
@import "./variables";
.summary {
margin: 0 auto;
@ -8,7 +7,7 @@
& > div {
& > h5 {
@extend .pad-small;
padding: $pad-small;
border: none;
background: $main-01;
color: $color-white;
@ -21,10 +20,10 @@
}
& > vn-horizontal {
flex-wrap: wrap;
@extend .pad-medium;
padding: $pad-medium;
h4 {
@extend .margin-medium-bottom;
margin-bottom: $margin-medium;
text-transform: uppercase;
font-size: 15pt;
line-height: 1;
@ -38,7 +37,7 @@
text-overflow: ellipsis;
}
& > * {
@extend .margin-small;
margin: $margin-small;
min-width: 14em;
overflow: hidden;
padding: 0;
@ -80,27 +79,3 @@
font-size: .9em
}
}
.state {
padding: 5px;
background-color: $main-01;
color: white;
p {
font-size: 13px;
line-height: 15px;
text-align: center;
margin: .1em 0;
&:nth-child(1) {
text-transform: uppercase;
}
}
vn-one {
padding: 0;
&:nth-child(1) {
border-right: .1em solid white;
}
}
}

View File

@ -1,4 +1,4 @@
@import "colors";
@import "./colors";
h1 {
font-size: 32pt;

View File

@ -1,4 +1,34 @@
@import "./colors";
$menu-width: 16em;
$topbar-height: 4em;
$mobile-width: 800px;
// Background color
$bg-main: $color-green;
$bg-minor: $color-orange;
$bg-content: $color-light-grey;
$bg-panel: $color-white;
$bg-dark-bar: $main-header;
$bg-dark-menu: $color-dark-grey;
// Padding
$pad-none: 0;
$pad-small: 8px;
$pad-medium: 16px;
$pad-large: 32px;
// Margin
$margin-none: 0;
$margin-small: 8px;
$margin-medium: 16px;
$margin-large: 32px;
// Border
$border-color: #AAA;
$border-thin: 1px;
$border-thick: 2px;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-claim-index {
.Pendiente {

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-client-summary {
.alert span {

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-client-web-payment {
vn-icon[icon=clear] {

View File

@ -31,7 +31,7 @@
</vn-float-button>
</a>
</div>
<vn-horizontal class="state">
<vn-horizontal class="item-state">
<vn-one>
<p translate>Visible</p>
<p>{{$ctrl.item.visible}}</p>

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-item-diary {
& > vn-vertical {

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-item-product {
display: block;

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-item-last-entries {
.round {
background-color: $lines;

View File

@ -7,7 +7,7 @@
ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{$ctrl.item.image}}"
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{$ctrl.item.image}}" on-error-src/>
</vn-one>
<vn-horizontal class="state">
<vn-horizontal class="item-state">
<vn-one>
<p translate>Visible</p>
<p>{{$ctrl.summary.visible}}</p>

View File

@ -1,5 +1,35 @@
@import "./colors";
vn-item-summary {
p {
margin: 0;
}
}
.item-state {
padding: .4em;
background-color: $main-01;
color: white;
p {
font-size: .8em;
text-align: center;
margin: 0;
&:first-child {
text-transform: uppercase;
line-height: 1;
}
&:last-child {
font-size: 1.5em;
font-weight: bold;
}
}
vn-one {
padding: 0;
&:nth-child(1) {
border-right: .1em solid white;
}
}
}

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-dialog.modal-form {
vn-horizontal.header{

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-order-catalog .catalog-header {
border-color: $lines;

View File

@ -1,26 +1,27 @@
@import "colors";
@import "padding";
@import "variables";
@import "variables";
vn-catalog-filter > div {
& > .input {
@extend .pad-medium-h;
padding-left: $pad-medium;
padding-right: $pad-medium;
border-color: $lines;
border-bottom: 1px solid rgba($lines, 0.5);
}
.item-category {
@extend .pad-small;
padding: $pad-small;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
& > vn-one {
@extend .pad-small;
padding: $pad-small;
min-width: 33.33%;
text-align: center;
box-sizing: border-box;
& > vn-icon {
@extend .pad-small;
padding: $pad-small;
background-color: $secondary-font-color;
border-radius: 50%;
cursor: pointer;
@ -39,6 +40,6 @@ vn-catalog-filter > div {
}
.chips {
flex-wrap: wrap;
@extend .pad-medium;
padding: $pad-medium;
}
}

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-order-prices-popover {
width: 150px;

View File

@ -1,4 +1,4 @@
@import 'colors';
@import "variables";
vn-ticket-index{
vn-icon-menu{

View File

@ -1,4 +1,4 @@
@import "colors";
@import "variables";
vn-ticket-sale {
vn-popover.edit {
div.popover{

1349
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -36,7 +36,7 @@
"@babel/register": "^7.0.0",
"angular-mocks": "^1.7.4",
"babel-loader": "^8.0.5",
"css-loader": "^0.25.0",
"css-loader": "^2.1.0",
"del": "^2.2.2",
"eslint": "^5.12.0",
"eslint-config-google": "^0.11.0",
@ -73,9 +73,9 @@
"node-sass": "^4.9.3",
"nodemon": "^1.18.5",
"plugin-error": "^1.0.1",
"raw-loader": "*",
"sass-loader": "^6.0.7",
"style-loader": "^0.20.3",
"raw-loader": "^1.0.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"webpack": "^4.28.3",
"webpack-cli": "^3.2.1",
"webpack-dev-server": "^3.1.14",

View File

@ -38,15 +38,26 @@ let baseConfig = {
}
}, {
test: /\.css$/,
loader: 'style-loader!css-loader'
use: [
{
loader: 'style-loader'
}, {
loader: 'css-loader'
}
]
}, {
test: /\.scss$/,
use: [
{loader: 'style-loader'},
{loader: 'css-loader'},
{
loader: 'style-loader'
}, {
loader: 'css-loader'
}, {
loader: 'sass-loader',
options: {
// FIXME: Don't work in Firefox
// https://github.com/webpack-contrib/style-loader/issues/303
// sourceMap: true,
includePaths: [
path.resolve(__dirname, 'front/salix/styles')
]