1
|
|
2
|
// _base.scss imports _custom.scss and other partials.
|
3
|
@import "base";
|
4
|
|
5
|
/*
|
6
|
* responsive.custom.css is for custom media queries that are not set via the
|
7
|
* theme settings, such as cascading media queries.
|
8
|
*
|
9
|
* By default all the other responsive stylesheets used in Adaptivetheme use a
|
10
|
* "stacking method", however cascading media queries use a waterfall method so
|
11
|
* you can leverage the cascade and inheritance for all browsers that support
|
12
|
* media queries, regardless of screen size.
|
13
|
*
|
14
|
* @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
|
15
|
*
|
16
|
* NOTE: this file loads by default, to disable got to your theme settings and
|
17
|
* look under the "CSS" settings tab.
|
18
|
*/
|
19
|
|
20
|
|
21
|
/*
|
22
|
* Really small screens and up
|
23
|
*/
|
24
|
/* @media only screen and (min-width: 220px) {} */
|
25
|
|
26
|
|
27
|
/*
|
28
|
* Smalltouch sizes and up
|
29
|
*/
|
30
|
/* @media only screen and (min-width: 320px) {} */
|
31
|
|
32
|
|
33
|
/*
|
34
|
* Smalltouch sizes and down
|
35
|
*/
|
36
|
@media only screen and (max-width: 480px) {
|
37
|
|
38
|
/*
|
39
|
* Float Region Blocks - custom media query CSS example:
|
40
|
*
|
41
|
* Float regions blocks is an Extension you can enable in the appearance
|
42
|
* settings for your theme. This feature allows you to automatically float
|
43
|
* blocks in regions, you can switch it on and off depending on your
|
44
|
* requirements. For design purposes you many want to remove the floats for
|
45
|
* devices where the entire theme is just one column - for example small
|
46
|
* mobile phones. The following CSS is inside the custom media query:
|
47
|
*
|
48
|
* @media only screen and (max-width: 480px){}
|
49
|
*
|
50
|
* This will target devices with a maximum width of 480px - most small phones.
|
51
|
* In these smaller screen sizes we can remove the float and widths so all
|
52
|
* blocks stack instead of displaying horizonally. The selector used is an
|
53
|
* "attribute selector" which will match on any float block class. Use your
|
54
|
* inspector or Firebug to get the classes from the page output if you need
|
55
|
* more granular control over block alignment and stacking.
|
56
|
*/
|
57
|
.region[class*="float-blocks"] .block {
|
58
|
float: none;
|
59
|
width: 100%;
|
60
|
}
|
61
|
}
|
62
|
|
63
|
|
64
|
/*
|
65
|
* Tablet sizes and up
|
66
|
*/
|
67
|
/* @media only screen and (min-width: 768px) {} */
|
68
|
|
69
|
|
70
|
/*
|
71
|
* Desktops/laptops and up
|
72
|
*/
|
73
|
/* @media only screen and (min-width: 1025px) {} */
|