* {
margin: 0;
}
html, body {
height: 100%;
padding: 0;
}
body {
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
font-weight: 300;
color: $text-color;
background-color: $background-color;
-webkit-text-size-adjust: 100%;
overflow-wrap: break-word;
}
/**
* Set `margin-bottom` to maintain vertical rhythm
*/
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
%vertical-rhythm {
margin-bottom: $spacing-unit / 2;
}
img {
max-width: 100%;
height: auto;
vertical-align: middle;
}
figure > img {
display: block;
}
figcaption {
font-size: $small-font-size;
}
ul, ol {
margin-left: $spacing-unit;
list-style-type: persian;
}
li {
> ul,
> ol {
margin-bottom: 0;
}
}
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
}
a {
// color: $brand-color;
color: $text-color;
text-decoration: none;
&:visited {
//color: darken($brand-color, 15%);
color: darken($brand-color, 20%);
}
&:hover {
//color: $text-color;
//text-decoration: underline;
text-decoration: none;
color: $brand-color;
}
}
/* Style for glyphs in quotation marks, courtesy of EnigmaRM http://stackoverflow.com/a/16326442/157216 */
blockquote {
font-family: $alt-font-family;
color: $grey-color;
//border-left: 4px solid $grey-color-light;
//padding-left: $spacing-unit / 2;
//font-size: 18px;
letter-spacing: -1px;
font-style: italic;
border-left: none;
padding-right: $spacing-unit / 2;
padding-left: none;
font-size: x-large;
margin: 0.25em 0;
padding: 0.35em;
line-height: 1.45;
position: relative;
> :last-child {
margin-bottom: 0;
}
> p {
border-right: 4px solid $brand-color;
padding-right: $spacing-unit / 2;
}
}
pre,
code {
font-size: 15px;
border: 1px solid $grey-color-light;
border-radius: 3px;
}
code {
padding: 1px 5px;
}
pre {
padding: 8px 12px;
// overflow-x: scroll;
overflow-x: auto;
> code {
border: 0;
padding-right: 0;
padding-left: 0;
}
}
table, td, th {
border: 1px dotted;
}
h1, h2:not(.footer-heading), h3, h4, h5, h6 {
color: darken($header-color, 20%);
margin-bottom: unset;
}
.wrapper {
max-width: -webkit-calc(800px - (#{$spacing-unit} * 2));
max-width: calc(800px - (#{$spacing-unit} * 2));
margin-right: auto;
margin-left: auto;
padding-right: $spacing-unit;
padding-left: $spacing-unit;
@extend %clearfix;
@include media-query($on-laptop) {
//max-width: -webkit-calc(800px - (#{$spacing-unit}));
//max-width: calc(800px - (#{$spacing-unit}));
width: 89vw;
padding-right: $spacing-unit / 2;
padding-left: $spacing-unit / 2;
}
}
%clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
@counter-style abjad {
system: additive;
range: 1 1000;
additive-symbols: 1000 "\63A", 900 "\638", 800 "\636", 700 "\630", 600 "\62E", 500 "\62B", 400 "\62A", 300 "\634", 200 "\631", 100 "\642", 90 "\635", 80 "\641", 70 "\639", 60 "\633", 50 "\646", 40 "\645", 30 "\644", 20 "\6A9", 10 "\649", 9 "\637", 8 "\62D", 7 "\632", 6 "\648", 5 "\FEEB", 4 "\62F", 3 "\62C", 2 "\628", 1 "\627\644\641";
}
@counter-style abjad-persian {
system: additive;
range: 1 1000;
additive-symbols: 1000 "\63A", 900 "\638", 800 "\636", 700 "\630", 600 "\62E", 500 "\62B", 400 "\62A", 300 "\634", 200 "\631", 100 "\642", 90 "\635", 80 "\641", 70 "\639", 60 "\633", 50 "\646", 40 "\645", 30 "\644", 20 "\6AF", 10 "\649", 9 "\637", 8 "\62D", 7 "\698", 6 "\648", 5 "\FEEB", 4 "\62F", 3 "\686", 2 "\67E", 1 "\627\644\641";
suffix: ". ";
}