mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/15212] Fix code box double horizontal scrollbars
The code box has two overflow properties set, one on the code element and one on the parent div container, causing double horizontal scrollbars. PHPBB3-15212
This commit is contained in:
parent
24f9a41654
commit
fd423d5a7a
1 changed files with 3 additions and 5 deletions
|
@ -491,18 +491,17 @@ blockquote cite > div {
|
||||||
|
|
||||||
/* Code block */
|
/* Code block */
|
||||||
.codebox {
|
.codebox {
|
||||||
padding: 3px;
|
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
margin: 1em 0 1.2em 0;
|
margin: 1em 0 1.2em 0;
|
||||||
overflow-x: scroll;
|
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.codebox p {
|
.codebox p {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
border-bottom: 1px solid transparent;
|
border-bottom: 1px solid transparent;
|
||||||
margin-bottom: 3px;
|
margin-bottom: 0;
|
||||||
|
padding: 3px 3px 0 3px;
|
||||||
font-size: 0.8em !important;
|
font-size: 0.8em !important;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -517,10 +516,9 @@ blockquote .codebox {
|
||||||
display: block;
|
display: block;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
padding-top: 5px;
|
padding: 5px 3px;
|
||||||
font: 0.9em Monaco, "Andale Mono","Courier New", Courier, monospace;
|
font: 0.9em Monaco, "Andale Mono","Courier New", Courier, monospace;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
margin: 2px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Attachments
|
/* Attachments
|
||||||
|
|
Loading…
Add table
Reference in a new issue