Skip to content

Commit

Permalink
Adding default spacing of floating images
Browse files Browse the repository at this point in the history
  • Loading branch information
doishub committed Mar 16, 2020
1 parent 01cb55e commit ed60000
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Resources/public/framework/scss/components/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,34 @@
&.width-25 .image_container{
width: 25%;
}

&.width-33 .image_container{
width: 33.333%;
}

&.width-50 .image_container{
width: 50%;
}

.image_container{

&.float_right{
margin-left: divide($grid-gutter-width, 2);
margin-bottom: $grid-gutter-bottom;
}

&.float_left{
margin-right: divide($grid-gutter-width, 2);
margin-bottom: $grid-gutter-bottom;
}

&.float_above{
margin-bottom: $grid-gutter-bottom;
}

&.float_below{
margin-top: $grid-gutter-bottom;
}
}
}
}

0 comments on commit ed60000

Please sign in to comment.