mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Merge pull request #6 from sass/more-code-styling
making code style contrast a little nicer on eyes and adding border/border-radius
This commit is contained in:
commit
6a8687fddb
@ -6,8 +6,11 @@ pre {
|
||||
family: $font-family-code;
|
||||
}
|
||||
white-space: pre-wrap;
|
||||
background: rgba($color-background-shade, .2);
|
||||
background: rgba($color-background-shade, .175);
|
||||
color: $color-text-strong;
|
||||
@include border-radius(4px);
|
||||
border: 1px solid #ebebeb;
|
||||
@include box-sizing(border-box);
|
||||
}
|
||||
|
||||
code {
|
||||
@ -22,6 +25,7 @@ pre {
|
||||
display: block;
|
||||
// max-height: 340px;
|
||||
overflow-y: auto;
|
||||
margin: auto 0 25px;
|
||||
word: {
|
||||
break: break-all;
|
||||
wrap: break-word;
|
||||
@ -34,4 +38,7 @@ pre {
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
&.highlight .err {
|
||||
background: #fcc;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user