From 84d41be1960f633929ea2a1b7b86d53805010dc6 Mon Sep 17 00:00:00 2001 From: Kris Aubuchon Date: Mon, 23 Mar 2015 10:23:42 -0400 Subject: [PATCH] clearfix for admin contents --- app/assets/stylesheets/common/admin/admin_base.scss | 1 + .../stylesheets/common/foundation/mixins.scss | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/app/assets/stylesheets/common/admin/admin_base.scss b/app/assets/stylesheets/common/admin/admin_base.scss index bb0591f5c63..095b02ff9ab 100644 --- a/app/assets/stylesheets/common/admin/admin_base.scss +++ b/app/assets/stylesheets/common/admin/admin_base.scss @@ -33,6 +33,7 @@ td.flaggers td { margin-bottom: 50px; .admin-contents { padding: 8px; + @include clearfix(); } .view-options { diff --git a/app/assets/stylesheets/common/foundation/mixins.scss b/app/assets/stylesheets/common/foundation/mixins.scss index cd4fd4ca268..60a682ac094 100644 --- a/app/assets/stylesheets/common/foundation/mixins.scss +++ b/app/assets/stylesheets/common/foundation/mixins.scss @@ -33,6 +33,19 @@ // CSS3 properties // -------------------------------------------------- +// Clearfix + +@mixin clearfix() { + &:before, + &:after { + content: ""; + display: table; + } + &:after { + clear: both; + } +} + // Border radius @mixin border-radius-all($radius) {