Fix popup warning in new repo

Fixes #1024
This commit is contained in:
Joseph Schorr 2015-12-03 16:56:53 -05:00
parent ea87905527
commit f992086625
2 changed files with 14 additions and 1 deletions

View file

@ -1265,3 +1265,16 @@ a:focus {
top: 5px;
font-size: 18px;
}
.co-alert-popin-warning {
margin-left: 10px;
}
@media screen and (max-width: 767px) {
.co-alert-popin-warning {
display: block;
margin: 0px;
margin-top: 10px;
float: none;
}
}

View file

@ -41,7 +41,7 @@
<input id="repoName" name="repoName" type="text" class="form-control" placeholder="Repository Name" ng-model="repo.name"
required autofocus data-trigger="manual" data-content="{{ createError }}" data-placement="right" ng-pattern="/^[.a-z0-9_-]+$/">
</span>
<span class="co-alert co-alert-warning" ng-show="!newRepoForm.repoName.$error.required && !newRepoForm.repoName.$valid" style="margin-left: 10px;">
<span class="co-alert co-alert-warning co-alert-popin-warning" ng-show="!newRepoForm.repoName.$error.required && !newRepoForm.repoName.$valid">
Repository names must match [a-z0-9_-]+
</span>
</div>