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

235 lines
4.2 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Users /ghost/settings/users/
/* ---------------------------------------------------------- */
.users-list-wrapper {
overflow: auto;
height: 100%;
}
/* User list
/* ---------------------------------------------------------- */
.invited-users {
margin-bottom: 34px;
}
.user-list-title {
2015-05-16 14:43:12 +03:00
margin-bottom: 14px;
color: var(--midbrown);
2015-05-14 16:45:37 +03:00
font-size: 13px;
font-weight: normal;
}
.user-list-item {
border-top: 1px solid #e1e1e1;
}
@media (max-width: 550px) {
.user-list-item {
display: block;
padding: 15px 0;
}
}
@media (min-width: 551px) {
.user-list-item {
display: flex;
justify-content: start;
align-items: center;
padding: 0 15px;
height: 68px;
}
}
/* Only apply these styles to anchor tags (pending invited are divs) */
a.user-list-item {
text-decoration: none;
}
@media (min-width: 601px) {
a.user-list-item:hover {
background: color(#e1e1e1 lightness(+10%));
}
a.user-list-item:last-of-type:hover {
2015-05-16 00:28:30 +03:00
box-shadow: inset 0 -1px 0 #e1e1e1;
2015-05-14 16:45:37 +03:00
}
}
.user-list-item-icon {
2015-05-16 14:43:12 +03:00
position: relative;
display: block;
overflow: hidden;
2015-05-14 16:45:37 +03:00
width: 35px;
height: 35px;
background: #e1e1e1;
2015-05-16 14:43:12 +03:00
border-radius: 100%;
2015-05-14 16:45:37 +03:00
color: transparent;
2015-05-16 14:43:12 +03:00
font-size: 0;
2015-05-14 16:45:37 +03:00
}
.user-list-item-icon:before {
position: absolute;
top: 50%;
right: 0;
2015-05-16 14:43:12 +03:00
left: 0;
2015-05-14 16:45:37 +03:00
margin-top: -7px;
color: var(--brown);
2015-05-16 14:43:12 +03:00
text-align: center;
2015-05-14 16:45:37 +03:00
font-size: 14px;
}
.user-list-item-figure {
2015-05-16 14:43:12 +03:00
position: relative;
2015-05-14 16:45:37 +03:00
display: block;
width: 35px;
height: 35px;
background-position: center center;
2015-05-16 14:43:12 +03:00
background-size: cover;
border-radius: 35px;
2015-05-14 16:45:37 +03:00
}
.user-list-item-figure img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
@media (max-width: 550px) {
.user-list-item-icon,
.user-list-item-figure {
float: left;
margin-right: 15px;
}
}
.user-list-item-body {
flex: 1 1 auto;
align-items: stretch;
padding-left: 15px;
line-height: 1;
}
@media (max-width: 550px) {
.user-list-item-body {
margin-top: 3px;
}
}
.user-list-item-body .name {
display: inline-block;
2015-05-16 14:43:12 +03:00
color: var(--darkgrey);
2015-05-14 16:45:37 +03:00
font-size: 15px;
font-weight: 400;
}
.user-list-item-body .description {
display: inline-block;
2015-05-16 14:43:12 +03:00
margin-top: 3px;
2015-05-14 16:45:37 +03:00
color: var(--midbrown);
white-space: nowrap;
2015-05-16 14:43:12 +03:00
font-size: 12px;
2015-05-14 16:45:37 +03:00
}
@media (max-width: 550px) {
.user-list-item-aside {
float: left;
margin: 12px 0 0 50px;
2015-05-16 14:43:12 +03:00
width: 100%;
2015-05-14 16:45:37 +03:00
}
}
.user-list-item-aside .user-list-action:not(:first-of-type) {
margin-left: 20px;
}
@media (min-width: 551px) {
.user-list-item-aside .user-list-action:not(:first-of-type) {
margin-left: 50px;
}
}
.user-list-item-aside .role-label {
float: left;
margin-top: -1px;
}
.user-list-item-aside .role-label + .role-label {
margin-left: 5px;
}
.user-list-action {
text-decoration: underline;
2015-05-16 14:43:12 +03:00
text-transform: uppercase;
font-size: 11px;
2015-05-14 16:45:37 +03:00
}
/* Role Labels
/* ---------------------------------------------------------- */
.role-label {
display: inline-block;
padding: 6px 8px;
2015-05-16 14:43:12 +03:00
background: #eee;
2015-05-14 16:45:37 +03:00
color: rgba(0, 0, 0, 0.5);
text-transform: uppercase;
letter-spacing: 0.1em;
2015-05-16 14:43:12 +03:00
font-size: 9px;
line-height: 1;
2015-05-14 16:45:37 +03:00
font-weight: 400;
}
.role-label.owner {
background: var(--darkgrey);
2015-05-16 14:43:12 +03:00
color: rgba(255, 255, 255, 0.8);
2015-05-14 16:45:37 +03:00
}
.role-label.administrator {
background: var(--red);
2015-05-16 14:43:12 +03:00
color: rgba(255, 255, 255, 0.8);
2015-05-14 16:45:37 +03:00
}
.role-label.editor {
background: var(--blue);
2015-05-16 14:43:12 +03:00
color: rgba(255, 255, 255, 0.8);
2015-05-14 16:45:37 +03:00
}
/* User invitation modal
/* ---------------------------------------------------------- */
.invite-new-user .form-group {
margin-bottom: 0;
padding: 0;
}
.invite-new-user .form-group label {
position: static;
display: block;
text-align: left;
}
.invite-new-user .form-group:nth-of-type(1) {
float: left;
width: 60%;
}
.invite-new-user .form-group:nth-of-type(2) {
float: left;
margin-left: 5%;
2015-05-16 14:43:12 +03:00
width: 35%;
2015-05-14 16:45:37 +03:00
}
.invite-new-user .form-group input {
width: 100%;
}
.invite-new-user .btn-green {
margin: 0;
2015-05-14 16:45:37 +03:00
width: 100%;
}