This is how I handle my code comments, there are 2 types:
- Section header (with optional additional comment(s))
- Regular comment(s)
All comments are limited to 80 characters per line with padding on each horizontal side consisting of two spaces.
.grid { | |
margin-left:-24px; | |
list-style:none; | |
margin-bottom:0; | |
} | |
.grid__item { | |
display:inline-block; | |
width:50%; | |
padding-left:24px; |
(function ($, window, document, undefined) { 'use strict'; $(function () { | |
// | |
}); })(jQuery, window, document); |
.slideshow { | |
margin-bottom:20px; | |
position:relative; | |
} | |
.slideshow__item { | |
width:100%; | |
} | |
.slideshow__item + .slideshow__item { |
<form class="contact-form" method="post" action=""> | |
<ul class="form-fields"> | |
<li> | |
<label>Your Name</label> | |
<input class="text-input" type="text" name="name" required value="TEST NAME"> | |
</li> | |
<li> | |
<label>Your Email</label> | |
<input class="text-input" type="email" name="email" required value="email@email.com"> | |
</li> |
/*********************************************************************************** | |
THEME NAME: Parent Theme - Child | |
*********************************************************************************** | |
Template: parent-theme | |
Author: Tom Blanchard | |
Author URI: http://tomblanchard.co.uk | |
Version: 1.0 | |
**********************************************************************************/ |
.border-box, | |
.border-box:before, | |
.border-box:after, | |
.border-box *, | |
.border-box *:before, | |
.border-box *:after { | |
-webkit-box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
box-sizing:border-box; | |
} |
[sendmail] | |
smtp_server = mail.tomblanchard.co.uk | |
smtp_port = 26 | |
smtp_ssl = none | |
error_logfile = error.log |
This is how I handle my code comments, there are 2 types:
All comments are limited to 80 characters per line with padding on each horizontal side consisting of two spaces.
$.getJSON('http://api.bigcartel.com/USERNAME/products.json?limit=5&callback=?', function(data) { | |
$.each(data, function(i, obj) { | |
$('\ | |
<a href="http://USERNAME.bigcartel.com' + obj.url + '">' + | |
obj.name + | |
'$' + parseFloat(obj.price, 10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').toString() + | |
'<img width="100" src="' + obj.images[0].url + '" alt="">' + | |
'</a>' | |
).appendTo('.products'); |
<script>!function(a,b){"use strict";b.documentElement.className=b.documentElement.className.replace("no-js","js"),("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&(document.documentElement.className=document.documentElement.className.replace("no-touch","touch"))}(window,document);</script> |