2018-10-08 04:32:03 +03:00
|
|
|
{%
|
|
|
|
|
2019-02-06 22:49:18 +03:00
|
|
|
if site.safe == false %}{%
|
|
|
|
assign url_root = "/" %}{% else %}{%
|
|
|
|
assign url_root = "/inter/" %}{% endif %}{%
|
2018-10-08 04:32:03 +03:00
|
|
|
|
|
|
|
for file in site.static_files %}{%
|
|
|
|
assign _path = file.path | remove_first: "/inter" %}{%
|
|
|
|
if _path == "/res/ctxedit.js" %}{%
|
|
|
|
assign ctxedit_js_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
|
|
|
|
elsif _path == "/res/ctxedit.css" %}{%
|
|
|
|
assign ctxedit_css_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
|
|
|
|
endif %}{%
|
|
|
|
endfor
|
|
|
|
|
|
|
|
%}
|
|
|
|
<link rel="stylesheet" href="{{url_root}}res/ctxedit.css?v={{ ctxedit_css_v }}">
|
|
|
|
<div id="ctxedit-ui" class="styled-inputs-neg" contenteditable="false" tabindex="1">
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="control popup">
|
|
|
|
<select data-binding="style">
|
2019-01-06 22:58:27 +03:00
|
|
|
<option value="thin">Thin (BETA)</option>
|
|
|
|
<option value="thin-italic">Thin Italic (BETA)</option>
|
|
|
|
<option value="extra-light">Extra Light (BETA)</option>
|
|
|
|
<option value="extra-light-italic">Extra Light Italic (BETA)</option>
|
|
|
|
<option value="light">Light (BETA)</option>
|
|
|
|
<option value="light-italic">Light Italic (BETA)</option>
|
|
|
|
<option disabled>————————————</option>
|
2019-01-06 22:56:06 +03:00
|
|
|
<option value="regular" default selected>Regular</option>
|
2018-10-08 04:32:03 +03:00
|
|
|
<option value="italic">Italic</option>
|
|
|
|
<option value="medium">Medium</option>
|
|
|
|
<option value="medium-italic">Medium Italic</option>
|
|
|
|
<option value="semi-bold">Semi Bold</option>
|
|
|
|
<option value="semi-bold-italic">Semi Bold Italic</option>
|
|
|
|
<option value="bold">Bold</option>
|
|
|
|
<option value="bold-italic">Bold Italic</option>
|
|
|
|
<option value="extra-bold">Extra Bold</option>
|
|
|
|
<option value="extra-bold-italic">Extra Bold Italic</option>
|
|
|
|
<option value="black">Black</option>
|
|
|
|
<option value="black-italic">Black Italic</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="control range">
|
|
|
|
<img title="Size" class="icon" src="icons/font-size.svg">
|
|
|
|
<input type="range" min="8" max="150" step="1" data-binding="size">
|
|
|
|
</div>
|
|
|
|
<div class="control range">
|
|
|
|
<img title="Tracking/letter-spacing in EM" class="icon" src="icons/letter-spacing.svg">
|
|
|
|
<input type="range" min="-0.1" max="0.1" step="0.001" data-binding="tracking">
|
|
|
|
</div>
|
|
|
|
<div class="control range">
|
|
|
|
<img title="Line height" class="icon" src="icons/line-height.svg">
|
|
|
|
<input type="range" value="1.2" min="0.7" max="2" step="0.01" data-binding="lineHeight">
|
|
|
|
</div>
|
|
|
|
<!-- <div class="control color">
|
|
|
|
<input type="color" value="#111" data-binding="color">
|
|
|
|
</div> -->
|
|
|
|
<!-- <div class="control button features-button" title="Features..."></div> -->
|
|
|
|
<div class="control button reset-button" title="Reset"></div>
|
|
|
|
<div class="control button dismiss-button" title="Close editor"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="{{url_root}}res/ctxedit.js?v={{ ctxedit_js_v }}"></script>
|