Skip to content

Commit

Permalink
fixing box heading margins
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedl committed May 12, 2018
1 parent 6b55d4a commit e927e68
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/your_platform/boxes.js.coffee
Expand Up @@ -12,6 +12,8 @@ $(document).ready ->
$('.content_twoCols_right > div.col-xs-12').each ->
$(this).find('.box:first').addClass('first')

$('.box_image:not(:has(img))').addClass('empty')

$.fn.process_box_tools = ->
this.find('.box.event .edit_button').hide()
this.find('.box.event #ics_export').hide()
Expand Down
8 changes: 8 additions & 0 deletions app/assets/stylesheets/your_platform/new_box.sass
Expand Up @@ -5,10 +5,18 @@
> .box_header
display: block

> .box_title
h1, h2, h3, h4, h5, h6
margin-top: 0

> .box_image
overflow: hidden
border-radius: 3px

> .box_image.empty
margin: 0
padding: 0

> .box_tools
position: absolute
top: 5px
Expand Down

0 comments on commit e927e68

Please sign in to comment.