beautifulSA-jekyll/css/main.css

783 lines
15 KiB
CSS
Raw Normal View History

---
layout: null
---
2015-03-02 21:06:05 +01:00
@import url("pygment_highlights.css");
/* --- General --- */
body {
font-family: 'Lora', 'Times New Roman', serif;
font-size: 18px;
color: #404040;
position: relative;
background-color: {{ site.page-col }};
{% if site.page-img %}
background-image: url({{ site.page-img }});
background-attachment: fixed;
{% endif %}
2015-03-02 21:06:05 +01:00
}
p {
line-height: 1.5;
margin: 30px 0;
}
h1,h2,h3,h4,h5,h6 {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 800;
}
a {
color: {{ site.link-col }};
2015-03-02 21:06:05 +01:00
}
a:hover,
a:focus {
color: {{ site.hover-col }};
2015-03-02 21:06:05 +01:00
}
blockquote {
color: #808080;
font-style: italic;
}
2016-06-04 11:05:04 +02:00
blockquote p:first-child {
margin-top: 0;
2016-06-04 00:02:21 +02:00
}
2015-03-02 21:06:05 +01:00
hr.small {
max-width: 100px;
margin: 15px auto;
border-width: 4px;
border-color: inherit;
border-radius: 3px;
}
.main-content {
padding-top: 80px;
}
@media only screen and (min-width: 768px) {
.main-content {
padding-top: 130px;
}
}
.main-explain-area {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
2015-03-03 01:28:27 +01:00
padding: 15px inherit;
}
2015-03-02 21:06:05 +01:00
.hideme {
display: none;
}
::-moz-selection {
color: white;
text-shadow: none;
background-color: {{ site.hover-col }};
2015-03-02 21:06:05 +01:00
}
::selection {
color: white;
text-shadow: none;
background-color: {{ site.hover-col }};
2015-03-02 21:06:05 +01:00
}
img::selection {
color: white;
background: transparent;
}
img::-moz-selection {
color: white;
background: transparent;
}
2015-12-29 22:32:51 +01:00
img {
max-width: 100%;
}
2015-03-14 02:35:19 +01:00
.disqus-comments {
margin-top: 30px;
}
@media only screen and (min-width: 768px) {
.disqus-comments {
margin-top: 40px;
}
}
2018-01-19 07:03:42 +01:00
.linked-section {
padding-top: 60px;
margin-top: -25px;
}
2015-03-02 21:06:05 +01:00
/* --- Navbar --- */
.navbar-custom {
background-color: {{ site.navbar-col }};
2015-03-02 21:06:05 +01:00
border-bottom: 1px solid #EAEAEA;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
{% if site.navbar-img %}
background-image: url({{ site.navbar-img }});
background-attachment: fixed;
{% endif %}
2015-03-02 21:06:05 +01:00
}
.navbar-custom .nav li a {
text-transform: uppercase;
font-size: 12px;
letter-spacing: 1px;
}
.navbar-custom .navbar-brand,
.navbar-custom .nav li a {
font-weight: 800;
color: {{ site.navbar-text-col }};
2015-03-02 21:06:05 +01:00
}
.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 }};
2015-03-02 21:06:05 +01:00
}
2016-12-15 23:00:36 +01:00
.navbar-custom .navbar-brand-logo {
padding-top: 0;
2016-12-15 23:04:01 +01:00
-webkit-transition: padding .5s ease-in-out;
-moz-transition: padding .5s ease-in-out;
transition: padding .5s ease-in-out;
2016-12-15 23:00:36 +01:00
}
.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;
}
2015-03-02 21:06:05 +01:00
@media only screen and (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;
}
.navbar-custom.top-nav-short {
padding: 0;
}
}
.navbar-custom .avatar-container {
position: absolute;
left: 50%;
width: 50px;
margin-top: -25px;
2015-03-02 21:06:05 +01:00
}
.navbar-custom .avatar-container .avatar-img-border {
width: 100%;
2015-03-02 21:06:05 +01:00
border-radius: 50%;
margin-left: -50%;
display: inline-block;
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);
}
.navbar-custom .avatar-container .avatar-img {
width: 100%;
2015-03-02 21:06:05 +01:00
border-radius: 50%;
display: block;
}
.navbar-custom.top-nav-expanded .avatar-container {
display: none;
}
@media only screen and (min-width: 768px) {
.navbar-custom .avatar-container {
width: 100px;
margin-top: -50px;
2015-03-02 21:06:05 +01:00
}
2015-03-02 21:06:05 +01:00
.navbar-custom .avatar-container .avatar-img-border {
width: 100%;
box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
-moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
}
2015-03-02 21:06:05 +01:00
.navbar-custom .avatar-container .avatar-img {
width: 100%;
}
}
2016-03-18 05:20:11 +01:00
/* 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 }};
2016-03-18 05:20:11 +01:00
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);
2016-03-18 05:20:11 +01:00
}
.navbar-custom .nav .navlinks-container.show-children .navlinks-children {
display: block;
}
}
@media only screen and (min-width: 768px) {
2016-05-01 09:45:16 +02:00
.navbar-custom .nav .navlinks-container {
text-align: center;
}
2016-03-18 05:20:11 +01:00
.navbar-custom .nav .navlinks-container:hover {
2018-01-08 02:36:16 +01:00
background: rgba(0, 0, 0, 0.1);
2016-03-18 05:20:11 +01:00
}
.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;
}
}
2015-03-02 21:06:05 +01:00
/* --- Footer --- */
footer {
padding: 30px 0;
border-top: 1px #EAEAEA solid;
margin-top: 50px;
font-size: 14px;
background-color: {{ site.footer-col }};
{% if site.footer-img %}
background-image: url({{ site.footer-img }});
background-attachment: fixed;
{% endif %}
2015-03-02 21:06:05 +01:00
}
footer p.text-muted {
color: {{ site.footer-text-col }};
}
2015-03-02 21:06:05 +01:00
footer a {
color: {{site.footer-link-col}};
2015-03-02 21:06:05 +01:00
}
footer .list-inline {
margin: 0;
padding: 0;
}
footer .copyright {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
2015-03-02 21:06:05 +01:00
text-align: center;
margin-bottom: 0;
}
footer .theme-by {
text-align: center;
margin: 10px 0 0;
}
@media only screen and (min-width: 768px) {
footer {
padding: 50px 0;
}
footer .footer-links {
font-size: 18px;
}
footer .copyright {
font-size: 16px;
}
}
2015-03-02 21:06:05 +01:00
/* --- Post preview --- */
.post-preview {
padding: 20px 0;
border-bottom: 1px solid #eee;
}
@media only screen and (min-width: 768px) {
.post-preview {
padding: 35px 0;
}
}
.post-preview:last-child {
border-bottom: 0;
}
.post-preview a {
text-decoration: none;
color: #404040;
}
.post-preview a:focus,
.post-preview a:hover {
text-decoration: none;
color: {{ site.hover-col }};
2015-03-02 21:06:05 +01:00
}
.post-preview .post-title {
font-size: 30px;
margin-top: 0;
}
.post-preview .post-subtitle {
margin: 0;
font-weight: 300;
margin-bottom: 10px;
}
.post-preview .post-meta,
.post-heading .post-meta {
color: #808080;
font-size: 18px;
font-style: italic;
margin: 0 0 10px;
}
.post-preview .post-entry {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.post-entry-container {
display: inline-block;
width: 100%;
}
.post-entry {
width: 100%;
}
.post-image {
float: right;
height: 192px;
width: 192px;
margin-top: -35px;
filter: grayscale(90%);
}
.post-image:hover {
filter: grayscale(0%);
}
.post-image img {
border-radius: 100px;
height: 192px;
width: 192px;
}
2015-03-02 21:06:05 +01:00
.post-preview .post-read-more {
font-weight: 800;
}
@media only screen and (min-width: 768px) {
.post-preview .post-title {
font-size: 36px;
}
}
2016-07-27 22:19:16 +02:00
/* --- Tags --- */
.blog-tags {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #999;
font-size: 15px;
2016-07-28 01:45:49 +02:00
margin-bottom: 30px;
2016-07-27 22:19:16 +02:00
}
.blog-tags a {
color: {{ site.link-col }};
2016-07-27 22:19:16 +02:00
text-decoration: none;
padding: 0px 5px;
}
.blog-tags a:hover {
2016-07-28 01:45:49 +02:00
border-radius: 2px;
color: {{ site.hover-col }};
2018-01-19 07:35:31 +01:00
background-color: #EEE;
2016-07-27 22:19:16 +02:00
}
2016-07-28 01:45:49 +02:00
.post-preview .blog-tags {
margin-top: 5px;
margin-bottom: 0;
}
@media only screen and (min-width: 768px) {
.post-preview .blog-tags {
margin-top: 10px;
}
}
@media only screen and (max-width: 500px) {
.post-image, .post-image img {
height: 100px;
width: 100px;
}
.post-image {
width: 100%;
text-align: center;
margin-top: 0;
float: left;
}
}
2016-03-18 12:33:17 +01:00
/* --- Post and page headers --- */
2015-03-02 21:06:05 +01:00
2016-03-18 12:33:17 +01:00
.intro-header {
margin: 80px 0 20px;
position: relative;
2015-03-02 21:06:05 +01:00
}
2016-03-18 12:33:17 +01:00
.intro-header.big-img {
background: no-repeat center center;
-webkit-background-size: cover;
-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;
}
.intro-header.big-img .big-img-transition {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
background: no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
-webkit-transition: opacity 1s linear;
-moz-transition: opacity 1s linear;
transition: opacity 1s linear;
}
.intro-header .page-heading {
2015-03-02 21:06:05 +01:00
text-align: center;
}
2016-03-18 12:33:17 +01:00
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
padding: 100px 0;
color: #FFF;
text-shadow: 1px 1px 3px #000;
2015-03-02 21:06:05 +01:00
}
2016-03-18 12:33:17 +01:00
.intro-header .page-heading h1 {
margin-top: 0;
2015-03-02 21:06:05 +01:00
font-size: 50px;
2016-03-18 12:33:17 +01:00
}
.intro-header .post-heading h1 {
2015-03-02 21:06:05 +01:00
margin-top: 0;
2016-03-18 12:33:17 +01:00
font-size: 35px;
2015-03-02 21:06:05 +01:00
}
2016-03-18 12:33:17 +01:00
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
font-size: 27px;
2015-03-02 21:06:05 +01:00
line-height: 1.1;
display: block;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 300;
margin: 10px 0 0;
}
2016-03-18 12:33:17 +01:00
.intro-header .post-heading .post-subheading {
2015-03-02 21:06:05 +01:00
margin-bottom: 20px;
}
2016-03-18 12:33:17 +01:00
.intro-header.big-img .page-heading .page-subheading,
.intro-header.big-img .post-heading .post-subheading {
font-weight: 400;
}
.intro-header.big-img .page-heading hr {
box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
-moz-box-shadow: 1px 1px 3px #000;
}
.intro-header.big-img .post-heading .post-meta {
color: #EEE;
}
.intro-header.big-img .img-desc {
background: rgba(30, 30, 30, 0.6);
position: absolute;
padding: 5px 10px;
font-size: 11px;
color: #EEE;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
right: 0;
bottom: 0;
display: none;
}
2015-03-02 21:06:05 +01:00
@media only screen and (min-width: 768px) {
2016-03-18 12:33:17 +01:00
.intro-header {
margin-top: 130px;
}
.intro-header.big-img {
margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
}
2016-03-18 12:33:17 +01:00
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
padding: 150px 0;
}
2016-03-18 12:33:17 +01:00
.intro-header .page-heading h1 {
font-size: 80px;
}
.intro-header .post-heading h1 {
2015-03-02 21:06:05 +01:00
font-size: 50px;
}
2016-03-18 12:33:17 +01:00
.intro-header.big-img .img-desc {
font-size: 14px;
}
2015-03-02 21:06:05 +01:00
}
2016-03-18 12:33:17 +01:00
.header-section.has-img .no-img {
margin-top: 0;
background-color: #FCFCFC;
2016-03-18 12:33:17 +01:00
margin: 0 0 40px;
padding: 20px 0;
box-shadow: 0 0 5px #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) {
.header-section.has-img .intro-header.no-img {
display: block;
}
.intro-header.big-img {
width: 100%;
height: 220px;
}
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
display: none;
}
.header-section.has-img .big-img {
margin-bottom: 0;
}
}
@media only screen and (max-width: 325px) {
2016-03-18 12:33:17 +01:00
.intro-header.big-img {
height: 200px;
2015-03-02 21:06:05 +01:00
}
}
.caption {
text-align: center;
font-size: 14px;
padding: 10px;
font-style: italic;
margin: 0;
display: block;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
#header-gh-btns {
margin-bottom: 15px;
}
@media only screen and (max-width: 500px) {
#header-gh-btns > iframe {
display: block;
margin-bottom: 5px;
}
}
2015-03-02 21:06:05 +01:00
/* --- Pager --- */
.pager li a {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
text-transform: uppercase;
font-size: 14px;
font-weight: 800;
letter-spacing: 1px;
padding: 10px 5px;
background-color: #FFF;
2015-03-02 21:06:05 +01:00
border-radius: 0;
color: #404040;
}
@media only screen and (min-width: 768px) {
.pager li a {
padding: 15px 25px;
}
}
.pager li a:hover,
.pager li a:focus {
color: #FFF;
border: 1px solid {{ site.hover-col }};
background-color: {{ site.hover-col }};
2015-03-02 21:06:05 +01:00
}
.pager {
margin: 10px 0 0;
}
.pager.blog-pager {
margin-top: 0;
}
@media only screen and (min-width: 768px) {
.pager.blog-pager {
margin-top: 10px;
}
}
2015-05-16 01:58:11 +02:00
/* --- Tables --- */
table {
2015-05-16 01:58:11 +02:00
padding: 0;
}
table tr {
2015-05-16 01:58:11 +02:00
border-top: 1px solid #cccccc;
background-color: #ffffff;
margin: 0;
padding: 0;
}
table tr:nth-child(2n) {
2015-05-16 01:58:11 +02:00
background-color: #f8f8f8;
}
table tr th {
2015-05-16 01:58:11 +02:00
font-weight: bold;
border: 1px solid #cccccc;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr td {
2015-05-16 01:58:11 +02:00
border: 1px solid #cccccc;
text-align: left;
margin: 0;
padding: 6px 13px;
}
table tr th :first-child,
table tr td :first-child {
2015-05-16 01:58:11 +02:00
margin-top: 0;
}
table tr th :last-child,
table tr td :last-child {
2015-05-16 01:58:11 +02:00
margin-bottom: 0;
}
2016-07-29 03:18:01 +02:00
/* --- Code blocks --- */
2016-07-30 00:10:26 +02:00
2016-07-29 03:18:01 +02:00
pre {
2016-07-30 05:26:26 +02:00
font-size: 16px;
2016-07-29 03:18:01 +02:00
line-height: 1.5em;
}
pre code {
white-space: pre;
}
pre.highlight, .highlight > pre, td.code pre {
background-color: #FAFAFA;
background-image: linear-gradient(#F9F9F9 50%, #FDFDFD 50%);
2016-07-29 03:18:01 +02:00
background-repeat: repeat;
background-size: 3em 3em;
background-position: 0px 10px;
2016-07-29 03:18:01 +02:00
border-left: 7px solid #444;
}
2016-07-30 00:10:26 +02:00
code table, code table td, code table th, code table tbody, code table tr,
td.gutter pre {
padding: 0;
border: none;
2016-07-30 06:09:31 +02:00
background-color: #fff;
2016-07-30 00:10:26 +02:00
}
.highlight > pre {
padding: 0;
}
.highlight > pre.highlight {
padding: 9.5px;
}
td.code pre {
2016-07-30 00:10:26 +02:00
border-width: 0 0 0 2px;
border-style: solid;
border-color: #444;
border-radius: 0;
}
td.gutter {
padding-top: 3px;
}
/* --- Social media sharing section --- */
#social-share-section {
margin-bottom: 30px;
2016-12-15 23:00:36 +01:00
}
/* --- Notification boxes --- */
.box-note, .box-warning, .box-error, .box-success {
2017-10-19 00:43:28 +02:00
padding: 15px 15px 15px 10px;
margin: 20px 20px 20px 5px;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 5px 3px 3px 5px;
}
.box-note {
background-color: #eee;
border-left-color: #2980b9;
}
.box-warning {
background-color: #fdf5d4;
border-left-color: #f1c40f;
}
.box-error {
background-color: #f4dddb;
border-left-color: #c0392b;
}
.box-success {
background-color: #98FB98;
border-left-color: #3CB371;
}
/* Fix table border github gist snippets */
.gist, .gist-file table tr {
border: unset;
}
.gist, .gist-file table tr td {
border: unset;
}
2018-01-19 07:03:42 +01:00
/* 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);
}
2018-01-19 06:26:23 +01:00
/* Tags page */
.tag-btn {
margin: 5px;
}
2018-01-19 07:03:42 +01:00
#full-tags-list {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#full-tags-list .tag-entry {
margin: 0 0 15px 25px;
}
#full-tags-list .tag-entry a {
font-size: 20px;
}
#full-tags-list .tag-entry .entry-date {
color: #808080;
font-style: italic;
font-size: 16px;
}