sass-site/source/assets/stylesheets/foundation/_code.scss
Bermon Painter e94cc7cd6b Adjusted opacity for pre, code
There isn't enough contrast between the code blocks and the code. Adjusted the opacity to increase contrast. We can readjust later once we get a chance to create some Sassy code block related color treatment. This is a temporary fix to #5.
2013-10-11 19:43:05 -04:00

38 lines
654 B
SCSS

code,
pre {
@include font-size-small;
font: {
weight: $font-weight-regular;
family: $font-family-code;
}
white-space: pre-wrap;
background: rgba($color-background-shade, .2);
color: $color-text-strong;
}
code {
padding: .25em;
line-height: 0;
}
pre {
@include trailer;
@include rhythm(.5, .5, .5, .5);
@include bleed;
display: block;
// max-height: 340px;
overflow-y: auto;
word: {
break: break-all;
wrap: break-word;
}
// Account for some code outputs that place code tags in pre tags
code {
@extend %reset-padding;
background: none;
font-size: inherit;
line-height: inherit;
}
}