KNACSS/sass/09-booleans.scss

42 lines
690 B
SCSS
Raw Normal View History

2014-05-04 15:48:00 +02:00
@import "00-config";
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
/* ----------------------------- */
2014-05-07 11:33:47 +02:00
/* ==output booleans */
2014-05-04 15:48:00 +02:00
/* ----------------------------- */
2014-05-07 11:33:47 +02:00
/**
* Skip links
* Only output when `$enable-skip-links` is true
*/
2014-05-04 15:48:00 +02:00
@if $enable-skip-links == true {
.skip-links {
position: absolute;
a {
position: absolute;
left: -7000px;
padding: 0.5em;
background: black;
color: white;
text-decoration: none;
2014-05-07 11:33:47 +02:00
2014-05-04 15:48:00 +02:00
&:focus {
position: static;
}
}
}
}
2014-05-07 11:33:47 +02:00
/**
* Hyphens
* Only output when `$enable-hyphens` is true
*/
2014-05-04 15:48:00 +02:00
@if $enable-hyphens == true {
@media (max-width: $small-screen) {
div, textarea, table, td, th, code, pre, samp {
word-wrap: break-word;
hyphens: auto;
}
}
2014-05-07 11:33:47 +02:00
}