mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
240 lines
4.1 KiB
CSS
240 lines
4.1 KiB
CSS
/* User profile /ghost/settings/users/<user>/
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
/* User actions menu
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.user-actions-cog {
|
|
padding: 9px 11px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.user-actions-menu {
|
|
left: auto;
|
|
right: 0;
|
|
top: calc(100% + 17px);
|
|
}
|
|
|
|
.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;
|
|
width: auto;
|
|
height: 300px;
|
|
margin: 0;
|
|
background: #fafafa no-repeat center center;
|
|
background-size: cover;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.user-cover {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.user-cover:after {
|
|
/* Gradient overlay */
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 110px;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
|
|
}
|
|
|
|
.user-cover-edit {
|
|
position: absolute;
|
|
right: 35px;
|
|
bottom: 29px;
|
|
min-height: 37px;
|
|
height: 37px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
color: rgba(255, 255, 255, 0.8);
|
|
z-index: 2;
|
|
border-width: 0;
|
|
border-radius: var(--border-radius);
|
|
transition: color 0.3s ease, background 0.3s ease;
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
.user-cover-edit {
|
|
right: 15px;
|
|
}
|
|
}
|
|
|
|
.user-cover-edit:hover {
|
|
color: #fff;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
|
|
/* Edit user
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.first-form-group {
|
|
max-width: 500px;
|
|
}
|
|
|
|
@media (min-width: 651px) {
|
|
.first-form-group {
|
|
min-width: 285px;
|
|
left: 40px;
|
|
}
|
|
}
|
|
|
|
@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 {
|
|
display: block;
|
|
position: absolute;
|
|
width: 126px;
|
|
height: 126px;
|
|
margin-left: -6px;
|
|
margin-right: 20px;
|
|
padding: 3px;
|
|
float: left;
|
|
text-align: center;
|
|
border-radius: 100%;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
z-index: 2;
|
|
}
|
|
|
|
@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-size: cover;
|
|
background-position: center center;
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.user-image:hover .edit-user-image {
|
|
opacity: 1;
|
|
}
|
|
|
|
.edit-user-image {
|
|
position: absolute;
|
|
top: 3px;
|
|
right: 3px;
|
|
bottom: 3px;
|
|
left: 3px;
|
|
border-radius: 100%;
|
|
width: calc(100% - 6px);
|
|
background: rgba(0, 0, 0, 0.5);
|
|
opacity: 0;
|
|
color: #fff;
|
|
line-height: 120px;
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
transition: opacity 0.3s ease;
|
|
}
|