KNACSS/sass/09-booleans.scss

46 lines
746 B
SCSS
Raw Permalink Normal View History

2014-05-04 15:48:00 +02:00
@import "00-config";
/* ----------------------------- */
/* ==booleans */
/* ----------------------------- */
// skip-links boolean
@if $enable-skip-links == true {
/* styling skip links */
.skip-links {
position: absolute;
a {
position: absolute;
2014-05-19 10:53:43 +02:00
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
2014-05-04 15:48:00 +02:00
padding: 0.5em;
background: black;
color: white;
text-decoration: none;
&:focus {
position: static;
2014-05-19 10:53:43 +02:00
overflow: visible;
clip: auto;
2014-05-04 15:48:00 +02:00
}
}
}
}
// hyphens boolean
@if $enable-hyphens == true {
@media (max-width: $small-screen) {
/* you shall not pass */
2014-05-07 11:12:14 +02:00
div,
textarea,
table,
td,
th,
code,
pre,
samp {
2014-05-04 15:48:00 +02:00
word-wrap: break-word;
hyphens: auto;
}
}
2014-05-07 11:12:14 +02:00
}