upgrade to bootstrap 4, complete rewrite of template (#629)
This commit is contained in:
parent
67bd8058c7
commit
54ca402373
41 changed files with 642 additions and 10358 deletions
|
@ -6,9 +6,13 @@ layout: null
|
|||
|
||||
/* --- General --- */
|
||||
|
||||
html {
|
||||
font-size: 100%
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lora', 'Times New Roman', serif;
|
||||
font-size: 18px;
|
||||
font-size: 1.125rem;
|
||||
color: #404040;
|
||||
position: relative;
|
||||
background-color: {{ site.page-col | default: "#FFFFFF" }};
|
||||
|
@ -19,11 +23,24 @@ body {
|
|||
}
|
||||
p {
|
||||
line-height: 1.5;
|
||||
margin: 30px 0;
|
||||
margin: 1.875rem 0;
|
||||
}
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-weight: 800;
|
||||
line-height: 1.1;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.875rem;
|
||||
}
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
h4 {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
a {
|
||||
color: {{ site.link-col | default: "#008AFF" }};
|
||||
|
@ -40,33 +57,33 @@ blockquote p:first-child {
|
|||
margin-top: 0;
|
||||
}
|
||||
hr.small {
|
||||
max-width: 100px;
|
||||
margin: 15px auto;
|
||||
border-width: 4px;
|
||||
max-width: 6.25rem;
|
||||
margin: 1rem auto;
|
||||
border-width: 0.25rem;
|
||||
border-color: inherit;
|
||||
border-radius: 3px;
|
||||
border-radius: 0.1875rem;
|
||||
}
|
||||
|
||||
/* fix in-page anchors to not be behind fixed header */
|
||||
:target:before {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 50px; /* navbar height */
|
||||
margin: -50px 0 0;
|
||||
height: 3.125rem; /* navbar height */
|
||||
margin: -3.125rem 0 0;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
padding-top: 80px;
|
||||
padding-top: 5rem;
|
||||
}
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.main-content {
|
||||
padding-top: 130px;
|
||||
padding-top: 8.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
.main-explain-area {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
padding: 15px inherit;
|
||||
padding: 1rem inherit;
|
||||
}
|
||||
|
||||
.hideme {
|
||||
|
@ -97,105 +114,237 @@ img {
|
|||
}
|
||||
|
||||
.disqus-comments {
|
||||
margin-top: 30px;
|
||||
margin-top: 1.875rem;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.disqus-comments {
|
||||
margin-top: 40px;
|
||||
margin-top: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.linked-section {
|
||||
padding-top: 60px;
|
||||
margin-top: -25px;
|
||||
padding-top: 3.75rem;
|
||||
margin-top: -1.5625rem;
|
||||
}
|
||||
|
||||
/* --- Navbar --- */
|
||||
|
||||
.navbar-custom {
|
||||
background-color: {{ site.navbar-col | default: "#F5F5F5" }};
|
||||
border-bottom: 1px solid #EAEAEA;
|
||||
border-bottom: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
{% if site.navbar-img %}
|
||||
background-image: url({{ site.navbar-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
background-image: url({{ site.navbar-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
{% endif %}
|
||||
-webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||
-moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||
transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||
}
|
||||
|
||||
.navbar-custom .nav li a {
|
||||
text-transform: uppercase;
|
||||
font-size: 12px;
|
||||
letter-spacing: 1px;
|
||||
.navbar-custom,
|
||||
.navbar-custom.top-nav-short,
|
||||
.navbar-custom.top-nav-short-permanent {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand,
|
||||
.navbar-custom .nav li a {
|
||||
font-weight: 800;
|
||||
color: {{ site.navbar-text-col | default: "#404040" }};
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand:hover,
|
||||
.navbar-custom .navbar-brand:focus ,
|
||||
.navbar-custom .nav li a:hover,
|
||||
.navbar-custom .nav li a:focus {
|
||||
color: {{ site.hover-col | default: "#0085A1" }};
|
||||
.navbar-custom .navbar-brand {
|
||||
line-height: 1.5;
|
||||
padding-top: 0.625rem;
|
||||
padding-bottom: 0.625rem;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand-logo {
|
||||
padding-top: 0;
|
||||
-webkit-transition: padding .5s ease-in-out;
|
||||
-moz-transition: padding .5s ease-in-out;
|
||||
transition: padding .5s ease-in-out;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand-logo,
|
||||
.navbar-custom.top-nav-short .navbar-brand-logo,
|
||||
.navbar-custom.top-nav-short-permanent .navbar-brand-logo {
|
||||
padding-top: 0.3125rem;
|
||||
padding-bottom: 0.3125rem;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand-logo img {
|
||||
height: 50px;
|
||||
-webkit-transition: height .5s ease-in-out;
|
||||
-moz-transition: height .5s ease-in-out;
|
||||
transition: height .5s ease-in-out;
|
||||
}
|
||||
.navbar-custom.top-nav-short .navbar-brand-logo {
|
||||
padding-top: 5px;
|
||||
}
|
||||
.navbar-custom.top-nav-short .navbar-brand-logo img {
|
||||
height: 40px;
|
||||
|
||||
.navbar-custom .navbar-brand-logo img,
|
||||
.navbar-custom.top-nav-short .navbar-brand-logo img,
|
||||
.navbar-custom.top-nav-short-permanent .navbar-brand-logo img {
|
||||
height: 2.5rem;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.navbar-custom .navbar-brand:hover,
|
||||
.navbar-custom .navbar-brand:focus ,
|
||||
.navbar-custom .navbar-nav .nav-link:hover,
|
||||
.navbar-custom .navbar-nav .nav-link:focus,
|
||||
.navbar-custom .navbar-nav .dropdown-item:hover,
|
||||
.navbar-custom .navbar-nav .dropdown-item:focus {
|
||||
color: {{ site.hover-col | default: "#0085A1" }};
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-nav .nav-item {
|
||||
text-transform: uppercase;
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.0625rem;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-nav .nav-link {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
line-height: 1.5;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand,
|
||||
.navbar-custom .navbar-nav .nav-link {
|
||||
font-weight: 800;
|
||||
color: {{ site.navbar-text-col | default: "#404040" }};
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.navbar-custom .navbar-toggler:focus,
|
||||
.navbar-custom .navbar-toggler:hover {
|
||||
background-color: initial;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-toggler[aria-expanded="true"] {
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.dropdown-toggle::after {
|
||||
border-width: 0.4em;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.navbar-custom {
|
||||
padding: 20px 0;
|
||||
-webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||
-moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||
transition: background .5s ease-in-out,padding .5s ease-in-out;
|
||||
padding-top: 1.25rem;
|
||||
padding-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.navbar-custom.top-nav-short-permanent,
|
||||
.navbar-custom.top-nav-short {
|
||||
padding: 0;
|
||||
.navbar-custom .navbar-brand-logo {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-brand-logo img {
|
||||
height: 3.125rem;
|
||||
}
|
||||
|
||||
.navbar-expand-md .navbar-nav .nav-link {
|
||||
padding-left: 0.9375rem;
|
||||
padding-right: 0.9375rem;
|
||||
}
|
||||
.navbar-expand-md .navbar-nav .nav-item:last-child .nav-link {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.navbar-custom .nav-item.dropdown:hover {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown.show {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu {
|
||||
min-width: 0;
|
||||
margin-top: 0;
|
||||
font-size: 1em;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
word-break: break-word;
|
||||
}
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
|
||||
white-space: normal;
|
||||
padding: 0.625rem;
|
||||
background-color: {{ site.navbar-col | default: "#F5F5F5" }};
|
||||
text-decoration: none !important;
|
||||
border-width: 0 1px 1px 1px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
|
||||
padding-left: 0.625rem;
|
||||
border: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
|
||||
border-width: 0 1px 1px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.navbar-custom .navbar-collapse {
|
||||
border-top: 1px solid {{ site.navbar-border-col | default: "#EAEAEA" }};
|
||||
margin: 0 -1rem;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-nav {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-nav .nav-link {
|
||||
padding: 0.675rem 0 0.675rem 1rem;
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown.show {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
|
||||
padding-left: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-custom .avatar-container {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
width: 50px;
|
||||
margin-top: -25px;
|
||||
width: 3.125rem;
|
||||
margin-top: 1.75rem;
|
||||
transition: opacity 0.5s ease-in-out;
|
||||
-webkit-transition: opacity 0.5s ease-in-out;
|
||||
-moz-transition: opacity 0.5s ease-in-out;
|
||||
}
|
||||
.navbar-custom.top-nav-short .avatar-container {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
|
||||
-webkit-transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
|
||||
-moz-transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.navbar-custom .avatar-container .avatar-img-border {
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
margin-left: -50%;
|
||||
{% unless site.round-avatar == false %}
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, .8);
|
||||
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8);
|
||||
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0.5rem rgba(0, 0, 0, .8);
|
||||
-webkit-box-shadow: 0 0 0.3125rem rgba(0, 0, 0, .8);
|
||||
-moz-box-shadow: 0 0 0.5rem rgba(0, 0, 0, .8);
|
||||
{% endunless %}
|
||||
}
|
||||
.navbar-custom .avatar-container .avatar-img {
|
||||
width: 100%;
|
||||
{% unless site.round-avatar == false %}
|
||||
border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
{% endunless %}
|
||||
display: block;
|
||||
}
|
||||
|
@ -204,10 +353,9 @@ img {
|
|||
display: none;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.navbar-custom .avatar-container {
|
||||
width: 100px;
|
||||
margin-top: -50px;
|
||||
width: 6.25rem;
|
||||
}
|
||||
|
||||
.navbar-custom .avatar-container .avatar-img-border {
|
||||
|
@ -224,71 +372,22 @@ img {
|
|||
}
|
||||
}
|
||||
|
||||
/* Multi-level navigation links */
|
||||
.navbar-custom .nav .navlinks-container {
|
||||
position: relative;
|
||||
}
|
||||
.navbar-custom .nav .navlinks-parent:after {
|
||||
content: " \25BC";
|
||||
}
|
||||
.navbar-custom .nav .navlinks-children {
|
||||
width: 100%;
|
||||
display: none;
|
||||
word-break: break-word;
|
||||
}
|
||||
.navbar-custom .nav .navlinks-container .navlinks-children a {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
padding-left: 30px;
|
||||
background-color: {{ site.navbar-children-col | default: "#F5F5F5" }};
|
||||
text-decoration: none !important;
|
||||
border-width: 0 1px 1px 1px;
|
||||
font-weight: normal;
|
||||
}
|
||||
@media only screen and (max-width: 767px) {
|
||||
.navbar-custom .nav .navlinks-container.show-children {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.navbar-custom .nav .navlinks-container.show-children .navlinks-children {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 768px) {
|
||||
.navbar-custom .nav .navlinks-container {
|
||||
text-align: center;
|
||||
}
|
||||
.navbar-custom .nav .navlinks-container:hover {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.navbar-custom .nav .navlinks-container:hover .navlinks-children {
|
||||
display: block;
|
||||
}
|
||||
.navbar-custom .nav .navlinks-children {
|
||||
position: absolute;
|
||||
}
|
||||
.navbar-custom .nav .navlinks-container .navlinks-children a {
|
||||
padding-left: 10px;
|
||||
border: 1px solid #eaeaea;
|
||||
border-width: 0 1px 1px;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Footer --- */
|
||||
|
||||
footer {
|
||||
padding: 30px 0;
|
||||
padding: 1.875rem 0;
|
||||
border-top: 1px #EAEAEA solid;
|
||||
margin-top: 50px;
|
||||
font-size: 14px;
|
||||
margin-top: 3.125rem;
|
||||
font-size: 0.875rem;
|
||||
background-color: {{ site.footer-col | default: "#F5F5F5" }};
|
||||
{% if site.footer-img %}
|
||||
background-image: url({{ site.footer-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
background-image: url({{ site.footer-img | relative_url }});
|
||||
background-attachment: fixed;
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
footer p.text-muted {
|
||||
color: {{ site.footer-text-col | default: "#777777" }};
|
||||
color: {{ site.footer-text-col | default: "#777777" }} !important;
|
||||
}
|
||||
|
||||
footer a {
|
||||
|
@ -298,7 +397,7 @@ footer a {
|
|||
footer .list-inline {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 1.875rem;
|
||||
}
|
||||
footer .copyright {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
|
@ -308,39 +407,39 @@ footer .copyright {
|
|||
}
|
||||
footer .theme-by {
|
||||
text-align: center;
|
||||
margin: 10px 0 0;
|
||||
margin: 0.625rem 0 0;
|
||||
}
|
||||
footer .footer-custom-content {
|
||||
text-align: center;
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: 0.9375rem;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
footer {
|
||||
padding: 50px 0;
|
||||
padding: 3.125rem 0;
|
||||
}
|
||||
footer .footer-links {
|
||||
font-size: 18px;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
footer .copyright {
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
footer .footer-custom-content {
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Post preview --- */
|
||||
|
||||
.post-preview {
|
||||
padding: 20px 0;
|
||||
padding: 1.25rem 0;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.post-preview {
|
||||
padding: 35px 0;
|
||||
padding: 2.1875rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -360,20 +459,20 @@ footer .footer-custom-content {
|
|||
}
|
||||
|
||||
.post-preview .post-title {
|
||||
font-size: 30px;
|
||||
font-size: 1.875rem;
|
||||
margin-top: 0;
|
||||
}
|
||||
.post-preview .post-subtitle {
|
||||
margin: 0;
|
||||
font-weight: 300;
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.post-preview .post-meta,
|
||||
.post-heading .post-meta {
|
||||
color: #808080;
|
||||
font-size: 18px;
|
||||
font-size: 1.125rem;
|
||||
font-style: italic;
|
||||
margin: 0 0 10px;
|
||||
margin: 0 0 0.625rem;
|
||||
}
|
||||
.post-preview .post-entry {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
|
@ -387,26 +486,26 @@ footer .footer-custom-content {
|
|||
}
|
||||
.post-image {
|
||||
float: right;
|
||||
height: 192px;
|
||||
width: 192px;
|
||||
margin-top: -35px;
|
||||
height: 12rem;
|
||||
width: 12rem;
|
||||
margin-top: -2.1875rem;
|
||||
filter: grayscale(90%);
|
||||
}
|
||||
.post-image:hover {
|
||||
filter: grayscale(0%);
|
||||
}
|
||||
.post-image img {
|
||||
border-radius: 100px;
|
||||
height: 192px;
|
||||
width: 192px;
|
||||
border-radius: 6.25rem;
|
||||
height: 12rem;
|
||||
width: 12rem;
|
||||
}
|
||||
.post-preview .post-read-more {
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.post-preview .post-title {
|
||||
font-size: 36px;
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -415,14 +514,14 @@ footer .footer-custom-content {
|
|||
.blog-tags {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
color: #999;
|
||||
font-size: 15px;
|
||||
margin-bottom: 30px;
|
||||
font-size: 0.9375rem;
|
||||
margin-bottom: 1.875rem;
|
||||
}
|
||||
|
||||
.blog-tags a {
|
||||
color: {{ site.link-col | default: "#008AFF" }};
|
||||
text-decoration: none;
|
||||
padding: 0px 5px;
|
||||
padding: 0 0.3125rem;
|
||||
}
|
||||
|
||||
.blog-tags a:hover {
|
||||
|
@ -432,20 +531,20 @@ footer .footer-custom-content {
|
|||
}
|
||||
|
||||
.post-preview .blog-tags {
|
||||
margin-top: 5px;
|
||||
margin-top: 0.3125rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.post-preview .blog-tags {
|
||||
margin-top: 10px;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 500px) {
|
||||
@media (max-width: 500px) {
|
||||
.post-image, .post-image img {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
height: 6.25rem;
|
||||
width: 6.25rem;
|
||||
}
|
||||
|
||||
.post-image {
|
||||
|
@ -458,7 +557,7 @@ footer .footer-custom-content {
|
|||
/* --- Post and page headers --- */
|
||||
|
||||
.intro-header {
|
||||
margin: 80px 0 20px;
|
||||
margin: 5rem 0 1.25rem;
|
||||
position: relative;
|
||||
}
|
||||
.intro-header.big-img {
|
||||
|
@ -467,8 +566,8 @@ footer .footer-custom-content {
|
|||
-moz-background-size: cover;
|
||||
background-size: cover;
|
||||
-o-background-size: cover;
|
||||
margin-top: 51px; /* The small navbar is 50px tall + 1px border */
|
||||
margin-bottom: 35px;
|
||||
margin-top: 3.1875rem; /* The small navbar is 50px tall + 1px border */
|
||||
margin-bottom: 2.1875rem;
|
||||
}
|
||||
.intro-header.big-img .big-img-transition {
|
||||
position: absolute;
|
||||
|
@ -489,29 +588,29 @@ footer .footer-custom-content {
|
|||
}
|
||||
.intro-header.big-img .page-heading,
|
||||
.intro-header.big-img .post-heading {
|
||||
padding: 100px 0;
|
||||
padding: 6.25rem 0;
|
||||
color: #FFF;
|
||||
text-shadow: 1px 1px 3px #000;
|
||||
}
|
||||
.intro-header .page-heading h1 {
|
||||
margin-top: 0;
|
||||
font-size: 50px;
|
||||
font-size: 3.125rem;
|
||||
}
|
||||
.intro-header .post-heading h1 {
|
||||
margin-top: 0;
|
||||
font-size: 35px;
|
||||
font-size: 2.1875rem;
|
||||
}
|
||||
.intro-header .page-heading .page-subheading,
|
||||
.intro-header .post-heading .post-subheading {
|
||||
font-size: 27px;
|
||||
font-size: 1.6875rem;
|
||||
line-height: 1.1;
|
||||
display: block;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-weight: 300;
|
||||
margin: 10px 0 0;
|
||||
margin: 0.625rem 0 0;
|
||||
}
|
||||
.intro-header .post-heading .post-subheading {
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
.intro-header.big-img .page-heading .page-subheading,
|
||||
.intro-header.big-img .post-heading .post-subheading {
|
||||
|
@ -528,54 +627,54 @@ footer .footer-custom-content {
|
|||
.intro-header.big-img .img-desc {
|
||||
background: rgba(30, 30, 30, 0.6);
|
||||
position: absolute;
|
||||
padding: 5px 10px;
|
||||
font-size: 11px;
|
||||
padding: 0.3125rem 0.625rem;
|
||||
font-size: 0.6875rem;
|
||||
color: #EEE;
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: none;
|
||||
}
|
||||
@media only screen and (min-width: 768px) {
|
||||
@media (min-width: 768px) {
|
||||
.intro-header {
|
||||
margin-top: 130px;
|
||||
margin-top: 8.125rem;
|
||||
}
|
||||
.intro-header.big-img {
|
||||
margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
|
||||
margin-top: 5.6875rem; /* Full navbar is small navbar + 20px padding on each side when expanded */
|
||||
}
|
||||
.intro-header.big-img .page-heading,
|
||||
.intro-header.big-img .post-heading {
|
||||
padding: 150px 0;
|
||||
padding: 9.375rem 0;
|
||||
}
|
||||
.intro-header .page-heading h1 {
|
||||
font-size: 80px;
|
||||
font-size: 5rem;
|
||||
}
|
||||
.intro-header .post-heading h1 {
|
||||
font-size: 50px;
|
||||
font-size: 3.125rem;
|
||||
}
|
||||
.intro-header.big-img .img-desc {
|
||||
font-size: 14px;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.header-section.has-img .no-img {
|
||||
margin-top: 0;
|
||||
background-color: #FCFCFC;
|
||||
margin: 0 0 40px;
|
||||
padding: 20px 0;
|
||||
box-shadow: 0 0 5px #AAA;
|
||||
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 only screen and (max-width: 365px) {
|
||||
@media (max-width: 365px) {
|
||||
.header-section.has-img .intro-header.no-img {
|
||||
display: block;
|
||||
}
|
||||
.intro-header.big-img {
|
||||
width: 100%;
|
||||
height: 220px;
|
||||
height: 13.75rem;
|
||||
}
|
||||
.intro-header.big-img .page-heading,
|
||||
.intro-header.big-img .post-heading {
|
||||
|
@ -585,30 +684,30 @@ footer .footer-custom-content {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 325px) {
|
||||
@media (max-width: 325px) {
|
||||
.intro-header.big-img {
|
||||
height: 200px;
|
||||
height: 12.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.caption {
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
padding: 10px;
|
||||
font-size: 0.875rem;
|
||||
padding: 0.625rem;
|
||||
font-style: italic;
|
||||
margin: 0;
|
||||
display: block;
|
||||
border-bottom-right-radius: 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
border-bottom-right-radius: 0.3125rem;
|
||||
border-bottom-left-radius: 0.3125rem;
|
||||
}
|
||||
|
||||
#header-gh-btns {
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: 0.9375rem;
|
||||
}
|
||||
@media only screen and (max-width: 500px) {
|
||||
@media (max-width: 500px) {
|
||||
#header-gh-btns > iframe {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
margin-bottom: 0.3125rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -621,48 +720,53 @@ footer .footer-custom-content {
|
|||
}
|
||||
}
|
||||
.reader-time .middot {
|
||||
margin: 0 10px;
|
||||
margin: 0 0.625rem;
|
||||
}
|
||||
|
||||
/* --- Pager --- */
|
||||
/* --- Pagination --- */
|
||||
|
||||
.pager li a {
|
||||
.pagination {
|
||||
margin: 0.625rem 0 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.pagination.blog-pager {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.pagination .page-item.next {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.pagination.blog-pager {
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination .page-item .page-link {
|
||||
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
padding: 10px 5px;
|
||||
padding: 0.625rem 0.3125rem;
|
||||
background-color: #FFF;
|
||||
border-radius: 0;
|
||||
color: #404040;
|
||||
}
|
||||
@media only screen and (min-width: 768px) {
|
||||
.pager li a {
|
||||
padding: 15px 25px;
|
||||
@media (min-width: 768px) {
|
||||
.pagination .page-item .page-link {
|
||||
padding: 0.9375rem 1.5625rem;
|
||||
}
|
||||
}
|
||||
.pager li a:hover,
|
||||
.pager li a:focus {
|
||||
.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" }};
|
||||
}
|
||||
|
||||
.pager {
|
||||
margin: 10px 0 0;
|
||||
}
|
||||
|
||||
.pager.blog-pager {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 768px) {
|
||||
.pager.blog-pager {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Tables --- */
|
||||
|
||||
table {
|
||||
|
@ -682,13 +786,13 @@ table tr th {
|
|||
border: 1px solid #cccccc;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding: 6px 13px;
|
||||
padding: 0.375rem 0.8125rem;
|
||||
}
|
||||
table tr td {
|
||||
border: 1px solid #cccccc;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding: 6px 13px;
|
||||
padding: 0.375rem 0.8125rem;
|
||||
}
|
||||
table tr th :first-child,
|
||||
table tr td :first-child {
|
||||
|
@ -702,8 +806,10 @@ table tr td :last-child {
|
|||
/* --- Code blocks --- */
|
||||
|
||||
pre {
|
||||
font-size: 16px;
|
||||
line-height: 1.5em;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
border-radius: 0.25rem;
|
||||
padding: 0.59375rem;
|
||||
}
|
||||
.highlight pre {
|
||||
border: none;
|
||||
|
@ -714,9 +820,9 @@ pre {
|
|||
background-image: linear-gradient(
|
||||
rgba(0,0,0,0.06), rgba(0,0,0,0.06) 1.5em, rgba(0,0,0,0.03) 1.5em, rgba(0,0,0,0.03) 3em);
|
||||
background-size: auto 3em;
|
||||
background-position-y: 10px;
|
||||
background-position-y: 0.625rem;
|
||||
border: 1px solid rgba(0,0,0,0.1);
|
||||
border-left: 7px solid #444;
|
||||
border-left: 0.4375rem solid #444;
|
||||
}
|
||||
.highlight > pre:not([class~="highlight"]) { /* code block with line number */
|
||||
padding: 0;
|
||||
|
@ -747,16 +853,16 @@ pre {
|
|||
/* --- Social media sharing section --- */
|
||||
|
||||
#social-share-section {
|
||||
margin-bottom: 30px;
|
||||
margin-bottom: 1.875rem;
|
||||
}
|
||||
|
||||
/* --- Notification boxes --- */
|
||||
.box-note, .box-warning, .box-error, .box-success {
|
||||
padding: 15px 15px 15px 10px;
|
||||
margin: 20px 20px 20px 5px;
|
||||
padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
|
||||
margin: 1.25rem 1.25rem 1.25rem 0.3125rem;
|
||||
border: 1px solid #eee;
|
||||
border-left-width: 5px;
|
||||
border-radius: 5px 3px 3px 5px;
|
||||
border-left-width: 0.3125rem;
|
||||
border-radius: 0.3125rem 0.1875rem 0.1875rem 0.3125rem;
|
||||
}
|
||||
|
||||
.box-note {
|
||||
|
@ -789,21 +895,10 @@ pre {
|
|||
border: unset;
|
||||
}
|
||||
|
||||
/* Fix .navbar-toggle */
|
||||
|
||||
.navbar-default button.navbar-toggle:focus,
|
||||
.navbar-default button.navbar-toggle:hover {
|
||||
background-color: initial;
|
||||
}
|
||||
|
||||
.navbar-default button.navbar-toggle[aria-expanded="true"] {
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
/* Tags page */
|
||||
|
||||
.tag-btn {
|
||||
margin: 5px;
|
||||
margin: 0.3125rem;
|
||||
}
|
||||
|
||||
#full-tags-list {
|
||||
|
@ -811,15 +906,15 @@ pre {
|
|||
}
|
||||
|
||||
#full-tags-list .tag-entry {
|
||||
margin: 0 0 15px 25px;
|
||||
margin: 0 0 0.9375rem 1.5625rem;
|
||||
}
|
||||
|
||||
#full-tags-list .tag-entry a {
|
||||
font-size: 20px;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
#full-tags-list .tag-entry .entry-date {
|
||||
color: #808080;
|
||||
font-style: italic;
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue