Projet

Général

Profil

Paste
Télécharger (2,96 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / mayo / sass / partials / _responsive-media.scss @ d7f58da2

1
// ====================================================================
2
// Media queries
3
// Responsive styles not for layout.
4
// ====================================================================
5

    
6
@include MQ(iphone-port) {    // Max   320px.
7

    
8
  #content,
9
  #sidebar-first,
10
  #sidebar-second {
11
    img {
12
      max-width: 100%; // Make sure all images fit within viewport
13
      height: auto; // Correct width from max-width rule above.
14
    }
15
  }
16

    
17
  #site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited {
18
    font-size: .75em;
19
    font-weight: 800;
20
    line-height: 1em;
21
    text-decoration: none;
22
  }
23
  #site-slogan {
24
    font-size: 12px;
25
  }
26
}
27

    
28

    
29
@include MQ(iphone-land) {     // 321px to 480px.
30

    
31
  #content,
32
  #sidebar-first,
33
  #sidebar-second {
34
    img {
35
      max-width: 100%; // Make sure all images fit within viewport
36
      height: auto; // Correct width from max-width rule above.
37
    }
38
  }
39

    
40
  input.form-text {
41
    width: 95%;
42
  }
43

    
44
  #site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited {
45
    font-size: .9em;
46
    font-weight: 800;
47
    line-height: 1em;
48
    text-decoration: none;
49
  }
50
  #site-slogan {
51
    font-size: 12px;
52
  }
53
}
54

    
55

    
56
@include MQ(ipad-port) {    // 481px to 768px.
57

    
58
  #content,
59
  #sidebar-first,
60
  #sidebar-second {
61
    img {
62
      max-width: 100%; // Make sure all images fit within viewport
63
      height: auto; // Correct width from max-width rule above.
64
    }
65
  }
66

    
67
  input.form-text {
68
    width: 75%;
69
  }
70

    
71
  #top-columns .column-block-wrapper {
72
    width: 100% !important;
73
    margin-top: 1em;
74
  }
75

    
76
  #top-columns .column-block-wrapper .column-block {
77
    height: auto !important;
78
    margin:0 !important;
79
  }
80

    
81
  #sidebar-first.sb-one,
82
  #sidebar-second.sb-one {
83
    margin: 0;
84
    width: 50% !important;
85
    img {
86
      max-width: 100%; // Make sure all images fit within viewport
87
      height: auto; // Correct width from max-width rule above.
88
    }
89
  }
90

    
91

    
92
  #site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited {
93
    font-size: 1.4em;
94
    font-weight: 800;
95
    line-height: 1em;
96
    text-decoration: none;
97
  }
98
}
99

    
100

    
101
@include MQ(ipad-land) {   // 769px to 1024px.
102
  #content,
103
  #sidebar-first,
104
  #sidebar-second {
105
    img {
106
      max-width: 100%; // Make sure all images fit within viewport
107
      height: auto; // Correct width from max-width rule above.
108
    }
109
  }
110

    
111
  input.form-text {
112
    width: 75%;
113
  }
114

    
115
  #top-columns .column-block-wrapper {
116
    width: 100% !important;
117
    margin-top: 1em;
118
  }
119

    
120
  #top-columns .column-block-wrapper .column-block {
121
    height: auto !important;
122
    margin:0 !important;
123
  }
124

    
125
  #sidebar-first.sb-one,
126
  #sidebar-second.sb-one {
127
    margin: 0;
128
    width: 50% !important;
129
    img {
130
      max-width: 100%; // Make sure all images fit within viewport
131
      height: auto; // Correct width from max-width rule above.
132
    }
133
  }
134

    
135

    
136
  #site-name a, #header h1 a, #header h1 a:link, #header h1 a:visited {
137
    font-size: 1.7em;
138
    font-weight: 800;
139
    line-height: 1em;
140
    text-decoration: none;
141
  }
142
}
143

    
144
/*@include MQ(standard-pc) {
145
}   */