From fe3e199954214e73359e313641b4e72276b43041 Mon Sep 17 00:00:00 2001
From: Shrimadhav U K <shrimadhavuk@gmail.com>
Date: Mon, 12 Jun 2017 12:31:23 +0530
Subject: [PATCH] fix lint errors

---
 css/improve.css     |  8 ++++----
 css/main.css        | 30 +++++++++++++++---------------
 css/map.css         |  4 ++++
 css/preamble.css    |  6 +++---
 gulpfile.js         | 26 +++++++++++++++-----------
 pug/pages/index.pug |  8 ++++----
 6 files changed, 45 insertions(+), 37 deletions(-)

diff --git a/css/improve.css b/css/improve.css
index 038652b..044c20a 100644
--- a/css/improve.css
+++ b/css/improve.css
@@ -1,8 +1,8 @@
-#improve {
-  font-size: 12px;
-  vertical-align: middle;
+.improve {
   background-color: #EEEEEE;
-  padding: 10px;
   border-radius: 2px;
+  font-size: 12px;
   margin-top: 30px;
+  padding: 10px;
+  vertical-align: middle;
 }
diff --git a/css/main.css b/css/main.css
index b6637ca..99ead95 100644
--- a/css/main.css
+++ b/css/main.css
@@ -1,34 +1,34 @@
+/* csslint ignore:start */
+
 @font-face {
   font-family: Amaranth-Regular;
-  src: url(../fonts/Amaranth-Regular.ttf);
+  src: url(../fonts/Amaranth-Regular.ttf) format('truetype');
 }
 
 @font-face {
   font-family: Roboto-Thin;
-  src: url(../fonts/Roboto-Thin.ttf);
+  src: url(../fonts/Roboto-Thin.ttf) format('truetype');
 }
 
-#main {
-  text-align: center;
+/* csslint ignore:end */
+
+.main {
   margin: 8px;
+  text-align: center;
 }
 
-#main h1 {
-  font-family: "Amaranth-Regular";
+/* https://github.com/CSSLint/csslint/wiki/Disallow-qualified-headings */
+h1 {
   color: #949494;
+  font-family: "Amaranth-Regular";
 }
 
-#main h2 {
-  font-family: "Roboto-Thin";
-  color: #898989;
-}
-
-#main p {
+.main > p {
   text-align: justify;
 }
 
-#wrapper {
-  max-width: 968px;
-  margin: auto;
+.wrapper {
   color: #454545;
+  margin: auto;
+  max-width: 968px;
 }
diff --git a/css/map.css b/css/map.css
index 2b4d57b..dd30a9e 100644
--- a/css/map.css
+++ b/css/map.css
@@ -1,3 +1,5 @@
+/* csslint ignore:start */
+
 #mapid {
   height: 60vh;
   margin: 20px auto;
@@ -7,3 +9,5 @@
 #mapid.leaflet-container .leaflet-pane .leaflet-popup .leaflet-popup-content-wrapper .leaflet-popup-content {
   margin: 5px 20px 15px;
 }
+
+/* csslint ignore:end */
diff --git a/css/preamble.css b/css/preamble.css
index 0e529b0..5535329 100644
--- a/css/preamble.css
+++ b/css/preamble.css
@@ -1,8 +1,8 @@
-#preamble-list {
-  text-align: left;
+.preamble-list {
   padding-left: 15px;
+  text-align: left;
 }
 
-#preamble-list li {
+.preamble-list li {
   padding: 10px;
 }
diff --git a/gulpfile.js b/gulpfile.js
index a9cb8a0..5e01e2a 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -62,7 +62,7 @@ gulp.task('GenerateEventsYAML', function(){
   return gulp.src("events/index.yaml")
         .pipe(yamlinc())
         .pipe(gulp.dest('public/events'));
-})
+});
 
 gulp.task('GenerateEventsPage', function(){
     readYaml('public/events/index.yaml', function(err, ydata) {
@@ -97,13 +97,13 @@ gulp.task('GenerateEventsPage', function(){
         });
       }
     });
-})
+});
 
 gulp.task('pughtml', function(){
   runSequence('GenerateEventsYAML',[
     'GenerateIndexPage',
     'GenerateEventsPage'
-  ])
+  ]);
 });
 
 gulp.task('cssmin', function() {
@@ -141,14 +141,18 @@ gulp.task('jsuglify', function() {
     .pipe(gulp.dest('public/js'));
 });
 
+gulp.task('verify', [
+  'public',
+  'htmllint',
+  'csslint',
+  'jslint'
+]);
+
 gulp.task('public', [
   'assetscopy',
   'pughtml',
-  'htmllint',
-  // 'jslint',
-  'jsuglify',
-  // 'csslint',
-  'cssmin'
+  'cssmin',
+  'jsuglify'
 ]);
 
 gulp.task('connect', function() {
@@ -168,14 +172,14 @@ gulp.task('watch', function() {
   ]);
   gulp.watch([
     'css/*.css',
-    'bower.json'
+    'package.json'
   ], [
-    // 'csslint',
+    'csslint',
     'cssmin'
   ]);
   gulp.watch([
     'js/*.js',
-    'bower.json'
+    'package.json'
   ], [
     'jslint',
     'jsuglify',
diff --git a/pug/pages/index.pug b/pug/pages/index.pug
index e87fb63..ebc5238 100644
--- a/pug/pages/index.pug
+++ b/pug/pages/index.pug
@@ -4,11 +4,11 @@ block head
   title= "FSCI (Free Software Community of India)"
 
 block content
-  #wrapper.container
-    #main.row
+  .wrapper.container
+    .main.row
       h1 Free Software User Groups in India
       #mapid
-      ol#preamble-list
+      ol.preamble-list
         li Free Software Community of India is a collective of Free Software (sometimes also called as Open Source Software) users, advocates and developers.
         li We maintain communication and collaboration infrastructure for everyone that respects their freedom and privacy. We maintain a list of Free Software communities and offer sub domains of fsug.in or fosscommunity.in. We depend on donations and community manpower to run the infrastructure.
         li We mentor Free Software enthusiasts to become Free Software contributors.
@@ -27,7 +27,7 @@ block content
         |  with sufficient details of your community or 
         a(href='https://gitlab.com/fsci/fsci.org.in/blob/master/js/locations.js', target='__blank') edit this list
         |.
-      #improve
+      .improve
         a(href='https://gitlab.com/fsci/fsci.org.in', target='_blank')
           img(src='img/code.png')
           span  Improve this page
-- 
GitLab