diff --git a/app/assets/javascripts/app/views/photo_view.js b/app/assets/javascripts/app/views/photo_view.js
index c4602a40f..ecf30fe1c 100644
--- a/app/assets/javascripts/app/views/photo_view.js
+++ b/app/assets/javascripts/app/views/photo_view.js
@@ -4,7 +4,7 @@ app.views.Photo = app.views.Base.extend({
templateName: "photo",
- className : "photo loaded col-md-4 clearfix",
+ className : "photo loaded col-md-4 col-sm-6 clearfix",
events: {
"click .remove_post": "destroyModel"
diff --git a/app/assets/javascripts/app/views/photos_view.js b/app/assets/javascripts/app/views/photos_view.js
index e1053e663..8a31fc815 100644
--- a/app/assets/javascripts/app/views/photos_view.js
+++ b/app/assets/javascripts/app/views/photos_view.js
@@ -1,7 +1,7 @@
// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later
app.views.Photos = app.views.InfScroll.extend({
- className: "clearfix",
+ className: "clearfix row",
postClass : app.views.Photo,
diff --git a/app/assets/stylesheets/colors.scss b/app/assets/stylesheets/colors.scss
index a106062e4..0496b0aa2 100644
--- a/app/assets/stylesheets/colors.scss
+++ b/app/assets/stylesheets/colors.scss
@@ -26,3 +26,5 @@ $dark-blue: darken(#0984C8,10%);
$sidebars-background: #f0f0f0;
$sidebars-sub-background: darken($sidebars-background, 12%);
$left-navbar-drawer-background: darken($sidebars-background, 6%);
+
+$card-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
\ No newline at end of file
diff --git a/app/assets/stylesheets/people.scss b/app/assets/stylesheets/people.scss
index 62a1debd5..213598372 100644
--- a/app/assets/stylesheets/people.scss
+++ b/app/assets/stylesheets/people.scss
@@ -12,7 +12,7 @@
.stream_element.media {
border-bottom: 1px solid $border-grey;
padding: 10px;
- margin: 0px;
+ margin: 0;
font-size: 13px;
line-height: 16px;
min-height: 50px;
diff --git a/app/assets/stylesheets/profile.scss b/app/assets/stylesheets/profile.scss
index 99e792eb4..590a979bd 100644
--- a/app/assets/stylesheets/profile.scss
+++ b/app/assets/stylesheets/profile.scss
@@ -1,15 +1,19 @@
+body.page-people.action-show, body.page-people.action-contacts {
+ background-color: $sidebars-background;
+}
+
#profile_container {
.profile_header {
- margin-bottom: 20px;
- border-left: 1px solid #dddddd;
+ margin-bottom: 15px;
+ background-color: $white;
padding-left: 10px;
+ padding-right: 10px;
padding-top: 20px;
- margin-left: -10px;
margin-top: -20px;
+ box-shadow: $card-shadow;
#edit_profile, #unblock_user_button, .aspect_dropdown {
- margin-top: 5px;
- margin-right: 10px;
+ margin-top: 15px;
}
#author_info {
@@ -51,9 +55,8 @@
}
}
- #profile_horizontal_bar {
+ #profile-horizontal-bar {
border-top: 1px dashed $border-grey;
- border-bottom: 1px solid $border-grey;
min-height: 50px;
margin-top: 10px;
#profile_buttons {
@@ -106,15 +109,20 @@
}
#profile {
- padding: 10px 20px;
+ background-color: $white;
+ padding: 20px;
+ margin-top: -10px;
+ margin-bottom: 35px;
+ box-shadow: $card-shadow;
+
#profile_photo {
margin-top: 10px;
padding-bottom: 10px;
- border-bottom: 1px dashed $border-grey;
text-align: center;
}
ul#profile_information {
+ border-top: 1px dashed $border-grey;
margin: 0;
padding: 0;
list-style: none;
@@ -129,6 +137,11 @@
}
.stream_container > .pagination { text-align: center; }
+
+ #people_stream {
+ background-color: $white;
+ box-shadow: $card-shadow;
+ }
}
#email-form{
diff --git a/app/assets/stylesheets/stream.scss b/app/assets/stylesheets/stream.scss
index 69a5b900b..a1f98a137 100644
--- a/app/assets/stylesheets/stream.scss
+++ b/app/assets/stylesheets/stream.scss
@@ -1,8 +1,8 @@
+body.page-streams, body.page-photos {
+ background-color: $sidebars-background;
+}
+
.stream_container {
- padding-left: 10px;
- padding-top: 20px;
- margin-left: -10px;
- margin-top: -20px;
#publisher {
margin-bottom: 15px;
}
diff --git a/app/assets/stylesheets/stream_element.scss b/app/assets/stylesheets/stream_element.scss
index 9b2861c5a..df46a5904 100644
--- a/app/assets/stylesheets/stream_element.scss
+++ b/app/assets/stylesheets/stream_element.scss
@@ -24,25 +24,25 @@
top: 1px;
}
}
- &:hover > .bd > .control-icons { background: #fff; }
+ &:hover > .bd > .control-icons { background: $white; }
}
.thumbnail {
padding: 10px;
- margin: 0 5px 10px;
- text-align: center;
- line-height: 200px;
- border: 1px solid $border-grey;
- background: #fefefe;
- box-shadow: 3px 3px 2px #eee;
- img {
- &.big_photo { max-height: 200px; }
- }
+ margin: 0 0 15px;
+ background: $white;
+ border-radius: 0;
+ box-shadow: $card-shadow;
+ img.big_photo { max-height: 200px; }
}
}
#main_stream .stream_element {
- border-bottom: 1px solid $border-grey;
padding: 10px;
+ margin-bottom: 20px;
+ background-color: $white;
+ border: 1px solid $light-grey;
+ box-shadow: $card-shadow;
+
& > .media {
&.shield-active .nsfw-hidden { display: none; }
&:not(.shield-active) .nsfw-shield { display: none; }
diff --git a/app/assets/stylesheets/tag.scss b/app/assets/stylesheets/tag.scss
index 72f9d757f..a70a70592 100644
--- a/app/assets/stylesheets/tag.scss
+++ b/app/assets/stylesheets/tag.scss
@@ -22,26 +22,29 @@ h1.tag {
&:hover { border-bottom: 1px solid $border-dark-grey; }
}
}
-
-#tags_show {
- .col-md-3 {
- h4 { margin: 25px 0 15px; }
- .side_stream #people_stream {
- .name { display: block; }
- .name, .diaspora_handle {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+.page-tags {
+ background-color: $sidebars-background;
+ #tags_show {
+ #left-navbar-fixed-background { border-right: none; }
+ .col-md-3 {
+ h4 { margin: 25px 0 15px; }
+ .side_stream #people_stream {
+ .name { display: block; }
+ .name, .diaspora_handle {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
}
}
- }
- .col-md-7 {
- .tag-following-action {
- max-width: 100%;
- input[type="submit"] {
- overflow: hidden;
- text-overflow: ellipsis;
+ .col-md-7 {
+ .tag-following-action {
max-width: 100%;
+ input[type="submit"] {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 100%;
+ }
}
}
}
diff --git a/app/assets/templates/photo_tpl.jst.hbs b/app/assets/templates/photo_tpl.jst.hbs
index fc83528dc..a36e05879 100644
--- a/app/assets/templates/photo_tpl.jst.hbs
+++ b/app/assets/templates/photo_tpl.jst.hbs
@@ -25,5 +25,5 @@
-
+
diff --git a/app/assets/templates/profile_header_tpl.jst.hbs b/app/assets/templates/profile_header_tpl.jst.hbs
index 197fb590c..41d2c3434 100644
--- a/app/assets/templates/profile_header_tpl.jst.hbs
+++ b/app/assets/templates/profile_header_tpl.jst.hbs
@@ -1,43 +1,46 @@
-{{#if loggedIn}}
-