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 4b7337b
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 13 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='pixel' />
<h2><a href="{{ doc.url }}">{{ doc.data.title }}</a></h2>
<p>{% excerpt doc %}</p>
</li>
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.
29 changes: 21 additions & 8 deletions src/styles/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,42 @@ nav.toc ol ol {
}

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
4 changes: 4 additions & 0 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 Down
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 4b7337b

Please sign in to comment.