Skip to content

Commit

Permalink
more illo work
Browse files Browse the repository at this point in the history
  • Loading branch information
chasemccoy committed Mar 22, 2020
1 parent f3a78ab commit 0354806
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/_includes/css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/_includes/doc-grid.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ul class='doc-grid'>
{%- for doc in collections.docs %}
<li {% if doc.url == page.url -%} class="doc-list-active" {%- endif -%}>
<img src="/img/{{ doc.data.title | slug }}.png" />
<img src="/img/{{ doc.data.title | slug }}.png" class='doc-image pixel' />
<h2><a href="{{ doc.url }}">{{ doc.data.title }}</a></h2>
<p>{% excerpt doc %}</p>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<article>
<header><h1>{{ title }}</h1></header>

<img class='doc-header-image pixel' src="/img/{{ title | slug }}.png" />
<img class='doc-header-image doc-image pixel' src="/img/{{ title | slug }}.png" />

{% if content | toc %}
<h2>Table of contents</h2>
Expand Down
4 changes: 2 additions & 2 deletions src/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<header>
<img src="/img/logo.png" width="100" class='pixel' />
<img src="/img/logo.png" width="64" class='' />
<h1>
<span role='img' aria-label='Hammer and wrench emoji'>🛠</span> <a href='/'>designsystems.dev</a>
<a href='/'>designsystems.dev</a>
</h1>

<p>{{ pkg.description }}</p>
Expand Down
Binary file modified src/img/components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/design-tokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/taxonomy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/tools.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 26 additions & 8 deletions src/styles/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,48 @@ nav.toc ol ol {
list-style-type: circle;
}

img.doc-image {
border-radius: 12px;
/* border: 2px solid black; */
}

img.doc-header-image {
max-width: none;
width: calc(100% + 10em);
margin-left: -5em;
/* max-width: none; */
/* width: calc(100% + 10em);
margin-left: -5em; */
width: 100%;
}

ul.doc-grid {
padding: 0;
display: flex;
/* display: flex;
flex-wrap: wrap;
margin: -0.5em -0.5em 0;
margin: -0.5em -0.5em 0; */

--auto-grid-min-size: 20rem;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
grid-gap: 3rem;
}

@media screen and (max-width: 30rem) {
ul.doc-grid {
--auto-grid-min-size: 100%;
}
}

ul.doc-grid li {
list-style-type: none;
display: block;
width: 100%;
/* width: 50%;
padding: 0.5em 0.5em 0;
min-width: 30ch; */
}

ul.doc-grid img {
/* height: 180px; */
width: 100%;
object-fit: cover;
/* width: 100%;
object-fit: cover; */
margin-bottom: 0.5em;
}

Expand Down
8 changes: 6 additions & 2 deletions src/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
--wrapper-max-width: 100ch;
}

/* body {
background: #151515;
color: white;
Expand All @@ -8,7 +12,7 @@ a {
} */

.pixel {
image-rendering: pixelated;
/* image-rendering: pixelated;
image-rendering: -moz-crisp-edges;
image-rendering: crisp-edges;
image-rendering: crisp-edges; */
}
2 changes: 1 addition & 1 deletion src/styles/layout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#site-wrapper {
max-width: 64ch;
max-width: var(--wrapper-max-width);
min-height: 100vh;
margin: 0 auto;
padding: 32px 16px;
Expand Down

0 comments on commit 0354806

Please sign in to comment.