mirror of
https://github.com/nicoburns/blessed-rs
synced 2024-11-10 06:14:15 +00:00
Basic mobile support
This commit is contained in:
parent
d97ff399ec
commit
05a9acbb9c
3 changed files with 21 additions and 5 deletions
|
@ -18,6 +18,7 @@ body {
|
|||
#left-sidebar {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.toc {
|
||||
position: sticky;
|
||||
top: 24px;
|
||||
|
@ -174,4 +175,16 @@ table tbody:nth-of-type(odd) {
|
|||
|
||||
table tbody:nth-of-type(even) {
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
#main-container { margin: 0 12px; }
|
||||
#left-sidebar { display: none; }
|
||||
#content { margin-left: 0; }
|
||||
|
||||
img.logo { height: 70px }
|
||||
h1.page-heading { font-size: 2rem }
|
||||
h2.page-subheading { font-size: 1rem }
|
||||
|
||||
h3 { margin-top: 14px }
|
||||
}
|
|
@ -1,13 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}Home{% endblock title %} - Blessed.rs</title>
|
||||
|
||||
<link rel="stylesheet" href="/static/normalize.css" />
|
||||
<link rel="stylesheet" href="/static/index.css?{{ get_index_css_hash() }}" />
|
||||
<link rel="stylesheet" href="/static/github-fork-ribbon.css" />
|
||||
<style type="text/css">.github-fork-ribbon:before { background-color: #333; }</style>
|
||||
<title>{% block title %}Home{% endblock title %} - Blessed.rs</title>
|
||||
{% endblock head %}
|
||||
|
||||
{% block head %}{% endblock head %}
|
||||
</head>
|
||||
<body>
|
||||
<a class="github-fork-ribbon" href="https://github.com/nicoburns/blessed-rs" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{{ toc::left_sidebar(sections=toc_sections) }}
|
||||
|
||||
<!-- Main page content -->
|
||||
<div id="content" style="max-width: 800px">
|
||||
<div id="content" style="max-width: 800px;max-width: min(800px, 100%)">
|
||||
|
||||
<section data-toc-section id="section-installation">
|
||||
<h3>Installation</h3>
|
||||
|
@ -62,7 +62,7 @@
|
|||
</li>
|
||||
<li>
|
||||
<b><a href="https://www.oreilly.com/library/view/programming-rust-2nd/9781492052586/">Programming Rust</a></b>
|
||||
Another book aimed at those with experience in another programming language, but not
|
||||
Another book aimed at those with experience in another programming language, but not
|
||||
necessarily a low-level one. While the official book above has a stellar reputation, this one has a reputation for being even better,
|
||||
diving deeper and giving a more thorough introduction to the language. The downside being it's not free.
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue