Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8d5129c
feat: fp-1499, core-styles pattern demo
wesleyboar Jul 23, 2022
5803ef7
feat: updates from tup-ui (except paths)
wesleyboar Jul 25, 2022
86365e7
Merge branch 'main' into task/fp-1499-cms-pattern-library
wesleyboar Jul 25, 2022
ea8d093
Merge branch 'main' into task/fp-1499-cms-pattern-library
wesleyboar Jul 25, 2022
6efc730
feat: fp-1726 c-publication-preview & c-tag(-list)
wesleyboar Jul 26, 2022
3ada3dd
fix: fp-1726 c-pub…-preview markup mistake
wesleyboar Jul 26, 2022
0cec067
fix: fp-1726 reduce c-tag vert padding
wesleyboar Jul 26, 2022
1d5140c
feat: fp-1726 temp. commit dist
wesleyboar Jul 26, 2022
39659ef
feat: fp-1726 remove outdated files in temp. dist
wesleyboar Jul 26, 2022
9171815
fix: fp-1726 first pub preview border
wesleyboar Jul 26, 2022
3d9fbf6
fix: fp-1726 c-pub… citation, status, and any <p>
wesleyboar Jul 26, 2022
8510789
fix: fp-1726 pagination endcaps as buttons
wesleyboar Jul 26, 2022
8435d56
feat: fp-1726 c-tag-list automatic tag styling
wesleyboar Jul 27, 2022
3299c60
feat: fp-1726 misuse template text edit
wesleyboar Jul 27, 2022
6d945d3
fix: fp-1726 c-tag link color on hover
wesleyboar Jul 27, 2022
0df8610
fix: fp-1726 allow int. + ext. global css
wesleyboar Jul 28, 2022
c5a920b
Merge branch 'task/fp-1499-cms-pattern-library' into task/fp-1499-cms…
wesleyboar Jul 28, 2022
44f928d
feat(core-styles): fp-1499 drop excess file affix
wesleyboar Jul 29, 2022
ceb4328
feat(core-styles): fp-1499 tarball
wesleyboar Jul 29, 2022
cbba0f3
Merge branch 'main' into task/fp-1499-cms-pattern-library
wesleyboar Jul 29, 2022
b446e0e
Merge branch 'task/fp-1499-cms-pattern-library' into task/fp-1499-cms…
wesleyboar Jul 29, 2022
8a89560
Revert "feat: fp-1726 temp. commit dist"
wesleyboar Jul 29, 2022
5d24083
feat(core-styles): fp-1726 c-button, a tag support
wesleyboar Aug 8, 2022
b9d11c3
Merge branch 'task/fp-1499-cms-pattern-library' into task/fp-1499-cms…
wesleyboar Aug 8, 2022
0a5ecce
chore(core-styles): fp-1499 remove tarball
wesleyboar Aug 8, 2022
21bc84f
Merge branch 'task/fp-1499-cms-pattern-library' into task/fp-1499-cms…
wesleyboar Aug 8, 2022
8f0f1ae
chore: fp-1499 add node version to readme
wesleyboar Aug 9, 2022
a531d36
Merge branch 'task/fp-1499-cms-pattern-library' into task/fp-1499-cms…
wesleyboar Aug 9, 2022
605b006
Merge branch 'main' into task/fp-1499-cms-pattern-library--fp-1726-pu…
wesleyboar Aug 16, 2022
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: 6 additions & 0 deletions src/lib/_imports/_misuse.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<dl>
<dt><strong>Not</strong> Supported</dt>
<dd>
{{> @partial-block }}
</dd>
</dl>
6 changes: 5 additions & 1 deletion src/lib/_imports/components/c-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ ul.c-page-list {

/* Pagination: End */

.c-page-end { padding: 4px 12px }
/* FAQ: Selectors are extra specific to overwrite .c-button--as-link */
.c-page-end:not(.c-button--as-link),
.c-page-end.c-button--as-link {
padding: 4px 12px;
}



Expand Down
73 changes: 73 additions & 0 deletions src/lib/_imports/components/c-publication-preview.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* Base */

.c-publication-preview {
--buffer: 15px;

padding-block: var(--buffer);

border-bottom: var(--global-border-width--normal) solid var(--global-color-primary--dark);
}
.c-publication-preview:first-of-type {
border-top: var(--global-border-width--normal) solid var(--global-color-primary--dark);
}



/* Elements */

/* Tags */

.c-publication-preview ul.c-tag-list,
.c-publication-preview ol.c-tag-list {
margin-block-end: var(--buffer);
}

/* Title */

.c-publication-preview h3 {
margin-block: 0;

font-size: var(--global-font-size--large);
}

.c-publication-preview h3,
.c-publication-preview h3 a {
color: var(--global-color-primary--xx-dark);
}
.o-section--style-dark .c-publication-preview h3,
.o-section--style-dark .c-publication-preview h3 a {
color: var(--global-color-primary--xx-light);
}

/* Citation */

.c-publication-preview p:first-of-type {
margin-block: 0.25em 0.5em;

color: var(--global-color-accent--dark);
font-size: var(--global-font-size--medium);
}

/* Status */

.c-publication-preview p:last-of-type:not(:first-of-type) {
/* To collapse sibling margin, do not use `inline-block` */
display: block;
width: fit-content;

padding-inline: var(--buffer);
padding-block: 0.25em;
margin-block-start: var(--buffer);
margin-block-end: 0; /* overwrite html-elements.css */

border: var(--global-border-width--normal) solid var(--global-color-primary--dark);

font-size: var(--global-font-size--small);
color: var(--global-color-primary--xx-dark);
}

/* any random extra paragraph */

.c-publication-preview p:not(:last-of-type, :first-of-type) {
margin-block: 0.25em 0.5em;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
notes: A publication within a list of publications.
context:
items:
- tags:
- test-tag
- test-tag-very-long
- test-tag-long
url: '#'
title: |
(is Link) Migrating the TeraGrid User Portal and Website to Liferay
citation: |
M. Dahan, R. Dooley, M. Hanlon, et al. Second International Conference on Parallel, Distributed, Grid and Cloud Computing. Ajaccio, Corsica, France. 2011.
status: Good Status
- tags:
- test-tag
- test-tag-long
url: '#'
title: |
(is Link) Recent Advances in Computational Methods for the Solution of the Time-Dependent Schrödinger Equation for the Interaction of Short, Intense Radiation with One and Two-Electron Systems: Application to He and H+2
citation: |
B. Schneider, J. Feist, S. Nagele, et al., Springer Science+Business Media, LLC, 233 Spring Street, NY 10013.Springer. 2011.
status: Bad Status
- tags:
- test-tag-very-long
title: |
(No Link) Migrating the TeraGrid User Portal and [...]
citation: |
M. Dahan, R. Dooley, M. Hanlon, et al. Second International Conference on Parallel, Distributed, Grid and Cloud Computing. Ajaccio, Corsica, France. 2011.
status: Ugly Status
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<style>
@import url('{{ path "/components/c-tag-list.css" }}');
</style>

{{#each items}}
<article class="c-publication-preview">
{{#if tags}}
<ul class="c-tag-list c-tag-list--auto-text">
{{#each tags}}
<li><a href="#">{{this}}</a></li>
{{/each}}
</ul>
{{/if}}
<h3>
{{#if url}}
<a href="{{url}}">{{title}}</a>
{{else}}
{{title}}
{{/if}}
</h3>
<p><strong>Authors:</strong> {{citation}}</p>
<p>{{status}}</p>
</article>
{{/each}}
33 changes: 33 additions & 0 deletions src/lib/_imports/components/c-tag-list.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@import url("./c-tag.css");

/* Base */

.c-tag-list {
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 0.75em;
align-items: center;

font-size: var(--global-font-size--small);
}

/* To let lists not require `c-tag` on every child */
ul.c-tag-list--auto-item > li,
ul.c-tag-list--auto-text > li > *,
ul.c-tag-list--auto-link > li > a, /* alias for `c-tag-list--auto-text` */
ol.c-tag-list--auto-item > li,
ol.c-tag-list--auto-text > li > *,
ol.c-tag-list--auto-link > li > a, /* alias for `c-tag-list--auto-text` */
nav.c-tag-list > a {
@extend .c-tag;
}

/* To overwrite browser styles */
ul.c-tag-list,
ol.c-tag-list {
list-style: none;

padding-inline-start: 0;
margin-block: 0;
}
23 changes: 23 additions & 0 deletions src/lib/_imports/components/c-tag-list/c-tag-list--nav.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<dl>
<dt>Link <small>(<code>c-tag</code> class not necessary)</small></dt>
<dd>
<nav class="c-tag-list">
{{#each tags}}
<a href="#">{{this}}</a>
{{/each}}
</nav>
</dd>
</dl>

{{#> @misuse }}
<dl>
<dt>Nav without Links</dt>
<dd>
<nav class="c-tag-list">
{{#each tags}}
<span>{{this}}</span>
{{/each}}
</nav>
</dd>
</dl>
{{/ @misuse }}
76 changes: 76 additions & 0 deletions src/lib/_imports/components/c-tag-list/c-tag-list--ol.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<h2>Manual Tags <small>(add <code>c-tag</code> class to each tag)</small></h2>
<dl>
<dt>Item <small>(no child)</small></dt>
<dd>
<ol class="c-tag-list">
{{#each tags}}
<li class="c-tag">{{this}}</li>
{{/each}}
</ol>
</dd>
<dt>Text <small>within Item</small></dt>
<dd>
<ol class="c-tag-list">
{{#each tags}}
<li>
<span class="c-tag">{{this}}</span>
</li>
{{/each}}
</ol>
</dd>
<dt>Link <small>within Item</small></dt>
<dd>
<ol class="c-tag-list">
{{#each tags}}
<li>
<a class="c-tag" href="#">{{this}}</a>
</li>
{{/each}}
</ol>
</dd>
</dl>

<h2>Automatic Tags <small>(add matching <code>auto</code> class to list)</small></h2>
<dl>
<dt>Item <small>(no child)</small></dt>
<dd>
<ol class="c-tag-list c-tag-list--auto-item">
{{#each tags}}
<li>{{this}}</li>
{{/each}}
</ol>
</dd>
<dt>Text <small>within Item</small></dt>
<dd>
<ol class="c-tag-list c-tag-list--auto-text">
{{#each tags}}
<li>
<span>{{this}}</span>
</li>
{{/each}}
</ol>
</dd>
<dt>Link <small>within Item</small></dt>
<dd>
<ol class="c-tag-list c-tag-list--auto-link">
{{#each tags}}
<li>
<a class="c-tag" href="#">{{this}}</a>
</li>
{{/each}}
</ol>
</dd>
</dl>

{{#> @misuse }}
<dl>
<dt>No Explicit Tag Elements & No Auto Class</dt>
<dd>
<ol class="c-tag-list">
{{#each tags}}
<li>{{this}}</li>
{{/each}}
</ol>
</dd>
</dl>
{{/ @misuse }}
76 changes: 76 additions & 0 deletions src/lib/_imports/components/c-tag-list/c-tag-list--ul.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<h2>Manual Tags <small>(add <code>c-tag</code> class to each tag)</small></h2>
<dl>
<dt>Item <small>(no child)</small></dt>
<dd>
<ul class="c-tag-list">
{{#each tags}}
<li class="c-tag">{{this}}</li>
{{/each}}
</ul>
</dd>
<dt>Text <small>within Item</small></dt>
<dd>
<ul class="c-tag-list">
{{#each tags}}
<li>
<span class="c-tag">{{this}}</span>
</li>
{{/each}}
</ul>
</dd>
<dt>Link <small>within Item</small></dt>
<dd>
<ul class="c-tag-list">
{{#each tags}}
<li>
<a class="c-tag" href="#">{{this}}</a>
</li>
{{/each}}
</ul>
</dd>
</dl>

<h2>Automatic Tags <small>(add matching <code>auto</code> class to list)</small></h2>
<dl>
<dt>Item <small>(no child)</small></dt>
<dd>
<ul class="c-tag-list c-tag-list--auto-item">
{{#each tags}}
<li>{{this}}</li>
{{/each}}
</ul>
</dd>
<dt>Text <small>within Item</small></dt>
<dd>
<ul class="c-tag-list c-tag-list--auto-text">
{{#each tags}}
<li>
<span>{{this}}</span>
</li>
{{/each}}
</ul>
</dd>
<dt>Link <small>within Item</small></dt>
<dd>
<ul class="c-tag-list c-tag-list--auto-link">
{{#each tags}}
<li>
<a class="c-tag" href="#">{{this}}</a>
</li>
{{/each}}
</ul>
</dd>
</dl>

{{#> @misuse }}
<dl>
<dt>No Explicit Tag Elements & No Auto Class</dt>
<dd>
<ul class="c-tag-list">
{{#each tags}}
<li>{{this}}</li>
{{/each}}
</ul>
</dd>
</dl>
{{/ @misuse }}
Loading