diff --git a/app/assets/stylesheets/sass/_mixins.sass b/app/assets/stylesheets/sass/_mixins.sass index 4a72a6d..9f5eec9 100644 --- a/app/assets/stylesheets/sass/_mixins.sass +++ b/app/assets/stylesheets/sass/_mixins.sass @@ -33,4 +33,9 @@ $bg_sub: #fdfdfd padding: 5px 10px 0px 10px border-radius: 5px 5px 0px 0px background: url('/images/icons/article_head.png') repeat-x - color: #ffffff \ No newline at end of file + color: #ffffff + +@mixin box-sizing($box-model) + -webkit-box-sizing: $box-model + -moz-box-sizing: $box-model + box-sizing: $box-model diff --git a/app/assets/stylesheets/sass/articles.sass b/app/assets/stylesheets/sass/articles.sass index 7903a5f..c41488f 100644 --- a/app/assets/stylesheets/sass/articles.sass +++ b/app/assets/stylesheets/sass/articles.sass @@ -17,6 +17,7 @@ div &.article > h1 @include shaded-top + @include box-sizing(border-box) box-sizing: border-box padding: 8px margin: 0