diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..b918b18 Binary files /dev/null and b/favicon.ico differ diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..a5c7911 --- /dev/null +++ b/favicon.svg @@ -0,0 +1,69 @@ + + + + diff --git a/files.txt b/files.txt index 632cf34..1a8112b 100644 --- a/files.txt +++ b/files.txt @@ -1,2 +1,3 @@ readme.md 2022-28-06 Tickle -examples.md 2022-28-06 Examples \ No newline at end of file +examples.md 2022-28-06 Examples +tutorial-styling.md 2022-28-06 Styling \ No newline at end of file diff --git a/index.html b/index.html index d20fd89..cd2d05d 100644 --- a/index.html +++ b/index.html @@ -22,15 +22,89 @@ margin: 0; padding: 0; } - .trigger { - display: none; + body { + padding: 3em; + max-width: 52em; + margin: 0 auto; } - .left-nav > * { + pre { + margin: 0; + padding: 3em; + max-width: inherit; + max-height: 100vh; + overflow: scroll; + background: rgb(192, 192, 192); + position: absolute; + top: 0; + left: 50%; + transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55); + transform: translate(-50%, -100%); + } + .is-source-enabled pre { + transform: translate(-50%, 0); + } + button { + display: inline-block; + border: none; + margin: 0; + text-decoration: none; + font-family: inherit; + font-size: 1rem; + display: flex; + justify-content: center; + align-content: center; + text-align: center; + vertical-align: middle; + background: var(--accent); + color: var(--background); + cursor: pointer; + padding: 0.5em 1em; + border-radius: 0 0 0.2em 0; + box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; + -webkit-appearance: none; + -moz-appearance: none; + } + h1, + h2, + h3, + h4 { + color: var(--accent); + font-family: "Lobster", serif; + } + a { + color: var(--accent); + position: relative; + text-decoration: none; + padding: 0.1em; + } + a::after { + content: ""; + position: absolute; + background-color: var(--accent); + position: absolute; + left: 0; + bottom: 3px; + width: 100%; + height: 1px; + z-index: -1; + transition: all 0.1s ease-in; + } + a:hover { + color: var(--background); + transition: all 0.3s ease-in-out; + } + a:hover::after { + bottom: 0; + height: 100%; + transition: all 0.3s ease-in-out; + } + .menu, + .burger { position: fixed; top: 0; left: 0; } - .left-nav > .menu { + .menu { padding: 1em; transform: translateX(-100%); display: flex; @@ -40,39 +114,26 @@ transition: all 0.3s ease-out; gap: 1em; } - .left-nav > .menu a { + .menu a { text-decoration: none; background: var(--background); color: var(--accent); box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px; padding: 0.2em 0.4em; } - .left-nav > .menu a:hover { + .menu a:hover { background: var(--accent); color: var(--background); } - .left-nav > .trigger:checked ~ .menu { + .menu-is-open .menu { transform: translateX(0); transition-duration: 0.1s; } - .burger { - width: 2em; - height: 2em; - display: flex; - justify-content: center; - align-content: center; - text-align: center; - vertical-align: middle; - line-height: 2em; - border-radius: 0.2em; - box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; - transition: background 0.5s ease; - } - .left-nav > .trigger:checked ~ .burger { + .menu-is-open .burger { color: transparent; } - .left-nav > .trigger:checked ~ .burger, + .menu-is-open .burger, #Loading { top: 0; right: 0; @@ -80,9 +141,10 @@ height: 100%; border-radius: 0; background: rgba(17, 17, 17, 0.2); + cursor: default; } #Loading { - position: absolute; + position: fixed; text-align: center; align-items: center; justify-content: center; @@ -94,16 +156,15 @@ display: flex; overflow: hidden; } + #Loading > * { + animation: load 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1); + } .is-loading #Loading { opacity: 1; height: 100%; transition: opacity 1s ease-in, height 0 linear; } - #Loading::after { - content: "❤"; - animation: beat 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1); - } - @keyframes beat { + @keyframes load { 0% { transform: scale(0.95); } @@ -123,48 +184,37 @@ transform: scale(0.9); } } - #Body { - padding: 3em; - max-width: 52em; - margin: 0 auto; - } - #Body h1, - #Body h2, - #Body h3, - #Body h4 { - color: var(--accent); - font-family: "Lobster", serif; - } - #Body a { - color: var(--background); - background-color: var(--accent); - text-decoration: none; - padding: 0.1em 0.4em; - }
-❤
+