2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-27 14:46:01 +03:00

remove code styling if it's in a pre tag

This commit is contained in:
Mark Otto
2011-11-17 00:52:11 -08:00
parent ba9fcd8b57
commit 159c7a7fda
3 changed files with 20 additions and 9 deletions
+10 -3
View File
@@ -179,15 +179,16 @@ address {
}
// Inline and block code styles
code, pre {
code,
pre {
padding: 0 3px 2px;
font-family: Menlo, Monaco, Andale Mono, Courier New, monospace;
#font > #family > .monospace;
font-size: 12px;
color: @grayDark;
.border-radius(3px);
}
code {
background-color: lighten(@orange, 40%);
color: rgba(0,0,0,.75);
padding: 1px 3px;
}
pre {
@@ -203,4 +204,10 @@ pre {
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
background-color: transparent;
}
}