This repository has been archived by the owner on Oct 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path_media.scss
87 lines (64 loc) · 1.43 KB
/
_media.scss
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
/* ============================================================================
@CORE -> BASE -> MEDIA
========================================================================= */
/**
* Settings.
*/
$apply-responsive-images: true !default;
$google-map-selector-to-turn-off-responsive-images: ".gm-style" !default;
/**
* Remove the gap between media elements and the bottom of their containers.
*
* @credit
* http://html5boilerplate.com/
*/
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
/**
* Images.
*
* 1. Make responsive.
* 2. So that `alt` text is visually offset if images don't load.
*/
img {
@if $apply-responsive-images {
max-width: 100%; // [1]
height: auto; // [1]
/**
* Google Maps breaks if `max-width: 100%` acts upon it; use their
* selector to turn this off.
*/
#{$google-map-selector-to-turn-off-responsive-images} & {
max-width: none;
}
}
font-style: italic; // [2]
}
/**
* If responsive images are turned off but you still need to apply it in
* certain cases.
*/
.img-responsive {
max-width: 100%;
height: auto;
}
/**
* If responsive images are turned on but you need to turn it off in certain
* cases.
*/
.img-not-responsive {
max-width: none;
}
/**
* Set the default behaviour for touch-based browsing in IE 10 on devices
* running Windows 8.
*/
canvas {
-ms-touch-action: double-tap-zoom;
}