Skip to content

Commit

Permalink
Fix action icons alignement
Browse files Browse the repository at this point in the history
  • Loading branch information
Simounet committed May 14, 2019
1 parent cb5b7fa commit a770c08
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
14 changes: 10 additions & 4 deletions css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/style.css.map

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ $feed-bgc-used: #DDD;
$error-color: #c53d3d;
$feed-event-read-color: #BBB;

$opacity-low: 0.3;
$position-top-on-break: 30px;
$action-icon-width: 30px;

@import "normalize";

/* MIXINS */
Expand Down Expand Up @@ -508,7 +512,7 @@ html:not(.no-js) .feed--closed {
}
.article__date {
position: absolute;
right: 5em;
right: $action-icon-width * 2 + 5px;
color: $feed-entry-color;
font-size: 0.9em;

Expand All @@ -520,12 +524,8 @@ html:not(.no-js) .feed--closed {
}
}

$opacity-low: 0.3;
$position-top-on-break: 30px;
$article-action-padding: 0.6em;
.article-favorite {
padding: $article-action-padding;
right: 1.7em;
right: $action-icon-width;
opacity: $opacity-low;

&--favorited {
Expand All @@ -540,7 +540,6 @@ $article-action-padding: 0.6em;
}

.article__read-unread {
padding: $article-action-padding 0.3em;
width: 1.7em;
right: 0;
color: white;
Expand All @@ -557,7 +556,12 @@ $article-action-padding: 0.6em;
.article-favorite,
.article__read-unread {
position: absolute;
display: flex;
padding: 0;
width: $action-icon-width;
height: 100%;
justify-content: center;
align-items: center;
top: 0;
bottom: 0;
@extend %button-focused;
Expand Down

0 comments on commit a770c08

Please sign in to comment.