From aa65761d81d3f33bdfee578c14bb2b0c7a6ca639 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 20 Aug 2015 20:18:49 +0800 Subject: new commits table --- public/less/_admin.less | 2 +- public/less/_base.less | 7 +++++++ public/less/_form.less | 6 +++++- public/less/_home.less | 2 +- public/less/_install.less | 2 +- public/less/_repository.less | 48 +++++++++++++++++++++++++++++++++++++++++++- public/less/_user.less | 2 +- 7 files changed, 63 insertions(+), 6 deletions(-) (limited to 'public/less') diff --git a/public/less/_admin.less b/public/less/_admin.less index 93115a7f8f..3c119a9504 100644 --- a/public/less/_admin.less +++ b/public/less/_admin.less @@ -1,6 +1,6 @@ .admin { padding-top: 15px; - padding-bottom: @footer-margin * 3; + padding-bottom: @footer-margin * 2; .table.segment { padding: 0; diff --git a/public/less/_base.less b/public/less/_base.less index 4bbb098ea4..d8543483bd 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -92,6 +92,13 @@ img { &.small { font-size: 0.75em; } + + &.truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: inline-block; + } } .message { diff --git a/public/less/_form.less b/public/less/_form.less index 03c0144d98..85a0b21787 100644 --- a/public/less/_form.less +++ b/public/less/_form.less @@ -9,7 +9,11 @@ .ui.attached.header { background: #f0f0f0; .right { - margin-top: -6px; + margin-top: -5px; + .button { + padding: 8px 10px; + font-weight: normal; + } } } .repository { diff --git a/public/less/_home.less b/public/less/_home.less index 93df7b1902..14517fa9e8 100644 --- a/public/less/_home.less +++ b/public/less/_home.less @@ -1,5 +1,5 @@ .home { - padding-bottom: @footer-margin * 3; + padding-bottom: @footer-margin * 2; .logo { max-width: 250px; } diff --git a/public/less/_install.less b/public/less/_install.less index 7bd6265f14..33c927fb10 100644 --- a/public/less/_install.less +++ b/public/less/_install.less @@ -1,6 +1,6 @@ .install { padding-top: 45px; - padding-bottom: @footer-margin * 3; + padding-bottom: @footer-margin * 2; form { @input-padding: 320px !important; label { diff --git a/public/less/_repository.less b/public/less/_repository.less index 5c8d68f414..485bb3c152 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -2,7 +2,7 @@ @mega-octicon-width: 30px; padding-top: 15px; - padding-bottom: @footer-margin * 3; + padding-bottom: @footer-margin * 2; .head { .column { @@ -424,6 +424,52 @@ } } } + + &.commits { + .header { + .ui.right { + .search { + input { + font-weight: normal; + padding: 5px 10px; + } + } + .button { + float: right; + margin-left: 5px; + margin-top: 1px; + } + } + } + } + .commits.table { + font-size: 13px; + th, td { + &:first-child { + padding-left: 15px; + } + } + td { + line-height: 15px; + } + .author { + min-width: 180px; + } + .sha { + a { + font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; + font-size: 14px; + padding: 6px 10px 4px 10px; + font-weight: normal; + } + } + .message span { + max-width: 500px; + } + .date { + width: 120px; + } + } } .ui.comments { diff --git a/public/less/_user.less b/public/less/_user.less index ac2b4032ba..b07e30fe31 100644 --- a/public/less/_user.less +++ b/public/less/_user.less @@ -1,6 +1,6 @@ .user { padding-top: 15px; - padding-bottom: @footer-margin * 3; + padding-bottom: @footer-margin * 2; &.settings { .key.list { -- cgit v1.2.3