Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pv-stylemark): add theme classes from the old stylemark to the new one #221

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 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">
<section class="dds-component theme-content-element" id="{{componentName}}">
<h2 class="dds-component__name theme-content-element-title">{{options.name}}</h2>
<div class="dds-component__description theme-content-element-description">
{{{description}}}
</div>
</section>
16 changes: 8 additions & 8 deletions packages/pv-stylemark/tasks/templates/lsg-nav.hbs
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<dds-nav class="dds-nav">
<header class="dds-nav__header">
<dds-nav class="dds-nav theme-sidebar">
<header class="dds-nav__header theme-sidebar-header">
{{#if lsgConfig.theme.logo}}
<img class="dds-nav__logo" src="{{lsgConfig.theme.logo}}" alt="{{lsgConfig.name}}">
<img class="dds-nav__logo theme-sidebar-header-logo" src="{{lsgConfig.theme.logo}}" alt="{{lsgConfig.name}}">
{{else}}
<h1 class="dds-nav__title">{{lsgConfig.name}}</h1>
{{/if}}
<button class="dds-nav__nav-toggle">
<span class="dds-nav__nav-toggle-icon"></span>
</button>
</header>
<div class="dds-nav__search-input-box">
<div class="dds-nav__search-input-box theme-sidebar-search">
<input type="text" class="dds-nav__search-input" placeholder="Search">
</div>
<div class="dds-nav__categories">
<div class="dds-nav__categories theme-sidebar-categories">
{{#each lsgData}}
<div class="dds-nav__category">
<h3 class="dds-nav__category-name">{{categoryName}}</h3>
<div class="dds-nav__category theme-sidebar-category">
<h3 class="dds-nav__category-name theme-sidebar-category-title">{{categoryName}}</h3>
<ul class="dds-nav__category-list">
{{#each categoryItems}}
<li class="dds-nav__category-item">
<a class="dds-nav__category-link" href="#{{componentName}}">{{options.name}}</a>
<a class="dds-nav__category-link theme-sidebar-element" href="#{{componentName}}">{{options.name}}</a>
</li>
{{/each}}
</ul>
Expand Down
6 changes: 4 additions & 2 deletions packages/pv-stylemark/tasks/templates/lsg.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
</style>
{{/if}}
</head>
<body class="dds-page">
<body class="dds-page theme-page">
{{> lsg-nav}}
<main class="dds-page__main">
<main class="dds-page__main theme-content">
{{#each lsgData}}
<div class="theme-content-category">
{{#each categoryItems}}
{{> lsg-component }}
{{/each}}
</div>
{{/each}}
</main>

Expand Down
Loading