From 91ea086ebedb55e049bfbacb31662493bc7bb883 Mon Sep 17 00:00:00 2001 From: jaqra <48099350+jaqra@users.noreply.github.com> Date: Sat, 14 Sep 2019 00:58:31 +0300 Subject: [PATCH] [fix #7384] make show private icon when repo avatar set (#8144) (#8175) --- public/css/index.css | 2 ++ public/less/_repository.less | 9 +++++++++ templates/repo/header.tmpl | 1 + 3 files changed, 12 insertions(+) diff --git a/public/css/index.css b/public/css/index.css index 5976ac719..8a8993cd9 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -391,6 +391,8 @@ footer .ui.left,footer .ui.right{line-height:40px} .repository .repo-header .ui.header{margin-top:0} .repository .repo-header .mega-octicon{width:30px;font-size:30px} .repository .repo-header .ui.huge.breadcrumb{font-weight:400;font-size:1.5rem} +.repository .repo-header .ui.huge.breadcrumb i.mega-octicon{position:relative;top:5px} +.repository .repo-header .ui.huge.breadcrumb i.octicon-lock{margin-left:5px} .repository .repo-header .fork-flag{margin-left:36px;margin-top:3px;display:block;font-size:12px;white-space:nowrap} .repository .repo-header .octicon.octicon-repo-forked{margin-top:-1px;font-size:15px} .repository .repo-header .button{margin-top:2px;margin-bottom:2px} diff --git a/public/less/_repository.less b/public/less/_repository.less index 5cad42b98..67fdef319 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -20,6 +20,15 @@ .ui.huge.breadcrumb { font-weight: 400; font-size: 1.5rem; + + i.mega-octicon { + position: relative; + top: 5px; + } + + i.octicon-lock { + margin-left: 5px; + } } .fork-flag { diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index f4eefd3fd..6ea3053c7 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -11,6 +11,7 @@ {{.Owner.Name}}