1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-04 03:46:54 +03:00
guide/templates/utils/img-controls.widget

31 lines
911 B
Plaintext
Raw Normal View History

2016-08-18 03:49:56 +03:00
Description
============================================================
Various controls:
* img-button an image that is a link
* small-control one of small image buttons used for traits and so on
Both take the following arguments:
* src link to the image
* title title text
* action the JS action to execute on click, must end with a ';'
2016-09-14 01:02:32 +03:00
* class optional "class" argument
2016-08-18 03:49:56 +03:00
HTML: img-button
============================================================
<a href="#" {{# class}}class="{{.}}"{{/ class}} onclick="{{action}} return false;"><img src="{{src}}" alt="{{title}}" title="{{title}}"></a>
HTML: small-control
============================================================
2016-09-14 01:02:32 +03:00
{{> img-button class=[|small-control{{# class}} {{.}}{{/ class}}|] }}
2016-08-18 03:49:56 +03:00
CSS
============================================================
.small-control img {
opacity: 0.5;
width: 12px;
}