Skip to content
Extraits de code Groupes Projets
Valider 20385701 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Move interactions.scss

parent b59c9980
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
@import 'sprites'; @import 'sprites';
@import 'hovercard'; @import 'hovercard';
@import 'base'; @import 'base';
@import 'new_styles/interactions'; @import 'interactions';
@import 'spinner'; @import 'spinner';
@import 'timeago'; @import 'timeago';
@import 'vendor/fileuploader'; @import 'vendor/fileuploader';
......
...@@ -2,34 +2,31 @@ ...@@ -2,34 +2,31 @@
a { a {
&:hover { text-decoration: none; } &:hover { text-decoration: none; }
[class^="entypo-"], [class*="entypo-"] { [class^="entypo-"],
[class*="entypo-"] {
color: $text-grey; color: $text-grey;
font-size: $font-size-base; font-size: $font-size-base;
line-height: $line-height-base; line-height: $line-height-base;
vertical-align: middle; vertical-align: middle;
&:hover { color: $text; }
&.cross { font-size: $line-height-base; }
} }
&.hide_conversation i { [class^="entypo-"]:hover,
font-size: $line-height-computed*1.5; [class*="entypo-"]:hover {
color: $text;
} }
&.delete_conversation i { &.hide_conversation i { font-size: $line-height-computed * 1.5; }
font-size: $font-size-base*1.5; &.delete_conversation i { font-size: $font-size-base * 1.5; }
} &.destroy_participation i { color: $black; }
&.destroy_participation i:hover { color: $text-dark-grey; }
&.destroy_participation i {
color: $black;
&:hover { color: $text-dark-grey; }
}
} }
} }
.stream_container, #single-post-interactions { .stream_container,
.single-post-interactions {
.control-icons { .control-icons {
z-index: 6;
float: right; float: right;
z-index: 6;
.block_user, .block_user,
.comment_report, .comment_report,
...@@ -40,20 +37,29 @@ ...@@ -40,20 +37,29 @@
display: inline-block; display: inline-block;
} }
& > a:hover { > a:hover { text-decoration: none; }
text-decoration: none; }
} }
.stream_element,
.comment,
.photo,
.stream_element:hover .comment {
.control-icons {
@include transition(opacity);
opacity: 0;
} }
.stream_element, .comment, .photo, .stream_element:hover .comment { &:hover .control-icons { opacity: 1; }
.control-icons > a { }
@include transition(opacity);
opacity: 0;
}
&:hover .control-icons { .stream_element,
& > a { opacity: 0.8; } .comment,
& > a:hover { opacity: 1; } .photo {
} .control-icons > a {
@include transition(opacity);
opacity: .8;
} }
.control-icons > a:hover { opacity: 1; }
} }
<div id='single-post-container' class='container-fluid'> <div id='single-post-container' class='container-fluid'>
<div class='row'> <div class='row'>
<div id='single-post-content' class='col-md-6'> <div id='single-post-content' class='col-md-6 single-post-content'>
</div> </div>
<div id='single-post-interactions' class='col-md-6'> <div id='single-post-interactions' class='col-md-6 single-post-interactions'>
</div> </div>
</div> </div>
</div> </div>
...@@ -88,6 +88,7 @@ And /^I hover over the "([^"]+)"$/ do |element| ...@@ -88,6 +88,7 @@ And /^I hover over the "([^"]+)"$/ do |element|
end end
When /^I prepare the deletion of the first post$/ do When /^I prepare the deletion of the first post$/ do
find(".stream .stream_element", match: :first).hover
within(find(".stream .stream_element", match: :first)) do within(find(".stream .stream_element", match: :first)) do
ctrl = find(".control-icons") ctrl = find(".control-icons")
ctrl.hover ctrl.hover
...@@ -96,6 +97,7 @@ When /^I prepare the deletion of the first post$/ do ...@@ -96,6 +97,7 @@ When /^I prepare the deletion of the first post$/ do
end end
When /^I prepare hiding the first post$/ do When /^I prepare hiding the first post$/ do
find(".stream .stream_element", match: :first).hover
within(find(".stream .stream_element", match: :first)) do within(find(".stream .stream_element", match: :first)) do
ctrl = find(".control-icons") ctrl = find(".control-icons")
ctrl.hover ctrl.hover
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter