Add dark theme & refactor

This commit is contained in:
Egoist 2022-01-16 22:42:46 +03:00
parent 2bf453dd85
commit 9ce00ebd25
5 changed files with 543 additions and 240 deletions

275
doc.html
View File

@ -1,42 +1,84 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scribbler Documentation - a code documentation page template for codrops</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" href="scribbler-global.css">
<link rel="stylesheet" href="scribbler-doc.css">
<link rel="author" href="humans.txt">
</head>
<body>
<div class="doc__bg"></div>
<nav class="header">
<h1 class="logo">Scribbler <span class="logo__thin">Doc</span></h1>
<ul class="menu">
<div class="menu__item toggle"><span></span></div>
<li class="menu__item"><a href="" class="link link--dark"><i class="fa fa-github"></i> Github</a></li>
<li class="menu__item"><a href="index.html" class="link link--dark"><i class="fa fa-home"></i> Home</a></li>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Scribbler Documentation - a code documentation page template for codrops
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900">
<link rel="stylesheet" href="scribbler-global.css">
<link rel="stylesheet" href="scribbler-doc.css">
<link rel="author" href="humans.txt">
</head>
<body>
<div class="doc__bg"></div>
<!-- Navbar -->
<nav class="header">
<h1 class="logo">
Scribbler
<span class="logo__thin">
Doc
</span>
</h1>
<ul class="menu">
<div class="menu__item toggle">
<span></span>
</div>
<li class="menu__item">
<a href="" class="link link--dark">
<i class="fa fa-github"></i>
Github
</a>
</li>
<li class="menu__item">
<a href="index.html" class="link link--dark">
<i class="fa fa-home"></i>
Home
</a>
</li>
</ul>
</nav>
<div class="wrapper">
<!-- Sidebar -->
<aside class="doc__nav">
<ul>
<li class="js-btn selected">Get Started</li>
<li class="js-btn">Configuration</li>
<li class="js-btn">Keybindings</li>
<li class="js-btn">Issues</li>
</ul>
</nav>
<div class="wrapper">
<aside class="doc__nav">
<ul>
<li class="js-btn selected">Get Started</li>
<li class="js-btn">Configuration</li>
<li class="js-btn">Keybindings</li>
<li class="js-btn">Issues</li>
</ul>
</aside>
<article class="doc__content">
<section class="js-section">
<h3 class="section__title">Get Started</h3>
<p>Learn how to configure settings for Scribbler, such as your syntax highlighting preference and the default saving folder location.</p>
<h3 class="section__title">Installation</h3>
<div class="code__block code__block--notabs">
<pre class="code code--block">
</aside>
<!-- Contents -->
<article class="doc__content">
<section class="js-section">
<h3 class="section__title">
Get Started
</h3>
<p>
Learn how to configure settings for Scribbler, such as your syntax highlighting preference and the default
saving folder location.
</p>
<h3 class="section__title">
Installation
</h3>
<div class="code__block code__block--notabs">
<pre class="code code--block">
<code>
$ scribbler ——config
{
@ -48,54 +90,117 @@
}
</code>
</pre>
</div>
</section>
<section class="js-section">
<h3 class="section__title">Configuration</h3>
<p>Learn how to configure settings for Scribbler, such as your syntax highlighting preference and the default saving folder location.</p>
<table id="customers">
<tr>
<th>Options</th>
<th>Value</th>
<th>Default</th>
</tr>
<tr>
<td>encryption</td>
<td>encrypt all notes before saving. If turned on, it requires password to open the file.</td>
<td>false</td>
</tr>
<tr>
<td>highlighting</td>
<td>Show syntax highlight on markdown text.</td>
<td>true</td>
</tr>
<tr>
<td>prettyTable</td>
<td>Render table with Scribblers pretty table style.</td>
<td>true</td>
</tr>
</table>
<p>Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates suavitate vituperatoribus.</p>
<hr />
</section>
<section class="js-section">
<h3 class="section__title">Keybindings</h3>
<p>Lorem ipsum dolor sit amet, scripta tibique indoctum sit ei, mel inani aeterno ad. Facer oratio ex per. At eam movet verear, in sea brute patrioque disputando, usu nonumes torquatos an. Ex his quaerendum intellegebat, ut vel homero accusam. Eum at debet tibique, in vocibus temporibus adversarium sed. Porro verear eu vix, ne usu tation vituperata.</p>
<p>Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates suavitate vituperatoribus.</p>
<p>Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates suavitate vituperatoribus.</p>
<hr />
</section>
<section class="js-section">
<h3 class="section__title">Issues</h3>
<p>Lorem ipsum dolor sit amet, scripta tibique indoctum sit ei, mel inani aeterno ad. Facer oratio ex per. At eam movet verear, in sea brute patrioque disputando, usu nonumes torquatos an. Ex his quaerendum intellegebat, ut vel homero accusam. Eum at debet tibique, in vocibus temporibus adversarium sed. Porro verear eu vix, ne usu tation vituperata.</p>
<p>Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates suavitate vituperatoribus.</p>
</section>
</article>
</div>
</div>
</section>
<section class="js-section">
<h3 class="section__title">
Configuration
</h3>
<p>
Learn how to configure settings for Scribbler, such as your syntax highlighting preference and the default
saving folder location.
</p>
<table id="customers">
<tr>
<th>Options</th>
<th>Value</th>
<th>Default</th>
</tr>
<tr>
<td>encryption</td>
<td>encrypt all notes before saving. If turned on, it requires password to open the file.</td>
<td>false</td>
</tr>
<tr>
<td>highlighting</td>
<td>Show syntax highlight on markdown text.</td>
<td>true</td>
</tr>
<tr>
<td>prettyTable</td>
<td>Render table with Scribblers pretty table style.</td>
<td>true</td>
</tr>
</table>
<p>
Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas
concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius
te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates
suavitate vituperatoribus.
</p>
<hr />
</section>
<section class="js-section">
<h3 class="section__title">
Keybindings
</h3>
<p>
Lorem ipsum dolor sit amet, scripta tibique indoctum sit ei, mel inani aeterno ad. Facer oratio ex per. At
eam movet verear, in sea brute patrioque disputando, usu nonumes torquatos an. Ex his quaerendum intellegebat,
ut vel homero accusam. Eum at debet tibique, in vocibus temporibus adversarium sed. Porro verear eu vix, ne
usu tation vituperata.
</p>
<p>
Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas
concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius
te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates
suavitate vituperatoribus.
</p>
<p>
Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas
concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius
te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates
suavitate vituperatoribus.
</p>
<hr />
</section>
<section class="js-section">
<h3 class="section__title">
Issues
</h3>
<p>
Lorem ipsum dolor sit amet, scripta tibique indoctum sit ei, mel inani aeterno ad. Facer oratio ex per. At
eam movet verear, in sea brute patrioque disputando, usu nonumes torquatos an. Ex his quaerendum intellegebat,
ut vel homero accusam. Eum at debet tibique, in vocibus temporibus adversarium sed. Porro verear eu vix, ne
usu tation vituperata.
</p>
<p>
Malis percipitur an pro. Pro aperiam persequeris at, at sonet sensibus mei, id mea postulant definiebas
concludaturque. Id qui malis abhorreant, mazim melius quo et. At eam altera dolorum, case dicant lobortis ius
te, ad vel affert oportere reprehendunt. Quo no verterem deseruisse, mea brute postea te, ne per tacimates
suavitate vituperatoribus.
</p>
</section>
</article>
</div>
<footer class="footer">
Scribbler is a free HTML template created exclusively for
<a href="https://tympanus.net/codrops/" target="_blank" class="link link--light">
Codrops
</a>.
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script src="scribbler.js"></script>
</body>
<footer class="footer">Scribbler is a free HTML template created exclusively for <a href="https://tympanus.net/codrops/" target="_blank" class="link link--light">Codrops</a>.</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="scribbler.js"></script>
</body>
</html>

View File

@ -1,149 +1,298 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scribbler - a codding landing page template for codrops</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/railscasts.min.css">
<link rel="stylesheet" href="scribbler-global.css">
<link rel="stylesheet" href="scribbler-landing.css">
<link rel="author" href="humans.txt">
</head>
<body>
<nav>
<div class="logo"></div>
<ul class="menu">
<div class="menu__item toggle"><span></span></div>
<li class="menu__item"><a href="doc.html" class="link link--dark"><i class="fa fa-book"></i> Documentation</a></li>
<li class="menu__item"><a href="" class="link link--dark"><i class="fa fa-github"></i> Github</a></li>
</ul>
</nav>
<div class="hero">
<h1 class="hero__title">Scribbler</h1>
<p class="hero__description">Take your markdown notes in terminal</p>
</div>
<div class="hero__terminal">
<pre>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Scribbler - a codding landing page template for codrops
</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800,900">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/railscasts.min.css">
<link rel="stylesheet" href="scribbler-global.css">
<link rel="stylesheet" href="scribbler-landing.css">
<link rel="author" href="humans.txt">
</head>
<body>
<!-- Navbar -->
<nav>
<div class="logo"></div>
<ul class="menu">
<div class="menu__item toggle">
<span></span>
</div>
<li class="menu__item">
<a href="doc.html" class="link link--dark">
<i class="fa fa-book"></i>
Documentation
</a>
</li>
<li class="menu__item">
<a href="" class="link link--dark">
<i class="fa fa-github"></i>
Github
</a>
</li>
</ul>
</nav>
<!-- Hero -->
<div class="hero">
<h1 class="hero__title">
Scribbler
</h1>
<p class="hero__description">
Take your markdown notes in terminal
</p>
</div>
<!-- Hero Terminal -->
<div class="hero__terminal">
<pre>
<!-- Place your demo code here -->
<code class="shell-session demo">hyperyolo ~ $ </code>
<code class="shell-session demo">
hyperyolo ~ $
</code>
</pre>
</div>
<div class="wrapper">
<div class="installation">
<h3 class="section__title">Installation</h3>
<div class="tab__container">
<ul class="tab__menu">
<li class="tab active" data-tab="mac">mac</li>
<li class="tab" data-tab="linux">linux</li>
<li class="tab" data-tab="win">win</li>
</ul>
<pre class="nohighlight code">
</div>
<div class="wrapper">
<!-- Installation -->
<div class="installation">
<h3 class="section__title">
Installation
</h3>
<div class="tab__container">
<!-- Tab Menu -->
<ul class="tab__menu">
<li class="tab active" data-tab="mac">mac</li>
<li class="tab" data-tab="linux">linux</li>
<li class="tab" data-tab="win">win</li>
</ul>
<!-- Commands -->
<pre class="nohighlight code">
<code class="tab__pane active mac">$ brew install scribbler</code>
<code class="tab__pane linux">$ apt-get install scribbler</code>
<code class="tab__pane win">$ gem install scribbler</code>
</pre>
</div>
</div>
<div class="feature">
<div class="feature__item">
<h3 class="section__title">Fast & Light</h3>
<p>Start writing your notes immediately in any terminal! No more time wasted on navigating and opening your text editor.</p>
</div>
<div class="feature__item">
<h3 class="section__title">File Syncing</h3>
<p>Save your file in Dropbox then you can access to it from anywhere.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Secure</h3>
<p>Encrypt your notes optionally. No one can get to your secrets! </p>
</div>
<div class="feature__item">
<h3 class="section__title">Configuration</h3>
<p>Maintain all your settings in a single <span class="code code--inline">config.json</span> file. Never need to redo the setting every single time jotting down a note.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Highlightings</h3>
<p>For better readability, scribbler has a clean, beautiful color scheme allow you to scan files fast.</p>
</div>
<div class="feature__item">
<h3 class="section__title">Keybindings</h3>
<p>You can expect common keybindings for scribbler. Customize <span class="code code--inline">bindings.json</span> for your own liking! </p>
</div>
</div>
<div class="keybinding">
<ul class="keybinding__detail">
<h3 class="keybinding__title">Default Keybindings</h3>
<li>Quit without saving <span class="keybinding__label">Ctrl+C</span></li>
<li>Save <span class="keybinding__label">Cmd+S</span></li>
<li>Save and Quit <span class="keybinding__label">Ctrl+D</span></li>
<li>Undo <span class="keybinding__label">Cmd+Z</span></li>
</ul>
<ul class="keybinding__detail">
<h3 class="keybinding__title">Markdown Keybindings</h3>
<li><span class="keybinding__label">Ctrl+A</span> Insert Link Markdown</li>
<li><span class="keybinding__label">Ctrl+I</span> Insert Image Markdown</li>
<li><span class="keybinding__label">Ctrl+V</span> Insert YouTube Video</li>
<li><span class="keybinding__label">Ctrl+T</span> Insert Table</li>
</ul>
</div>
<div class="callout">
<p>Read our documentation for advanced keybindings and customization</p>
<a href="doc.html" class="button--primary">Documentation</a>
</div>
</div>
<div class="changelog">
<div class="wrapper">
<h3 class="section__title">Changelog</h3>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v0.7</h4>
<small class="changelog__date">10/12/2017</small>
</div>
<div class="changelog__detail">
<ul>
<li>Improving the writing workflow with better key bindings</li>
<li>Design updates</li>
<li>SSL Verification for web hooks</li>
<li>Render Emoji</li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v0.6</h4>
<small class="changelog__date">7/30/2017</small>
</div>
<div class="changelog__detail">
<ul>
<li>Adding Unicode support</li>
<li>Basic text highlighting</li>
<li>Fresh Design</li>
</ul>
</div>
</div>
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">v0.5</h4>
<small class="changelog__date">5/10/2017</small>
</div>
<div class="changelog__detail">
<ul>
<li>Save default md file in new folders</li>
<li>Ability to quick search on existing notes</li>
</ul>
</div>
</div>
<div class="changelog__callout">
<a href="#" class="button--secondary">Checkout Full Log</a>
</div>
<!-- Features -->
<div class="feature">
<!-- Feature -->
<div class="feature__item">
<h3 class="section__title">
Fast & Light
</h3>
<p>
Start writing your notes immediately in any terminal! No more time wasted on navigating and opening your text
editor.
</p>
</div>
<!-- Feature -->
<div class="feature__item">
<h3 class="section__title">
File Syncing
</h3>
<p>
Save your file in Dropbox then you can access to it from anywhere.
</p>
</div>
<!-- Feature -->
<div class="feature__item">
<h3 class="section__title">
Secure
</h3>
<p>
Encrypt your notes optionally. No one can get to your secrets!
</p>
</div>
<!-- Feature -->
<div class="feature__item">
<h3 class="section__title">
Configuration
</h3>
<p>
Maintain all your settings in a single <span class="code code--inline">config.json</span> file.
Never need to redo the setting every single time jotting down a note.
</p>
</div>
<!-- Feature -->
<div class="feature__item">
<h3 class="section__title">
Highlightings
</h3>
<p>
For better readability, scribbler has a clean, beautiful color scheme allow you to scan files fast.
</p>
</div>
<!-- Feature -->
<div class="feature__item">
<h3 class="section__title">
Keybindings
</h3>
<p>
You can expect common keybindings for scribbler. Customize
<span class="code code--inline">bindings.json</span> for your own liking!
</p>
</div>
</div>
<footer class="footer">Scribbler is a free HTML template created exclusively for <a href="https://tympanus.net/codrops/" target="_blank" class="link link--light">Codrops</a>.</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="scribbler.js"></script>
</body>
<!-- Keybindings -->
<div class="keybinding">
<ul class="keybinding__detail">
<h3 class="keybinding__title">
Default Keybindings
</h3>
<li>Quit without saving <span class="keybinding__label">Ctrl+C</span></li>
<li>Save <span class="keybinding__label">Cmd+S</span></li>
<li>Save and Quit <span class="keybinding__label">Ctrl+D</span></li>
<li>Undo <span class="keybinding__label">Cmd+Z</span></li>
</ul>
<!-- Keybinding Details -->
<ul class="keybinding__detail">
<h3 class="keybinding__title">
Markdown Keybindings
</h3>
<li><span class="keybinding__label">Ctrl+A</span> Insert Link Markdown</li>
<li><span class="keybinding__label">Ctrl+I</span> Insert Image Markdown</li>
<li><span class="keybinding__label">Ctrl+V</span> Insert YouTube Video</li>
<li><span class="keybinding__label">Ctrl+T</span> Insert Table</li>
</ul>
</div>
<!-- Callout -->
<div class="callout">
<p>
Read our documentation for advanced keybindings and customization
</p>
<a href="doc.html" class="button--primary">
Documentation
</a>
</div>
</div>
<!-- Changelog -->
<div class="changelog">
<div class="wrapper">
<h3 class="section__title">
Changelog
</h3>
<!-- Changelog Item -->
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">
v0.7
</h4>
<small class="changelog__date">
10/12/2017
</small>
</div>
<div class="changelog__detail">
<ul>
<li>Improving the writing workflow with better key bindings</li>
<li>Design updates</li>
<li>SSL Verification for web hooks</li>
<li>Render Emoji</li>
</ul>
</div>
</div>
<!-- Changelog Item -->
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">
v0.6
</h4>
<small class="changelog__date">
7/30/2017
</small>
</div>
<div class="changelog__detail">
<ul>
<li>Adding Unicode support</li>
<li>Basic text highlighting</li>
<li>Fresh Design</li>
</ul>
</div>
</div>
<!-- Changelog Item -->
<div class="changelog__item">
<div class="changelog__meta">
<h4 class="changelog__title">
v0.5
</h4>
<small class="changelog__date">
5/10/2017
</small>
</div>
<div class="changelog__detail">
<ul>
<li>Save default md file in new folders</li>
<li>Ability to quick search on existing notes</li>
</ul>
</div>
</div>
<div class="changelog__callout">
<a href="#" class="button--secondary">
Checkout Full Log
</a>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
Scribbler is a free HTML template created exclusively for
<a href="https://tympanus.net/codrops/" target="_blank" class="link link--light">
Codrops
</a>.
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script src="scribbler.js"></script>
</body>
</html>

View File

@ -1,13 +1,16 @@
html, body {
html,
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: var(--bg-body-color);
}
/* layout */
.header {
border-bottom: 1px solid var(--code-bg-color);
grid-template-columns: 1fr 150px 60% 1fr;
z-index: 2;
}
.wrapper {
@ -44,12 +47,13 @@ html, body {
bottom: 0;
width: 28%;
background-color: var(--bg-color);
z-index: -1;
z-index: 1;
}
.doc__nav {
flex-basis: 20%;
font-weight: 200;
z-index: 2;
}
.doc__nav ul {
@ -58,6 +62,10 @@ html, body {
line-height: 1.8;
}
.doc__nav ul li{
color: var(--primary-color-light);
}
.doc__nav ul.fixed {
position: fixed;
top: 2rem;
@ -93,22 +101,27 @@ html, body {
.wrapper {
flex-direction: column;
}
.doc__content {
padding-left: 0;
}
.doc__nav ul {
border-bottom: 1px solid var(--code-bg-color);
padding-bottom: 0.5rem;
}
.doc__nav ul.fixed {
/* nutralized the fixed menu for mobile*/
position: relative;
top: 0;
}
.doc__nav li {
display: inline-block;
padding-right: 1rem;
}
.doc__nav .selected:after {
display: none;
}

View File

@ -8,25 +8,44 @@
--white-color: #FAFBFC;
--light-gray-color: #C6CBD1;
--medium-gray-color: #959DA5;
--dark-gray-color: #444D56;
--dark-gray-color: #444D56;
--bg-color: #F8F8FA;
--code-bg-color: #F0E8E8;
}
@media (prefers-color-scheme: dark) {
:root {
--primary-color: #acbfc5;
--primary-color-light: #b9b0b0;
--accent-color: #FE6A6B;
--accent-color-light: #FFE4E4;
--accent-color-dark: #B94B4C;
--white-color: #FAFBFC;
--light-gray-color: #C6CBD1;
--medium-gray-color: #959DA5;
--dark-gray-color: #444D56;
--bg-color: #2a2f32;
--bg-body-color: #1e1e1e;
--code-bg-color: #304554;
}
}
/* normalized */
html, body {
html,
body {
padding: 0;
margin: 0;
font-family: 'Nunito Sans', sans-serif;
background-color: white;
background-color: var(--bg-body-color);
}
p {
font-weight: 300;
color: #4A4A4A;
color: var(--primary-color-light);
}
a, a:hover {
a,
a:hover {
text-decoration: none;
color: var(--primary-color);
}
@ -53,7 +72,7 @@ hr {
position: relative;
}
.tab__container > ul {
.tab__container>ul {
position: absolute;
list-style: none;
margin: 0;
@ -72,6 +91,7 @@ hr {
padding: 0.3rem 0.5rem;
font-weight: 200;
cursor: pointer;
color: var(--primary-color-light);
}
.tab.active {
@ -91,7 +111,7 @@ hr {
/* code */
.code {
border-radius: 3px;
font-family: Space Mono, SFMono-Regular, Menlo,Monaco, Consolas, Liberation Mono, Courier New, monospace;
font-family: Space Mono, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
background: var(--bg-color);
border: 1px solid var(--code-bg-color);
color: var(--primary-color-light);
@ -209,7 +229,7 @@ nav {
bottom: -6px;
}
.toggle.open span{
.toggle.open span {
background-color: transparent;
}
@ -241,9 +261,11 @@ table {
width: 100%;
transition: color .3s ease-out;
margin-bottom: 2rem;
color: var(--primary-color-light);
}
table td, table th {
table td,
table th {
border: 1px solid var(--code-bg-color);
padding: 0.8rem;
font-weight: 300;
@ -251,8 +273,8 @@ table td, table th {
table th {
text-align: left;
background-color: white;
border-color: white;
background-color: var(--bg-color);
border-color: var(--code-bg-color);
border-bottom-color: var(--code-bg-color);
}
@ -266,7 +288,7 @@ table td:first-child {
grid-template-columns: 70px auto;
}
.menu__item{
.menu__item {
display: none;
}
@ -299,15 +321,17 @@ table td:first-child {
text-align: center;
background-color: var(--primary-color);
padding: 2rem;
color: white;
color: var(--primary-color);
background-color: var(--bg-body-color);
}
@keyframes fadeUp {
0% {
opacity: 0;
transform: translate3d(0,30px,0);
transform: translate3d(0, 30px, 0);
}
100% {
transform: translate3d(0,0,0);
transform: translate3d(0, 0, 0);
}
}

View File

@ -87,6 +87,10 @@ nav {
margin-left: -1px;
}
.keybinding__detail li {
color: var(--primary-color-light);
}
.keybinding__detail:first-child .keybinding__title {
position: absolute;
right: 0.5rem;
@ -130,6 +134,7 @@ nav {
.changelog {
background-color: var(--bg-color);
padding: 2rem 0;
color: var(--primary-color-light);
}
.changelog__item {
@ -159,21 +164,28 @@ nav {
.hero__terminal {
width: 70%;
}
.tab__container > ul {
.tab__container>ul {
right: auto;
left: 0;
padding-left: 0;
}
.tab__container .code {
margin-top: 2rem;
}
.feature, .keybinding, .changelog__item {
.feature,
.keybinding,
.changelog__item {
flex-direction: column;
}
.feature__item {
max-width: 100%;
margin: 0;
}
.keybinding {
font-size: 0.8rem;
}