Add ability to change the visibility of a repo, and show whether the repo is private in the repo-view screen

This commit is contained in:
Joseph Schorr 2013-09-28 17:11:10 -04:00
parent ce7620673b
commit 4382ebfd20
6 changed files with 214 additions and 11 deletions

View file

@ -86,6 +86,33 @@ p.editable:hover i {
margin-right: 6px;
}
.repo .header .icon-container {
position: relative;
background: #eee;
padding: 4px;
border-radius: 50%;
display: inline-block;
width: 46px;
height: 46px;
text-align: center;
line-height: 38px;
margin-right: 10px;
}
.repo .header .icon-container .icon-lock {
font-size: 50%;
position: absolute;
bottom: -6px;
right: 0px;
background: rgb(253, 191, 191);
width: 20px;
display: inline-block;
border-radius: 50%;
text-align: center;
height: 20px;
line-height: 21px;
}
.repo .description {
margin-bottom: 40px;
}
@ -272,6 +299,56 @@ p.editable:hover i {
width: 54px;
}
.repo-admin .repo-access-state .state-icon {
text-align: center;
margin-bottom: 10px;
}
.repo-admin .repo-access-state .state-icon i {
font-size: 46px;
width: 54px;
height: 54px;
line-height: 54px;
border-radius: 50%;
display: inline-block;
}
.repo-admin .repo-access-state {
text-align: center;
width: 520px;
}
.repo-admin .repo-access-state .state-icon i.icon-lock {
background: rgb(253, 191, 191);
}
.repo-admin .repo-access-state .state-icon i.icon-unlock-alt {
background: rgb(170, 236, 170);
}
.repo-admin .change-access {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #eee;
text-align: center;
}
.repo-admin .change-access .alert {
color: black;
background: white;
border: 1px solid transparent;
}
.repo-admin .change-access .alert .alert-content {
opacity: 0;
}
.repo-admin .change-access:hover .alert {
background: inherit;
border: inherit;
}
/* Overrides for typeahead to work with bootstrap 3. */
.twitter-typeahead .tt-query,