Skip to content

Commit

Permalink
Cleanup User List styles
Browse files Browse the repository at this point in the history
No issue

* Cleans up the Sass a bit
* Uses the same basic markup as other settings pages. Before, we had extra elements which required 'reseting'
  • Loading branch information
PaulAdamDavis committed Nov 4, 2014
1 parent 25cd8f4 commit eef6fcc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
54 changes: 28 additions & 26 deletions core/client/assets/sass/layouts/users.scss
@@ -1,18 +1,19 @@
//
// ------------------------------------------------------------
// Users
// --------------------------------------------------
//
// Styles for the Users list page
// Slug: /ghost/settings/users/
// --------------------------------------------------
//
// * Users List
// * Role Labels
// * User Actions
// * Invite User Modal
// ------------------------------------------------------------

.user-list-header {
padding-left: 0;
}

.content.settings-users {
padding: 0 40px;
overflow: auto;
height: 100%;
}
//
// Users List
// --------------------------------------------------

.invited-users {
margin-bottom: 34px;
Expand All @@ -27,32 +28,34 @@

.user-list-item {

@media (max-width: 500px) {
border-top: 1px solid $lightbrown;

@media (max-width: 550px) {
display: block;
padding: 15px 0;
@include clearfix;
}

@media (min-width: 501px) {
@media (min-width: 551px) {
display: flex;
justify-content: start;
align-items: center;
padding: 0 15px;
height: 68px;
}

border-top: 1px solid $lightbrown;

}

// Only apply these styles to anchor tags (pending invited are divs)
a.user-list-item {
text-decoration: none;

// Hover states only for large viewports
@media (min-width: 601px) {

&:hover {
background: lighten($lightbrown, 5%);
}

&:last-of-type:hover {
box-shadow: inset 0px -1px 0px $lightbrown;
}
Expand Down Expand Up @@ -94,7 +97,8 @@ a.user-list-item {

.user-list-item-icon,
.user-list-item-figure {
@media (max-width: 500px) {

@media (max-width: 550px) {
float: left;
margin-right: 15px;
}
Expand All @@ -106,7 +110,7 @@ a.user-list-item {
padding-left: 15px;
line-height: 1;

@media (max-width: 500px) {
@media (max-width: 550px) {
margin-top: 3px;
}

Expand All @@ -116,6 +120,7 @@ a.user-list-item {
font-weight: 400;
color: $darkgrey;
}

.description {
display: inline-block;
font-size: 12px;
Expand All @@ -127,15 +132,17 @@ a.user-list-item {
}//.user-list-item-body

.user-list-item-aside {
@media (max-width: 500px) {

@media (max-width: 550px) {
float: left;
width: 100%;
margin: 12px 0 0 50px;
}

.user-list-action:not(:first-of-type) {
margin-left: 20px;
@media (min-width: 501px) {

@media (min-width: 551px) {
margin-left: 50px;
}
}
Expand All @@ -154,9 +161,6 @@ a.user-list-item {
font-size: 11px;
text-transform: uppercase;
text-decoration: underline;
&:hover {

}
}


Expand Down Expand Up @@ -189,9 +193,9 @@ a.user-list-item {
color: rgba(255,255,255,0.8);
background: $blue;
}

}//.role-label


//
// User Actions
// --------------------------------------------------
Expand Down Expand Up @@ -242,7 +246,6 @@ a.user-list-item {
input {
width: 100%;
}

}//.form-group

.button-add {
Expand All @@ -251,5 +254,4 @@ a.user-list-item {
font-size: 14px;
line-height: 16px;
}

}//.invite-new-user
7 changes: 6 additions & 1 deletion core/client/templates/settings/users/index.hbs
@@ -1,4 +1,4 @@
{{#view "settings/users/users-list-view" tagName="section" class="content settings-users" }}
{{#view "settings/users/users-list-view"}}
<header class="settings-view-header user-list-header">
{{#link-to "settings" class="btn btn-default btn-back"}}Back{{/link-to}}
<h2 class="page-title">Users</h2>
Expand All @@ -7,6 +7,8 @@
</section>
</header>

<section class="content settings-users">

{{#if invitedUsers}}

<section class="user-list invited-users">
Expand Down Expand Up @@ -64,4 +66,7 @@
{{/each}}

</section>

</section>{{! .content settings-users }}

{{/view}}

0 comments on commit eef6fcc

Please sign in to comment.