summaryrefslogtreecommitdiff
path: root/assets/themes/the-minimum/css/_less-base.less
blob: e7fdcf6423ecb842afa8d20ee5b98be7eae741b7 (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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/*
Frameless			<http://framelessgrid.com/>
by Joni Korpi 		<http://jonikorpi.com/>
licensed under CC0	<http://creativecommons.org/publicdomain/zero/1.0/>

No styleguide reference.
*/

@font-size: 16;			// Your base font-size in pixels
@line-height: 26;		// Your base line-height in pixels
@em: @font-size*1em;	// Shorthand for outputting ems, e.g. "12/@em"

@column: 60;	// The column-width of your grid in pixels
@gutter: 30;	// The gutter-width of your grid in pixels

// Column-widths in variables, in ems

 @1cols: ( 1 * (@column + @gutter) - @gutter) / @em; @1col: @1cols; // 60px
 @2cols: ( 2 * (@column + @gutter) - @gutter) / @em; // 150px
 @3cols: ( 3 * (@column + @gutter) - @gutter) / @em; // 240px
 @4cols: ( 4 * (@column + @gutter) - @gutter) / @em; // 330px
 @5cols: ( 5 * (@column + @gutter) - @gutter) / @em; // 420px
 @6cols: ( 6 * (@column + @gutter) - @gutter) / @em; // 510px
 @7cols: ( 7 * (@column + @gutter) - @gutter) / @em; // 600px
 @8cols: ( 8 * (@column + @gutter) - @gutter) / @em; // 690px
 @9cols: ( 9 * (@column + @gutter) - @gutter) / @em; // 780px
@10cols: (10 * (@column + @gutter) - @gutter) / @em; // 870px
@11cols: (11 * (@column + @gutter) - @gutter) / @em; // 960px
@12cols: (12 * (@column + @gutter) - @gutter) / @em; // 1050px
@13cols: (13 * (@column + @gutter) - @gutter) / @em; // 1140px
@14cols: (14 * (@column + @gutter) - @gutter) / @em; // 1230px 
@15cols: (15 * (@column + @gutter) - @gutter) / @em; // 1320px
@16cols: (16 * (@column + @gutter) - @gutter) / @em; // 1410px

// Column-widths in a function, in ems

.width (@cols:1) { width: (@cols * (@column + @gutter) - @gutter) / @em; }

/*
Font families

No styleguide reference.
*/

@font-stack: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, "MS PGothic", Osaka, Sans-Serif;
@webfont: junctionregularRegular, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, "MS PGothic", Osaka, Sans-Serif;

/*
Base font size should be larger than 16px.
Calculation should be done via  http://j.mp/rNg5uA

No styleguide reference.
*/

body {
	font-family: @font-stack;
	font-size: @font-size / 16*1em;
	line-height: @line-height / @em;
}

/*
Font size setting
Using Golden ratio section (Caliculated via http://j.mp/sB6oxM):
109.657	6.854	843.515 * h1
82.241	5.14	632.623
67.773	4.236	521.331
50.829	3.177	390.992
41.887	2.618	322.208 * h2
31.415	1.963	241.654
25.888	1.618	199.138 * h3
19.416	1.214	149.354 * h4
16.000	1	    123.077 * Base font size
12.000	0.75	92.308  * Minimum font size
Vertical Rhythm is caluculated via http://j.mp/sUvKuN

No styleguide reference.
*/

h1, h2, h3, h4, h5, h6 {
	font-family: @webfont;
	font-weight: bold;
}

h1, .h1 {
	font-size: 42px;
	line-height: 52px;
	margin-top: 52px;
	margin-bottom: 26px;
	letter-spacing: -1px;
}
h2, .h2 {
	font-size: 42px;
	line-height: 52px;
	margin-top: 52px;
	margin-bottom: 26px;
	letter-spacing: -1px;
}
h3, .h3 {
	font-size: 26px;
	line-height: 26px;
	margin-top: 26px;
	margin-bottom: 26px;
}
h4, .h4 {
	font-size: 20px;
	line-height: 26px;
	margin-top: 26px;
	margin-bottom: 26px;
}
p, ul, ol, dl, img {
	margin-top: 0;
	margin-bottom: @line-height / @em;
}
small, .small, aside { font-size: 0.75 * (@font-size / @em); }
.font-size-default { font-size: @font-size / @em; }

blockquote { font-weight: bold; }
blockquote cite { font-weight: normal; }
strong { font-weight: bold; }
em { font-weight: bold; }

/*
Color schemes

No styleguide reference.
*/

/* solarized - http://j.mp/s9Xuw9

@base03:    #002b36;
@base02:    #073642;
@base01:    #586e75;
@base00:    #657b83;
@base0:     #839496;
@base1:     #93a1a1;
@base2:     #eee8d5;
@base3:     #fdf6e3;
@yellow:    #b58900;
@orange:    #cb4b16;
@red:       #dc322f;
// @magenta:   #d33682;
@violet:    #6c71c4;
@blue:      #268bd2;
@cyan:      #2aa198;
@green:     #859900;

*/

// Tomorrow Night - http://j.mp/wvO4U4

@base03:    #2d2d2d;
@base02:    #393939;
@base01:    #515151;
@base0:     #cccccc;
@subtle:    #999999;
@yellow:    #ffcc66;
@orange:    #f99157;
@red:       #f2777a;
@violet:    #cc99cc;
@blue:      #6699cc;
@cyan:      #66cccc;
@green:     #99cc99;

// Texture

@noise-100-90-5: "/assets/themes/the-minimum/skin/100-90-5-monochrome.png"; // http://noisepng.com/
@cross-hair: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAR0lEQVQYGYVOQQoAIAizHuJXpafqR4wFCw9Ggji2OSbubpkp3UI7Qmcidz9JIKniAYITEQasqovcJHhelquxFf9LVjfTeKFtWPOYLQ+xHqUAAAAASUVORK5CYII="; // http://ptrn.it/AmYV5d

/* Junction Font
 * http://www.theleagueofmoveabletype.com/
 * Using for Logo and headers
*/

@font-face {
    font-family: 'junctionregularRegular';
    src: url('/assets/themes/the-minimum/font/Junction-webfont.eot');
    src: url('/assets/themes/the-minimum/font/Junction-webfont.eot?#iefix') format('embedded-opentype'),
         url('/assets/themes/the-minimum/font/Junction-webfont.woff') format('woff'),
         url('/assets/themes/the-minimum/font/Junction-webfont.ttf') format('truetype'),
         url('/assets/themes/the-minimum/font/Junction-webfont.svg#junctionregularRegular') format('svg');
    font-weight: normal !important;
    font-style: normal;
}

/*
LESS helper
*/

/*
List modules
.list-linear  - list line up horizontally

No styleguide reference.
*/

.list-linear {
	letter-spacing: -0.31em;
	*letter-spacing: normal;
	word-spacing: -0.43em;
	list-style: none;
	padding-left: 0;
	li {
		display: inline-block;
		*display: inline;
		zoom: 1;
		line-height: normal;
		letter-spacing: normal;
		margin-right: 16px;
		word-spacing: normal;
		vertical-align: middle;
		&:last-child { margin-right: 0; }
	}
}