├── README.markdown
├── license.md
├── main-16px.css
├── main-17px.css
├── main-18px.css
└── main.html
/README.markdown:
--------------------------------------------------------------------------------
1 | Less Framework is a CSS grid system for designing adaptive web sites. It contains 4 layouts and 3 sets of typography presets, all based on a single grid.
2 |
3 | For more information, visit
4 |
5 | # Included files
6 |
7 | - main.html: Required HTML
8 | - main-16px.css: Required CSS with type presets based on a font-size of 16px at a line-height of 24px
9 | - main-17px.css: Same as above, but based on a font-size of 17px
10 | - main-18px.css: Same as above, but based on a font-size of 18px
11 |
12 | # Usage
13 |
14 | Solid knowledge of HTML and CSS is recommended. You'll find the dimensions for each layout noted down in comments within the CSS files.
15 |
16 | Less Framework is licensed under MIT: http://opensource.org/licenses/mit-license.php
17 |
--------------------------------------------------------------------------------
/license.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011 Joni Korpi
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/main-16px.css:
--------------------------------------------------------------------------------
1 | /* Less Framework 4 with 16/24 type presets
2 | http://lessframework.com
3 | by Joni Korpi
4 | License: http://opensource.org/licenses/mit-license.php */
5 |
6 |
7 |
8 | /* Resets
9 | ------ */
10 |
11 | html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6,
12 | p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em,
13 | img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr,
14 | dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
15 | table, caption, tbody, tfoot, thead, tr, th, td,
16 | article, aside, canvas, details, figure, figcaption, hgroup,
17 | menu, footer, header, nav, section, summary, time, mark, audio, video {
18 | margin: 0;
19 | padding: 0;
20 | border: 0;
21 | }
22 |
23 | article, aside, canvas, figure, figure img, figcaption, hgroup,
24 | footer, header, nav, section, audio, video {
25 | display: block;
26 | }
27 |
28 | a img {border: 0;}
29 |
30 |
31 |
32 | /* Typography presets
33 | ------------------ */
34 |
35 | .gigantic {
36 | font-size: 110px;
37 | line-height: 120px;
38 | letter-spacing: -2px;
39 | }
40 |
41 | .huge, h1 {
42 | font-size: 68px;
43 | line-height: 72px;
44 | letter-spacing: -1px;
45 | }
46 |
47 | .large, h2 {
48 | font-size: 42px;
49 | line-height: 48px;
50 | }
51 |
52 | .bigger, h3 {
53 | font-size: 26px;
54 | line-height: 36px;
55 | }
56 |
57 | .big, h4 {
58 | font-size: 22px;
59 | line-height: 30px;
60 | }
61 |
62 | body {
63 | font: 16px/24px Georgia, serif;
64 | }
65 |
66 | .small, small {
67 | font-size: 13px;
68 | line-height: 18px;
69 | }
70 |
71 | /* Selection colours (easy to forget) */
72 |
73 | ::selection {background: rgb(255,255,158);}
74 | ::-moz-selection {background: rgb(255,255,158);}
75 | img::selection {background: transparent;}
76 | img::-moz-selection {background: transparent;}
77 | body {-webkit-tap-highlight-color: rgb(255,255,158);}
78 |
79 |
80 |
81 | /* Default Layout: 992px.
82 | Gutters: 24px.
83 | Outer margins: 48px.
84 | Leftover space for scrollbars @1024px: 32px.
85 | -------------------------------------------------------------------------------
86 | cols 1 2 3 4 5 6 7 8 9 10
87 | px 68 160 252 344 436 528 620 712 804 896 */
88 |
89 | body {
90 | width: 896px;
91 | padding: 72px 48px 84px;
92 | background: rgb(232,232,232);
93 | color: rgb(60,60,60);
94 | -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
95 | }
96 |
97 |
98 |
99 | /* Tablet Layout: 768px.
100 | Gutters: 24px.
101 | Outer margins: 28px.
102 | Inherits styles from: Default Layout.
103 | -----------------------------------------------------------------
104 | cols 1 2 3 4 5 6 7 8
105 | px 68 160 252 344 436 528 620 712 */
106 |
107 | @media only screen and (min-width: 768px) and (max-width: 991px) {
108 |
109 | body {
110 | width: 712px;
111 | padding: 48px 28px 60px;
112 | }
113 | }
114 |
115 |
116 |
117 | /* Mobile Layout: 320px.
118 | Gutters: 24px.
119 | Outer margins: 34px.
120 | Inherits styles from: Default Layout.
121 | ---------------------------------------------
122 | cols 1 2 3
123 | px 68 160 252 */
124 |
125 | @media only screen and (max-width: 767px) {
126 |
127 | body {
128 | width: 252px;
129 | padding: 48px 34px 60px;
130 | }
131 |
132 | }
133 |
134 |
135 |
136 | /* Wide Mobile Layout: 480px.
137 | Gutters: 24px.
138 | Outer margins: 22px.
139 | Inherits styles from: Default Layout, Mobile Layout.
140 | ------------------------------------------------------------
141 | cols 1 2 3 4 5
142 | px 68 160 252 344 436 */
143 |
144 | @media only screen and (min-width: 480px) and (max-width: 767px) {
145 |
146 | body {
147 | width: 436px;
148 | padding: 36px 22px 48px;
149 | }
150 |
151 | }
152 |
153 |
154 | /* Retina media query.
155 | Overrides styles for devices with a
156 | device-pixel-ratio of 2+, such as iPhone 4.
157 | ----------------------------------------------- */
158 |
159 | @media
160 | only screen and (-webkit-min-device-pixel-ratio: 2),
161 | only screen and (min-device-pixel-ratio: 2) {
162 |
163 | body {
164 |
165 | }
166 |
167 | }
--------------------------------------------------------------------------------
/main-17px.css:
--------------------------------------------------------------------------------
1 | /* Less Framework 4 with 17/24 type presets
2 | http://lessframework.com
3 | by Joni Korpi
4 | License: http://opensource.org/licenses/mit-license.php */
5 |
6 |
7 |
8 | /* Resets
9 | ------ */
10 |
11 | html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6,
12 | p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em,
13 | img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr,
14 | dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
15 | table, caption, tbody, tfoot, thead, tr, th, td,
16 | article, aside, canvas, details, figure, figcaption, hgroup,
17 | menu, footer, header, nav, section, summary, time, mark, audio, video {
18 | margin: 0;
19 | padding: 0;
20 | border: 0;
21 | }
22 |
23 | article, aside, canvas, figure, figure img, figcaption, hgroup,
24 | footer, header, nav, section, audio, video {
25 | display: block;
26 | }
27 |
28 | a img {border: 0;}
29 |
30 |
31 |
32 | /* Typography presets
33 | ------------------ */
34 |
35 | .gigantic {
36 | font-size: 116px;
37 | line-height: 120px;
38 | letter-spacing: -2px;
39 | }
40 |
41 | .huge, h1 {
42 | font-size: 72px;
43 | line-height: 72px;
44 | letter-spacing: -1px;
45 | }
46 |
47 | .large, h2 {
48 | font-size: 44px;
49 | line-height: 48px;
50 | }
51 |
52 | .bigger, h3 {
53 | font-size: 28px;
54 | line-height: 36px;
55 | }
56 |
57 | .big, h4 {
58 | font-size: 24px;
59 | line-height: 30px;
60 | }
61 |
62 | body {
63 | font: 17px/24px Palatino, Constantia, "Palatino Linotype", serif;
64 | }
65 |
66 | .small, small {
67 | font-size: 13px;
68 | line-height: 18px;
69 | }
70 |
71 | /* Selection colours (easy to forget) */
72 |
73 | ::selection {background: rgb(255,255,158);}
74 | ::-moz-selection {background: rgb(255,255,158);}
75 | img::selection {background: transparent;}
76 | img::-moz-selection {background: transparent;}
77 | body {-webkit-tap-highlight-color: rgb(255,255,158);}
78 |
79 |
80 |
81 | /* Default Layout: 992px.
82 | Gutters: 24px.
83 | Outer margins: 48px.
84 | Leftover space for scrollbars @1024px: 32px.
85 | -------------------------------------------------------------------------------
86 | cols 1 2 3 4 5 6 7 8 9 10
87 | px 68 160 252 344 436 528 620 712 804 896 */
88 |
89 | body {
90 | width: 896px;
91 | padding: 72px 48px 84px;
92 | background: rgb(232,232,232);
93 | color: rgb(60,60,60);
94 | -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
95 | }
96 |
97 |
98 |
99 | /* Tablet Layout: 768px.
100 | Gutters: 24px.
101 | Outer margins: 28px.
102 | Inherits styles from: Default Layout.
103 | -----------------------------------------------------------------
104 | cols 1 2 3 4 5 6 7 8
105 | px 68 160 252 344 436 528 620 712 */
106 |
107 | @media only screen and (min-width: 768px) and (max-width: 991px) {
108 |
109 | body {
110 | width: 712px;
111 | padding: 48px 28px 60px;
112 | }
113 | }
114 |
115 |
116 |
117 | /* Mobile Layout: 320px.
118 | Gutters: 24px.
119 | Outer margins: 34px.
120 | Inherits styles from: Default Layout.
121 | ---------------------------------------------
122 | cols 1 2 3
123 | px 68 160 252 */
124 |
125 | @media only screen and (max-width: 767px) {
126 |
127 | body {
128 | width: 252px;
129 | padding: 48px 34px 60px;
130 | }
131 |
132 | }
133 |
134 |
135 |
136 | /* Wide Mobile Layout: 480px.
137 | Gutters: 24px.
138 | Outer margins: 22px.
139 | Inherits styles from: Default Layout, Mobile Layout.
140 | ------------------------------------------------------------
141 | cols 1 2 3 4 5
142 | px 68 160 252 344 436 */
143 |
144 | @media only screen and (min-width: 480px) and (max-width: 767px) {
145 |
146 | body {
147 | width: 436px;
148 | padding: 36px 22px 48px;
149 | }
150 |
151 | }
152 |
153 |
154 | /* Retina media query.
155 | Overrides styles for devices with a
156 | device-pixel-ratio of 2+, such as iPhone 4.
157 | ----------------------------------------------- */
158 |
159 | @media
160 | only screen and (-webkit-min-device-pixel-ratio: 2),
161 | only screen and (min-device-pixel-ratio: 2) {
162 |
163 | body {
164 |
165 | }
166 |
167 | }
--------------------------------------------------------------------------------
/main-18px.css:
--------------------------------------------------------------------------------
1 | /* Less Framework 4 with 18/24 type presets
2 | http://lessframework.com
3 | by Joni Korpi
4 | License: http://opensource.org/licenses/mit-license.php */
5 |
6 |
7 |
8 | /* Resets
9 | ------ */
10 |
11 | html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6,
12 | p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em,
13 | img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, hr,
14 | dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
15 | table, caption, tbody, tfoot, thead, tr, th, td,
16 | article, aside, canvas, details, figure, figcaption, hgroup,
17 | menu, footer, header, nav, section, summary, time, mark, audio, video {
18 | margin: 0;
19 | padding: 0;
20 | border: 0;
21 | }
22 |
23 | article, aside, canvas, figure, figure img, figcaption, hgroup,
24 | footer, header, nav, section, audio, video {
25 | display: block;
26 | }
27 |
28 | a img {border: 0;}
29 |
30 |
31 |
32 | /* Typography presets
33 | ------------------ */
34 |
35 | .gigantic {
36 | font-size: 123px;
37 | line-height: 132px;
38 | letter-spacing: -2px;
39 | }
40 |
41 | .huge, h1 {
42 | font-size: 76px;
43 | line-height: 84px;
44 | letter-spacing: -1px;
45 | }
46 |
47 | .large, h2 {
48 | font-size: 47px;
49 | line-height: 48px;
50 | }
51 |
52 | .bigger, h3 {
53 | font-size: 29px;
54 | line-height: 36px;
55 | }
56 |
57 | .big, h4 {
58 | font-size: 25px;
59 | line-height: 30px;
60 | }
61 |
62 | body {
63 | font: 18px/24px "Times New Roman", Times, serif;
64 | }
65 |
66 | .small, small {
67 | font-size: 13px;
68 | line-height: 18px;
69 | }
70 |
71 | /* Selection colours (easy to forget) */
72 |
73 | ::selection {background: rgb(255,255,158);}
74 | ::-moz-selection {background: rgb(255,255,158);}
75 | img::selection {background: transparent;}
76 | img::-moz-selection {background: transparent;}
77 | body {-webkit-tap-highlight-color: rgb(255,255,158);}
78 |
79 |
80 |
81 | /* Default Layout: 992px.
82 | Gutters: 24px.
83 | Outer margins: 48px.
84 | Leftover space for scrollbars @1024px: 32px.
85 | -------------------------------------------------------------------------------
86 | cols 1 2 3 4 5 6 7 8 9 10
87 | px 68 160 252 344 436 528 620 712 804 896 */
88 |
89 | body {
90 | width: 896px;
91 | padding: 72px 48px 84px;
92 | background: rgb(232,232,232);
93 | color: rgb(60,60,60);
94 | -webkit-text-size-adjust: 100%; /* Stops Mobile Safari from auto-adjusting font-sizes */
95 | }
96 |
97 |
98 |
99 | /* Tablet Layout: 768px.
100 | Gutters: 24px.
101 | Outer margins: 28px.
102 | Inherits styles from: Default Layout.
103 | -----------------------------------------------------------------
104 | cols 1 2 3 4 5 6 7 8
105 | px 68 160 252 344 436 528 620 712 */
106 |
107 | @media only screen and (min-width: 768px) and (max-width: 991px) {
108 |
109 | body {
110 | width: 712px;
111 | padding: 48px 28px 60px;
112 | }
113 | }
114 |
115 |
116 |
117 | /* Mobile Layout: 320px.
118 | Gutters: 24px.
119 | Outer margins: 34px.
120 | Inherits styles from: Default Layout.
121 | ---------------------------------------------
122 | cols 1 2 3
123 | px 68 160 252 */
124 |
125 | @media only screen and (max-width: 767px) {
126 |
127 | body {
128 | width: 252px;
129 | padding: 48px 34px 60px;
130 | }
131 |
132 | }
133 |
134 |
135 |
136 | /* Wide Mobile Layout: 480px.
137 | Gutters: 24px.
138 | Outer margins: 22px.
139 | Inherits styles from: Default Layout, Mobile Layout.
140 | ------------------------------------------------------------
141 | cols 1 2 3 4 5
142 | px 68 160 252 344 436 */
143 |
144 | @media only screen and (min-width: 480px) and (max-width: 767px) {
145 |
146 | body {
147 | width: 436px;
148 | padding: 36px 22px 48px;
149 | }
150 |
151 | }
152 |
153 |
154 | /* Retina media query.
155 | Overrides styles for devices with a
156 | device-pixel-ratio of 2+, such as iPhone 4.
157 | ----------------------------------------------- */
158 |
159 | @media
160 | only screen and (-webkit-min-device-pixel-ratio: 2),
161 | only screen and (min-device-pixel-ratio: 2) {
162 |
163 | body {
164 |
165 | }
166 |
167 | }
--------------------------------------------------------------------------------
/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------