diff --git a/resources/assets/stylesheets/scss/article.scss b/resources/assets/stylesheets/scss/article.scss index 291392a45533e89ea0b560d01eb81b29c0050fe5..1b70ae72e54c80600f2d82e02b42507614ca7808 100644 --- a/resources/assets/stylesheets/scss/article.scss +++ b/resources/assets/stylesheets/scss/article.scss @@ -1,14 +1,11 @@ -article.studip { +$article-padding: 10px; - &:not(.wiki) { - border-color: $content-color-40; - border-style: solid; - border-width: 1px; - } +article.studip { + border: 1px solid $content-color-40; - margin-bottom: 10px; + margin-bottom: $article-padding; + padding: $article-padding; transition: all 300ms ease 0s; - padding: 10px; &:last-child { margin-bottom: 0; @@ -22,8 +19,8 @@ article.studip { padding: 2px; background-color: $content-color-20; - margin: -10px; - margin-bottom: 10px; + margin: -$article-padding; + margin-bottom: $article-padding; > * { /* Try to get header aligned by forcing children into centering */ @@ -99,7 +96,7 @@ article.studip { } width: 100%; } - margin-bottom: -10px; + margin-bottom: -$article-padding; > *:first-child { cursor: pointer; @@ -116,16 +113,16 @@ article.studip { transform: rotate(90deg); } } - margin-bottom: 10px; + margin-bottom: $article-padding; } } } > footer { text-align: center; - border-color: $content-color-40; - border-top-style: solid; - border-width: 1px; + border-top: 1px solid $content-color-40; + margin: -$article-padding; + margin-top: $article-padding; &:empty { display: none !important; diff --git a/resources/assets/stylesheets/scss/wiki.scss b/resources/assets/stylesheets/scss/wiki.scss index fdc86804d674f8f026aff6c76ed9e960b5dc396f..f428410e6d07eb719f2f6c50310ac3725c870c5f 100644 --- a/resources/assets/stylesheets/scss/wiki.scss +++ b/resources/assets/stylesheets/scss/wiki.scss @@ -131,3 +131,11 @@ $authors: ( background-color: $bgcolor; } } + +article.studip.wiki { + border: 0; + + > footer { + margin: 0; + } +}