Commit de42804f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

update listbox snippet.

parent 9e57c8a1
...@@ -13,10 +13,12 @@ ...@@ -13,10 +13,12 @@
} }
.facture__header_column { .facture__header_column {
padding: 0.5em; padding: 0.5em;
text-align: center;
} }
.facture__row { .facture__row {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
text-align: center;
} }
.facture__column { .facture__column {
padding: 0.5em; padding: 0.5em;
...@@ -24,6 +26,13 @@ ...@@ -24,6 +26,13 @@
.facture__column--highlighted { .facture__column--highlighted {
background: #ccc; background: #ccc;
} }
.facture__download {
border-radius: 0.5em;
background: #666;
color: white;
padding: 0.2em;
text-decoration: none;
}
@media (min-width: 800px) { @media (min-width: 800px) {
.facture__header_row { .facture__header_row {
...@@ -40,6 +49,7 @@ ...@@ -40,6 +49,7 @@
display: none; display: none;
} }
} }
@media (max-width: 800px) { @media (max-width: 800px) {
.facture__header_row { .facture__header_row {
display: none; display: none;
...@@ -59,24 +69,24 @@ ...@@ -59,24 +69,24 @@
<!-- <!--
This is an example of listbox HTML snippet. This is an example of listbox HTML snippet.
* 'facture' is the name of the listbox. For generic case, you can use 'listbox'. * 'facture' is the name of the listbox. For generic case, you can use 'listbox'.
* '--highlighted' is a modifier class for which you can differentiate the appearance of a certain column. * '--highlighted' is a modifier class for which you can differentiate the appearance of a certain column (ex. the second column in this sample).
* You can put more HTML tags "inside" column <div> element, but you mush strictly follow the HTML structure below. * You can put more HTML tags "inside" column <div> element, but you mush strictly follow the HTML structure below (ex. the third column in this sample).
--> -->
<div class="facture__container"> <div class="facture__container">
<div class="facture__header_row"> <div class="facture__header_row">
<div class="facture__header_column">Header 1</div> <div class="facture__header_column">Reference</div>
<div class="facture__header_column facture__header_column--highlighted">Header 2</div> <div class="facture__header_column facture__header_column--highlighted">Amount</div>
<div class="facture__header_column">Header 3</div> <div class="facture__header_column">Action</div>
</div> </div>
<div class="facture__row"> <div class="facture__row">
<div class="facture__column"><div class="facture__header">Header 1</div><div class="facture__data">Value 1-1</div></div> <div class="facture__column"><div class="facture__header">Reference</div><div class="facture__data">SI-1234</div></div>
<div class="facture__column facture__column--highlighted"><div class="facture__header">Header 2</div><div class="facture__data">Value 1-2</div></div> <div class="facture__column facture__column--highlighted"><div class="facture__header facture__header--highlighted">Amount</div><div class="facture__data facture__data--highlighted">20.30</div></div>
<div class="facture__column"><div class="facture__header">Header 3</div><div class="facture__data">Value 1-3</div></div> <div class="facture__column"><div class="facture__header">Action</div><div class="facture__data"><a href="#" class="facture__download">Download</a></div></div>
</div> </div>
<div class="facture__row"> <div class="facture__row">
<div class="facture__column"><div class="facture__header">Header 1</div><div class="facture__data">Value 2-1</div></div> <div class="facture__column"><div class="facture__header">Reference</div><div class="facture__data">SI-1235</div></div>
<div class="facture__column facture__column--highlighted"><div class="facture__header">Header 2</div><div class="facture__data">Value 2-2</div></div> <div class="facture__column facture__column--highlighted"><div class="facture__header facture__header--highlighted">Amount</div><div class="facture__data facture__data--highlighted">121.85</div></div>
<div class="facture__column"><div class="facture__header">Header 3</div><div class="facture__data">Value 2-3</div></div> <div class="facture__column"><div class="facture__header">Action</div><div class="facture__data"><a href="#" class="facture__download">Download</a></div></div>
</div> </div>
</div> </div>
</body> </body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment