Skip to content

issue #913 - fixed overflow <code> and <pre> #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 62 additions & 5 deletions webcompat/static/css/development/components/comment.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
position: relative;
flex: 1;
margin-left:.8em;
max-width: calc(100% - 59px);
}

@media all and (max-width: 61.87em) {
Expand Down Expand Up @@ -78,7 +79,7 @@
min-height: 128px;
border: solid 1px var(--Comment-color);
border-radius: 10px;
padding: 0 1em 2em 1em;
padding: 0 0 2em;
word-wrap: break-word;
background : #fff;
}
Expand All @@ -101,8 +102,7 @@
.wc-Comment-header {
border-radius: 10px 10px 0 0;
background-color: #f0f0f0;
padding:.8em 1em;
margin: 0 -1em;
padding: .8em 0 .8em 1em;
}

/* Name of owner */
Expand All @@ -115,14 +115,63 @@
position: relative;
word-wrap: break-word;
padding:.5em .5em 0;
overflow-x: auto;
overflow-y: hidden;
/*overflow-x: auto;
overflow-y: hidden;*/
}

/*
*overide all style from Github Text
*/

.wc-Comment-content .is-hidden {
display: none;
}

/* force font-size */
.wc-Comment-content * {
font-size:1em !important;
}

.wc-Issue-details a {
color: var(--Issue-detailLink);
text-decoration: underline;
}

/* event */
.wc-Comment-content a:hover,
.wc-Comment-content a:focus {
color: var(--Issue-detailLinkHover);
text-decoration: none;
}

.wc-Comment-content strong {
font-weight: bold !important;
}

.wc-Comment-content img {
max-width: 100%;
max-height: 100%;
}

.wc-Comment-content code {
font-family: monospace;
font-size: 90%;
}

.wc-Comment-content p > code {
color: inherit;
background-color: #F5F5F5;
padding: 0.25em;
}

.wc-Issue-details li {
margin-bottom: 1em;
}

.wc-Issue-details p {
margin-bottom: 1em;
}

/* list style */
.wc-Comment-content ul,
.wc-Comment-content ol {
Expand All @@ -148,6 +197,10 @@
padding: 0;
}

.wc-Comment-content p > code {
white-space: normal;
}

/* title */
.wc-Comment-content h1 {
font-size: 2em;
Expand All @@ -174,6 +227,10 @@
max-height: 100%;
}

.wc-Comment-content p {
overflow: hidden;
}

/* paragraph */
.wc-Comment-content p + p {
font-size: 1em;
Expand Down
53 changes: 0 additions & 53 deletions webcompat/static/css/development/components/issue.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,63 +83,10 @@

/* container details issue */
.wc-Issue-details {
word-wrap: break-word;
overflow: hidden;
position: relative;
line-height: 1.5em;
}

.wc-Issue-details > *.is-hidden {
display: none;
}

/* force font-size */
.wc-Issue-details * {
font-size:1em !important;
}

.wc-Issue-details a {
color: var(--Issue-detailLink);
text-decoration: underline;
}

/* event */
.wc-Issue-details a:hover,
.wc-Issue-details a:focus {
color: var(--Issue-detailLinkHover);
text-decoration: none;
}

.wc-Issue-details strong {
font-weight: bold !important;
}

.wc-Issue-details img {
max-width: 100%;
max-height: 100%;
}

.wc-Issue-details code,
.wc-Comment-content code {
font-family: monospace;
font-size: 90%;
}

.wc-Issue-details p > code,
.wc-Comment-content p > code {
color: inherit;
background-color: #F5F5F5;
padding: 0.25em;
}

.wc-Issue-details li {
margin-bottom: 1em;
}

.wc-Issue-details p {
margin-bottom: 1em;
}

.wc-Issue-comment {
margin-top:2em;
}
Expand Down