summaryrefslogtreecommitdiff
path: root/_sass/960-responsive.scss
blob: 16fcd10595f41f8d474ee3bd7dea6ee2277a0f56 (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
// Default styles
body {
    min-width: 960px;
}

.container {
    margin-left: auto;
    margin-right: auto;
    width: 960px;
}

.grid_blob,
.grid_half,
.grid_wide {
    display: inline;
    float: left;
    margin-left: 10px;
    margin-right: 10px;
}

.container .grid_blob {
    width: 220px;
}

.container .grid_half {
    width: 440px;
}

.container .grid_wide {
    width: 940px;
}

.container:before,
.container:after {
    content: '.';
    display: block;
    overflow: hidden;
    visibility: hidden;
    font-size: 0;
    line-height: 0;
    width: 0;
    height: 0;
}

/*
* 960 Responsive Grid
* Copyright 2012, Tyler Wolff
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 12/10/2012
*/

/* Tablet Portrait width to 960px */
@media only screen and (min-width: 768px) and (max-width: 959px) {

  body {
    min-width: 768px;
  }

  .container {
    width: 768px;
  }

  .container .grid_blob  { width: 172px; }
  .container .grid_half { width: 344px; }
  .container .grid_wide { width: 748px; }
}

/* All Mobile Widths */
@media only screen and (max-width: 767px) {

  body {
    min-width: 300px;
  }

  .container {
    width: 300px;
  }

  .container .grid_blob,
  .container .grid_half,
  .container .grid_wide {
    margin: 0;
    width: 300px;
  }

}

/* Mobile Landscape Width to Tablet Portrait Width */
@media only screen and (min-width: 480px) and (max-width: 767px) {

  body {
    min-width: 480px;
  }

  .container {
    width: 420px;
  }

  .container .grid_blob,
  .container .grid_half,
  .container .grid_wide {
    margin: 0;
    width: 420px;
  }

}