From 2906590b58d180ca54839f77e783e975bce50d82 Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Fri, 4 Apr 2014 21:15:55 +0100 Subject: [PATCH] Hotfix: Article header box sizing CSS --- app/assets/stylesheets/sass/_mixins.sass | 7 ++++++- app/assets/stylesheets/sass/articles.sass | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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