Skip to content

Commit

Permalink
Fix color class text overlapping in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Nov 30, 2017
1 parent 0878025 commit a16a3d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$(this).children().each(function () {
var color = $(this).css('background-color'),
classes = $(this).attr('class');
$(this).html(rgb2hex(color) + " " + classes);
$(this).html('<span>' + rgb2hex(color) + " " + classes + '</span>');
if (classes.indexOf("darken") >= 0 || $(this).hasClass('black')) {
$(this).css('color', 'rgba(255,255,255,.9');
}
Expand Down
5 changes: 3 additions & 2 deletions sass/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,11 @@ $height: auto;
height: 55px;
width: 100%;
padding: 0 15px;
line-height: 55px;
font-weight: 500;
font-size: 12px;
display: block;
display: flex;
justify-content: center;
flex-direction: column;
box-sizing: border-box;
}
.col {
Expand Down

0 comments on commit a16a3d5

Please sign in to comment.