You are here

global.base.css in Brainstorm profile 8

/*
 * @file
 * global.base
 *
 * - normalize with small modifications for Drupal and AT: http://necolas.github.com/normalize.css/
 * - Gutter widths, see $gutter-width in _custom.scss
 * - Default container alignment.
 * - Flexible images and media declarations.
 * - Copies of the SCSS mixins for reference, which includes an improved
 *   element-invisible and focusable styles.
 */
/* =============================================================================
    HTML5 display definitions
   ========================================================================== */
/*
 * Corrects block display not defined in IE6/7/8/9 & FF3
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/*
 * Corrects inline-block display not defined in IE6/7/8/9 & FF3
 */
audio,
canvas,
video {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}

/*
 * Prevents modern browsers from displaying 'audio' without controls
 * Remove excess height in iOS5 devices
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/*
 * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
 * Known issue: no IE6 support
 */
[hidden] {
  display: none;
}

/* =============================================================================
    Base
   ========================================================================== */
/*
 * If you are using the themes Responsive JS feature (media_queries.js) do not
 * set a font-family on the html element, use body.
 *
 * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
 *    http://clagnut.com/blog/348/#c790
 * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  height: 100%;
  overflow-y: scroll;
}

/*
 * 1 . Addresses margins handled incorrectly in IE6/7
 */
body {
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility\9;
  /* Only IE, can mess with Android */
}

/*
 * Addresses font-family inconsistency between 'textarea' and other form elements.
 */
button,
input,
select,
textarea {
  font-family: sans-serif;
}

/* =============================================================================
    Links
   ========================================================================== */
/*
 * Addresses outline displayed oddly in Chrome
 */
a:focus {
  outline: thin dotted;
}

/*
 * Improves readability when focused and also mouse hovered in all browsers
 * people.opera.com/patrickl/experiments/keyboard/test
 */
a:hover,
a:active {
  outline: 0;
}

/* =============================================================================
    Typography
   ========================================================================== */

/*
 * Addresses styling not present in IE7/8/9, S5, Chrome
 */
abbr[title] {
  border-bottom: 1px dotted;
}

/*
 * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
 */
b,
strong {
  font-weight: 700;
}

blockquote {
  margin: 1em 40px;
}

/*
 * Addresses styling not present in IE6/7/8/9
 */
mark {
  background: #19c2c9;
  color: #fff;
}

/*
 * Addresses margins set differently in IE6/7
 */
p,
pre {
  margin: 0 0 15px;
}

/*
 * Corrects font family set oddly in IE6, S4/5, Chrome
 * en.wikipedia.org/wiki/User:Davidgothberg/Test59
 */
pre,
code,
kbd,
samp {
  font-family: monospace, serif;
  _font-family: 'courier new', monospace;
  font-size: 1em;
}

/*
 * Improves readability of pre-formatted text in all browsers
 */
pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/*
 * 1. Addresses CSS quotes not supported in IE6/7
 * 2. Addresses quote property not supported in S4
 */
q {
  quotes: none;
}

q:before,
q:after {
  content: '';
  content: none;
}

small {
  font-size: 75%;
}

/*
 * Prevents sub and sup affecting line-height in all browsers
 * gist.github.com/413930
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* =============================================================================
    Lists
   ========================================================================== */
/*
 * Addresses margins set differently in IE6/7
 */
dl,
menu,
ol,
ul {
  margin: 0;
}

dd {
  margin: 0 0 0 40px;
}

/*
 * Addresses paddings set differently in IE6/7
 */
menu,
ol,
ul {
  padding: 0;
}

/*
 * Corrects list images handled incorrectly in IE7
 */
nav ul,
nav ol {
  list-style: none;
  list-style-image: none;
}

/* =============================================================================
    Embedded content
   ========================================================================== */
/*
 * 1. Remove border when inside 'a' element in IE6/7/8/9, FF3
 * 2. Improves image quality when scaled in IE7
 *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */
img,
a img {
  border: 0; 
  /* Drupal core already does this, uncomment if you need it */
  -ms-interpolation-mode: bicubic;
}

/*
 * Corrects overflow displayed oddly in IE9
 */
svg:not(:root) {
  overflow: hidden;
}

/* =============================================================================
    Figures
   ========================================================================== */
/*
 * Addresses margin not present in IE6/7/8/9, S5, O11
 */
figure {
  margin: 0;
}

/* =============================================================================
    Forms
   ========================================================================== */
/*
 * Corrects margin displayed oddly in IE6/7
 */
form {
  margin: 0;
}

/*
 * Define consistent border, margin, and padding
 */
fieldset {
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/*
 * 1. Corrects color not being inherited in IE6/7/8/9
 * 2. Corrects text not wrapping in FF3
 * 3. Corrects alignment displayed oddly in IE6/7
 */
legend {
  border: 0;
  padding: 0;
  white-space: normal;
  *margin-left: -7px;
}

/*
 * 1. Corrects font size not being inherited in all browsers
 * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
 * 3. Improves appearance and consistency in all browsers
 */
button,
input,
select,
textarea {
  font-size: 100%;
  margin: 0;
  vertical-align: baseline;
  *vertical-align: middle;
}

/*
 * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
 */
button,
input {
  line-height: normal;
}

/*
 * 1. Improves usability and consistency of cursor style between image-type 'input' and others
 * 2. Corrects inability to style clickable 'input' types in iOS
 * 3. Removes inner spacing in IE7 without affecting normal text inputs
 *    Known issue: inner spacing remains in IE6
 */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
  *overflow: visible;
}

/*
 * Re-set default cursor for disabled elements
 */
button[disabled],
input[disabled] {
  cursor: default;
}

/*
 * 1. Addresses box sizing set to content-box in IE8/9
 * 2. Removes excess padding in IE8/9
 * 3. Removes excess padding in IE7
 *    Known issue: excess padding remains in IE6
 */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  *height: 13px;
  *width: 13px;
}

/*
 * 1. Addresses appearance set to searchfield in S5, Chrome
 * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
 */
input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

/*
 * Removes inner padding and search cancel button in S5, Chrome on OS X
 */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/*
 * Removes inner padding and border in FF3+
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/*
 * 1. Removes default vertical scrollbar in IE6/7/8/9
 * 2. Improves readability and alignment in all browsers
 */
textarea {
  overflow: auto;
  vertical-align: top;
}

/* =============================================================================
    Tables
   ========================================================================== */
/*
 * 1. Remove most spacing between table cells
 */
table {
  border: 1px solid;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: inherit;
  font: 100%;
}

/* =============================================================================
    Gutters
   ========================================================================== */
/*
 * If gutters are set in theme settings they will override these values,
 * see Extensions > Modify Output > Design
 * $gutter-width is set in _base.scss
 */
.pane-inner,
.menu-wrapper,
.branding-elements,
.breadcrumb-wrapper,
.attribution,
.at-panel .rounded-corner,
.block-panels-mini > .block-title,
.rendered-by-ds .panel-display .region-inner,
div.messages {
  margin-left: 10px;
  margin-right: 10px;
}

/*
 * Panel pages need negative margin equal to the gutter width applied to #content,
 * this is taken care of in theme settings as per above for normal gutters
 */
#content .panel-display,
#content .panel-flexible {
  margin-left: -10px;
  margin-right: -10px;
}

/* =============================================================================
    Flexible Media and Cross browser improvements
   ========================================================================== */
/*
 * - This can cause issues in table cells where no width is set on the column,
 *   only in some versions of webkit and IE 7/8.
 * - declaring the width attribute on image elements and using max-width causes
 *   the "dissappering images" bug in IE8.
 * - Mapping services such as Google Maps may break also, see below for fixes.
 */
img {
  height: auto;
  -ms-interpolation-mode: bicubic;
}

/* Ethan Marcotte - http://front.ie/l8rJaA */
img,
embed,
object,
video {
  max-width: 100%;
}

/* Disable flexiblity for IE8 and below */
.lt-ie9 img,
.lt-ie9 object,
.lt-ie9 embed,
.lt-ie9 video {
  max-width: none;
}

/* Override max-width 100% for map displays */
#map img,
.gmap img,
.view-gmap img,
.openlayers-map img,
#getlocations_map_canvas img,
#locationmap_map img,
.geofieldMap img,
.views_horizontal_slider img,
.geolocation-map img,
.geolocation-views-map img {
  max-width: none !important;
  max-height: none;
}

/* =============================================================================
    Misc helpers, Accessibility classes etc
   ========================================================================== */
/* Prevent overflowing content */
header[role=banner],
.content-inner,
.nav,
.region-sidebar-first,
.region-sidebar-second,
.region-secondary-content,
.region-tertiary-content,
.region-footer {
  overflow: visible;
  word-wrap: break-word;
}

/**
 * General classes for hiding content. These are all included as SASS mixins.
 * @SEE: sass/_custom.scss
 */
/**
 * Image replacement
 * Kellum Method: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
 * Additional helpers from http://html5boilerplate.com/docs/css/
 */
.ir {
  /* Kellum Method */
  display: block !important;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  /* Remove the default border from elements like button */
  border: 0;
  /* Crush the text down to take up no space */
  font: 0/0 a;
  /* Remove any text shadows */
  text-shadow: none;
  /* Hide any residual text in Safari 4 and any mobile devices that may need it */
  color: transparent;
  /* Hide the default background color on elements like button */
  background-color: transparent;
}

/* More robust element-invisible and element-focuable classes */
.element-invisible {
  border: 0;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.element-invisible.element-focusable:active,
.element-invisible.element-focusable:focus {
  clip: auto;
  height: auto;
  overflow: visible;
  position: static;
  width: auto;
}

/* Shift content offscreen, can be usefull when you reall need to do this */
.offscreen {
  position: absolute;
  top: -99999em;
  width: 1px;
  height: 1px;
  overflow: hidden;
  outline: 0;
}

/* Hide content from all users */
.element-hidden {
  display: none;
}

File

theme/brainstorm_theme/css/global.base.css
View source
  1. /*
  2. * @file
  3. * global.base
  4. *
  5. * - normalize with small modifications for Drupal and AT: http://necolas.github.com/normalize.css/
  6. * - Gutter widths, see $gutter-width in _custom.scss
  7. * - Default container alignment.
  8. * - Flexible images and media declarations.
  9. * - Copies of the SCSS mixins for reference, which includes an improved
  10. * element-invisible and focusable styles.
  11. */
  12. /* =============================================================================
  13. HTML5 display definitions
  14. ========================================================================== */
  15. /*
  16. * Corrects block display not defined in IE6/7/8/9 & FF3
  17. */
  18. article,
  19. aside,
  20. details,
  21. figcaption,
  22. figure,
  23. footer,
  24. header,
  25. hgroup,
  26. main,
  27. nav,
  28. section,
  29. summary {
  30. display: block;
  31. }
  32. /*
  33. * Corrects inline-block display not defined in IE6/7/8/9 & FF3
  34. */
  35. audio,
  36. canvas,
  37. video {
  38. display: inline-block;
  39. *display: inline;
  40. *zoom: 1;
  41. }
  42. /*
  43. * Prevents modern browsers from displaying 'audio' without controls
  44. * Remove excess height in iOS5 devices
  45. */
  46. audio:not([controls]) {
  47. display: none;
  48. height: 0;
  49. }
  50. /*
  51. * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
  52. * Known issue: no IE6 support
  53. */
  54. [hidden] {
  55. display: none;
  56. }
  57. /* =============================================================================
  58. Base
  59. ========================================================================== */
  60. /*
  61. * If you are using the themes Responsive JS feature (media_queries.js) do not
  62. * set a font-family on the html element, use body.
  63. *
  64. * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
  65. * http://clagnut.com/blog/348/#c790
  66. * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
  67. * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
  68. */
  69. html {
  70. font-size: 100%;
  71. -webkit-text-size-adjust: 100%;
  72. line-height: 1.5;
  73. height: 100%;
  74. overflow-y: scroll;
  75. }
  76. /*
  77. * 1 . Addresses margins handled incorrectly in IE6/7
  78. */
  79. body {
  80. height: 100%;
  81. margin: 0;
  82. padding: 0;
  83. -webkit-font-smoothing: antialiased;
  84. font-smoothing: antialiased;
  85. text-rendering: optimizeLegibility\9;
  86. /* Only IE, can mess with Android */
  87. }
  88. /*
  89. * Addresses font-family inconsistency between 'textarea' and other form elements.
  90. */
  91. button,
  92. input,
  93. select,
  94. textarea {
  95. font-family: sans-serif;
  96. }
  97. /* =============================================================================
  98. Links
  99. ========================================================================== */
  100. /*
  101. * Addresses outline displayed oddly in Chrome
  102. */
  103. a:focus {
  104. outline: thin dotted;
  105. }
  106. /*
  107. * Improves readability when focused and also mouse hovered in all browsers
  108. * people.opera.com/patrickl/experiments/keyboard/test
  109. */
  110. a:hover,
  111. a:active {
  112. outline: 0;
  113. }
  114. /* =============================================================================
  115. Typography
  116. ========================================================================== */
  117. /*
  118. * Addresses styling not present in IE7/8/9, S5, Chrome
  119. */
  120. abbr[title] {
  121. border-bottom: 1px dotted;
  122. }
  123. /*
  124. * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
  125. */
  126. b,
  127. strong {
  128. font-weight: 700;
  129. }
  130. blockquote {
  131. margin: 1em 40px;
  132. }
  133. /*
  134. * Addresses styling not present in IE6/7/8/9
  135. */
  136. mark {
  137. background: #19c2c9;
  138. color: #fff;
  139. }
  140. /*
  141. * Addresses margins set differently in IE6/7
  142. */
  143. p,
  144. pre {
  145. margin: 0 0 15px;
  146. }
  147. /*
  148. * Corrects font family set oddly in IE6, S4/5, Chrome
  149. * en.wikipedia.org/wiki/User:Davidgothberg/Test59
  150. */
  151. pre,
  152. code,
  153. kbd,
  154. samp {
  155. font-family: monospace, serif;
  156. _font-family: 'courier new', monospace;
  157. font-size: 1em;
  158. }
  159. /*
  160. * Improves readability of pre-formatted text in all browsers
  161. */
  162. pre {
  163. white-space: pre;
  164. white-space: pre-wrap;
  165. word-wrap: break-word;
  166. }
  167. /*
  168. * 1. Addresses CSS quotes not supported in IE6/7
  169. * 2. Addresses quote property not supported in S4
  170. */
  171. q {
  172. quotes: none;
  173. }
  174. q:before,
  175. q:after {
  176. content: '';
  177. content: none;
  178. }
  179. small {
  180. font-size: 75%;
  181. }
  182. /*
  183. * Prevents sub and sup affecting line-height in all browsers
  184. * gist.github.com/413930
  185. */
  186. sub,
  187. sup {
  188. font-size: 75%;
  189. line-height: 0;
  190. position: relative;
  191. vertical-align: baseline;
  192. }
  193. sup {
  194. top: -0.5em;
  195. }
  196. sub {
  197. bottom: -0.25em;
  198. }
  199. /* =============================================================================
  200. Lists
  201. ========================================================================== */
  202. /*
  203. * Addresses margins set differently in IE6/7
  204. */
  205. dl,
  206. menu,
  207. ol,
  208. ul {
  209. margin: 0;
  210. }
  211. dd {
  212. margin: 0 0 0 40px;
  213. }
  214. /*
  215. * Addresses paddings set differently in IE6/7
  216. */
  217. menu,
  218. ol,
  219. ul {
  220. padding: 0;
  221. }
  222. /*
  223. * Corrects list images handled incorrectly in IE7
  224. */
  225. nav ul,
  226. nav ol {
  227. list-style: none;
  228. list-style-image: none;
  229. }
  230. /* =============================================================================
  231. Embedded content
  232. ========================================================================== */
  233. /*
  234. * 1. Remove border when inside 'a' element in IE6/7/8/9, FF3
  235. * 2. Improves image quality when scaled in IE7
  236. * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
  237. */
  238. img,
  239. a img {
  240. border: 0;
  241. /* Drupal core already does this, uncomment if you need it */
  242. -ms-interpolation-mode: bicubic;
  243. }
  244. /*
  245. * Corrects overflow displayed oddly in IE9
  246. */
  247. svg:not(:root) {
  248. overflow: hidden;
  249. }
  250. /* =============================================================================
  251. Figures
  252. ========================================================================== */
  253. /*
  254. * Addresses margin not present in IE6/7/8/9, S5, O11
  255. */
  256. figure {
  257. margin: 0;
  258. }
  259. /* =============================================================================
  260. Forms
  261. ========================================================================== */
  262. /*
  263. * Corrects margin displayed oddly in IE6/7
  264. */
  265. form {
  266. margin: 0;
  267. }
  268. /*
  269. * Define consistent border, margin, and padding
  270. */
  271. fieldset {
  272. margin: 0 2px;
  273. padding: 0.35em 0.625em 0.75em;
  274. }
  275. /*
  276. * 1. Corrects color not being inherited in IE6/7/8/9
  277. * 2. Corrects text not wrapping in FF3
  278. * 3. Corrects alignment displayed oddly in IE6/7
  279. */
  280. legend {
  281. border: 0;
  282. padding: 0;
  283. white-space: normal;
  284. *margin-left: -7px;
  285. }
  286. /*
  287. * 1. Corrects font size not being inherited in all browsers
  288. * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
  289. * 3. Improves appearance and consistency in all browsers
  290. */
  291. button,
  292. input,
  293. select,
  294. textarea {
  295. font-size: 100%;
  296. margin: 0;
  297. vertical-align: baseline;
  298. *vertical-align: middle;
  299. }
  300. /*
  301. * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
  302. */
  303. button,
  304. input {
  305. line-height: normal;
  306. }
  307. /*
  308. * 1. Improves usability and consistency of cursor style between image-type 'input' and others
  309. * 2. Corrects inability to style clickable 'input' types in iOS
  310. * 3. Removes inner spacing in IE7 without affecting normal text inputs
  311. * Known issue: inner spacing remains in IE6
  312. */
  313. button,
  314. input[type="button"],
  315. input[type="reset"],
  316. input[type="submit"] {
  317. cursor: pointer;
  318. -webkit-appearance: button;
  319. *overflow: visible;
  320. }
  321. /*
  322. * Re-set default cursor for disabled elements
  323. */
  324. button[disabled],
  325. input[disabled] {
  326. cursor: default;
  327. }
  328. /*
  329. * 1. Addresses box sizing set to content-box in IE8/9
  330. * 2. Removes excess padding in IE8/9
  331. * 3. Removes excess padding in IE7
  332. * Known issue: excess padding remains in IE6
  333. */
  334. input[type="checkbox"],
  335. input[type="radio"] {
  336. box-sizing: border-box;
  337. padding: 0;
  338. *height: 13px;
  339. *width: 13px;
  340. }
  341. /*
  342. * 1. Addresses appearance set to searchfield in S5, Chrome
  343. * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
  344. */
  345. input[type="search"] {
  346. -webkit-appearance: textfield;
  347. -moz-box-sizing: content-box;
  348. -webkit-box-sizing: content-box;
  349. box-sizing: content-box;
  350. }
  351. /*
  352. * Removes inner padding and search cancel button in S5, Chrome on OS X
  353. */
  354. input[type="search"]::-webkit-search-decoration,
  355. input[type="search"]::-webkit-search-cancel-button {
  356. -webkit-appearance: none;
  357. }
  358. /*
  359. * Removes inner padding and border in FF3+
  360. * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
  361. */
  362. button::-moz-focus-inner,
  363. input::-moz-focus-inner {
  364. border: 0;
  365. padding: 0;
  366. }
  367. /*
  368. * 1. Removes default vertical scrollbar in IE6/7/8/9
  369. * 2. Improves readability and alignment in all browsers
  370. */
  371. textarea {
  372. overflow: auto;
  373. vertical-align: top;
  374. }
  375. /* =============================================================================
  376. Tables
  377. ========================================================================== */
  378. /*
  379. * 1. Remove most spacing between table cells
  380. */
  381. table {
  382. border: 1px solid;
  383. border-spacing: 0;
  384. border-collapse: collapse;
  385. font-size: inherit;
  386. font: 100%;
  387. }
  388. /* =============================================================================
  389. Gutters
  390. ========================================================================== */
  391. /*
  392. * If gutters are set in theme settings they will override these values,
  393. * see Extensions > Modify Output > Design
  394. * $gutter-width is set in _base.scss
  395. */
  396. .pane-inner,
  397. .menu-wrapper,
  398. .branding-elements,
  399. .breadcrumb-wrapper,
  400. .attribution,
  401. .at-panel .rounded-corner,
  402. .block-panels-mini > .block-title,
  403. .rendered-by-ds .panel-display .region-inner,
  404. div.messages {
  405. margin-left: 10px;
  406. margin-right: 10px;
  407. }
  408. /*
  409. * Panel pages need negative margin equal to the gutter width applied to #content,
  410. * this is taken care of in theme settings as per above for normal gutters
  411. */
  412. #content .panel-display,
  413. #content .panel-flexible {
  414. margin-left: -10px;
  415. margin-right: -10px;
  416. }
  417. /* =============================================================================
  418. Flexible Media and Cross browser improvements
  419. ========================================================================== */
  420. /*
  421. * - This can cause issues in table cells where no width is set on the column,
  422. * only in some versions of webkit and IE 7/8.
  423. * - declaring the width attribute on image elements and using max-width causes
  424. * the "dissappering images" bug in IE8.
  425. * - Mapping services such as Google Maps may break also, see below for fixes.
  426. */
  427. img {
  428. height: auto;
  429. -ms-interpolation-mode: bicubic;
  430. }
  431. /* Ethan Marcotte - http://front.ie/l8rJaA */
  432. img,
  433. embed,
  434. object,
  435. video {
  436. max-width: 100%;
  437. }
  438. /* Disable flexiblity for IE8 and below */
  439. .lt-ie9 img,
  440. .lt-ie9 object,
  441. .lt-ie9 embed,
  442. .lt-ie9 video {
  443. max-width: none;
  444. }
  445. /* Override max-width 100% for map displays */
  446. #map img,
  447. .gmap img,
  448. .view-gmap img,
  449. .openlayers-map img,
  450. #getlocations_map_canvas img,
  451. #locationmap_map img,
  452. .geofieldMap img,
  453. .views_horizontal_slider img,
  454. .geolocation-map img,
  455. .geolocation-views-map img {
  456. max-width: none !important;
  457. max-height: none;
  458. }
  459. /* =============================================================================
  460. Misc helpers, Accessibility classes etc
  461. ========================================================================== */
  462. /* Prevent overflowing content */
  463. header[role=banner],
  464. .content-inner,
  465. .nav,
  466. .region-sidebar-first,
  467. .region-sidebar-second,
  468. .region-secondary-content,
  469. .region-tertiary-content,
  470. .region-footer {
  471. overflow: visible;
  472. word-wrap: break-word;
  473. }
  474. /**
  475. * General classes for hiding content. These are all included as SASS mixins.
  476. * @SEE: sass/_custom.scss
  477. */
  478. /**
  479. * Image replacement
  480. * Kellum Method: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement
  481. * Additional helpers from http://html5boilerplate.com/docs/css/
  482. */
  483. .ir {
  484. /* Kellum Method */
  485. display: block !important;
  486. text-indent: 100%;
  487. white-space: nowrap;
  488. overflow: hidden;
  489. /* Remove the default border from elements like button */
  490. border: 0;
  491. /* Crush the text down to take up no space */
  492. font: 0/0 a;
  493. /* Remove any text shadows */
  494. text-shadow: none;
  495. /* Hide any residual text in Safari 4 and any mobile devices that may need it */
  496. color: transparent;
  497. /* Hide the default background color on elements like button */
  498. background-color: transparent;
  499. }
  500. /* More robust element-invisible and element-focuable classes */
  501. .element-invisible {
  502. border: 0;
  503. clip: rect(1px 1px 1px 1px);
  504. /* IE6, IE7 */
  505. clip: rect(1px, 1px, 1px, 1px);
  506. height: 1px;
  507. overflow: hidden;
  508. padding: 0;
  509. position: absolute;
  510. width: 1px;
  511. }
  512. .element-invisible.element-focusable:active,
  513. .element-invisible.element-focusable:focus {
  514. clip: auto;
  515. height: auto;
  516. overflow: visible;
  517. position: static;
  518. width: auto;
  519. }
  520. /* Shift content offscreen, can be usefull when you reall need to do this */
  521. .offscreen {
  522. position: absolute;
  523. top: -99999em;
  524. width: 1px;
  525. height: 1px;
  526. overflow: hidden;
  527. outline: 0;
  528. }
  529. /* Hide content from all users */
  530. .element-hidden {
  531. display: none;
  532. }