aboutsummaryrefslogtreecommitdiffstats
path: root/css/main.scss
blob: 4347ab11d31362177db189fd4aa3c7c94ffd927b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
---
# Only the main Sass file needs front matter (the dashes are enough)
---


@charset "utf-8";

@import url(https://fonts.googleapis.com/css?family=Sintony:400,700);

$baseurl: '{{site.baseurl}}';

// Our variables
$base-font-family: 'Sintony', sans-serif;
$base-font-size:   16px;
$base-font-weight: 400;
$small-font-size:  $base-font-size * 0.875;
$base-line-height: 1.5;

$spacing-unit:     30px;

$text-color:       #111;
$site-title-color: white;
$background-color: #fdfdfd;
$brand-color:      darken(#c6f, 15%);
$brand-color-light: #c6f;
$brand-color-lightest: lighten($brand-color-light, 20%);

$grey-color:       #828282;
$grey-color-light: lighten($grey-color, 43%);
$grey-color-dark:  darken($grey-color, 25%);

$purple-color : #5c3c7c;

$border-color: #ddd;
$white-color: #fff;

// Width of the content area
$content-width:    960px;

$breakpoints: (
  mobile: 480px,
  tablet: 768px,
  desktop: 992px
);

$font-sans: 'Sintony', sans-serif;
$font-serif: 'Sintony', sans-serif;

//
// Breakpoint mixin with named or pixel values.
//
// Usage:
//
//   @include(600px) { ... }
//     => @media all and (min-width: 600px) { ... }
//
//   @include(400px, 900px) { ... }
//     => @media all and (min-width: 400px) and (max-width: 900px) { ... }
//
@mixin breakpoint($min, $max: null) {
  @if type-of($min) == string {
    $min: map-get($breakpoints, $min);
  }
  @if type-of($max) == string {
    $max: map-get($breakpoints, $max);
  }
  @if ($max) {
    @media all and (min-width: $min) and (max-width: $max - 1px) {
      @content;
    }
  } @else {
    @media all and (min-width: $min) {
      @content;
    }
  }
}

%no-link-style {
    &, &:hover, &:visited {
        text-decoration: none !important;
        color: $text-color;
    }
}

//
// Autogrid CSS framework by Juuso Mikkonen (github.com/juusaw)
//

.auto-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: $content-width;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    &.auto-wide {
        max-width: 1.5 * $content-width;
    }
    &.auto-slim {
        max-width: 0.75 * $content-width;
    }
}

@media screen and (min-width: 400px) {
    .auto-content {
        width: 80%;
        padding: 0;
    }
}

@include breakpoint (tablet) {
    @for $i from 1 through 12 {
        .auto-col-#{$i} {
            width: $i / 12 * 98%;
            float: left;
            box-sizing: border-box;
    padding: 0 5px;
        }
    }
}

/* Reset after element containers */
.auto-content
.auto-row {
    &:after {
        content: "";
        display: table;
        clear: both;
    }
}

// Import partials from `sass_dir` (defaults to `_sass`)
@import
        "base",
        "layout",
        "gt-theme",
        "special",
        "syntax-highlighting"
;