You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.1 KiB

4 years ago
  1. +++
  2. title = "Progress"
  3. description = "Show graphical progress bars with completion percentage."
  4. categories = ["experience"]
  5. tags = []
  6. html_attributes = []
  7. custom_attributes = ["showpercent", "value", "filltext"]
  8. snippets_used = ["progress", "card", "alert"]
  9. [[copyright]]
  10. owner = "Josh Habdas"
  11. date = "2019"
  12. license = "agpl-3.0-or-later"
  13. +++
  14. Basic usage:
  15. ```html
  16. {{</* hackcss-progress value="40" */>}}
  17. {{</* hackcss-progress value="30" showpercent="true" */>}}
  18. {{</* hackcss-progress value="70" showpercent="true" filltext="pemuatan" */>}}
  19. ```
  20. {{< hackcss-progress value="40" >}}
  21. {{< hackcss-progress value="30" showpercent="true" >}}
  22. {{< hackcss-progress value="70" showpercent="true" filltext="pemuatan" >}}
  23. Inside an [Alert](../alert):
  24. {{< hackcss-alert type="warning" >}}
  25. {{< hackcss-progress value="90" showpercent="true" filltext="Load Average" >}}
  26. {{< /hackcss-alert >}}
  27. Stacked inside a [Card](../card):
  28. ```html
  29. {{</* hackcss-card header="Value-added Tax by Country" >}}
  30. {{< hackcss-progress value="16" showpercent="true" filltext="China – 增值税" >}}
  31. {{< hackcss-progress value="20" showpercent="true" filltext="France – TVA" >}}
  32. {{< hackcss-progress value="10" showpercent="true" filltext="Indonesia – PPN" >}}
  33. {{< hackcss-progress value="8" showpercent="true" filltext="Japan – 消費税" >}}
  34. {{< hackcss-progress value="15" showpercent="true" filltext="New Zealand – GST" >}}
  35. {{< hackcss-progress value="20" showpercent="true" filltext="United Kingdom – VAT" >}}
  36. {{< /hackcss-card */>}}
  37. ```
  38. {{< hackcss-card header="Value-added Tax by Country" >}}
  39. {{< hackcss-progress value="16" showpercent="true" filltext="China – 增值税" >}}
  40. {{< hackcss-progress value="20" showpercent="true" filltext="France – TVA" >}}
  41. {{< hackcss-progress value="10" showpercent="true" filltext="Indonesia – PPN" >}}
  42. {{< hackcss-progress value="8" showpercent="true" filltext="Japan – 消費税" >}}
  43. {{< hackcss-progress value="15" showpercent="true" filltext="New Zealand – GST" >}}
  44. {{< hackcss-progress value="20" showpercent="true" filltext="United Kingdom – VAT" >}}
  45. {{< /hackcss-card >}}