Merge pull request #6949 from svbergerem/refactor-photos-css

Refactor photo css
This commit is contained in:
Jonne Haß 2016-08-09 11:13:32 +02:00 committed by GitHub
commit 6495845de6
2 changed files with 36 additions and 38 deletions

View file

@ -1,5 +1,5 @@
#main_stream .stream_element, #main_stream .stream_element,
#main_stream > div > .photo { .photo {
& > .media { & > .media {
margin: 0px; margin: 0px;
} }
@ -9,23 +9,22 @@
} }
} }
#main_stream > div > .photo { .photo {
& > .media { > .media {
overflow: visible; overflow: visible;
position: relative; position: relative;
> .bd {
position: relative; .control-icons {
overflow: inherit; background: $white;
> .control-icons {
border-radius: 4px; border-radius: 4px;
padding-left: 4px;
position: absolute; position: absolute;
right: 6px; right: 4px;
text-align: center; text-align: center;
top: 1px; top: 1px;
} }
} }
&:hover > .bd > .control-icons { background: $white; }
}
.thumbnail { .thumbnail {
background: $white; background: $white;
border-radius: 0; border-radius: 0;

View file

@ -1,5 +1,4 @@
<div class="media"> <div class="media">
<div class="bd">
{{#if loggedIn}} {{#if loggedIn}}
<div class="control-icons"> <div class="control-icons">
{{#if authorIsCurrentUser}} {{#if authorIsCurrentUser}}
@ -23,7 +22,7 @@
<a href="{{sizes.large}}" class="thumbnail img-thumbnail photo-link gallery-picture"> <a href="{{sizes.large}}" class="thumbnail img-thumbnail photo-link gallery-picture">
<img src="{{sizes.large}}" class="photo big-photo"> <img src="{{sizes.large}}" class="photo big-photo">
</a> </a>
</div>
<div class="card-footer"> <div class="card-footer">
<div class="footer-container"> <div class="footer-container">
{{#if status_message}} {{#if status_message}}