diff options
author | Unknwon <u@gogs.io> | 2015-12-02 19:44:16 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-02 19:44:16 -0500 |
commit | 73d9eebf017270b52d42da5404980c4abca4438a (patch) | |
tree | 5731bfe5bcae3498ed25fc93443cf5eedbbd9874 /public/less | |
parent | e350d74c8af139d7a9af0854da6452139403297f (diff) | |
parent | b73241ceb175b437c114dae686c9cffb69396e41 (diff) |
Merge pull request #2068 from nanoant/patch/repo-file-list-layout
Repo file list layout & misc fixes
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_base.less | 8 | ||||
-rwxr-xr-x | public/less/_octicons.less | 4 | ||||
-rw-r--r-- | public/less/_repository.less | 88 |
3 files changed, 30 insertions, 70 deletions
diff --git a/public/less/_base.less b/public/less/_base.less index 086c6877..77ed7545 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -219,6 +219,14 @@ pre { } } + .sha.label { + font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; + font-size: 13px; + padding: 6px 10px 4px 10px; + font-weight: normal; + margin: 0 6px; + } + &.status.buttons { .octicon { margin-right: 4px; diff --git a/public/less/_octicons.less b/public/less/_octicons.less index dfd437e6..a159dec8 100755 --- a/public/less/_octicons.less +++ b/public/less/_octicons.less @@ -14,7 +14,9 @@ // .octicon is optimized for 16px. // .mega-octicon is optimized for 32px but can be used larger. -.octicon, .mega-octicon { +.octicon, .mega-octicon, +// ensure Semantic UI .icon of 14px does not apply to .icon.octicon: +.icon.octicon, .icon.mega-octicon { font: normal normal normal 16px/1 octicons; display: inline-block; text-decoration: none; diff --git a/public/less/_repository.less b/public/less/_repository.less index 928d5cf3..ee17177f 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -91,6 +91,20 @@ } } + .ui.tabs { + &.container { + margin-top: 14px; + margin-bottom: 0px; + .ui.menu { + border-bottom: none; + } + } + &.divider { + margin-top: 0; + margin-bottom: 20px; + } + } + #clone-panel { margin-top: -8px; width: 100%; @@ -125,41 +139,17 @@ font-size: 1.4em; } } - .head.meta { - padding: 0; - li { - list-style: none; - display: inline-block; - - .ui.breadcrumb { - margin-top: -5px; - - span, - a { - font-size: 16px; - } - } - } - } #repo-files-table { - .table.list { - width: 80% !important; - } - thead { th { padding-top: 8px; padding-bottom: 5px; font-weight: normal; - - #last-commit-message { - margin-left: 5px; - margin-bottom: -4px; - width: 400px; - } - .age { - margin-top: 2px; + &:first-child { + display: block; + position: relative; + width: 325%; } } .ui.avatar { @@ -168,21 +158,7 @@ } tbody { .icon { - margin-left: 5px; - } - .name { - max-width: 120px; - } - .message { - max-width: 300px; - } - .age { - min-width: 150px; - } - - .text.truncate { - margin-bottom: -5px; - max-width: 100%; + margin-right: 5px; } } td { @@ -610,32 +586,6 @@ } } } - .commits.table { - font-size: 13px; - th, td { - &:first-child { - padding-left: 15px; - } - } - td { - line-height: 15px; - } - .author { - min-width: 180px; - } - .message span { - max-width: 500px; - } - .date { - width: 120px; - } - } - .sha.label { - font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; - font-size: 14px; - padding: 6px 10px 4px 10px; - font-weight: normal; - } .diff-detail-box { margin: 15px 0; |