Skip to content

Commit 95e7712

Browse files
authored
Version 4 (#261)
* Update for v4 - Rewrite all content in Markdown - Drop some outdated content - Fix all open issues - New project logo - Updated design * Add CSS Colors section for color syntax and contrast * edit * More code cleanup, new logical properties section, link more color stuff * Update README.md * Few tweaks * Update social image, favicon, and OG and Twitter images * Update image URL
1 parent 5c64543 commit 95e7712

37 files changed

+826
-761
lines changed

README.md

+30-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
1-
# Code Guide
1+
<h3 align="center">
2+
<a href="https://codeguide.co/">
3+
<img src="code-guide-logo.png" alt="Code Guide logo" width="192" height="192">
4+
</a>
5+
<br>
6+
Code Guide
7+
</h3>
8+
9+
<p align="center" markdown="1">
10+
Standards for developing consistent, flexible, and sustainable HTML and CSS.
11+
<br>
12+
<a href="https://codeguide.co"><strong>Start reading ☞</strong></a>
13+
</p>
214

3-
Code Guide is a set of standards for developing consistent, flexible, and sustainable HTML and CSS. It comes from years of experience writing code on projects of all sizes. It's not the end-all be-all, but it's a start.
15+
---
416

5-
**[Start reading ☞](https://codeguide.co)**
17+
## Setup
618

7-
---
19+
Code Guide is built on Jekyll and hosted on GitHub Pages. To install Jekyll:
20+
21+
```sh
22+
gem install jekyll
23+
```
24+
25+
To start the local server:
26+
27+
```sh
28+
jekyll serve
29+
```
30+
31+
Open `localhost:4000` in your browser.
832

9-
### License
33+
## License
1034

1135
Released under MIT by, and copyright, @mdo.
1236

13-
### Translations
37+
## Translations
1438

1539
Translations are maintained by their creators and may not always be up to date with the original here.
1640

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ url: https://codeguide.co
44
permalink: pretty
55
sass:
66
style: compressed
7+
version: 4.0.0
8+
og_image: https://raw.githubusercontent.com/mdo/code-guide/gh-pages/code-guide-social.png

_includes/css/class-names.css

-9
This file was deleted.

_includes/css/comments.css

-11
This file was deleted.

_includes/css/declaration-order.css

-29
This file was deleted.

_includes/css/import.html

-7
This file was deleted.

_includes/css/media-queries.css

-9
This file was deleted.

_includes/css/nesting.scss

-9
This file was deleted.

_includes/css/operators.scss

-9
This file was deleted.

_includes/css/organization-comments.css

-17
This file was deleted.

_includes/css/organization-files.txt

-9
This file was deleted.

_includes/css/prefixed-properties.css

-5
This file was deleted.

_includes/css/selectors.css

-9
This file was deleted.

_includes/css/shorthand.css

-16
This file was deleted.

_includes/css/single-declarations.css

-15
This file was deleted.

_includes/css/syntax.css

-17
This file was deleted.

_includes/footer.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<footer class="footer">
2-
<p>&lt;3</p>
3-
<p>Made with all the love in the world by <a href="https://twitter.com/mdo">@mdo</a>.</p>
4-
<p>Open sourced under MIT. Copyright {{ site.time | date: '%Y' }} <a href="https://twitter.com/mdo">@mdo</a>.</p>
2+
<p>
3+
Open sourced by <a href="https://twitter.com/mdo">@mdo</a> under MIT license. Copyright {{ site.time | date: '%Y' }}.
4+
</p>
55

66
<ul class="quick-links">
77
<li>
8-
<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user=mdo&repo=code-guide&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
8+
<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user=mdo&repo=code-guide&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
99
</li>
1010
<li>
1111
<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user=mdo&repo=code-guide&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>
1212
</li>
1313
</ul>
14+
1415
<ul class="quick-links">
1516
<li class="follow-btn">
1617
<a href="https://twitter.com/mdo" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @mdo</a>

_includes/header.html

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
<header class="cg-masthead">
22
<div class="container">
3+
<img class="cg-icon" src="code-guide-logo.png" alt="Code Guide logo">
34
<h1 class="cg-masthead-title">
4-
<div class="cg-icon"></div>
5-
Code<br>
6-
Guide
5+
Code Guide
76
</h1>
87
<p class="cg-masthead-subtitle">
98
{{ site.description }}
109
</p>
11-
12-
<p class="masthead-links">
13-
<a href="https://github.com/mdo/code-guide" title="View on GitHub">
14-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16">
15-
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
16-
</svg>
17-
</a>
18-
<a href="https://twitter.com/mdo" title="Follow on Twitter">
19-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16">
20-
<path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"/>
21-
</svg>
22-
</a>
10+
<p>
11+
Created by <a href="https://markdotto.com">@mdo</a> &middot; v{{ site.version }} &middot; <a href="https://github.com/mdo/code-guide/">GitHub repo</a>
2312
</p>
2413

2514
<script async src="//cdn.carbonads.com/carbon.js?serve=CKYI52JU&placement=codeguide" id="_carbonads_js"></script>

_includes/html/attribute-order.html

-7
This file was deleted.

_includes/html/boolean-attributes.html

-7
This file was deleted.

_includes/html/doctype.html

-5
This file was deleted.

_includes/html/encoding.html

-3
This file was deleted.

_includes/html/ie-compatibility-mode.html

-2
This file was deleted.

_includes/html/lang.html

-3
This file was deleted.

_includes/html/naming.html

-9
This file was deleted.

_includes/html/reducing-markup.html

-7
This file was deleted.

_includes/html/style-script.html

-10
This file was deleted.

_includes/html/syntax.html

-10
This file was deleted.

0 commit comments

Comments
 (0)