KNACSS/sass/_09-misc.scss

67 lines
1.0 KiB
SCSS
Raw Normal View History

2014-05-04 15:48:00 +02:00
/* ----------------------------- */
/* ==misc rules */
2014-05-04 15:48:00 +02:00
/* ----------------------------- */
/* styling skip links */
.#{$kna-namespace}skip-links {
2015-07-01 13:47:48 +02:00
position: absolute;
2015-07-01 13:47:48 +02:00
& a {
position: absolute;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
padding: 0.5em;
background: black;
color: white;
text-decoration: none;
2014-05-04 15:48:00 +02:00
2015-07-01 13:47:48 +02:00
&:focus {
position: static;
overflow: visible;
clip: auto;
}
}
2014-05-04 15:48:00 +02:00
}
// hyphens on small screens
@media (max-width: $small-screen) {
2015-07-01 13:47:48 +02:00
/* you shall not pass */
div,
textarea,
table,
td,
th,
code,
pre,
samp {
word-wrap: break-word;
hyphens: auto;
}
2015-10-20 14:22:14 +02:00
a {
word-break: break-all;
}
2014-05-07 11:12:14 +02:00
}
2015-12-12 11:20:29 +01:00
// use .no-wrapping to disallow hyphens on small screens
@media (max-width: $small-screen) {
.no-wrapping {
word-wrap: normal;
hyphens: manual;
}
}
/* Google Gmap3 bug fix on images */
.gm-style img {
2015-07-01 13:47:48 +02:00
height: 100%;
}
:not(.gm-style) img {
2015-07-01 13:47:48 +02:00
height: auto;
}
.gm-style img,
.gmnoscreen img,
.gmnoprint img {
2015-07-01 13:47:48 +02:00
max-width: none !important;
}