diff options
Diffstat (limited to 'public')
-rwxr-xr-x | public/css/gogs.css | 67 | ||||
-rw-r--r-- | public/less/_repository.less | 59 | ||||
-rw-r--r-- | public/less/_user.less | 31 |
3 files changed, 100 insertions, 57 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index ff1aaba7ea..e1dd79419b 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -2465,31 +2465,6 @@ footer .container .links > *:first-child { .repository.new.release .prerelease.field { margin-bottom: 0; } -.repository.watchers .list { - padding: 0; -} -.repository.watchers .list .item { - list-style: none; - width: 32%; - margin: 10px 10px 10px 0; - padding-bottom: 14px; - float: left; -} -.repository.watchers .list .item .avatar { - width: 48px; - height: 48px; - float: left; - display: block; - margin-right: 10px; -} -.repository.watchers .list .item .name { - margin-top: 0; - margin-bottom: 0; - font-weight: normal; -} -.repository.watchers .list .item .meta { - margin-top: 5px; -} .repository.forks .list { margin-top: 0; } @@ -2551,6 +2526,31 @@ footer .container .links > *:first-child { margin-left: 5px; margin-top: -3px; } +.user-cards .list { + padding: 0; +} +.user-cards .list .item { + list-style: none; + width: 32%; + margin: 10px 10px 10px 0; + padding-bottom: 14px; + float: left; +} +.user-cards .list .item .avatar { + width: 48px; + height: 48px; + float: left; + display: block; + margin-right: 10px; +} +.user-cards .list .item .name { + margin-top: 0; + margin-bottom: 0; + font-weight: normal; +} +.user-cards .list .item .meta { + margin-top: 5px; +} #search-repo-box .results, #search-user-box .results { padding: 0; @@ -2862,7 +2862,7 @@ footer .container .links > *:first-child { margin-left: 5px; margin-top: -3px; } -.user { +.user:not(.icon) { padding-top: 15px; padding-bottom: 80px; } @@ -2893,9 +2893,24 @@ footer .container .links > *:first-child { .user.profile .ui.card .extra.content ul li:not(:last-child) { border-bottom: 1px solid #eaeaea; } +.user.profile .ui.card .extra.content ul li .octicon { + margin-left: 1px; + margin-right: 5px; +} +.user.profile .ui.card .extra.content ul li.follow .ui.button { + width: 100%; +} .user.profile .ui.repository.list { margin-top: 25px; } +.user.followers .header.name { + font-size: 20px; + line-height: 24px; + vertical-align: middle; +} +.user.followers .follow .ui.button { + padding: 8px 15px; +} .dashboard { padding-top: 15px; padding-bottom: 80px; diff --git a/public/less/_repository.less b/public/less/_repository.less index 2b413f0975..14306ee8dd 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -859,35 +859,6 @@ } } - &.watchers { - .list { - padding: 0; - - .item { - list-style: none; - width: 32%; - margin: 10px 10px 10px 0; - padding-bottom: 14px; - float: left; - - .avatar { - width: 48px; - height: 48px; - float: left; - display: block; - margin-right: 10px; - } - .name { - margin-top: 0; - margin-bottom: 0; - font-weight: normal; - } - .meta { - margin-top: 5px; - } - } - } - } &.forks { .list { margin-top: 0; @@ -982,6 +953,36 @@ } // End of .repository +&.user-cards { + .list { + padding: 0; + + .item { + list-style: none; + width: 32%; + margin: 10px 10px 10px 0; + padding-bottom: 14px; + float: left; + + .avatar { + width: 48px; + height: 48px; + float: left; + display: block; + margin-right: 10px; + } + .name { + margin-top: 0; + margin-bottom: 0; + font-weight: normal; + } + .meta { + margin-top: 5px; + } + } + } +} + #search-repo-box, #search-user-box { .results { diff --git a/public/less/_user.less b/public/less/_user.less index 3aa8e3b5be..3e37011cfb 100644 --- a/public/less/_user.less +++ b/public/less/_user.less @@ -1,6 +1,8 @@ .user { - padding-top: 15px; - padding-bottom: @footer-margin * 2; + &:not(.icon) { + padding-top: 15px; + padding-bottom: @footer-margin * 2; + } &.settings { .list { @@ -38,6 +40,17 @@ &:not(:last-child) { border-bottom: 1px solid #eaeaea; } + + .octicon { + margin-left: 1px; + margin-right: 5px; + } + + &.follow { + .ui.button { + width: 100%; + } + } } } } @@ -47,4 +60,18 @@ margin-top: 25px; } } + + &.followers { + .header.name { + font-size: 20px; + line-height: 24px; + vertical-align: middle; + } + + .follow { + .ui.button { + padding: 8px 15px; + } + } + } } |