KNACSS/less/_09-booleans.less

45 lines
733 B
Text
Raw Normal View History

2014-05-03 14:03:41 +02:00
/* ----------------------------- */
/* ==booleans */
/* ----------------------------- */
2014-04-20 20:34:39 +02:00
// skip-links boolean
2014-05-04 14:54:52 +02:00
& when (@enable-skip-links = true) {
2014-04-20 20:44:12 +02:00
/* styling skip links */
2014-04-20 20:34:39 +02:00
.skip-links {
position: absolute;
a {
position: absolute;
2014-05-19 10:53:43 +02:00
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
2014-04-20 20:34:39 +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-04-20 20:34:39 +02:00
}
}
}
}
// hyphens boolean
2014-05-04 14:54:52 +02:00
& when (@enable-hyphens = true) {
2014-04-20 20:34:39 +02:00
@media (max-width: @small-screen) {
/* you shall not pass */
2014-05-07 10:45:47 +02:00
div,
textarea,
table,
td,
th,
code,
pre,
samp {
2014-04-20 20:34:39 +02:00
word-wrap: break-word;
hyphens: auto;
}
}
2014-05-07 10:45:47 +02:00
}