0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Initial pass at the user profile page

Fixes #148.
This commit is contained in:
Matthew Harrison-Jones 2013-07-15 15:54:13 +01:00
parent f699750295
commit 14803f100e
3 changed files with 124 additions and 2 deletions

View file

@ -219,10 +219,17 @@
padding:40px;
overflow:auto;
&.no-padding {
padding: 0;
}
@include breakpoint($netbook) { padding-left:15px; }
@include breakpoint($letterbox) { top: 0; }
}
/* =============================================================================
Users List
============================================================================= */
.user-group-header {
margin-bottom: 0px;
@ -340,6 +347,117 @@
background-color: #4A8CBD;
}
}
/* =============================================================================
User Profile
============================================================================= */
.user-profile-header {
position: relative;
width: 100%;
height: 300px;
}
.cover-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
img {
position: absolute;
max-width: 100%;
}
}
.button-change-cover {
position: absolute;
right: 40px;
bottom: 40px;
background: rgba(0,0,0,0.4);
color: #FFFFFF;
z-index: 2;
&:hover {
background: rgba(0,0,0,0.8);
}
}
.user-details-container {
position: relative;
top: -90px;
z-index: 1;
}
.user-details-top {
margin-bottom: 0;
overflow: auto;
p {
color: #FFFFFF;
}
}
.user-avatar-image {
@include box-sizing(border-box);
position: relative;
width: 120px;
height: 120px;
float: left;
margin-left: 40px;
margin-right: 20px;
border-radius: 60px;
border: 3px solid #FFFFFF;
cursor: pointer;
z-index: 2;
img {
width: 100%;
height: 100%;
border-radius: 60px;
}
.button-change-avatar {
position: absolute;
top: 0;
width: 100%;
height: 100%;
display: block;
border-radius: 60px;
background: rgba(0,0,0,0.5);
opacity: 0;
color: #FFFFFF;
@include transition(opacity 0.3s ease);
}
&:hover {
.button-change-avatar {
opacity: 1;
}
}
}
.user-details-bottom {
padding: 0 40px;
margin: 0;
}
.bio-container {
max-width: 370px;
}
.bio-desc {
display: inline-block;
}
.word-count {
margin-right: 20px;
float: right;
font-weight: bold;
color: darken($brown, 5%);
}
}//.settings-content
}//.settings

View file

@ -46,8 +46,8 @@ form {
top:0.5em;
left:0;
width:120px;
font-weight:normal;
color:$darkgrey;
font-weight:bold;
color:$brown;
text-align: right;
}
}

View file

@ -183,6 +183,10 @@ a {
text-decoration:underline;
}
&.highlight {
color: $orange;
font-weight: bold;
}
}
hr {