theread.me/site/css/main.css

379 lines
11 KiB
CSS

/** Reset some basic elements */
body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, hr, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
/** Basic styling */
body { font-family: "Nunito", "Sahel", Open Sans, sans-serif; font-size: 12pt; line-height: 1.5; font-weight: 300; color: #303030; background-color: #FFFCF8; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
s { display: inline; }
/** Set `margin-bottom` to maintain vertical rhythm */
h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure { margin-bottom: 15px; }
/** Images */
img { max-width: 100%; vertical-align: middle; }
/** Figures */
figure > img { display: block; }
figcaption { font-size: 10.5pt; }
/** Lists */
ul, ol { margin-left: 30px; }
li > ul, li > ol { margin-bottom: 0; }
/** Headings */
h1, h2, h3, h4, h5, h6 { font-weight: 300; }
/** Links */
a { color: #2a7ae2; text-decoration: none; }
a:visited { color: #1756a9; }
a:hover { color: #303030; border-bottom: 1px solid #303030; }
/** Blockquotes */
blockquote { color: #828282; border-left: 4px solid #e8e8e8; padding-left: 15px; font-size: 18px; letter-spacing: -1px; font-style: italic; }
blockquote > :last-child { margin-bottom: 0; }
/** Code formatting */
pre, code { font-size: 15px; border: 1px solid #e8e8e8; border-radius: 3px; background-color: white; }
/** Code formatting */
h1 pre, h1 code, h2 pre, h2 code, h3 pre, h3 code, h4 pre, h4 code { font-size: inherit; }
code { padding: 1px 5px; }
pre { padding: 8px 12px; overflow-x: scroll; }
pre > code { border: 0; padding-right: 0; padding-left: 0; }
/** Wrapper */
.wrapper { max-width: -webkit-calc(800px - (30px * 2)); max-width: calc(800px - (30px * 2)); margin-right: auto; margin-left: auto; padding-right: 30px; padding-left: 30px; }
@media screen and (max-width: 800px) { .wrapper { max-width: -webkit-calc(800px - (30px)); max-width: calc(800px - (30px)); padding-right: 15px; padding-left: 15px; } }
/** Clearfix */
.wrapper:after { content: ""; display: table; clear: both; }
/** Icons */
.icon > svg { display: inline-block; width: 16px; height: 16px; vertical-align: middle; }
.icon > svg path { fill: #828282; }
@font-face { font-family: 'Damion'; src: url(fonts/Damion_gdi.woff); }
@font-face { font-family: 'Ubuntu'; src: url(fonts/Ubuntu_gdi.woff); }
@font-face { font-family: 'Ubuntu Light'; src: url(fonts/Ubuntu-Light_gdi.woff); }
@font-face { font-family: Mononoki; src: url(fonts/mononoki-Regular.woff); }
@font-face { font-family: Sahel; src: url(fonts/Sahel.eot); src: url(fonts/Sahel.eot?#iefix) format("embedded-opentype"), url(fonts/Sahel.woff) format("woff"), url(fonts/Sahel.ttf) format("truetype"); font-weight: normal; }
@font-face { font-family: Sahel; src: url(fonts/Sahel-Bold.eot); src: url(fonts/Sahel-Bold.eot?#iefix) format("embedded-opentype"), url(fonts/Sahel-Bold.woff) format("woff"), url(fonts/Sahel-Bold.ttf) format("truetype"); font-weight: bold; }
@font-face { font-family: Sahel; src: url(fonts/Sahel-Black.eot); src: url(fonts/Sahel-Black.eot?#iefix) format("embedded-opentype"), url(fonts/Sahel-Black.woff) format("woff"), url(fonts/Sahel-Black.ttf) format("truetype"); font-weight: 900; }
body { background: #FFF7EC; height: auto; padding-bottom: 5rem; }
.share-page { padding: 10px 50px; background: rgba(0, 0, 0, 0.1); border-radius: 5px; margin: 50px 0; }
.share-page a { margin-left: 1rem; }
header { width: 100%; text-align: center; padding-top: 30px; }
header img { margin: 30px auto; }
header h1 { font-size: 4rem; font-family: "Secular One", sans-serif; text-transform: lowercase; }
header h1 a, header > a { text-decoration: none; color: #303030 !important; }
header h1 a:hover, header > a:hover { border: none; }
header nav { margin-top: 1rem; margin-bottom: 1rem; }
header nav a { margin: 0 1rem; }
header a:visited { color: #2a7ae2; }
.page-heading { text-align: center; font-style: italic; width: 20%; height: 1px; border: 1px dotted rgba(0, 0, 0, 0.1); margin: 2rem auto 5rem; }
.post-list, .post-header { list-style: none; margin-left: 0; margin-bottom: 5rem; }
.post-list h2, .post-list h1, .post-header h2, .post-header h1 { text-align: center; }
.post-list .post-meta, .post-header .post-meta { font-size: 10.5pt; display: block; text-align: center; margin-bottom: 2rem; }
.post-list .post-meta span, .post-header .post-meta span { margin-left: 1rem; margin-right: 1rem; }
article p img { margin: 2rem auto; display: block; }
article p img.inline { display: inline; margin: 0.1rem; }
strong { font-weight: bold; }
.post article h1 { font-weight: bold; }
.post-list li { margin-top: 100px; }
.post-list li:first-of-type { margin-top: 0; }
.post-list h2 { font-size: 1.5rem; }
.post article h2 { font-size: 1.3rem; }
.post-content { position: relative; }
.post-content [id] { position: relative; }
.post-content [id]:hover .heading-link { opacity: 1; }
.lang-fa { font-family: "Nunito", "Sahel", Open Sans, sans-serif; direction: rtl !important; }
.lang-fa .post-content { text-align: right; font-size: 1.05em; line-height: 1.718em; }
.lang-fa .share-page { direction: ltr; }
.post-content .heading-link { display: block; position: absolute; width: 15px; height: 15px; left: -30px; top: 10px; padding-right: 30px; background: url(/img/link.svg) no-repeat; background-size: contain; opacity: 0; transition: opacity 0.3s ease; }
.post-content .heading-link:hover { border: none; }
article .image-caption { display: block; text-align: center; font-size: 10pt; color: #828282; margin-top: -1.5rem; }
.rss-subscribe { text-align: center; }
hr { border: none; border-top: 1px solid #b5b5b5; margin: 1.5rem 0; }
.channel #mahdi * { fill: #000000 !important; }
.channel > a::before { content: 'BroadcastChannels rock'; color: white; position: absolute; top: 250px; left: calc(50% - 83px); font-size: 15px; text-shadow: 0 0 1px white; }
.centered { margin: 2rem auto; display: block; }
.art .image-details { position: absolute; top: 10px; left: 10px; font-size: 12px; color: white; text-shadow: 1px 1px black; font-family: monospace; text-align: left; transition: opacity 0.2s; }
.art .image-details.lang-fa { left: none; right: 10px; text-align: right; font-family: "Nunito", "Sahel", Open Sans, sans-serif; }
.art .post-content:hover .image-details { opacity: 0; }
/* Tomorrow Light */
/* For use with Jekyll and Pygments */
/* ----------------------------------------------------------*/
pre, code { font-family: 'Mononoki'; font-size: 11pt; overflow-x: auto; }
code { background: #fff; padding: 2px 4px; border-radius: 3px; border: 1px solid #ccc; }
.highlight pre { padding: 8px 10px; }
.highlight pre, .highlight code, .highlight .hll { background-color: #fff; border-radius: 3px; }
.highlight .c { color: #8e908c; }
/* Comment */
.highlight .err { color: #c82829; }
/* Error */
.highlight .k { color: #8959a8; }
/* Keyword */
.highlight .l { color: #f5871f; }
/* Literal */
.highlight .n { color: #4d4d4c; }
/* Name */
.highlight .o { color: #3e999f; }
/* Operator */
.highlight .p { color: #4d4d4c; }
/* Punctuation */
.highlight .cm { color: #8e908c; }
/* Comment.Multiline */
.highlight .cp { color: #8e908c; }
/* Comment.Preproc */
.highlight .c1 { color: #8e908c; }
/* Comment.Single */
.highlight .cs { color: #8e908c; }
/* Comment.Special */
.highlight .gd { color: #c82829; }
/* Generic.Deleted */
.highlight .ge { font-style: italic; }
/* Generic.Emph */
.highlight .gh { color: #4d4d4c; font-weight: bold; }
/* Generic.Heading */
.highlight .gi { color: #718c00; }
/* Generic.Inserted */
.highlight .gp { color: #8e908c; font-weight: bold; }
/* Generic.Prompt */
.highlight .gs { font-weight: bold; }
/* Generic.Strong */
.highlight .gu { color: #3e999f; font-weight: bold; }
/* Generic.Subheading */
.highlight .kc { color: #8959a8; }
/* Keyword.Constant */
.highlight .kd { color: #8959a8; }
/* Keyword.Declaration */
.highlight .kn { color: #3e999f; }
/* Keyword.Namespace */
.highlight .kp { color: #8959a8; }
/* Keyword.Pseudo */
.highlight .kr { color: #8959a8; }
/* Keyword.Reserved */
.highlight .kt { color: #eab700; }
/* Keyword.Type */
.highlight .ld { color: #718c00; }
/* Literal.Date */
.highlight .m { color: #f5871f; }
/* Literal.Number */
.highlight .s { color: #718c00; }
/* Literal.String */
.highlight .na { color: #4271ae; }
/* Name.Attribute */
.highlight .nb { color: #4d4d4c; }
/* Name.Builtin */
.highlight .nc { color: #eab700; }
/* Name.Class */
.highlight .no { color: #c82829; }
/* Name.Constant */
.highlight .nd { color: #3e999f; }
/* Name.Decorator */
.highlight .ni { color: #4d4d4c; }
/* Name.Entity */
.highlight .ne { color: #c82829; }
/* Name.Exception */
.highlight .nf { color: #4271ae; }
/* Name.Function */
.highlight .nl { color: #4d4d4c; }
/* Name.Label */
.highlight .nn { color: #eab700; }
/* Name.Namespace */
.highlight .nx { color: #4271ae; }
/* Name.Other */
.highlight .py { color: #4d4d4c; }
/* Name.Property */
.highlight .nt { color: #3e999f; }
/* Name.Tag */
.highlight .nv { color: #c82829; }
/* Name.Variable */
.highlight .ow { color: #3e999f; }
/* Operator.Word */
.highlight .w { color: #4d4d4c; }
/* Text.Whitespace */
.highlight .mf { color: #f5871f; }
/* Literal.Number.Float */
.highlight .mh { color: #f5871f; }
/* Literal.Number.Hex */
.highlight .mi { color: #f5871f; }
/* Literal.Number.Integer */
.highlight .mo { color: #f5871f; }
/* Literal.Number.Oct */
.highlight .sb { color: #718c00; }
/* Literal.String.Backtick */
.highlight .sc { color: #4d4d4c; }
/* Literal.String.Char */
.highlight .sd { color: #8e908c; }
/* Literal.String.Doc */
.highlight .s2 { color: #718c00; }
/* Literal.String.Double */
.highlight .se { color: #f5871f; }
/* Literal.String.Escape */
.highlight .sh { color: #718c00; }
/* Literal.String.Heredoc */
.highlight .si { color: #f5871f; }
/* Literal.String.Interpol */
.highlight .sx { color: #718c00; }
/* Literal.String.Other */
.highlight .sr { color: #718c00; }
/* Literal.String.Regex */
.highlight .s1 { color: #718c00; }
/* Literal.String.Single */
.highlight .ss { color: #718c00; }
/* Literal.String.Symbol */
.highlight .bp { color: #4d4d4c; }
/* Name.Builtin.Pseudo */
.highlight .vc { color: #c82829; }
/* Name.Variable.Class */
.highlight .vg { color: #c82829; }
/* Name.Variable.Global */
.highlight .vi { color: #c82829; }
/* Name.Variable.Instance */
.highlight .il { color: #f5871f; }
/* Literal.Number.Integer.Long */
.highlight .lineno { user-select: none; -moz-user-select: none; -webkit-user-select: none; }
#toc-container h2 { display: inline-block; }
#toc-container input, #toc-container input + span { margin-left: 1rem; }
#toc-container input { position: absolute; width: 50px; height: 20px; opacity: 0; margin-top: 10px; }
#toc-container input + span::before { content: '[hide]'; }
#toc-container input:checked ~ ul { display: none; }
#toc-container input:checked + span::before { content: '[show]'; }
.bibliography span a.heading-link { left: -40px; top: 5px; }
/*# sourceMappingURL=main.css.map */