123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- /**
- * Reset some basic elements
- */
- * {
- box-sizing: border-box;
- }
- body, h1, h2, h3, h4, h5, h6,
- p, blockquote, pre, hr,
- dl, dd, ol, ul, figure {
- margin: 0;
- padding: 0;
- }
- /**
- * Basic styling
- */
- body {
- font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
- color: $text-color;
- background-color: $background-color;
- -webkit-text-size-adjust: 100%;
- -webkit-font-feature-settings: "kern" 1;
- -moz-font-feature-settings: "kern" 1;
- -o-font-feature-settings: "kern" 1;
- font-feature-settings: "kern" 1;
- font-kerning: normal;
- }
- /**
- * Set `margin-bottom` to maintain vertical rhythm
- */
- h1, h2, h3, h4, h5, h6,
- p, blockquote, pre,
- ul, ol, dl, figure,hr,
- %vertical-rhythm {
- margin-bottom: $spacing-unit / 2;
- }
- /**
- * Images
- */
- img {
- max-width: 100%;
- vertical-align: middle;
- }
- /**
- * Figures
- */
- figure > img {
- display: block;
- }
- figcaption {
- font-size: $small-font-size;
- }
- /**
- * Lists
- */
- li {
- //list-style: none;
- list-style-position: inside;
- > ul,
- > ol {
- margin-bottom: 0;
- }
- }
- .post-content li {
- // The same as p
- margin-left: 2em;
- }
- /**
- * Headings
- */
- h1, h2, h3, h4, h5, h6 {
- font-weight: $base-font-bold;
- color: $blue;
- }
- h1 {
- font-size: $font-size-h1;
- }
- h2 {
- font-size: $font-size-h2;
- }
- h3 {
- font-size: $font-size-h3;
- }
- h4 {
- font-size: $font-size-h4;
- }
- h5 {
- font-size: $font-size-h5;
- }
- h6 {
- font-size: $font-size-h6;
- }
- /**
- * Blockquotes
- */
- blockquote {
- color: $grey-color;
- font-weight: bold;
- border-left: 0.3em solid $blue;
- padding: $spacing-unit / 2;
- background-color: lighten($light-blue,5%);
- li {
- color: $blue;
- margin-bottom: 0.5em;
- list-style-position: outside;
- }
- li:last-child {
- margin-bottom: 0;
- }
- h1, h2, h3, h4, h5, h6 {
- color: $grey-color;
- text-shadow: 1px 1px $light-blue ,2px 2px $blue;
- }
- >:last-child {
- margin-bottom: 0;
- }
- }
- /**
- * hr
- */
- hr {
- border: none;
- border-top: 2px dashed $light-blue;
- }
- /**
- * Code formatting
- */
- pre,
- code {
- color: $blue;
- @include border-radius(0.5em);
- }
- code {
- font:$base-font-weight #{$small-font-size}/#{$base-line-height*1.2} $base-font-code;
- padding: 2px 5px;
- margin: 0 2px;
- word-break:break-all;
- }
- pre {
- padding: 8px 12px;
- overflow-x: auto;
- border: 2px solid $light-blue;
- > code {
- padding-right: 0;
- padding-left: 0;
- }
- }
- /**
- * p
- */
-
- p {
- text-align: justify;
- word-wrap: break-word;
- }
- .post-content {
- p {
- text-indent: 2em;
- }
- blockquote p {
- text-indent: 0;
- }
- }
- /**
- * Wrapper
- */
- .wrapper {
- //max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
- max-width: 740px;
- margin-right: auto;
- margin-left: auto;
- padding-right: $spacing-unit;
- padding-left: $spacing-unit;
- @extend %clearfix;
- }
- /**
- * Clearfix
- */
- %clearfix {
- &:after {
- content: "";
- display: table;
- clear: both;
- }
- }
- /**
- * Icons
- */
-
- .icon {
- > svg {
- display: inline-block;
- width: 16px;
- height: 16px;
- vertical-align: middle;
- path {
- fill: $grey-color;
- }
- }
- }
- /**
- * Table
- */
-
- table {
- border-collapse: collapse;
- font-size: $small-font-size;
- border:solid $light-blue;
- border-width:1px 0px 0px 1px;
- margin-bottom: 15px;
- th {
- color: $grey-color;
- background-color: $light-blue;
- padding: 5px;
- border:solid $light-blue;
- border-width:0px 1px 1px 0px;
- }
- td {
- padding: 5px;
- border:solid $light-blue;
- border-width:0px 1px 1px 0px;
- }
-
- }
|