diff --git a/app/assets/javascripts/app/views/conversations_view.js b/app/assets/javascripts/app/views/conversations_view.js index f19196987..a8ba1127e 100644 --- a/app/assets/javascripts/app/views/conversations_view.js +++ b/app/assets/javascripts/app/views/conversations_view.js @@ -19,6 +19,7 @@ app.views.Conversations = Backbone.View.extend({ setupConversation: function() { app.helpers.timeago($(this.el)); + $('.control-icons a').tooltip({placement: 'bottom'}); var conv = $('.conversation-wrapper .stream_element.selected'), cBadge = $('#conversations_badge .badge_count'); diff --git a/app/assets/javascripts/app/views/photo_view.js b/app/assets/javascripts/app/views/photo_view.js index 0e215086d..286d3fe98 100644 --- a/app/assets/javascripts/app/views/photo_view.js +++ b/app/assets/javascripts/app/views/photo_view.js @@ -10,7 +10,7 @@ app.views.Photo = app.views.Base.extend({ "click .remove_post": "destroyModel" }, - tooltipSelector : ".block_user, .delete", + tooltipSelector : ".control-icons a", initialize : function() { $(this.el).attr("id", this.model.get("guid")); diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js index e6c0d3857..ebb0a9dbf 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js @@ -1,12 +1,12 @@ // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.SinglePostCommentStream = app.views.CommentStream.extend({ - tooltipSelector: "time, .controls a", + tooltipSelector: "time, .control-icons a", initialize: function(){ $(window).on('hashchange',this.highlightPermalinkComment); }, - + highlightPermalinkComment: function() { if(document.location.hash){ var element = $(document.location.hash); diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_moderation.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_moderation.js index a47f42d0a..d206e31db 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_moderation.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_moderation.js @@ -1,6 +1,8 @@ app.views.SinglePostModeration = app.views.Feedback.extend({ templateName: "single-post-viewer/single-post-moderation", + className: 'control-icons', + events: function() { return _.defaults({ "click .remove_post": "destroyModel", diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 574baa2e1..e17d19d78 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -22,8 +22,6 @@ /* login */ @import 'new_styles/login'; @import 'new_styles/registration'; -@import 'new_styles/landing'; - @import 'new_styles/forms'; /* navs */ diff --git a/app/assets/stylesheets/conversations.scss b/app/assets/stylesheets/conversations.scss index b47f415c3..1f66bf31a 100644 --- a/app/assets/stylesheets/conversations.scss +++ b/app/assets/stylesheets/conversations.scss @@ -127,15 +127,10 @@ padding: 5px; line-height: 0px; - a.close_conversation { + .hide_conversation, .delete_conversation { display: block; - margin-top: 10px; - float: right; - - .icons-deletelabel { - height: 14px; - width: 14px; - } + margin-top: 25px; + margin-left: 10px; } .avatar { diff --git a/app/assets/stylesheets/new_styles/_interactions.scss b/app/assets/stylesheets/new_styles/_interactions.scss index cff767085..6c6f34707 100644 --- a/app/assets/stylesheets/new_styles/_interactions.scss +++ b/app/assets/stylesheets/new_styles/_interactions.scss @@ -1,5 +1,34 @@ +.control-icons { + a { + margin-right: 5px; + &:hover { text-decoration: none; } + + i.entypo { + color: $text-grey; + font-size: $font-size-text; + line-height: $line-height; + vertical-align: top; + &:hover { color: $text; } + &.cross { font-size: $line-height; } + } + + &.hide_conversation i { + font-size: $line-height*1.5; + } + + &.delete_conversation i { + font-size: $font-size-text*1.5; + } + + &.destroy_participation i { + color: $black; + &:hover { color: $text-dark-grey; } + } + } +} + .stream_container, #single-post-interactions { - .controls { + .control-icons { z-index: 6; float: right; @@ -10,15 +39,6 @@ .destroy_participation, .post_report { display: inline-block; - - .icons-create_participation, - .icons-deletelabel, - .icons-destroy_participation, - .icons-ignoreuser, - .icons-report { - height: 14px; - width: 14px; - } } & > a:hover { @@ -27,13 +47,13 @@ } .stream_element, .comment, .photo, .stream_element:hover .comment { - .controls > a { + .control-icons > a { @include transition(opacity); opacity: 0; } - &:hover .controls { - & > a { opacity: 0.3; } + &:hover .control-icons { + & > a { opacity: 0.8; } & > a:hover { opacity: 1; } } } diff --git a/app/assets/stylesheets/new_styles/_landing.scss b/app/assets/stylesheets/new_styles/_landing.scss deleted file mode 100644 index db169cc0e..000000000 --- a/app/assets/stylesheets/new_styles/_landing.scss +++ /dev/null @@ -1,113 +0,0 @@ -/* le declarations */ -#landing { - overflow : hidden; - position : absolute; - min-height : 100%; - width : 100%; - top : 0; - left : 0; - - background : { - color : #fff; - } - - #sign_up { - text-align:center; - position : relative; - z-index : 20; - - border-bottom: 1px solid #ccc; - padding-bottom:50px; - - form { - label.control-label { width : 80px !important; text-align:right; } - .controls { margin-left : 100px; } - - input[type='submit'] { - @include transition(background); - box-shadow: 0 0 0 0; - - font-size:1.2em; - background : #99CC00; - color : #fff; - text-shadow : 0 -1px 0 #669900; - border : 1px solid $border-dark-grey; - - &:hover { - background : desaturate(#99CC00, 15%); - } - - &:active { - box-shadow: 0 0 0 0; - background : darken(rgb(255, 77, 54), 2%); - } - } - } - } - - #invites { - margin : 20px 0; - } - - #footer { - position : absolute; - bottom : 0; - left : 0; - width : 100%; - padding : 10px 0; - color : #333; - text-align : center; - } - - #landing_banner { - .container { - position:relative; - } - - text-align:center; - padding:50px; - margin-bottom:50px; - color:#ccc; - background:#222; - - h2 { - font-weight:100; - } - - .landing-logo { - margin-bottom:15px; - height:60px; - } - - .landing-banner-right { - position:absolute; - right:0; - - a { - color:#ccc; - font-size:1.2em; - font-weight:100; - padding:5px 10px; - } - } - - .login-button { - border-radius: 3px; - border:1px solid #666; - background:#111; - - &:hover { - background:#222; - border:1px solid $border-dark-grey; - text-decoration:none; - } - } - } - - #steps { - text-align: center; - p { - color: $text-dark-grey; - } - } -} diff --git a/app/assets/stylesheets/photo.scss b/app/assets/stylesheets/photo.scss deleted file mode 100644 index 7535aa33d..000000000 --- a/app/assets/stylesheets/photo.scss +++ /dev/null @@ -1,19 +0,0 @@ -.photo { - .controls:first-child { - .control_icon { - @include transition(opacity); - opacity: 0; - } - } - - &:hover { - .controls:first-child { - .control_icon { - opacity: 0.3; - } - .control_icon:hover { - opacity: 1; - } - } - } -} diff --git a/app/assets/stylesheets/rtl.scss b/app/assets/stylesheets/rtl.scss index 0cbfb9b8c..b46cf4d8b 100644 --- a/app/assets/stylesheets/rtl.scss +++ b/app/assets/stylesheets/rtl.scss @@ -251,10 +251,6 @@ ul.comments li form p, ul.show_comments li form p, div.likes li form p, div.disl right: 35px; } -ul.comments li.posted .controls .delete { - float: left -} - .stream .stream_element time { right: auto; left: 20px; diff --git a/app/assets/stylesheets/single-post-view.scss b/app/assets/stylesheets/single-post-view.scss index f931fc61f..c48613313 100644 --- a/app/assets/stylesheets/single-post-view.scss +++ b/app/assets/stylesheets/single-post-view.scss @@ -47,7 +47,7 @@ #single-post-moderation { margin-left: 5px; - > div.info { + > div.control-icons { display: inline-block; } } @@ -94,24 +94,6 @@ } } } - #single-post-moderation { - a:hover { - text-decoration: none; - } - i { - padding-right: 5px; - vertical-align: top; - &:hover { - color: #424242; - } - } - a.post_report > i { - font-size: $font-size-text; - } - i.cross { - font-size: 20px; - } - } } #body { diff --git a/app/assets/stylesheets/stream_element.scss b/app/assets/stylesheets/stream_element.scss index 3c1ca3cc0..036852d6e 100644 --- a/app/assets/stylesheets/stream_element.scss +++ b/app/assets/stylesheets/stream_element.scss @@ -5,7 +5,7 @@ } &.deleting { > .media { opacity: 0.3; } - .controls { display: none !important; } + .control-icons { display: none !important; } } } @@ -15,17 +15,16 @@ > .bd { position: relative; overflow: inherit; - > .controls { + > .control-icons { + border-radius: 4px; + padding-left: 5px; position: absolute; right: 6px; - top: 1px; - width: 15px; - height: 15px; text-align: center; - line-height: 15px; + top: 1px; } } - &:hover > .bd > .controls { background: #fff; } + &:hover > .bd > .control-icons { background: #fff; } } .thumbnail { height: 200px; diff --git a/app/assets/templates/comment_tpl.jst.hbs b/app/assets/templates/comment_tpl.jst.hbs index 3196cad33..a42da9926 100644 --- a/app/assets/templates/comment_tpl.jst.hbs +++ b/app/assets/templates/comment_tpl.jst.hbs @@ -6,15 +6,15 @@