diff --git a/app/assets/stylesheets/_application.scss b/app/assets/stylesheets/_application.scss index 892571d67..32d257b56 100644 --- a/app/assets/stylesheets/_application.scss +++ b/app/assets/stylesheets/_application.scss @@ -26,6 +26,9 @@ /* font overrides */ @import 'typography'; +// layout +@import 'sidebar'; + /* login */ @import 'login'; @import 'registration'; diff --git a/app/assets/stylesheets/base.scss b/app/assets/stylesheets/base.scss index dd7ed1791..0993dc8a9 100644 --- a/app/assets/stylesheets/base.scss +++ b/app/assets/stylesheets/base.scss @@ -10,6 +10,24 @@ body { > .container-fluid { max-width: 100%; } } +// These names are generated by a rails controller +// scss-lint:disable SelectorFormat +.page-contacts, +.page-conversations, +.page-notifications, +.page-people.action-show, +.page-people.action-contacts, +.page-photos, +.page-profiles.action-edit, +.page-services.action-index, +.page-streams, +.page-user_applications, +.page-users.action-edit, +.page-users.action-privacy_settings { + background-color: $sidebars-background; +} +// scss-lint:enable SelectorFormat + // Overflow h1, h2, diff --git a/app/assets/stylesheets/bootstrap-variables.scss b/app/assets/stylesheets/bootstrap-variables.scss index c9a41ba94..bca512cff 100644 --- a/app/assets/stylesheets/bootstrap-variables.scss +++ b/app/assets/stylesheets/bootstrap-variables.scss @@ -668,9 +668,9 @@ $navbar-collapse-max-height: 480px; // //## //** Background color on `.list-group-item` -$list-group-bg: $sidebars-background; +$list-group-bg: $white; //** `.list-group-item` border color -$list-group-border: $border-grey; +$list-group-border: transparent; //** List group border radius $list-group-border-radius: 0; diff --git a/app/assets/stylesheets/contacts.scss b/app/assets/stylesheets/contacts.scss index f466d5519..31e7c1151 100644 --- a/app/assets/stylesheets/contacts.scss +++ b/app/assets/stylesheets/contacts.scss @@ -1,21 +1,29 @@ +.page-contacts { + .sidebar { padding-bottom: 10px; } + + .header { + border-bottom: 1px solid $border-grey; + min-height: 55px; + form { margin: 0; } + input, + .btn { + margin-bottom: 11px; + margin-top: 11px; + } + + .aspect-controls { margin: 7px -10px 7px 0; } + } +} + #contacts_container { #people_stream.contacts { .header { - border-bottom: 1px solid $border-grey; - margin-top: 10px; - min-height: 53px; #change_aspect_name { cursor: pointer; } #aspect_name_form { display: none; - form { margin: 0px; } - input { - margin-bottom: 0px; - margin-top: 10px; - } - .btn { margin-top: 10px; } } #contact_list_search { - margin: 6px 30px 0 0; + margin: 11px 30px 0 0; width: 150px; &:focus { width: 250px; } } diff --git a/app/assets/stylesheets/conversations.scss b/app/assets/stylesheets/conversations.scss index 508209095..01540628e 100644 --- a/app/assets/stylesheets/conversations.scss +++ b/app/assets/stylesheets/conversations.scss @@ -1,22 +1,8 @@ .page-conversations { - background-color: $sidebars-background; + .framed-content { padding: 0 10px 10px; } + .sidebar-header .pull-right { margin-top: 12px; } - .left-pane, - .new-conversation, - .stream_container .conversation-participants { - background-color: $white; - border: 1px solid $light-grey; - box-shadow: $card-shadow; - margin-top: -10px; - } - - .new-conversation, - .left-pane-header, - .stream_container .conversation-participants { - padding: 10px; - } - - .left-pane { + .sidebar { margin-bottom: 50px; .pagination { margin: 5px; } } diff --git a/app/assets/stylesheets/notifications.scss b/app/assets/stylesheets/notifications.scss index 48c7a1b95..f12336584 100644 --- a/app/assets/stylesheets/notifications.scss +++ b/app/assets/stylesheets/notifications.scss @@ -2,27 +2,22 @@ .stream { .header { border-bottom: 1px solid $border-grey; - .btn-toolbar { margin: 11px 0; } margin-bottom: 10px; } - .year_container { margin-top: 40px; } + .btn-toolbar { margin: 11px 0; } + .year { background-color: $white; color: $text-grey; font-size: 40px; line-height: 40px; - margin-bottom: -20px; + margin-bottom: 20px; + margin-top: 40px; text-align: center; } - .year_container + .day_group { - border-top: 1px solid $border-grey; - padding-top: 60px; - } - .day_group + .day_group { - border-top: 1px dashed $border-grey; margin-top: 10px; padding-top: 10px; } diff --git a/app/assets/stylesheets/people.scss b/app/assets/stylesheets/people.scss index 213598372..66dcb7082 100644 --- a/app/assets/stylesheets/people.scss +++ b/app/assets/stylesheets/people.scss @@ -31,11 +31,12 @@ #blocked_people { .blocked_person { border-bottom: 1px solid $border-grey; - padding: 10px; - margin: 0px; font-size: 13px; line-height: 16px; + margin: 0; min-height: 50px; + padding: 10px 0; + &:last-of-type { border-bottom: 0; } .avatar { width: 50px; height: 50px; diff --git a/app/assets/stylesheets/profile.scss b/app/assets/stylesheets/profile.scss index 590a979bd..727c99fee 100644 --- a/app/assets/stylesheets/profile.scss +++ b/app/assets/stylesheets/profile.scss @@ -1,7 +1,3 @@ -body.page-people.action-show, body.page-people.action-contacts { - background-color: $sidebars-background; -} - #profile_container { .profile_header { margin-bottom: 15px; @@ -109,11 +105,8 @@ body.page-people.action-show, body.page-people.action-contacts { } #profile { - background-color: $white; padding: 20px; - margin-top: -10px; margin-bottom: 35px; - box-shadow: $card-shadow; #profile_photo { margin-top: 10px; diff --git a/app/assets/stylesheets/settings.scss b/app/assets/stylesheets/settings.scss index c6bcf19f5..e51edfd36 100644 --- a/app/assets/stylesheets/settings.scss +++ b/app/assets/stylesheets/settings.scss @@ -1,4 +1,19 @@ // Specific styles for the settings pages (profile, user account, privacy, services) + +// These names are generated by a rails controller +// scss-lint:disable SelectorFormat +.page-profiles.action-edit, +.page-services.action-index, +.page-user_applications, +.page-users.action-edit, +.page-users.action-privacy_settings { + .framed-content { + padding-left: 10px; + padding-right: 10px; + } +} +// scss-lint:enable SelectorFormat + .enclosed-checkbox label { margin-bottom: 0; } diff --git a/app/assets/stylesheets/sidebar.scss b/app/assets/stylesheets/sidebar.scss new file mode 100644 index 000000000..9242840e6 --- /dev/null +++ b/app/assets/stylesheets/sidebar.scss @@ -0,0 +1,21 @@ +.sidebar, +.framed-content { + background-color: $white; + border: 1px solid $light-grey; + box-shadow: $card-shadow; + margin-top: -10px; + padding-top: 10px; + + .header, + .sidebar-header { + padding-left: 10px; + padding-right: 10px; + + h3 { + line-height: 40px; + margin: 7px 0; + } + } + + .list-group { margin-bottom: 0; } +} diff --git a/app/assets/stylesheets/stream.scss b/app/assets/stylesheets/stream.scss index a1f98a137..355ff8e9a 100644 --- a/app/assets/stylesheets/stream.scss +++ b/app/assets/stylesheets/stream.scss @@ -1,7 +1,3 @@ -body.page-streams, body.page-photos { - background-color: $sidebars-background; -} - .stream_container { #publisher { margin-bottom: 15px; diff --git a/app/assets/templates/contact_tpl.jst.hbs b/app/assets/templates/contact_tpl.jst.hbs index 9dd218f12..beddbdc3b 100644 --- a/app/assets/templates/contact_tpl.jst.hbs +++ b/app/assets/templates/contact_tpl.jst.hbs @@ -1,4 +1,4 @@ -