Ghost/core/client/app/styles/layouts/user.css

240 lines
4.1 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* User profile /ghost/settings/users/<user>/
/* ---------------------------------------------------------- */
/* User actions menu
/* ---------------------------------------------------------- */
.user-actions-cog {
margin-right: 10px;
2015-05-16 14:43:12 +03:00
padding: 9px 11px;
2015-05-14 16:45:37 +03:00
}
.user-actions-menu {
top: calc(100% + 17px);
2015-05-16 14:43:12 +03:00
right: 0;
left: auto;
2015-05-14 16:45:37 +03:00
}
.user-actions-menu.fade-out {
animation-duration: 0.01s;
}
/* Layout
/* ---------------------------------------------------------- */
.content.settings-user {
padding: 0;
}
@media (min-width: 901px) {
.content.settings-user {
padding: 0 40px;
}
}
.user-cover {
position: relative;
2015-05-16 14:43:12 +03:00
overflow: hidden;
margin: 0;
2015-05-14 16:45:37 +03:00
width: auto;
height: 300px;
background: #fafafa no-repeat center center;
background-size: cover;
}
@media (max-width: 900px) {
.user-cover {
margin: 0;
}
}
.user-cover:after {
/* Gradient overlay */
content: "";
position: absolute;
right: 0;
bottom: 0;
2015-05-16 14:43:12 +03:00
left: 0;
2015-05-14 16:45:37 +03:00
height: 110px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
}
.user-cover-edit {
position: absolute;
right: 35px;
bottom: 29px;
2015-05-16 14:43:12 +03:00
z-index: 2;
2015-05-14 16:45:37 +03:00
min-height: 37px;
height: 37px;
border-width: 0;
2015-05-16 14:43:12 +03:00
background: rgba(0, 0, 0, 0.3);
2015-05-14 16:45:37 +03:00
border-radius: var(--border-radius);
2015-05-16 14:43:12 +03:00
color: rgba(255, 255, 255, 0.8);
2015-05-14 16:45:37 +03:00
transition: color 0.3s ease, background 0.3s ease;
}
@media (max-width: 1000px) {
.user-cover-edit {
right: 15px;
}
}
.user-cover-edit:hover {
background: rgba(0, 0, 0, 0.5);
2015-05-16 14:43:12 +03:00
color: #fff;
2015-05-14 16:45:37 +03:00
}
/* Edit user
/* ---------------------------------------------------------- */
.first-form-group {
max-width: 500px;
}
@media (min-width: 651px) {
.first-form-group {
left: 40px;
2015-05-16 14:43:12 +03:00
min-width: 285px;
2015-05-14 16:45:37 +03:00
}
}
@media (min-width: 651px) and (max-width: 1000px) {
.first-form-group {
width: calc(100% - 201px);
}
}
@media (min-width: 1001px) {
.first-form-group {
width: calc(100% - 181px);
}
}
.user-details-top {
position: relative;
}
@media (max-width: 650px) {
.user-details-top {
margin-top: 40px;
margin-bottom: 0;
}
}
@media (min-width: 651px) {
.user-details-top {
margin-top: -91px;
margin-bottom: 0;
padding: 0;
}
.user-details-top p {
color: #fff;
}
.user-details-top label[for="user-name"] {
color: transparent;
}
.user-details-top .user-name {
border-color: #fff;
}
}
@media (min-width: 901px) {
.user-details-top .user-name {
width: calc(100% - 20px);
}
}
.user-profile {
position: relative;
z-index: 1;
}
@media (min-width: 651px) {
.user-profile {
padding-left: 143px;
}
}
@media (max-width: 650px) {
.user-profile fieldset {
padding: 0 40px;
}
}
@media (max-width: 550px) {
.user-profile fieldset {
padding: 0 15px;
}
}
.user-profile textarea {
min-width: 240px;
}
/* Profile picture
/* ---------------------------------------------------------- */
.user-image {
position: absolute;
2015-05-16 14:43:12 +03:00
z-index: 2;
display: block;
2015-05-14 16:45:37 +03:00
float: left;
overflow: hidden;
2015-05-16 14:43:12 +03:00
margin-right: 20px;
margin-left: -6px;
padding: 3px;
width: 126px;
height: 126px;
2015-05-14 16:45:37 +03:00
background: #fff;
2015-05-16 14:43:12 +03:00
border-radius: 100%;
text-align: center;
2015-05-14 16:45:37 +03:00
}
@media (min-width: 651px) {
.user-image {
top: -19px;
left: -98px;
}
}
@media (max-width: 650px) {
.user-image {
top: -159px;
left: 21px;
}
}
.user-image .img {
display: block;
width: 120px;
height: 120px;
background-position: center center;
2015-05-16 14:43:12 +03:00
background-size: cover;
2015-05-14 16:45:37 +03:00
border-radius: 100%;
}
.user-image:hover .edit-user-image {
opacity: 1;
}
.edit-user-image {
position: absolute;
top: 3px;
right: 3px;
bottom: 3px;
left: 3px;
width: calc(100% - 6px);
background: rgba(0, 0, 0, 0.5);
2015-05-16 14:43:12 +03:00
border-radius: 100%;
2015-05-14 16:45:37 +03:00
color: #fff;
text-decoration: none;
2015-05-16 14:43:12 +03:00
text-transform: uppercase;
line-height: 120px;
opacity: 0;
2015-05-14 16:45:37 +03:00
transition: opacity 0.3s ease;
}