docs: layout tweaks

This commit is contained in:
Nick Craig-Wood 2020-05-17 17:56:02 +01:00
parent 80572c544b
commit af19f924ff
5 changed files with 76 additions and 44 deletions

View File

@ -1,7 +1,7 @@
<footer> <footer>
<hr>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-md-10">
<div class="card card-body">
<p>&copy; <a href="https://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014-2020<br> <p>&copy; <a href="https://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014-2020<br>
Website hosted on a <a href="https://www.memset.com/dedicated-servers/vps/"><span style="font-weight: bold; font-family: arial black, arial, sans-serif; font-style: italic;">MEMSET CLOUD VPS</span></a>, Website hosted on a <a href="https://www.memset.com/dedicated-servers/vps/"><span style="font-weight: bold; font-family: arial black, arial, sans-serif; font-style: italic;">MEMSET CLOUD VPS</span></a>,
uploaded with <a href="https://rclone.org">rclone</a> uploaded with <a href="https://rclone.org">rclone</a>
@ -10,4 +10,5 @@
</p> </p>
</div> </div>
</div> </div>
</div>
</footer> </footer>

View File

@ -1,9 +1,9 @@
<div class="card"> <div class="card">
<div class="card-header" style="padding: 2px 10px;"> <div class="card-header" style="padding: 5px 10px;">
<h4>Share and Enjoy.</h4> Share and Enjoy.
</div> </div>
<div class="card-body"> <div class="card-body">
<p> <p class="menu">
<!-- Non tracking sharing links from: https://sharingbuttons.io/ --> <!-- Non tracking sharing links from: https://sharingbuttons.io/ -->
<i class="fab fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/intent/tweet/?text=rclone%20-%20rsync%20for%20cloud%20storage%20from%20%40njcw&amp;url=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Twitter">Twitter.</a><br /> <i class="fab fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/intent/tweet/?text=rclone%20-%20rsync%20for%20cloud%20storage%20from%20%40njcw&amp;url=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Twitter">Twitter.</a><br />
<i class="fab fa-facebook" aria-hidden="true"></i> <a href="https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Facebook">Facebook.</a><br /> <i class="fab fa-facebook" aria-hidden="true"></i> <a href="https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frclone.org" target="_blank" rel="noopener" aria-label="Share on Facebook">Facebook.</a><br />
@ -14,11 +14,11 @@
</div> </div>
<div class="card"> <div class="card">
<div class="card-header" style="padding: 2px 15px;"> <div class="card-header" style="padding: 5px 15px;">
<h4>Links.</h4> Links.
</div> </div>
<div class="card-body"> <div class="card-body">
<p> <p class="menu">
<i class="fa fa-comments" aria-hidden="true"></i> <a href="https://forum.rclone.org">Rclone forum.</a><br /> <i class="fa fa-comments" aria-hidden="true"></i> <a href="https://forum.rclone.org">Rclone forum.</a><br />
<i class="fab fa-github" aria-hidden="true"></i> <a href="https://github.com/rclone/rclone">GitHub project.</a><br /> <i class="fab fa-github" aria-hidden="true"></i> <a href="https://github.com/rclone/rclone">GitHub project.</a><br />
<i class="fab fa-slack" aria-hidden="true"></i> <a href="https://slack-invite.rclone.org/">Rclone slack.</a><br /> <i class="fab fa-slack" aria-hidden="true"></i> <a href="https://slack-invite.rclone.org/">Rclone slack.</a><br />

View File

@ -1,4 +1,4 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <nav class="navbar navbar-expand-md navbar-dark bg-dark">
<a class="navbar-brand" href="{{ .Site.BaseURL }}"><img class="rclone-logo" src="/img/logo_on_dark__horizontal_color.svg" alt="rclone logo"></a> <a class="navbar-brand" href="{{ .Site.BaseURL }}"><img class="rclone-logo" src="/img/logo_on_dark__horizontal_color.svg" alt="rclone logo"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>

View File

@ -1,17 +1,9 @@
/* body { */ body {
/* margin-top: 75px; /\* 100px is double the height of the navbar - I made it a big larger for some more space - keep it at 50px at least if you want to use the fixed top nav *\/ */
/* } */
/* footer { */
/* margin: 50px 0; */
/* } */
html {
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif; font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 15px; }
line-height: 1.42857143;
color: #222222; btn-group.a {
background-color: #ffffff; color: #000000;
} }
a { a {
@ -62,9 +54,24 @@ h5:hover .header-link,
h6:hover .header-link { h6:hover .header-link {
opacity: 1; opacity: 1;
} }
h2, h3, h4, h5, h6 {
padding-top: 55px; /* more space before headings */
margin-top: -44px; h1, h2, h3, h4, h5, h6 {
margin-top: 12px;
}
/* Fix spacing of info boxes */
.card {
margin-top: 0.75rem;
}
/* less padding around info box items */
.card-body {
padding: 0.5rem;
}
/* make menus longer */
.pre-scrollable {
max-height: 30rem;
} }
/* Fix spacing between menu items */ /* Fix spacing between menu items */
@ -76,36 +83,60 @@ h2, h3, h4, h5, h6 {
/* custom logo in navbar */ /* custom logo in navbar */
.rclone-logo { .rclone-logo {
height: 36px; height: 36px;
margin-top: -10px;
margin-bottom: -10px;
} }
/* override padding so logo is centered */ .heart {
/* .navbar-brand { */ color: #e31b23;
/* padding: 4px 15px; */
/* } */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
font-weight: 300;
line-height: 1.1;
color: inherit;
} }
/* blockquote {
display: block;
background-color: #EEE;
padding: 0.25rem;
border: 1px solid black;
}
pre {
padding: 10px;
margin: 0 0 10.5px;
font-size: 14px;
line-height: 1.42857143;
word-break: break-all;
word-wrap: break-word;
color: #333333;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 0.25rem;
}
code {
font-size: 87.5%;
color: #e83e8c;
word-wrap: break-word;
}
/* reduce h12345 sizes */ /* reduce h12345 sizes */
h1 { h1 {
font-size: 25px; font-size: 160%;
} }
h2 { h2 {
font-size: 22px; font-size: 130%;
} }
h3 { h3 {
font-size: 20px; font-size: 110%;
font-weight: bold;
} }
h4 { h4 {
font-size: 18px; font-size: 100%;
font-weight: bold;
} }
h5 { h5 {
font-size: 16px; font-size: 90%;
font-weight: bold;
}
.menu {
font-size: 95%;
} }
*/