Skip to content

Commit

Permalink
Version 4 (#261)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mdo authored May 26, 2022
1 parent 5c64543 commit 95e7712
Show file tree
Hide file tree
Showing 37 changed files with 826 additions and 761 deletions.
36 changes: 30 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
# Code Guide
<h3 align="center">
<a href="https://codeguide.co/">
<img src="code-guide-logo.png" alt="Code Guide logo" width="192" height="192">
</a>
<br>
Code Guide
</h3>

<p align="center" markdown="1">
Standards for developing consistent, flexible, and sustainable HTML and CSS.
<br>
<a href="https://codeguide.co"><strong>Start reading ☞</strong></a>
</p>

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.
---

**[Start reading ☞](https://codeguide.co)**
## Setup

---
Code Guide is built on Jekyll and hosted on GitHub Pages. To install Jekyll:

```sh
gem install jekyll
```

To start the local server:

```sh
jekyll serve
```

Open `localhost:4000` in your browser.

### License
## License

Released under MIT by, and copyright, @mdo.

### Translations
## Translations

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

Expand Down
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ url: https://codeguide.co
permalink: pretty
sass:
style: compressed
version: 4.0.0
og_image: https://raw.githubusercontent.com/mdo/code-guide/gh-pages/code-guide-social.png
9 changes: 0 additions & 9 deletions _includes/css/class-names.css

This file was deleted.

11 changes: 0 additions & 11 deletions _includes/css/comments.css

This file was deleted.

29 changes: 0 additions & 29 deletions _includes/css/declaration-order.css

This file was deleted.

7 changes: 0 additions & 7 deletions _includes/css/import.html

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/css/media-queries.css

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/css/nesting.scss

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/css/operators.scss

This file was deleted.

17 changes: 0 additions & 17 deletions _includes/css/organization-comments.css

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/css/organization-files.txt

This file was deleted.

5 changes: 0 additions & 5 deletions _includes/css/prefixed-properties.css

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/css/selectors.css

This file was deleted.

16 changes: 0 additions & 16 deletions _includes/css/shorthand.css

This file was deleted.

15 changes: 0 additions & 15 deletions _includes/css/single-declarations.css

This file was deleted.

17 changes: 0 additions & 17 deletions _includes/css/syntax.css

This file was deleted.

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

<ul class="quick-links">
<li>
<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>
<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>
</li>
<li>
<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>
</li>
</ul>

<ul class="quick-links">
<li class="follow-btn">
<a href="https://twitter.com/mdo" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @mdo</a>
Expand Down
19 changes: 4 additions & 15 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
<header class="cg-masthead">
<div class="container">
<img class="cg-icon" src="code-guide-logo.png" alt="Code Guide logo">
<h1 class="cg-masthead-title">
<div class="cg-icon"></div>
Code<br>
Guide
Code Guide
</h1>
<p class="cg-masthead-subtitle">
{{ site.description }}
</p>

<p class="masthead-links">
<a href="https://github.com/mdo/code-guide" title="View on GitHub">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16">
<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"/>
</svg>
</a>
<a href="https://twitter.com/mdo" title="Follow on Twitter">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16">
<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"/>
</svg>
</a>
<p>
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>
</p>

<script async src="//cdn.carbonads.com/carbon.js?serve=CKYI52JU&placement=codeguide" id="_carbonads_js"></script>
Expand Down
7 changes: 0 additions & 7 deletions _includes/html/attribute-order.html

This file was deleted.

7 changes: 0 additions & 7 deletions _includes/html/boolean-attributes.html

This file was deleted.

5 changes: 0 additions & 5 deletions _includes/html/doctype.html

This file was deleted.

3 changes: 0 additions & 3 deletions _includes/html/encoding.html

This file was deleted.

2 changes: 0 additions & 2 deletions _includes/html/ie-compatibility-mode.html

This file was deleted.

3 changes: 0 additions & 3 deletions _includes/html/lang.html

This file was deleted.

9 changes: 0 additions & 9 deletions _includes/html/naming.html

This file was deleted.

7 changes: 0 additions & 7 deletions _includes/html/reducing-markup.html

This file was deleted.

10 changes: 0 additions & 10 deletions _includes/html/style-script.html

This file was deleted.

10 changes: 0 additions & 10 deletions _includes/html/syntax.html

This file was deleted.

Loading

0 comments on commit 95e7712

Please sign in to comment.