Max-width for the whole content

This commit is contained in:
fla 2016-02-21 20:43:19 +01:00 committed by Flaburgan
parent d0d3df05eb
commit 70140259ba
13 changed files with 124 additions and 166 deletions

View file

@ -5,11 +5,6 @@ body {
.container-fluid { max-width: $screen-lg-min; } .container-fluid { max-width: $screen-lg-min; }
.page-streams,
.page-tags.action-show {
> .container-fluid { max-width: 100%; }
}
// These names are generated by a rails controller // These names are generated by a rails controller
// scss-lint:disable SelectorFormat // scss-lint:disable SelectorFormat
.page-contacts, .page-contacts,
@ -22,10 +17,11 @@ body {
.page-profiles.action-edit, .page-profiles.action-edit,
.page-services.action-index, .page-services.action-index,
.page-streams, .page-streams,
.page-tags,
.page-user_applications, .page-user_applications,
.page-users.action-edit, .page-users.action-edit,
.page-users.action-privacy_settings { .page-users.action-privacy_settings {
background-color: $sidebars-background; background-color: $main-background;
} }
// scss-lint:enable SelectorFormat // scss-lint:enable SelectorFormat

View file

@ -1,16 +1,6 @@
/* Fixed backgrounds are a common practice to avoid height issues */
.left-navbar-fixed-background {
position: fixed;
height: 100%;
}
.left-navbar,
.left-navbar-fixed-background {
border-right: 1px solid $light-grey;
background: $sidebars-background;
}
.left-navbar { .left-navbar {
padding: 0;
a { a {
text-decoration: none; text-decoration: none;
outline: 0; outline: 0;
@ -20,9 +10,6 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
&#stream_selection {
margin: 0px -15px; /* -15px overrides Bootstrap's default gutter width */
}
} }
.hoverable { .hoverable {
@ -114,10 +101,10 @@
} }
.info-bar { .info-bar {
margin-top: 25px; padding: 0 20px;
.section { .section {
margin-bottom: 20px; margin-top: 20px;
} }
.title { .title {
@ -179,10 +166,4 @@
display: inline-block; display: inline-block;
} }
} }
.stream-faces {
display: flex;
flex-flow: row wrap;
img { margin: 1px; }
}
} }

View file

@ -2,9 +2,8 @@
.framed-content { .framed-content {
background-color: $white; background-color: $white;
border: 1px solid $light-grey; border: 1px solid $light-grey;
border-top: 0;
box-shadow: $card-shadow; box-shadow: $card-shadow;
margin-top: -10px;
padding-top: 10px;
.header, .header,
.sidebar-header { .sidebar-header {

View file

@ -1,14 +1,4 @@
.page-streams,
.page-people,
.page-photos,
.page-tags {
background-color: $main-background;
}
.stream_container { .stream_container {
margin: auto;
max-width: 900px;
.stream-title { .stream-title {
margin: 12px 0; margin: 12px 0;
} }
@ -29,7 +19,7 @@
@media(max-width: $screen-xs) { @media(max-width: $screen-xs) {
.publisher { .main-stream-publisher .publisher {
margin-left: 0; margin-left: 0;
} }
} }

View file

@ -23,11 +23,8 @@ h1.tag {
} }
} }
.page-tags { .page-tags {
background-color: $sidebars-background;
.left-navbar-fixed-background { border-right: 0; }
#tags_show { #tags_show {
.col-md-3 { .col-md-3 {
h4 { margin: 25px 0 15px; }
.side_stream #people_stream { .side_stream #people_stream {
.name { display: block; } .name { display: block; }
.name, .diaspora_handle { .name, .diaspora_handle {
@ -37,7 +34,7 @@ h1.tag {
} }
} }
} }
.col-md-7 { .col-md-9 {
.tag-following-action { .tag-following-action {
max-width: 100%; max-width: 100%;
input[type="submit"] { input[type="submit"] {

View file

@ -7,7 +7,7 @@
.sidebar .sidebar
= render "shared/settings_nav" = render "shared/settings_nav"
.col-md-9 .col-md-9
.framed-content .framed-content.clearfix
%h3= t(".title") %h3= t(".title")
.row .row
.col-md-12 .col-md-12

View file

@ -10,9 +10,8 @@
.pull-left.hidden-xs .pull-left.hidden-xs
= owner_image_link = owner_image_link
= render "publisher/publisher", publisher_aspects_for(stream) = render "publisher/publisher", publisher_aspects_for(stream)
= render "aspects/no_posts_message"
.stream#main_stream{title: popover_with_close_html("3. #{t('.stay_updated')}"), .stream#main_stream{:title => popover_with_close_html("3. #{t('.stay_updated')}"),
"data-content" => t(".stay_updated_explanation")} "data-content" => t(".stay_updated_explanation")}
#paginate #paginate

View file

@ -34,7 +34,7 @@
- else - else
.stream_container.hidden .stream_container.hidden
#conversation_show #conversation_show
.framed-content#conversation_new .framed-content.clearfix#conversation_new
.new-conversation .new-conversation
%h3.text-center %h3.text-center
= t("conversations.index.new_conversation") = t("conversations.index.new_conversation")

View file

@ -8,7 +8,7 @@
.sidebar .sidebar
= render "shared/settings_nav" = render "shared/settings_nav"
.col-md-9 .col-md-9
.framed-content .framed-content.clearfix
- content_for :submit_block do - content_for :submit_block do
= link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default" = link_to t("cancel"), local_or_remote_person_path(current_user.person), class: "btn btn-default"
= submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile" = submit_tag t(".update_profile"), class: "btn btn-primary pull-right", id: "update_profile"

View file

@ -11,7 +11,7 @@
.sidebar .sidebar
= render "shared/settings_nav" = render "shared/settings_nav"
.col-md-9 .col-md-9
.framed-content .framed-content.clearfix
%h3= t(".title") %h3= t(".title")
.row .row
.col-md-12 .col-md-12

View file

@ -1,5 +1,6 @@
#section_header #section_header
%h3.sidebar-header .sidebar-header.clearfix
%h3
= t("settings") = t("settings")
.list-group#settings_nav .list-group#settings_nav
= link_to t("profile"), edit_profile_path, = link_to t("profile"), edit_profile_path,

View file

@ -22,8 +22,8 @@
.container-fluid .container-fluid
.row .row
.left-navbar-fixed-background.col-lg-2.col-sm-3.hidden-sm.hidden-xs .col-md-3
.left-navbar.col-lg-2.col-sm-3 .sidebar.left-navbar
%ul#stream_selection %ul#stream_selection
%li{data: {stream: "stream"}} %li{data: {stream: "stream"}}
= link_to t("streams.multi.title"), stream_path, rel: "backbone", class: "hoverable" = link_to t("streams.multi.title"), stream_path, rel: "backbone", class: "hoverable"
@ -39,12 +39,6 @@
= link_to t("streams.public.title"), public_stream_path, rel: "backbone", class: "hoverable" = link_to t("streams.public.title"), public_stream_path, rel: "backbone", class: "hoverable"
.info-bar.hidden-xs .info-bar.hidden-xs
.section#selected_aspect_contacts
.title
%h5.stream-title
= @stream.title
.content
- if AppConfig.settings.invitations.open? - if AppConfig.settings.invitations.open?
.section .section
.title .title
@ -147,7 +141,7 @@
%ul %ul
= render "shared/links" = render "shared/links"
.col-lg-10.col-sm-9 .col-md-9
.stream_container#aspect_stream_container .stream_container#aspect_stream_container
= render "aspects/aspect_stream", stream: @stream = render "aspects/aspect_stream", stream: @stream

View file

@ -10,13 +10,14 @@
.container-fluid#tags_show .container-fluid#tags_show
.row .row
.col-lg-3.hidden-xs.left-navbar-fixed-background
.col-md-3.hidden-xs .col-md-3.hidden-xs
%h4 .sidebar
= t('.tagged_people', count: @stream.tagged_people_count, tag: @stream.display_tag_name) .sidebar-header.clearfix
%h3
= t(".tagged_people", count: @stream.tagged_people_count, tag: @stream.display_tag_name)
.side_stream.stream .side_stream.stream
= render partial: 'people/index', locals: {people: @stream.tagged_people} = render partial: "people/index", locals: {people: @stream.tagged_people}
.col-md-9 .col-md-9
.stream_container .stream_container