27 lines
		
	
	
		
			No EOL
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			No EOL
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
| <div>
 | |
|     <h1>Editing CSS: <a href="%($css_file%)">%($css_file%)</a></h1>
 | |
|     <br>
 | |
|     <form action="" method="POST">
 | |
|     <fieldset>
 | |
|         <textarea name="css_text" id="css_text" cols="80" rows="43">%{
 | |
|             if(~ $#post_arg_css_text 0 && test -f $cssedit_file)
 | |
|                 cat $cssedit_file | escape_html
 | |
|             if not
 | |
|                 echo -n $post_arg_css_text | escape_html
 | |
|         %}</textarea>
 | |
|         <br>
 | |
|         <a class="bu" href="%($css_file%)" download="%(style`{date -n}.css%)">Download Stylesheet</a>
 | |
|         <hr>
 | |
|         <input type="submit" name="cssedit_save" value="Save">
 | |
|         <small><strong>Note:</strong> Saved changes are final, historical versions of stylesheet are not kept.</small>
 | |
|         </fieldset>
 | |
|     </form>
 | |
|     <h2>Tips</h2>
 | |
|     <div class="info">
 | |
|     <ul>
 | |
|         <li>Pressing <code>F12</code> in your browser and editing the style.css that way is a good way to test/preview your changes out before committing to them using this tool.</li>
 | |
|         <li>Using a computer is suggested for these kind of changes</li>
 | |
|         <li>Learn css: <a href="https://www.w3schools.com/Css/css_intro.asp">w3schools</a></li>
 | |
|     </ul>
 | |
|     </div>
 | |
| </div> | 
