Skip to content

Commit 9ebc5be

Browse files
committed
Create gh-pages branch via GitHub
1 parent edf5836 commit 9ebc5be

File tree

7 files changed

+610
-0
lines changed

7 files changed

+610
-0
lines changed

images/arrow-down.png

423 Bytes
Loading

images/octocat-small.png

570 Bytes
Loading

index.html

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<title>Csscss by zmoazeni</title>
7+
8+
<link rel="stylesheet" href="stylesheets/styles.css">
9+
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
10+
<script src="javascripts/scale.fix.js"></script>
11+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
12+
<!--[if lt IE 9]>
13+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
14+
<![endif]-->
15+
</head>
16+
<body>
17+
<div class="wrapper">
18+
<header>
19+
<h1 class="header">Csscss</h1>
20+
<p class="header">A CSS redundancy analyzer that analyzes redundancy.</p>
21+
22+
<ul>
23+
<li class="download"><a class="buttons" href="https://github.com/zmoazeni/csscss/zipball/master">Download ZIP</a></li>
24+
<li class="download"><a class="buttons" href="https://github.com/zmoazeni/csscss/tarball/master">Download TAR</a></li>
25+
<li><a class="buttons github" href="https://github.com/zmoazeni/csscss">View On GitHub</a></li>
26+
</ul>
27+
28+
<p class="header">This project is maintained by <a class="header name" href="https://github.com/zmoazeni">zmoazeni</a></p>
29+
30+
31+
</header>
32+
<section>
33+
<p><a href="https://travis-ci.org/zmoazeni/csscss"><img src="https://travis-ci.org/zmoazeni/csscss.png?branch=master" alt="Build Status"></a></p>
34+
35+
<h2>What is it?</h2>
36+
37+
<p>csscss will parse any CSS files you give it and let you know which
38+
rulesets have duplicated declarations.</p>
39+
40+
<h2>What is it for?</h2>
41+
42+
<p>One of the best strategies for me to maintain CSS is to reduce
43+
duplication as much as possible. It's not a silver bullet, but it sure
44+
helps.</p>
45+
46+
<p>To do that, you need to have all the rulesets in your head at all times.
47+
That's hard, csscss is easy. Let it tell you what is redundant.</p>
48+
49+
<h2>How do I use it?</h2>
50+
51+
<p>First you need to install it. It is currently packaged as a ruby gem:</p>
52+
53+
<pre><code>$ gem install csscss
54+
</code></pre>
55+
56+
<p>Then you can run it in at the command line against CSS files.</p>
57+
58+
<pre><code>$ csscss path/to/styles.css path/to/other-styles.css
59+
</code></pre>
60+
61+
<p>Run it in a verbose mode to see all the duplicated styles.</p>
62+
63+
<pre><code>$ csscss -v path/to/styles.css
64+
</code></pre>
65+
66+
<p>You can also choose a minimum number of matches, which will ignore any
67+
rulesets that have fewer matches.</p>
68+
69+
<pre><code>$ csscss -n 10 -v path/to/style.css # ignores rulesets with &lt; 10 matches
70+
</code></pre>
71+
72+
<h2>I found bugs</h2>
73+
74+
<p>This is still a new and evolving project. I heartily welcome feedback.
75+
If you find any issues, please report them on
76+
<a href="https://github.com/zmoazeni/csscss/issues">github</a>.</p>
77+
78+
<p>Please include the smallest CSS snippet to describe the issue and the
79+
output you expect to see.</p>
80+
81+
<h2>Who are you?</h2>
82+
83+
<p>My name is <a href="https://twitter.com/zmoazeni">Zach Moazeni</a>. I work for <a href="http://www.getharvest.com/">an
84+
awesome company</a>, which <a href="http://www.getharvest.com/careers">is
85+
hiring!</a>.</p>
86+
87+
<h2>I'm a dev, I can help</h2>
88+
89+
<p>Awesome! Thanks! Here are the steps I ask:</p>
90+
91+
<ol>
92+
<li>Fork it</li>
93+
<li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
94+
<li>Commit your changes (<code>git commit -am 'Add some feature'</code>)</li>
95+
<li>Make sure the tests pass (<code>bundle exec rake test</code>)</li>
96+
<li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
97+
<li>Create new Pull Request</li>
98+
</ol>
99+
</section>
100+
<footer>
101+
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
102+
</footer>
103+
</div>
104+
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
105+
106+
</body>
107+
</html>

javascripts/scale.fix.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
fixScale = function(doc) {
2+
3+
var addEvent = 'addEventListener',
4+
type = 'gesturestart',
5+
qsa = 'querySelectorAll',
6+
scales = [1, 1],
7+
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
8+
9+
function fix() {
10+
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
11+
doc.removeEventListener(type, fix, true);
12+
}
13+
14+
if ((meta = meta[meta.length - 1]) && addEvent in doc) {
15+
fix();
16+
scales = [.25, 1.6];
17+
doc[addEvent](type, fix, true);
18+
}
19+
20+
};

params.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"Csscss","tagline":"A CSS redundancy analyzer that analyzes redundancy.","body":"[![Build Status](https://travis-ci.org/zmoazeni/csscss.png?branch=master)](https://travis-ci.org/zmoazeni/csscss)\r\n\r\n## What is it? ##\r\n\r\ncsscss will parse any CSS files you give it and let you know which\r\nrulesets have duplicated declarations.\r\n\r\n## What is it for? ##\r\n\r\nOne of the best strategies for me to maintain CSS is to reduce\r\nduplication as much as possible. It's not a silver bullet, but it sure\r\nhelps.\r\n\r\nTo do that, you need to have all the rulesets in your head at all times.\r\nThat's hard, csscss is easy. Let it tell you what is redundant.\r\n\r\n## How do I use it? ##\r\n\r\nFirst you need to install it. It is currently packaged as a ruby gem:\r\n\r\n $ gem install csscss\r\n\r\nThen you can run it in at the command line against CSS files.\r\n\r\n $ csscss path/to/styles.css path/to/other-styles.css\r\n\r\nRun it in a verbose mode to see all the duplicated styles.\r\n\r\n $ csscss -v path/to/styles.css\r\n\r\nYou can also choose a minimum number of matches, which will ignore any\r\nrulesets that have fewer matches.\r\n\r\n $ csscss -n 10 -v path/to/style.css # ignores rulesets with < 10 matches\r\n\r\n## I found bugs ##\r\n\r\nThis is still a new and evolving project. I heartily welcome feedback.\r\nIf you find any issues, please report them on\r\n[github](https://github.com/zmoazeni/csscss/issues).\r\n\r\nPlease include the smallest CSS snippet to describe the issue and the\r\noutput you expect to see.\r\n\r\n## Who are you? ##\r\n\r\nMy name is [Zach Moazeni](https://twitter.com/zmoazeni). I work for [an\r\nawesome company](http://www.getharvest.com/), which [is\r\nhiring!](http://www.getharvest.com/careers).\r\n\r\n## I'm a dev, I can help ##\r\n\r\nAwesome! Thanks! Here are the steps I ask:\r\n\r\n1. Fork it\r\n2. Create your feature branch (`git checkout -b my-new-feature`)\r\n3. Commit your changes (`git commit -am 'Add some feature'`)\r\n4. Make sure the tests pass (`bundle exec rake test`)\r\n4. Push to the branch (`git push origin my-new-feature`)\r\n5. Create new Pull Request\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}

stylesheets/pygment_trac.css

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.highlight { background: #ffffff; }
2+
.highlight .c { color: #999988; font-style: italic } /* Comment */
3+
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
4+
.highlight .k { font-weight: bold } /* Keyword */
5+
.highlight .o { font-weight: bold } /* Operator */
6+
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
7+
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
8+
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
9+
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
10+
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
11+
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
12+
.highlight .ge { font-style: italic } /* Generic.Emph */
13+
.highlight .gr { color: #aa0000 } /* Generic.Error */
14+
.highlight .gh { color: #999999 } /* Generic.Heading */
15+
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
16+
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
17+
.highlight .go { color: #888888 } /* Generic.Output */
18+
.highlight .gp { color: #555555 } /* Generic.Prompt */
19+
.highlight .gs { font-weight: bold } /* Generic.Strong */
20+
.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
21+
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
22+
.highlight .kc { font-weight: bold } /* Keyword.Constant */
23+
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
24+
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
25+
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
26+
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
27+
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
28+
.highlight .m { color: #009999 } /* Literal.Number */
29+
.highlight .s { color: #d14 } /* Literal.String */
30+
.highlight .na { color: #008080 } /* Name.Attribute */
31+
.highlight .nb { color: #0086B3 } /* Name.Builtin */
32+
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
33+
.highlight .no { color: #008080 } /* Name.Constant */
34+
.highlight .ni { color: #800080 } /* Name.Entity */
35+
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
36+
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
37+
.highlight .nn { color: #555555 } /* Name.Namespace */
38+
.highlight .nt { color: #000080 } /* Name.Tag */
39+
.highlight .nv { color: #008080 } /* Name.Variable */
40+
.highlight .ow { font-weight: bold } /* Operator.Word */
41+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
42+
.highlight .mf { color: #009999 } /* Literal.Number.Float */
43+
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
44+
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
45+
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
46+
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
47+
.highlight .sc { color: #d14 } /* Literal.String.Char */
48+
.highlight .sd { color: #d14 } /* Literal.String.Doc */
49+
.highlight .s2 { color: #d14 } /* Literal.String.Double */
50+
.highlight .se { color: #d14 } /* Literal.String.Escape */
51+
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
52+
.highlight .si { color: #d14 } /* Literal.String.Interpol */
53+
.highlight .sx { color: #d14 } /* Literal.String.Other */
54+
.highlight .sr { color: #009926 } /* Literal.String.Regex */
55+
.highlight .s1 { color: #d14 } /* Literal.String.Single */
56+
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
57+
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
58+
.highlight .vc { color: #008080 } /* Name.Variable.Class */
59+
.highlight .vg { color: #008080 } /* Name.Variable.Global */
60+
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
61+
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
62+
63+
.type-csharp .highlight .k { color: #0000FF }
64+
.type-csharp .highlight .kt { color: #0000FF }
65+
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
66+
.type-csharp .highlight .nc { color: #2B91AF }
67+
.type-csharp .highlight .nn { color: #000000 }
68+
.type-csharp .highlight .s { color: #A31515 }
69+
.type-csharp .highlight .sc { color: #A31515 }

0 commit comments

Comments
 (0)