Skip to content

Fix site layout #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ pre, code {
background: rgb(30,30,30);
}

pre > code
{ background: none }

code {
margin: 0 0.5em;
padding: 0 0.5em;
Expand All @@ -165,7 +168,11 @@ code {
pre {
overflow: scroll;
text-align: center;
margin: 0 6em 1.612em;
margin: 0 2em 1.612em;
background: rgb(30,30,30);
border: 32px double #4d4d4d;
border-radius: 0 4.0em 4.0em 4.0em;
box-shadow: 0em .1em 1em rgba(20,20,20,0.9);
}

section#installation pre em.comment
Expand Down Expand Up @@ -206,13 +213,12 @@ section#installation pre em.comment
/* HOLY GRAIL */

body { display: flex; flex-flow: column }
body > main, body > aside { flex: 1 }

@media (orientation: landscape) {

body { flex-flow: row wrap }
body > main { margin-left: 20vw; flex-basis: 55vw }
body > aside { flex-basis: 25vw }
body > main { margin-left: 20vw; flex-basis: 55vw; max-width: 55vw; }
body > aside { flex-basis: 24vw } /* This should be 25 WTF? */
body > nav {
top: 0;
left: 0;
Expand Down
13 changes: 2 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -352,22 +352,13 @@ <h2 slot=header>
<section view id=installation>
<h1>Easy Installation</h1>

<p>No need for Node.js, Webpack, Babel, or Gulp.

<p><strong>snuggsiツ</strong> works in production or in a plain 'ol HTML file!

<p>Simply place the following script within your webpage:</p>

<pre><code>
<em class=comment>&lt;!-- http(s): protocol required to run locally --&gt;</em>
&lt;script src=//unpkg.com/snuggsi&gt;&lt;/script&gt;
&lt;script src=https://unpkg.com/snuggsi&gt;&lt;/script&gt;
</pre></code>

<p class=center>Et Voila <em>(that's it!)</em> ツ

<p class=center>See
<a target=github href=https://github.com/devpunks/snuggsi/wiki/Module-Imports>ECMAScript Module Imports</a>
for<code> &lt;script type=module&gt;</code> support!
<p><strong>snuggsiツ</strong> works in production or in a plain 'ol HTML file!

</section>

Expand Down