summaryrefslogtreecommitdiffstats
path: root/public/less/_repository.less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-08-08 16:46:03 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-08-08 22:46:03 +0800
commita21a7d438b90986da7757c707b07b733b0233548 (patch)
tree644ae741a610174f232ba456516d90ba52f3ff14 /public/less/_repository.less
parente54814dcaa903da4b2eecdbd462a42d9e2942928 (diff)
downloadgitea-a21a7d438b90986da7757c707b07b733b0233548.tar.gz
gitea-a21a7d438b90986da7757c707b07b733b0233548.zip
Fix global search result CSS, misc CSS tweaks (#7789)
- Fixes double line-numbers and padding in Explore > Code > Search - Moved code-view specific CSS out of their parents to share those styles better. - Fix misc issues discovered in code,diff and blame view, especially for the dark theme.
Diffstat (limited to 'public/less/_repository.less')
-rw-r--r--public/less/_repository.less144
1 files changed, 10 insertions, 134 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 093f35f831..9b0b7fdce7 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -403,115 +403,6 @@
pre {
overflow: auto;
}
-
- .code-view {
- * {
- font-size: 12px;
- font-family: @monospaced-fonts, monospace;
- line-height: 20px;
- }
-
- table {
- width: 100%;
- }
-
- .lines-num {
- vertical-align: top;
- text-align: right;
- color: #999999;
- background: #f5f5f5;
- width: 1%;
- user-select: none;
-
- span {
- line-height: 20px;
- padding: 0 10px;
- cursor: pointer;
- display: block;
- }
- }
-
- .lines-num,
- .lines-code {
- padding: 0;
-
- pre,
- ol,
- .hljs {
- background-color: white;
- margin: 0;
- padding: 0 !important;
-
- li {
- display: block;
- width: 100%;
-
- &.active {
- background: #ffffdd;
- }
-
- &:before {
- content: ' ';
- }
- }
- }
- }
-
- .lines-commit {
- vertical-align: top;
- color: #999999;
- padding: 0;
- background: #f5f5f5;
- width: 1%;
- -moz-user-select: none;
- -ms-user-select: none;
- -webkit-user-select: none;
- user-select: none;
-
- .blame-info {
- width: 350px;
- max-width: 350px;
- display: block;
- user-select: none;
- padding: 0 0 0 10px;
-
- .blame-data {
- display: flex;
- font-family: @default-fonts;
-
- .blame-message {
- flex-grow: 2;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- line-height: 20px;
- }
-
- .blame-time,
- .blame-avatar {
- flex-shrink: 0;
- }
- }
- }
-
- .ui.avatar.image {
- height: 18px;
- width: 18px;
- }
- }
-
- .lines-num,
- .lines-code,
- .lines-commit {
- .bottom-line {
- border-bottom: 1px solid #eaecef;
- }
- }
-
- .active {
- background: #ffffdd;
- }
- }
}
.sidebar {
@@ -1420,7 +1311,7 @@
font-size: 12px;
td {
- padding: 0 0 0 10px;
+ padding: 0 0 0 10px !important;
border-top: 0;
}
@@ -1428,7 +1319,7 @@
border-color: #d4d4d5;
border-right-width: 1px;
border-right-style: solid;
- padding: 0 5px;
+ padding: 0 5px !important;
}
tbody {
@@ -1438,23 +1329,6 @@
width: 49%;
}
- &.tag-code td,
- td.tag-code {
- background-color: #f0f0f0 !important;
- border-color: #d3cfcf !important;
- padding-top: 8px;
- padding-bottom: 8px;
- // td.selected-line, td.selected-line pre {
- // background-color: #ffffdd !important;
- // }
- }
-
- // &.same-code {
- // td.selected-line, td.selected-line pre {
- // background-color: #ffffdd !important;
- // }
- // }
-
.removed-code {
background-color: #ff9999;
}
@@ -1547,12 +1421,6 @@
}
}
- .code-view {
- overflow: auto;
- overflow-x: auto;
- overflow-y: hidden;
- }
-
.repo-search-result {
padding-top: 10px;
padding-bottom: 10px;
@@ -2408,3 +2276,11 @@ tbody.commit-list {
border-left: 0 !important;
margin: 0 !important;
}
+
+.tag-code,
+.tag-code td {
+ background-color: #f0f0f0 !important;
+ border-color: #d3cfcf !important;
+ padding-top: 8px;
+ padding-bottom: 8px;
+}