Skip to content

Commit

Permalink
Merge branch 'main' into feature/165/analysis-hero
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons committed Dec 9, 2024
2 parents a5ba67b + 2f6bcf0 commit 4d43469
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 11 additions & 18 deletions src/components/description-list/_description-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@
clear: both;
float: left;
font-weight: $font-weight-bold;
white-space: nowrap;
}

&__value {
float: right;
margin-left: 0; /* As normalize adds a 40px left margin */

& + & {
@include mq(xs) {
margin-top: 0;
}
}
}

&__item {
Expand All @@ -32,17 +25,16 @@
margin-top: 0.5rem;
}
}
.ons-description-list--inline & .ons-description-list__value:nth-of-type(1) {
@include mq(l) {
margin-top: 0;
}
@include mq(xs, l) {
margin-top: 0.5rem;
}
}
.ons-description-list--inline & .ons-description-list__term {
@include mq(l) {
margin-top: 0;

.ons-description-list--inline & {
.ons-description-list__value:nth-of-type(1),
.ons-description-list__term {
@include mq(l) {
margin-top: 0;
}
@include mq(xs, l) {
margin-top: 0.5rem;
}
}
}
}
Expand All @@ -52,6 +44,7 @@
.ons-description-list__term {
padding-right: 1rem;
}

@include mq(l) {
display: grid;
grid-template-columns: repeat(3, 1fr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"classes": "ons-u-mb-no",
"descriptionListLabel": "Information about this business and its survey requirements",
"variant": 'inline',
"termCol": "3",
"descriptionCol": "9",
"termCol": "4",
"descriptionCol": "8",
"itemsList": [
{
"term": "Survey:",
Expand Down

0 comments on commit 4d43469

Please sign in to comment.