Page: User profile
This commit is contained in:
parent
f69761563b
commit
71e4689d11
12 changed files with 275 additions and 79 deletions
|
@ -2074,3 +2074,56 @@ textarea#issue-add-content {
|
|||
.admin-dl-horizontal > dd {
|
||||
margin-left: 240px;
|
||||
}
|
||||
.profile-avatar {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
#profile-name {
|
||||
padding: 10px 0;
|
||||
}
|
||||
#profile-fullname {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
#profile-username {
|
||||
font-size: 1.6em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.profile-info {
|
||||
padding: 0 50px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.profile-info ul {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.profile-info ul .list-group-item {
|
||||
background-color: transparent;
|
||||
padding-top: 5px;
|
||||
color: #666;
|
||||
}
|
||||
.profile-info ul .profile-rel {
|
||||
width: 31%;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
.profile-info ul .profile-rel strong {
|
||||
display: block;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
}
|
||||
.profile-info ul .profile-rel p {
|
||||
font-size: 12px;
|
||||
}
|
||||
#profile-header li a {
|
||||
font-size: 1.2em;
|
||||
color: #444444;
|
||||
padding: .4em .8em;
|
||||
}
|
||||
#profile-header li a:hover {
|
||||
background-color: transparent;
|
||||
color: #d9453d;
|
||||
}
|
||||
#profile-header li .current {
|
||||
border-bottom: 2px solid #D26911;
|
||||
}
|
||||
|
|
|
@ -608,6 +608,13 @@ function initInstall() {
|
|||
}());
|
||||
}
|
||||
|
||||
function initProfile() {
|
||||
// Avatar.
|
||||
$('#profile-avatar').tipsy({
|
||||
fade: true
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
Gogs.AppSubUrl = $('head').data('suburl');
|
||||
initCore();
|
||||
|
@ -644,6 +651,9 @@ $(document).ready(function () {
|
|||
if ($('#install-form').length) {
|
||||
initInstall();
|
||||
}
|
||||
if ($('#user-profile-page').length) {
|
||||
initProfile();
|
||||
}
|
||||
|
||||
$('#dashboard-sidebar-menu').tabs();
|
||||
$('#pull-issue-preview').markdown_preview(".issue-add-comment");
|
||||
|
|
4
public/ng/js/min/gogs-min.js
vendored
4
public/ng/js/min/gogs-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -7,4 +7,5 @@
|
|||
@import "gogs/settings";
|
||||
@import "gogs/issue";
|
||||
@import "gogs/organization";
|
||||
@import "gogs/admin";
|
||||
@import "gogs/admin";
|
||||
@import "gogs/profile";
|
57
public/ng/less/gogs/profile.less
Normal file
57
public/ng/less/gogs/profile.less
Normal file
|
@ -0,0 +1,57 @@
|
|||
.profile-avatar {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
#profile-name {
|
||||
padding: 10px 0;
|
||||
}
|
||||
#profile-fullname {
|
||||
font-size: 1.6em;
|
||||
}
|
||||
#profile-username {
|
||||
font-size: 1.6em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.profile-info {
|
||||
padding: 0 50px;
|
||||
font-size: 14px;
|
||||
ul {
|
||||
padding-bottom: 10px;
|
||||
.list-group-item {
|
||||
background-color: transparent;
|
||||
padding-top: 5px;
|
||||
color: #666;
|
||||
}
|
||||
.profile-rel {
|
||||
width: 31%;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
strong {
|
||||
display: block;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
}
|
||||
p {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#profile-header {
|
||||
li {
|
||||
a {
|
||||
font-size: 1.2em;
|
||||
color: #444444;
|
||||
padding: .4em .8em;
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
color: @dashboardHeaderLinkHoverColor;
|
||||
}
|
||||
}
|
||||
.current {
|
||||
border-bottom: 2px solid #D26911;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue