Update Beautiful Jekyll to the latest commit version
This commit is contained in:
parent
55804453a2
commit
484c65f982
33 changed files with 983 additions and 408 deletions
|
@ -4,6 +4,26 @@ layout: null
|
|||
|
||||
@import url("pygment_highlights.css");
|
||||
|
||||
:root {
|
||||
/* config file CSS variables */
|
||||
--page-col: {{ site.page-col | default: "#FFFFFF" }};
|
||||
--text-col: {{ site.text-col | default: "#404040" }};
|
||||
--link-col: {{ site.link-col | default: "#008AFF" }};
|
||||
--hover-col: {{ site.hover-col | default: "#0085A1" }};
|
||||
--navbar-col: {{ site.navbar-col | default: "#EAEAEA" }};
|
||||
--navbar-text-col: {{ site.navbar-text-col | default: "#404040" }};
|
||||
--navbar-border-col: {{ site.navbar-border-col | default: "#DDDDDD" }};
|
||||
--footer-col: {{ site.footer-col | default: "#EAEAEA" }};
|
||||
--footer-text-col: {{ site.footer-text-col | default: "#777777" }};
|
||||
--footer-link-col: {{ site.footer-link-col | default: "#404040" }};
|
||||
--footer-hover-col: {{ site.footer-hover-col | default: "#0085A1" }};
|
||||
|
||||
/* common CSS variables */
|
||||
--body-font: 'Lora', 'Times New Roman', serif;
|
||||
--header-font: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
--mid-col: #808080;
|
||||
}
|
||||
|
||||
/* --- General --- */
|
||||
|
||||
html {
|
||||
|
@ -11,22 +31,29 @@ html {
|
|||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lora', 'Times New Roman', serif;
|
||||
font-family: var(--body-font);
|
||||
font-size: 1.125rem;
|
||||
color: {{ site.text-col | default: "#404040" }};
|
||||
color: var(--text-col);
|
||||
position: relative;
|
||||
background-color: {{ site.page-col | default: "#FFFFFF" }};
|
||||
background-color: var(--page-col);
|
||||
{% if site.page-img %}
|
||||
background-image: url({{ site.page-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
{% endif %}
|
||||
overflow-wrap: break-word;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
body > main {
|
||||
flex: 1;
|
||||
}
|
||||
p {
|
||||
line-height: 1.5;
|
||||
margin: 1.875rem 0;
|
||||
}
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
@ -46,19 +73,22 @@ h1, h2, h3, h4 {
|
|||
margin-top: 1.25rem;
|
||||
}
|
||||
a {
|
||||
color: {{ site.link-col | default: "#008AFF" }};
|
||||
color: var(--link-col);
|
||||
}
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: {{ site.hover-col | default: "#0085A1" }};
|
||||
color: var(--hover-col);
|
||||
}
|
||||
blockquote {
|
||||
color: #808080;
|
||||
color: var(--mid-col);
|
||||
font-style: italic;
|
||||
}
|
||||
blockquote p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.jumbotron {
|
||||
background: #EEE;
|
||||
}
|
||||
hr.small {
|
||||
max-width: 6.25rem;
|
||||
margin: 1rem auto;
|
||||
|
@ -80,21 +110,21 @@ hr.small {
|
|||
}
|
||||
|
||||
::-moz-selection {
|
||||
color: #fff;
|
||||
color: var(--page-col);
|
||||
background-color: var(--hover-col);
|
||||
text-shadow: none;
|
||||
background-color: {{ site.hover-col | default: "#0085A1" }};
|
||||
}
|
||||
::selection {
|
||||
color: #fff;
|
||||
color: var(--page-col);
|
||||
background-color: var(--hover-col);
|
||||
text-shadow: none;
|
||||
background-color: {{ site.hover-col | default: "#0085A1" }};
|
||||
}
|
||||
img::selection {
|
||||
color: #fff;
|
||||
color: var(--hover-col);
|
||||
background: transparent;
|
||||
}
|
||||
img::-moz-selection {
|
||||
color: #fff;
|
||||
color: var(--hover-col);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
|
@ -122,9 +152,9 @@ img {
|
|||
/* --- Navbar --- */
|
||||
|
||||
.navbar-custom {
|
||||
background-color: {{ site.navbar-col | default: "#EAEAEA" }};
|
||||
border-bottom: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }};
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
background-color: var(--navbar-col);
|
||||
border-bottom: 1px solid var(--navbar-border-col);
|
||||
font-family: var(--header-font);
|
||||
{% if site.navbar-img %}
|
||||
background-image: url({{ site.navbar-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
|
@ -180,8 +210,6 @@ img {
|
|||
}
|
||||
|
||||
.navbar-custom .navbar-nav .nav-link {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
line-height: 1.25rem;
|
||||
padding-top: 0.9375rem;
|
||||
padding-bottom: 0.9375rem;
|
||||
|
@ -190,7 +218,7 @@ img {
|
|||
.navbar-custom .navbar-brand,
|
||||
.navbar-custom .navbar-nav .nav-link {
|
||||
font-weight: 800;
|
||||
color: {{ site.navbar-text-col | default: "#404040" }};
|
||||
color: var(--navbar-text-col);
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
|
@ -246,22 +274,28 @@ img {
|
|||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu {
|
||||
min-width: 0;
|
||||
margin-top: 0;
|
||||
font-size: 1em;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
{% if site.navbar-var-length %}
|
||||
min-width: 100%;
|
||||
{% else %}
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
word-break: break-word;
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
|
||||
white-space: normal;
|
||||
padding: 0.625rem;
|
||||
background-color: {{ site.navbar-col | default: "#EAEAEA" }};
|
||||
background-color: var(--navbar-col);
|
||||
text-decoration: none !important;
|
||||
border-width: 0 1px 1px 1px;
|
||||
font-weight: normal;
|
||||
color: {{ site.navbar-text-col | default: "#404040" }};
|
||||
color: var(--navbar-text-col);
|
||||
{% unless site.navbar-var-length %}
|
||||
white-space: normal;
|
||||
{% endunless %}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
@ -271,14 +305,18 @@ img {
|
|||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
|
||||
padding-left: 0.625rem;
|
||||
border: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }};
|
||||
border: 1px solid var(--navbar-border-col);
|
||||
border-width: 0 1px 1px;
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:first-child {
|
||||
border-top-width: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1199px) {
|
||||
.navbar-custom .navbar-collapse {
|
||||
border-top: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }};
|
||||
border-top: 1px solid var(--navbar-border-col);
|
||||
margin: 0 -1rem;
|
||||
}
|
||||
|
||||
|
@ -304,7 +342,7 @@ img {
|
|||
.navbar-custom .navbar-nav .nav-link:focus,
|
||||
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover,
|
||||
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus {
|
||||
color: {{ site.hover-col | default: "#0085A1" }};
|
||||
color: var(--hover-col);
|
||||
}
|
||||
|
||||
.navbar-custom .avatar-container {
|
||||
|
@ -370,10 +408,10 @@ img {
|
|||
|
||||
footer {
|
||||
padding: 1.875rem 0;
|
||||
border-top: 1px #EAEAEA solid;
|
||||
border-top: 1px var(--footer-col) solid;
|
||||
margin-top: 3.125rem;
|
||||
font-size: 0.875rem;
|
||||
background-color: {{ site.footer-col | default: "#EAEAEA" }};
|
||||
background-color: var(--footer-col);
|
||||
{% if site.footer-img %}
|
||||
background-image: url({{ site.footer-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
|
@ -381,20 +419,34 @@ footer {
|
|||
}
|
||||
|
||||
footer p.text-muted {
|
||||
color: {{ site.footer-text-col | default: "#777777" }} !important;
|
||||
color: var(--footer-text-col) !important;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: {{ site.footer-link-col | default: "#404040" }};
|
||||
color: var(--footer-link-col);
|
||||
}
|
||||
footer .footer-links a {
|
||||
color: var(--text-col);
|
||||
}
|
||||
footer .footer-links .fa-inverse {
|
||||
color: var(--page-col);
|
||||
}
|
||||
|
||||
footer a:hover,
|
||||
footer a:focus {
|
||||
color: var(--footer-hover-col);
|
||||
}
|
||||
|
||||
footer .list-inline {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin-bottom: 1.875rem;
|
||||
margin-bottom: 1.375rem;
|
||||
}
|
||||
footer .list-inline .list-inline-item {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
footer .copyright {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
text-align: center;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
|
@ -406,7 +458,7 @@ footer .theme-by {
|
|||
footer .footer-custom-content {
|
||||
text-align: center;
|
||||
margin-bottom: 0.9375rem;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
@ -426,6 +478,10 @@ footer .footer-custom-content {
|
|||
|
||||
/* --- Post preview (feed) --- */
|
||||
|
||||
.posts-list {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-preview {
|
||||
padding: 1.25rem 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
|
@ -444,14 +500,14 @@ footer .footer-custom-content {
|
|||
|
||||
.post-preview a {
|
||||
text-decoration: none;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
color: {{ site.text-col | default: "#404040" }};
|
||||
font-family: var(--header-font);
|
||||
color: var(--text-col);
|
||||
}
|
||||
|
||||
.post-preview a:focus,
|
||||
.post-preview a:hover {
|
||||
text-decoration: none;
|
||||
color: {{ site.hover-col | default: "#0085A1" }};
|
||||
color: var(--hover-col);
|
||||
}
|
||||
|
||||
.post-preview .post-title {
|
||||
|
@ -465,11 +521,11 @@ footer .footer-custom-content {
|
|||
}
|
||||
.post-preview .post-meta,
|
||||
.post-heading .post-meta {
|
||||
color: #808080;
|
||||
color: var(--mid-col);
|
||||
font-size: 1.125rem;
|
||||
font-style: italic;
|
||||
margin: 0 0 0.625rem;
|
||||
font-family: 'Lora', 'Times New Roman', serif;
|
||||
font-family: var(--body-font);
|
||||
}
|
||||
.post-heading .post-meta {
|
||||
display: inline-block;
|
||||
|
@ -546,18 +602,22 @@ footer .footer-custom-content {
|
|||
/* --- Tags --- */
|
||||
|
||||
.blog-tags {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
font-size: 0.9375rem;
|
||||
margin: 1.875rem 0;
|
||||
}
|
||||
|
||||
.blog-tags span {
|
||||
color: {{ site.text-col | default: "#404040" }};
|
||||
color: var(--text-col);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.blog-tags .list-inline-item {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.blog-tags a {
|
||||
color: {{ site.text-col | default: "#404040" }};
|
||||
color: var(--text-col);
|
||||
text-decoration: none;
|
||||
padding: 0 0.3125rem;
|
||||
opacity: 0.8;
|
||||
|
@ -567,8 +627,8 @@ footer .footer-custom-content {
|
|||
|
||||
.blog-tags a:hover {
|
||||
opacity: 1;
|
||||
color: {{ site.text-col | default: "#404040" }};
|
||||
border-color: {{ site.text-col | default: "#404040" }};
|
||||
color: var(--text-col);
|
||||
border-color: var(--text-col);
|
||||
}
|
||||
|
||||
.post-preview .blog-tags {
|
||||
|
@ -589,7 +649,7 @@ footer .footer-custom-content {
|
|||
}
|
||||
|
||||
#full-tags-list {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
}
|
||||
|
||||
#full-tags-list .tag-entry {
|
||||
|
@ -601,7 +661,7 @@ footer .footer-custom-content {
|
|||
}
|
||||
|
||||
#full-tags-list .tag-entry .entry-date {
|
||||
color: #808080;
|
||||
color: var(--mid-col);
|
||||
font-style: italic;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
@ -652,18 +712,18 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
|
|||
}
|
||||
.intro-header .page-heading h1 {
|
||||
margin-top: 0;
|
||||
font-size: 1.5rem;
|
||||
font-size: 3.125rem;
|
||||
}
|
||||
.intro-header .post-heading h1 {
|
||||
margin-top: 0;
|
||||
font-size: 1.5rem;
|
||||
font-size: 2.1875rem;
|
||||
}
|
||||
.intro-header .page-heading .page-subheading,
|
||||
.intro-header .post-heading .post-subheading {
|
||||
font-size: 1.6875rem;
|
||||
line-height: 1.1;
|
||||
display: block;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
font-weight: 300;
|
||||
margin: 0.625rem 0 0;
|
||||
}
|
||||
|
@ -688,7 +748,7 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
|
|||
padding: 0.3125rem 0.625rem;
|
||||
font-size: 0.6875rem;
|
||||
color: #EEE;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: none;
|
||||
|
@ -715,39 +775,6 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
|
|||
}
|
||||
}
|
||||
|
||||
.header-section.has-img .no-img {
|
||||
margin-top: 0;
|
||||
background-color: #FCFCFC;
|
||||
margin: 0 0 2.5rem;
|
||||
padding: 1.25rem 0;
|
||||
box-shadow: 0 0 0.3125rem #AAA;
|
||||
}
|
||||
/* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
|
||||
.header-section.has-img .intro-header.no-img {
|
||||
display: none;
|
||||
}
|
||||
@media (max-width: 365px) {
|
||||
.header-section.has-img .intro-header.no-img {
|
||||
display: block;
|
||||
}
|
||||
.intro-header.big-img {
|
||||
width: 100%;
|
||||
height: 13.75rem;
|
||||
}
|
||||
.intro-header.big-img .page-heading,
|
||||
.intro-header.big-img .post-heading {
|
||||
display: none;
|
||||
}
|
||||
.header-section.has-img .big-img {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
@media (max-width: 325px) {
|
||||
.intro-header.big-img {
|
||||
height: 12.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
#header-gh-btns {
|
||||
margin-bottom: 0.9375rem;
|
||||
}
|
||||
|
@ -780,15 +807,16 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
|
|||
}
|
||||
|
||||
.pagination .page-item .page-link {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-family: var(--header-font);
|
||||
text-transform: uppercase;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
padding: 0.625rem 0.3125rem;
|
||||
background-color: #FFF;
|
||||
background-color: var(--page-col);
|
||||
border-radius: 0;
|
||||
color: {{ site.text-col | default: "#404040" }};
|
||||
color: var(--text-col);
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.pagination .page-item .page-link {
|
||||
|
@ -797,38 +825,37 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img {
|
|||
}
|
||||
.pagination .page-item .page-link:hover,
|
||||
.pagination .page-item .page-link:focus {
|
||||
color: #FFF;
|
||||
border: 1px solid {{ site.hover-col | default: "#0085A1" }};
|
||||
background-color: {{ site.hover-col | default: "#0085A1" }};
|
||||
color: var(--page-col);
|
||||
border: 1px solid var(--hover-col);
|
||||
background-color: var(--hover-col);
|
||||
}
|
||||
|
||||
/* --- Tables --- */
|
||||
|
||||
table {
|
||||
padding: 0;
|
||||
overflow-x: auto;
|
||||
display: block;
|
||||
}
|
||||
table tr {
|
||||
border-top: 1px solid #cccccc;
|
||||
background-color: #ffffff;
|
||||
background-color: var(--page-col);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
table tr:nth-child(2n) {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
table tr th {
|
||||
font-weight: bold;
|
||||
border: 1px solid #cccccc;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding: 0.375rem 0.8125rem;
|
||||
}
|
||||
table tr th,
|
||||
table tr td {
|
||||
border: 1px solid #cccccc;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding: 0.375rem 0.8125rem;
|
||||
}
|
||||
table tr th {
|
||||
font-weight: bold;
|
||||
}
|
||||
table tr th :first-child,
|
||||
table tr td :first-child {
|
||||
margin-top: 0;
|
||||
|
@ -975,7 +1002,7 @@ pre {
|
|||
max-width: 25%;
|
||||
border-width: 0.25rem;
|
||||
border-radius: 0.1875rem;
|
||||
border-color: #808080;
|
||||
border-color: var(--mid-col);
|
||||
}
|
||||
|
||||
.blog-post blockquote {
|
||||
|
@ -993,3 +1020,107 @@ pre {
|
|||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Search bar */
|
||||
#beautifuljekyll-search-overlay {
|
||||
font-family: var(--header-font);
|
||||
display: none;
|
||||
z-index: 999999;
|
||||
position: fixed;
|
||||
background: rgba(0,0,0,0.9);
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#nav-search-exit {
|
||||
position: absolute;
|
||||
top: 1.5rem;
|
||||
cursor: pointer;
|
||||
right: 25%;
|
||||
margin-right: 2rem;
|
||||
color: #555;
|
||||
font-size: 2rem;
|
||||
line-height: 2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
#nav-search-exit:hover {
|
||||
color: #000;
|
||||
}
|
||||
#nav-search-input {
|
||||
text-align: center;
|
||||
background: #e7edee;
|
||||
margin: auto;
|
||||
display: block;
|
||||
font-size: 2rem;
|
||||
width: 50%;
|
||||
transition: width 300ms ease;
|
||||
color: #222;
|
||||
border-radius: 5rem;
|
||||
outline: none;
|
||||
border: none;
|
||||
padding: 0 3rem;
|
||||
}
|
||||
|
||||
@media (max-width: 1199px) {
|
||||
#nav-search-input {
|
||||
width: 75%;
|
||||
}
|
||||
#nav-search-exit {
|
||||
right: 12.5%;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
#nav-search-input {
|
||||
width: 100%;
|
||||
}
|
||||
#nav-search-exit {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
#nav-search-input:focus {
|
||||
background: #f3f8fe;
|
||||
box-shadow: 0px 0.15rem 1rem #e7f4ff;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#nav-search-input::placeholder {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
#search-results-container {
|
||||
list-style: none;
|
||||
padding-left: unset;
|
||||
margin-top: 1.5rem;
|
||||
color: #fff;
|
||||
font-size: 1.5rem;
|
||||
max-height: calc(100vh - 6.5rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
#search-results-container a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
#search-results-container a:hover {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#nav-search-icon {
|
||||
display: inline-block;
|
||||
}
|
||||
#nav-search-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 1199px) {
|
||||
#nav-search-icon {
|
||||
display: none;
|
||||
}
|
||||
#nav-search-text {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue