Add styling for lists in assignments
Also, refactor some code Relates to MS-518
This commit is contained in:
parent
4ad31b4654
commit
9076eb462f
|
|
@ -147,6 +147,13 @@
|
||||||
margin-top: $large-spacing;
|
margin-top: $large-spacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ ul {
|
||||||
|
@include list-parent;
|
||||||
|
}
|
||||||
|
/deep/ li {
|
||||||
|
@include list-child;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.submissions {
|
.submissions {
|
||||||
|
|
|
||||||
|
|
@ -327,11 +327,11 @@
|
||||||
|
|
||||||
/deep/ .text-block {
|
/deep/ .text-block {
|
||||||
ul {
|
ul {
|
||||||
padding-left: 25px;
|
@include list-parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
list-style: disc;
|
@include list-child;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
class="assignment"
|
class="assignment"
|
||||||
>
|
>
|
||||||
<p
|
<p
|
||||||
class="assignment__assignment-text"
|
class="assignment__main-text"
|
||||||
data-cy="assignment-main-text"
|
data-cy="assignment-main-text"
|
||||||
v-html="assignment.assignment"
|
v-html="assignment.assignment"
|
||||||
/>
|
/>
|
||||||
|
|
@ -275,6 +275,16 @@
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__main-text {
|
||||||
|
/deep/ ul{
|
||||||
|
@include list-parent
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ li {
|
||||||
|
@include list-child;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__toggle-input-container {
|
&__toggle-input-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
|
|
|
||||||
|
|
@ -113,11 +113,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__list {
|
&__list {
|
||||||
padding-left: $medium-spacing;
|
@include list-parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__list-item {
|
&__list-item {
|
||||||
list-style: disc;
|
@include list-child;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
& ul {
|
& ul {
|
||||||
padding-left: 25px;
|
@include list-parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
& p + ul {
|
& p + ul {
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
& li {
|
& li {
|
||||||
list-style: disc;
|
@include list-child;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -245,3 +245,12 @@
|
||||||
width: $small-icon-dimension;
|
width: $small-icon-dimension;
|
||||||
height: $small-icon-dimension;
|
height: $small-icon-dimension;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@mixin list-parent {
|
||||||
|
padding-left: $medium-spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin list-child {
|
||||||
|
list-style: disc;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue