Skip to content

Instantly share code, notes, and snippets.

@rawsh
Created November 28, 2016 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawsh/071c46ba73a5d9854d2e3a1a411e770e to your computer and use it in GitHub Desktop.
Save rawsh/071c46ba73a5d9854d2e3a1a411e770e to your computer and use it in GitHub Desktop.
ghost input js and css
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/fluidbox/2.0.4/css/fluidbox.min.css" />
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/fluidbox/2.0.4/js/jquery.fluidbox.min.js'></script>
<script>
$('#post-header-image > img, #article-content img').each(function() {
$(this).wrap("<a href='" + this.src + "'/>");
});
$('#post-header-image > a, #article-content a').fluidbox({
viewportFill: 1,
});
</script>
<style>
header.post-header {
margin-bottom: 2rem !important;
}
section.post-meta, #sharing {
display: inline-block;
}
.author-inline {
display: inline-block;
margin-left: 8px;
padding-left: 12px;p/bd0b77ef-af99-49a7-a270-01a8dabd0edc/#fnref:3
border-left: #d5dbde 1px solid;
white-space: nowrap;
}
@media screen and (min-width: 1440px) {
#linux-comments {
height: 300px;
right: 0;
position: absolute;
margin-right: -330px;
margin-top: 51px;
border: solid 2px black;
}
}
@media screen and (min-width: 700px) {
.post-template > .site-wrapper > .post-header {
margin-right: auto;
max-width: 65%!important;
margin-left: auto;
}
}
.fluidbox--ready+em {
line-height: 53px;
padding: 15px;
background: #efefef;
}
h3.gh-subscribe-title {
margin-bottom: 1em;
}
#forum-list {
margin-bottom: -4rem;
padding-bottom: 0;
}
.main-nav a {
pointer-events: all;
}
.post-meta {
font-size: 1.5rem;
margin: 1.35rem 0 0 0 !important;
font-family: inherit !important;
line-height: 2.2rem;
}
h1 {
font-size: 4rem;
}
.main-nav.overlay {
pointer-events: none;
}
.post-head.main-header {
min-height: 70px;
height: 0 !important;
background: none !important;
}
@media screen and (min-width: 700px) {
#post-header-image img {
max-width: 65% !important;
}
}
#post-header-image img {
max-width: 100%;
}
#post-header-image {
width: 100%;
text-align: center;
}
#notice {
height: auto !important;
font-size: 1.6rem;
padding-top: 1rem;
text-align: center;
}
#sharing {
font-size: 1.5rem;
padding-top: 22px;
}
#sharing > a {
margin: 5px;
}
#twitter-share {
color: #1da1f2;
}
#facebook-share {
color: #3c5b99;
}
#google-share {
color: #dc4b38;
}
#pinterest-share {
color: #ca2027;
}
#reddit-share {
color: #ff4500;
}
#pocket-share {
color: #ee4056;
}
article#carboncontainer:after {
display: none;
}
article#carboncontainer {
margin: auto;
overflow-y: hidden;
padding: 10px;
background: #f1f1f1;
border-bottom: none;
}
article.post {
margin-top: 4rem !important;
}
span.pocket {
margin-bottom: -2px;
width: 96px;
}
.gh-subscribe {
margin-bottom: 3rem;
margin-top: 1rem;
}
header > .social {
padding-top: 15px;
}
.share {
width: 260px !important;
}
.fb-like span {
vertical-align: top !important;
}
.social span {
display: inline-block;
}
span.facebook {
vertical-align: middle !important;
}
span.reddit {
margin-bottom: -2px;
}
.post-content img {
max-width: 116 !important;
}
#subscribe-result {
padding-top: 5px;
}
.post-footer .share a {
margin: 0;
}
.home-template > div#bio_ep {
display: none;
}
.archive-template > div#bio_ep {
display: none;
}
.tag-template > div#bio_ep {
display: none;
}
.page-template > div#bio_ep {
display: none;
}
.author-template > div#bio_ep {
display: none;
}
#bio_ep {
transform: translateX(-23%) translateY(-50%);
-webkit-transform: translateX(-23%) translateY(-50%);
-ms-transform: translateX(-23%) translateY(-50%);
}
#bio_ep_close {
border-radius: 0 !important;
margin: -8px 0 0 -180px;
width: 180px;
height: initial !important;
bottom: 0;
}
.page-description {
display: none;
}
.post-header {
padding-top: 1em;
}
.page-title {
z-index:0;
display:block;
}
.main-nav.overlay {
z-index: 10;
}
img.author-thumb {
margin-left: -35px;
margin-top: -16px;
}
.post-header {
background-color: #fff;
}
.post {
width: 90% !important;
max-width: 728px !important;
}
.st-alert.with_title {
padding: 40px 25px 30px 60px;
margin-top: 20px;
}
.st-alert {
padding: 20px 30px;
margin-bottom: 20px;
text-shadow: 0 1px 0 rgba(255,255,255,0.3);
background-color: #ffc336;
position: relative;
color: #484019;
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
}
.st-alert span {
position: absolute;
left: 0;
top: 0;
padding: 2px 8px;
color: #fafafa;
font-size: 13px;
background: rgba(0,0,0,0.2);
-webkit-border-radius: 1px 0 1px 0;
-moz-border-radius: 1px 0 1px 0;
border-radius: 1px 0 1px 0;
}
</style>
<style type="text/css">
a.carbon-poweredby, a.xipemax_5-poweredby {
font-size: .9em !important;
font-style: italic;
float: left;
margin-left: 140px;
text-decoration: none;
}
div#carbonads, div#xipemax_5 {
min-height: 100px;
float: left;
}
a.carbon-text, a.xipemax_5-text {
margin-left: 140px;
float: left;
font-size: .9em !important;
}
a.carbon-img, a.xipemax_5-img {
display: table;
position: absolute;
}
</style>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TCLZKGR');</script>
<!-- End Google Tag Manager -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment