Skip to content
Snippets Groups Projects
Commit 0ecd0ebf authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

resurrect article.studip layout and refine wiki layout (also introduce article...

Closes #2417

Merge request studip/studip!1806
parent e0705f19
No related branches found
No related tags found
No related merge requests found
article.studip { $article-padding: 10px;
&:not(.wiki) { article.studip {
border-color: $content-color-40; border: 1px solid $content-color-40;
border-style: solid;
border-width: 1px;
}
margin-bottom: 10px; margin-bottom: $article-padding;
padding: $article-padding;
transition: all 300ms ease 0s; transition: all 300ms ease 0s;
padding: 10px;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
...@@ -22,8 +19,8 @@ article.studip { ...@@ -22,8 +19,8 @@ article.studip {
padding: 2px; padding: 2px;
background-color: $content-color-20; background-color: $content-color-20;
margin: -10px; margin: -$article-padding;
margin-bottom: 10px; margin-bottom: $article-padding;
> * { > * {
/* Try to get header aligned by forcing children into centering */ /* Try to get header aligned by forcing children into centering */
...@@ -99,7 +96,7 @@ article.studip { ...@@ -99,7 +96,7 @@ article.studip {
} }
width: 100%; width: 100%;
} }
margin-bottom: -10px; margin-bottom: -$article-padding;
> *:first-child { > *:first-child {
cursor: pointer; cursor: pointer;
...@@ -116,16 +113,16 @@ article.studip { ...@@ -116,16 +113,16 @@ article.studip {
transform: rotate(90deg); transform: rotate(90deg);
} }
} }
margin-bottom: 10px; margin-bottom: $article-padding;
} }
} }
} }
> footer { > footer {
text-align: center; text-align: center;
border-color: $content-color-40; border-top: 1px solid $content-color-40;
border-top-style: solid; margin: -$article-padding;
border-width: 1px; margin-top: $article-padding;
&:empty { &:empty {
display: none !important; display: none !important;
......
...@@ -131,3 +131,11 @@ $authors: ( ...@@ -131,3 +131,11 @@ $authors: (
background-color: $bgcolor; background-color: $bgcolor;
} }
} }
article.studip.wiki {
border: 0;
> footer {
margin: 0;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment