0
1
Fork 0

catalog: 3 tags shown in list view, up to 6 digits for available.

This commit is contained in:
Juan 2018-08-24 13:17:34 +02:00
parent bdc8d0c225
commit 9394ca8c51
5 changed files with 101 additions and 56 deletions

View File

@ -8,7 +8,12 @@ Required dependencies.
* PHP >= 7.0 * PHP >= 7.0
* Node.js >= 8.0 * Node.js >= 8.0
Launch command line client. Launch application for development.
```
$ npm run dev
```
Run server side method from command line.
``` ```
$ php hedera-web.php -m method_path $ php hedera-web.php -m method_path
``` ```

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.15) stable; urgency=low hedera-web (1.406.16) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -159,16 +159,6 @@
font-weight: bold; font-weight: bold;
color: red; color: red;
} }
.item-info .from
{
font-size: .8em;
font-style: italic;
}
.item-info .price
{
color: green;
font-size: 1.1em;
}
.item-info > h2 .item-info > h2
{ {
padding: 0; padding: 0;
@ -196,11 +186,6 @@
padding-bottom: .2em; padding-bottom: .2em;
font-size: 1em; font-size: 1em;
} }
.item-info > .aval-price
{
position: absolute;
bottom: 0;
}
.item-info > .htk-button .item-info > .htk-button
{ {
margin: -0.3em; margin: -0.3em;
@ -210,6 +195,20 @@
{ {
vertical-align: middle; vertical-align: middle;
} }
.item-info .available-price
{
white-space: nowrap;
}
.item-info .from
{
font-size: .8em;
font-style: italic;
}
.item-info .price
{
color: green;
font-size: 1.1em;
}
.tags .tags
{ {
font-size: .8em; font-size: .8em;
@ -217,10 +216,10 @@
color: #333; color: #333;
margin: 0; margin: 0;
width: auto; width: auto;
border-collapse: collapse;
} }
.tags td:first-child { .tags td:first-child {
color: #999; color: #999;
padding-right: .6em;
} }
/* List view */ /* List view */
@ -260,7 +259,7 @@
right: 0; right: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;
margin: .9em; margin: .8em;
margin-left: 0; margin-left: 0;
} }
.list-view .item-info > h2 .list-view .item-info > h2
@ -272,19 +271,47 @@
{ {
display: none; display: none;
} }
.list-view .item-info > .aval-price
{
right: .3em;
}
.list-view .item-info > .htk-button .list-view .item-info > .htk-button
{ {
float: right; float: right;
} }
.list-view .item-info > .info-button .list-view .item-info .extra
{ {
margin-right: 0; position: absolute;
bottom: 0;
width: 100%;
margin-top: .3em;
} }
.list-view .item-info .tags .extra .list-view .item-info .available-price
{
float: right;
right: .3em;
}
.list-view .item-info .tags
{
display: block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
margin-top: .3em;
}
.list-view .item-info .tags
{
display: block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.list-view .item-info .tags > tr
{
display: inline-block;
}
.list-view .item-info .tags td
{
display: inline-block;
padding-right: .3em
}
.list-view .item-info .tags td:first-child
{ {
display: none; display: none;
} }
@ -325,25 +352,31 @@
bottom: 0; bottom: 0;
margin: .6em; margin: .6em;
} }
.grid-view .item-info > .aval-price
{
right: 2.8em;
}
.grid-view .item-info .add-button .grid-view .item-info .add-button
{ {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
} }
.grid-view .item-info > .info-button .grid-view .item-info .available-price
{ {
float: right; position: absolute;
bottom: 0;
right: 2em;
}
.grid-view .item-info .available
{
display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
max-width: 4em;
vertical-align: bottom;
} }
.grid-view .item-info .tags .grid-view .item-info .tags
{ {
position: absolute; position: absolute;
top: 5.2em; top: 5.2em;
border-collapse: collapse;
} }
.grid-view .item-info .tags td { .grid-view .item-info .tags td {
overflow: hidden; overflow: hidden;
@ -353,6 +386,9 @@
width: 6em; width: 6em;
line-height: 1.1em; line-height: 1.1em;
} }
.grid-view .item-info .tags td:first-child {
color: #999;
}
/* Card */ /* Card */

View File

@ -128,28 +128,32 @@
<p class="sub-name"> <p class="sub-name">
<htk-text form="item" column="subName"/> <htk-text form="item" column="subName"/>
</p> </p>
<table class="tags"> <div class="extra">
<tr> <div class="available-price">
<td><htk-text form="item" column="tag5"/></td> <span class="available">
<td><htk-text form="item" column="value5"/></td> <htk-text form="item" column="available"/>
</tr> </span>
<tr class="extra"> <span class="from">
<td><htk-text form="item" column="tag6"/></td> <t>from</t>
<td><htk-text form="item" column="value6"/></td> </span>
</tr> <span class="price">
<tr class="extra"> <htk-text form="item" column="price" format="%.2d€"/>
<td><htk-text form="item" column="tag7"/></td> </span>
<td><htk-text form="item" column="value7"/></td> </div>
</tr> <table class="tags">
</table> <tr>
<div class="aval-price"> <td><htk-text form="item" column="tag5"/></td>
<htk-text form="item" column="available"/> <td><htk-text form="item" column="value5"/></td>
<span class="from"> </tr>
<t>from</t> <tr>
</span> <td><htk-text form="item" column="tag6"/></td>
<span class="price"> <td><htk-text form="item" column="value6"/></td>
<htk-text form="item" column="price" format="%.2d€"/> </tr>
</span> <tr>
<td><htk-text form="item" column="tag7"/></td>
<td><htk-text form="item" column="value7"/></td>
</tr>
</table>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.406.15", "version": "1.406.16",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {