summaryrefslogtreecommitdiff
path: root/design/sass/_mixins.scss
blob: 111c281a2db45fc1a6d6308b08a50c170d614118 (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
$brown: #201a11;
$brown: #222;
$orange: #b53a04;
$link_color: #b53a04;

$headline_font_serif: mffweb, Georgia, 'Times New Roman', serif;
$fancy_serif: mffweb, Georgia, 'Times New Roman', serif;
$fancy_sans: mffnweb, Helvetica, sans-serif;
    

$body_font_color: $brown;
$body_font_light: #737373;
$secondary-link-color: #757575;

@mixin smcaps {
    @include fancy_sans;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@function calc-rem($size) {
  $remsize: $size/16;
  @return #{$remsize}rem;
}
@mixin fontsize($size) {
  font-size: $size + px;
  font-size: calc-rem($size);
}
@mixin fancy-sans {
    font-family: mffnweb, Helvetica, sans-serif;
}
@mixin fancy-serif {
    font-family: Georgia, Palatino, serif;
}
%clearfix {
    *zoom: 1;
    &:before {
        content: " ";
        display: table;
    }
    &:after {
        content: " ";
        display: table;
        clear: both;
    }
}
//set an element to centered, narrowish column width
//used mostly on columns of text
@mixin constrain_narrow() {
    margin-left: auto;
    margin-right: auto;
    @include breakpoint(beta) {
        max-width: 720px;
    }
    @include breakpoint(gamma) {
        max-width: 750px;
    }
}
//set an element to centered, wideish column width
@mixin constrain_wide() {
    margin-left: auto;
    margin-right: auto;
    @include breakpoint(gamma) {
        max-width: $breakpoint-gamma;
    }
    @include breakpoint(delta) {
        max-width: $breakpoint-delta;
    }
    @include breakpoint(epsilon) {
        max-width: 1440px;
    }
}
@mixin blockmenuitem() {
}