improve file content view

This commit is contained in:
mrliptontea
2015-03-11 15:48:14 +01:00
parent ae19f7a657
commit 1e906b2d73
4 changed files with 49 additions and 7 deletions

View File

@@ -58,6 +58,7 @@ Latest (master):
* Corrected issue form columns widths so they will be equal in all fieldsets * Corrected issue form columns widths so they will be equal in all fieldsets
* Changesets will look similar to issue's journal * Changesets will look similar to issue's journal
+ Improved revision page layout and added Font Awesome icons + Improved revision page layout and added Font Awesome icons
+ Improved file content view
v1.2.0 (2015-03-03): v1.2.0 (2015-03-03):

View File

@@ -201,11 +201,11 @@ $tracker-7-text: $brand-text !default;
$diff-out-color: #430; $diff-out-color: #430;
$diff-out-bg: #ffeaaa; $diff-out-bg: #ffeaaa;
$diff-out-bg-light: #ffefbf; $diff-out-bg-light: rgba($diff-out-bg, .5);
$diff-in-color: #350; $diff-in-color: #350;
$diff-in-bg: #bffbbf; $diff-in-bg: #bffbbf;
$diff-in-bg-light: #d8fcd8; $diff-in-bg-light: rgba($diff-in-bg, .5);
//== Changesets //== Changesets

View File

@@ -316,17 +316,58 @@ a.close-icon {
*/ */
#content table.filecontent { #content table.filecontent {
width: 100%; width: 100%;
background: $body-bg;
th.filename {
border-color: $brand-primary;
border-bottom-color: darken($body-bg, 10%);
background-color: $brand-primary;
color: $brand-text;
}
tbody {
font-size: $font-size-list;
}
tbody, tbody,
td.line-code pre { td.line-code pre {
font-family: $font-family-monospace; font-family: $font-family-monospace;
} }
td.line-code { th.line-num {
padding: 2px 5px; border-color: darken($body-bg, 10%);
background-color: darken($body-bg, 5%);
color: $gray;
}
pre { th.line-num,
font-size: 13px; td.line-code {
padding: .15em .4em;
}
th.line-num,
td.line-code,
td.line-code pre {
font-size: 1em;
}
tr:hover {
background-color: darken($body-bg, 2%);
th.line-num {
background-color: darken($body-bg, 10%);
}
}
tr:target {
th.line-num {
border-color: darken(adjust-hue($highlight-bg, -8deg), 15%);
background-color: darken(adjust-hue($highlight-bg, -8deg), 7%);
color: $highlight-text;
}
td.line-code {
background-color: $highlight-bg;
} }
} }
} }

File diff suppressed because one or more lines are too long