Skip to content
Snippets Groups Projects
Commit 5452656a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

resurrect missing list classes, fixes #3997

Closes #3997

Merge request studip/studip!2848
parent afb530bc
No related branches found
No related tags found
No related merge requests found
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
clear: both; clear: both;
} }
} }
@mixin list-unstyled {
padding-left: 0;
list-style: none;
}
@mixin size($height, $width) { @mixin size($height, $width) {
......
...@@ -259,19 +259,3 @@ ...@@ -259,19 +259,3 @@
/* Opera doesn't support this in the shorthand */ /* Opera doesn't support this in the shorthand */
background-attachment: local, local, scroll, scroll; background-attachment: local, local, scroll, scroll;
} }
@mixin list-unstyled {
padding-left: 0;
list-style: none;
}
@mixin list-inline {
@include list-unstyled();
margin-left: -5px;
> li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}
}
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
padding-bottom: 1em; padding-bottom: 1em;
ul { ul {
@include list-inline(); @extend .list-inline;
img { img {
margin-left: 0.25em; margin-left: 0.25em;
......
...@@ -10,9 +10,25 @@ ol { ...@@ -10,9 +10,25 @@ ol {
} }
} }
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
@extend .list-unstyled;
margin-left: -5px;
> li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}
}
//comma separated //comma separated
.list-csv { .list-csv {
@include list-inline(); @extend .list-inline;
margin-left: 0; margin-left: 0;
> li { > li {
...@@ -24,7 +40,6 @@ ol { ...@@ -24,7 +40,6 @@ ol {
&:last-child { &:last-child {
padding-right: 0; padding-right: 0;
&::after { &::after {
content: unset; content: unset;
} }
...@@ -39,7 +54,7 @@ ol { ...@@ -39,7 +54,7 @@ ol {
} }
.list-pipe-separated { .list-pipe-separated {
@include list-inline(); @extend .list-inline;
display: flex; // Prevents the mystery gap between elements display: flex; // Prevents the mystery gap between elements
> li { > li {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
padding: 0 1em; padding: 0 1em;
} }
.profile-view-actions { .profile-view-actions {
@include list-unstyled(); @extend .list-unstyled;
img { img {
vertical-align: text-top; vertical-align: text-top;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment