Skip to content

Commit

Permalink
chore(pv-stylemark): optimize example styles
Browse files Browse the repository at this point in the history
  • Loading branch information
friewerts committed Feb 21, 2024
1 parent f03a00a commit bed1ba7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/pv-stylemark/tasks/templates/lsg-component.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="dds-component" id="{{componentName}}">
<h2 class="dds-component__name">{{options.name}}</h2>
<div class="dds-component__description">
{{{description}}}
{{{description}}}
</div>
</section>
2 changes: 1 addition & 1 deletion packages/pv-stylemark/tasks/templates/lsg.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<main class="dds-page__main">
{{#each lsgData}}
{{#each categoryItems}}
{{> lsg-component }}
{{> lsg-component }}
{{/each}}
{{/each}}
</main>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@
margin: 0 0 16px;
}

a {
color: $dds-color__black-070;
text-underline-offset: 2px;
transition: color 0.3s ease-in-out, text-underline-offset 0.3s ease-in-out;

@media (hover: hover) {
&:hover {
color: $dds-color__black-090;
text-underline-offset: 3px;
}
}
}

dds-example {
margin: 24px 0 40px;

Expand All @@ -62,8 +75,16 @@
}

code {
background: $dds-color__black-010;
display: inline-block;
padding: 2px 8px;
margin-bottom: 4px;
background: $dds-color__black-020;
color: $dds-color__black-070;
border-radius: 4px;
}

pre code {
background: $dds-color__black-010;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ dds-example {
display: flex;
flex-direction: column;
gap: 8px;
}

.dds-example {
&__example-link {
.dds-example__example-link {
display: inline-block;
margin-left: auto;
color: inherit;
Expand All @@ -21,10 +19,13 @@ dds-example {
@media (hover: hover) {
&:hover {
background: $dds-color__black-080;
color: $dds-color__white;
}
}
}
}

.dds-example {
&__example-box {
height: 50vh;
border: 1px solid #d0d0d0;
Expand Down

0 comments on commit bed1ba7

Please sign in to comment.