Sha256: 434dfb8a1c362d0c997158b92971556f2efc689854cf07150d5005b38ae2587f

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

@import url('https://fonts.googleapis.com/css?family=Inknut+Antiqua:500,900|Roboto+Slab');

@function approx($a, $b, $sublevel, $suplevel, $i) {
    @return $a + ($b - $a)*($sublevel - $i)/($sublevel - $suplevel);
}

@mixin font-by-level($i) {
    @if($i <= $title-level) {
        font-family: $title-font;
        font-size: approx($subtitle-fontsize, $title-fontsize,
                          $title-level, 0,
                          $i);
        font-weight: $title-fontweight;
    } @elseif($i <= $subtitle-level) {
        font-family: $subtitle-font;
        font-size: approx($regular-fontsize, $subtitle-fontsize,
                          $regular-level, $subtitle-level,
                          $i);
        font-weight: $subtitle-fontweight;
    } @else {
        font-family: $regular-font;
        font-size: approx($regular-fontsize, $subtitle-fontsize,
                          $regular-level, $subtitle-level,
                          $i);
        font-weight: $regular-fontweight;
    }
}


body {
    font-family: $regular-font;
}

@for $i from 1 through $regular-level {
    h#{$i} {
        @include font-by-level($i)
    }
}

p span {
    @include font-by-level($regular-level);
}

strong {
    @include font-by-level($strong-level);
}

a {
    text-decoration: none;
    color: $regular-color;
}


.site-navigation {
    background-color: $nav-backcolor;
    color: $nav-forecolor;
}

.site-navigation > * {
    color: $nav-forecolor;
    @include font-by-level($navigation-level);
}

.site-title {
    text-transform: uppercase;
    @include font-by-level(0);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-newtype-0.1.4 _sass/typography.scss