-
Notifications
You must be signed in to change notification settings - Fork 2
/
_variables.scss
executable file
·175 lines (146 loc) · 5.36 KB
/
_variables.scss
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// =====================================================
// ------------ Siegmeyer II Core Variables ------------
// =====================================================
// @author Thomas Bredin-Grey <tom@studiothick>
// Siegmeyer II: https://github.com/tbredin/Siegmeyer2
// =====================================================
// colors
$site-colors: (
blue: #3a5ca4,
yellow: #fac011,
green: #267f67,
grey: #f1f8fa,
steel: #4b4c57,
steel_light: #707287,
white: #fff
) !default;
$site-color-names: map-keys($site-colors) !default;
// color variable helper
@function site-color($color) {
@return map-get($site-colors, $color);
}
// debug grids
$debug-color: tomato !default;
//interior gutters
$gutter: 2rem !default;
// susy settings
$susy: (
global-box-sizing: border-box,
math: fluid,
container-position: auto,
gutter-position: inside-static,
debug: (
color: transparentize($debug-color,0.6)
),
use-custom: (
rem: true
)
);
// Root font-sizes for each breakpoint. Set to half desired line-height of body text.
$rootsizes: (
break-0: 13, // 26px line-height body text
break-1: 15, // 30px line-height body text
break-2: 17 // 34px line-height body text
) !default;
// rootsizes
$sizes: map-values($rootsizes) !default;
// can be read at any breakpoint to get root size
$base-font-size: nth($sizes, 1) !default;
// set the initial breakpoint information referenced by type mixins
// you can use these to retrieve current breakpoint info within breakpoint-layout mixins
$current-root: map-get($rootsizes, break-0) !default;
// responsive grid settings
// column base width
$column-width: 6rem !default;
// column number at each breakpoint
$break-0-cols: 6 !default;
$break-1-cols: 9 !default;
$break-2-cols: 12 !default;
// breakpoint position - where the breakpoint starts
// basic formula: $column-width * $break-cols, manually converted to px (+20px to compensate for scroll bars)
$break-0-width: 0px !default;
$break-1-width: ($column-width / 1rem) * nth($sizes, 2) * 1px * $break-1-cols + 20px !default; // 20px compensate for a scrollbar (approx)
$break-2-width: ($column-width / 1rem) * nth($sizes, 3) * 1px * $break-2-cols + 20px !default; // 20px compensate for a scrollbar (approx)
// max width of grid container
// basic formula: $column-width * $break-cols, manually converted to px
$break-0-max: ($column-width / 1rem) * nth($sizes, 1) * 1px * $break-0-cols !default;
$break-1-max: ($column-width / 1rem) * nth($sizes, 2) * 1px * $break-1-cols !default;
$break-2-max: ($column-width / 1rem) * nth($sizes, 3) * 1px * $break-2-cols !default;
// susy breakpoint layouts
// format: [column-number] ([relative proportion of column] [relative proportion of gutter]) [any other susy settings]
$break-0-layout: $break-0-cols ($column-width $gutter) inside-static !default;
$break-1-layout: $break-1-cols ($column-width $gutter) inside-static !default;
$break-2-layout: $break-2-cols ($column-width $gutter) inside-static !default;
// enable responsive baseline & type scaling.
// increases root font size from each breakpoint, starting from the min size specified in $rootsizes below
$type-scaling: true !default;
// map for flexible retrieval of breakpoint info
$breakpoint-map: (
break-0: (
cols: $break-0-cols,
start: $break-0-width,
max: $break-0-max,
layout: $break-0-layout,
size: map-get($rootsizes, break-0)
),
break-1: (
cols: $break-1-cols,
start: $break-1-width,
max: $break-1-max,
layout: $break-1-layout,
size: map-get($rootsizes, break-1)
),
break-2: (
cols: $break-2-cols,
start: $break-2-width,
max: $break-2-max,
layout: $break-2-layout,
size: map-get($rootsizes, break-2)
)
) !default;
// breakpoint count
$breakpoint-count: length(map-keys($breakpoint-map)) !default;
// breakpoint names
$breaks: map-keys($breakpoint-map) !default;
// store current breakpoint for reference withiin breakpoint mixins
$current-breakpoint: break-0 !default;
// debug grid columns, baseline grid & breakpoints
$debug-grid: true !default;
$debug-baseline: true !default;
$debug-breakpoints: true !default;
// grid opacity
$grid-opacity: 0.1 !default;
// image settings
$image-path: '../images' !default;
$retina-suffix: '@2x' !default;
// Add typefaces here.
// Add weight and style details too.
// Set cap height to set to the baseline.
// Here are some cap-height sizes to get you started:
// Georgia: 0.66, Times / Times New Roman: 0.65, Palatino: 0.52
// Lucida Grande: 0.72, Helvetica: 0.65, Helvetica Neue: 0.77, Verdana: 0.76, Tahoma: 0.76
$body-type: (
font-family: 'Helvetica, sans-serif',
regular: normal,
bold: bold,
cap-height: 0.65
) !default;
$display-type: (
font-family: 'Helvetica, sans-serif',
regular: normal,
bold: bold,
cap-height: 0.69
) !default;
$monospace-type: (
font-family: 'Menlo, monospace',
regular: 400,
cap-height: 0.68
) !default;
// for debugging rem fallback; prevents rem from being output, exposing px fallbacks
$parse-rem: true !default;
// type info variables
$current-type-trailer: 0 !default;
$current-type-leader: 0 !default;
$current-type-size: 0 !default;
$current-type-lineheight: 0 !default;
$current-type-multiplier: 1 !default;