diff --git a/common/list/index.json-ld b/common/list/index.json-ld new file mode 100644 index 000000000..45761605d --- /dev/null +++ b/common/list/index.json-ld @@ -0,0 +1,45 @@ +{ + "@context": { + "@version": 1.1, + "dct": "http://purl.org/dc/terms/", + "title": { "@id": "dct:title", "@container": "@language" }, + "description": { "@id": "dct:description", "@container": "@language" }, + "modified": "dct:modified" + }, + "title": { + "en": "List", + "fr": "Listes" + }, + "description": { + "en": "Example of all the possible styled list variant", + "fr": "Example de toutes les possibles variantes de personnalisation de liste." + }, + "modified": "2023-03-05", + "componentName": "list", + "processing": "baseline", + "status": "stable", + "pages": { + "examples": [ + { + "title": "Lists", + "language": "en", + "path": "lists-en.html" + }, + { + "title": "Listes", + "language": "fr", + "path": "lists-fr.html" + }, + { + "title": "List group", + "language": "en", + "path": "list-group-en.html" + }, + { + "title": "Liste groupé", + "language": "fr", + "path": "list-group-fr.html" + } + ] + } +} diff --git a/common/list/list-group-en.html b/common/list/list-group-en.html new file mode 100644 index 000000000..8ca08566b --- /dev/null +++ b/common/list/list-group-en.html @@ -0,0 +1,167 @@ +--- +{ + "title": "List group", + "language": "en", + "altLangPage": "list-group-fr.html", + "breadcrumbs": [ + { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" } + ], + "dateModified": "2023-03-05" +} +--- + +
+

Basic use: Default

+

No links:

+ +

With links:

+
+ Link text + Link text (active item) + Link text +
+

Code

+
<p>No links:</p>
+<ul class="list-group">
+	<li class="list-group-item">Text</li>
+	<li class="list-group-item">Text</li>
+</ul>
+<p>With links:</p>
+<div class="list-group">
+	<a href="#" class="list-group-item">Link text</a>
+	<a href="#" class="list-group-item active">Link text (active item)</a>
+	<a href="#" class="list-group-item">Link text</a>
+</div>
+ +

Enhanced use

+

Colours

+

No links:

+ +

With links:

+
+ Link text + Link text + Link text + Link text +
+
+ Link text (active item) + Link text (active item) + Link text (active item) + Link text (active item) +
+

Code

+
<p>No links:</p>
+<ul class="list-group">
+	<li class="list-group-item list-group-item-success">Text</li>
+	<li class="list-group-item list-group-item-info">Text</li>
+	<li class="list-group-item list-group-item-warning">Text</li>
+	<li class="list-group-item list-group-item-danger">Text</li>
+</ul>
+<p>With links:</p>
+<div class="list-group">
+	<a href="#" class="list-group-item list-group-item-success">Link text</a>
+	<a href="#" class="list-group-item list-group-item-info">Link text</a>
+	<a href="#" class="list-group-item list-group-item-warning">Link text</a>
+	<a href="#" class="list-group-item list-group-item-danger">Link text</a>
+</div>
+<div class="list-group">
+	<a href="#" class="list-group-item list-group-item-success active">Link text (active item)</a>
+	<a href="#" class="list-group-item list-group-item-info active">Link text (active item)</a>
+	<a href="#" class="list-group-item list-group-item-warning active">Link text (active item)</a>
+	<a href="#" class="list-group-item list-group-item-danger active">Link text (active item)</a>
+</div>
+ +

Badges

+
+

No links:

+ +

With links:

+
+ 14 Link text + 2 Link text (active item) + 5 Link text +
+
+

Code

+
<div class="panel-body">
+	<p>No links:</p>
+	<ul class="list-group">
+		<li class="list-group-item"><span class="badge">14</span> Text</li>
+		<li class="list-group-item"><span class="badge">2</span> Text</li>
+	</ul>
+	<p>With links:</p>
+	<div class="list-group">
+		<a href="#" class="list-group-item"><span class="badge">14</span> Link text</a>
+		<a href="#" class="list-group-item active"><span class="badge">2</span> Link text (active item)</a>
+		<a href="#" class="list-group-item"><span class="badge">5</span> Link text</a>
+	</div>
+</div>
+ +

Complex content

+

The following content are not compliant to accessibility and they are there only for example purpose. Skip this non-accessible content section.

+

No links:

+ +

With links:

+
+ +

Heading

+

Content

+
+ +

Heading

+

Content

+
+ +

Heading

+

Content

+
+
+

Code

+
<p>No links:</p>
+<ul class="list-group">
+	<li class="list-group-item">
+		<h3 class="list-group-item-heading">Heading</h3>
+		<p class="list-group-item-text">Content</p>
+	</li>
+	<li class="list-group-item">
+		<h3 class="list-group-item-heading">Heading</h3>
+		<p class="list-group-item-text">Content</p>
+	</li>
+</ul>
+<p>With links:</p>
+<div class="list-group">
+	<a href="#" class="list-group-item">
+		<h3 class="list-group-item-heading">Heading</h3>
+		<p class="list-group-item-text">Content</p>
+	</a>
+	<a href="#" class="list-group-item active">
+		<h3 class="list-group-item-heading">Heading</h3>
+		<p class="list-group-item-text">Content</p>
+	</a>
+	<a href="#" class="list-group-item">
+		<h3 class="list-group-item-heading">Heading</h3>
+		<p class="list-group-item-text">Content</p>
+	</a>
+</div>
+
diff --git a/common/list/list-group-fr.html b/common/list/list-group-fr.html new file mode 100644 index 000000000..88481a939 --- /dev/null +++ b/common/list/list-group-fr.html @@ -0,0 +1,170 @@ +--- +{ + "title": "Liste groupé", + "language": "fr", + "altLangPage": "list-group-en.html", + "breadcrumbs": [ + { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-fr.html" } + ], + "dateModified": "2023-03-05" +} +--- + +
+

Cette page nécessite une traduction.

+
+

Basic use: Default

+

No links:

+ +

With links:

+
+ Link text + Link text (active item) + Link text +
+

Code

+
<p>No links:</p>
+	<ul class="list-group">
+		<li class="list-group-item">Text</li>
+		<li class="list-group-item">Text</li>
+	</ul>
+	<p>With links:</p>
+	<div class="list-group">
+		<a href="#" class="list-group-item">Link text</a>
+		<a href="#" class="list-group-item active">Link text (active item)</a>
+		<a href="#" class="list-group-item">Link text</a>
+	</div>
+ +

Enhanced use

+

Colours

+

No links:

+ +

With links:

+
+ Link text + Link text + Link text + Link text +
+
+ Link text (active item) + Link text (active item) + Link text (active item) + Link text (active item) +
+

Code

+
<p>No links:</p>
+	<ul class="list-group">
+		<li class="list-group-item list-group-item-success">Text</li>
+		<li class="list-group-item list-group-item-info">Text</li>
+		<li class="list-group-item list-group-item-warning">Text</li>
+		<li class="list-group-item list-group-item-danger">Text</li>
+	</ul>
+	<p>With links:</p>
+	<div class="list-group">
+		<a href="#" class="list-group-item list-group-item-success">Link text</a>
+		<a href="#" class="list-group-item list-group-item-info">Link text</a>
+		<a href="#" class="list-group-item list-group-item-warning">Link text</a>
+		<a href="#" class="list-group-item list-group-item-danger">Link text</a>
+	</div>
+	<div class="list-group">
+		<a href="#" class="list-group-item list-group-item-success active">Link text (active item)</a>
+		<a href="#" class="list-group-item list-group-item-info active">Link text (active item)</a>
+		<a href="#" class="list-group-item list-group-item-warning active">Link text (active item)</a>
+		<a href="#" class="list-group-item list-group-item-danger active">Link text (active item)</a>
+	</div>
+ +

Badges

+
+

No links:

+ +

With links:

+ +
+

Code

+
<div class="panel-body">
+		<p>No links:</p>
+		<ul class="list-group">
+			<li class="list-group-item"><span class="badge">14</span> Text</li>
+			<li class="list-group-item"><span class="badge">2</span> Text</li>
+		</ul>
+		<p>With links:</p>
+		<div class="list-group">
+			<a href="#" class="list-group-item"><span class="badge">14</span> Link text</a>
+			<a href="#" class="list-group-item active"><span class="badge">2</span> Link text (active item)</a>
+			<a href="#" class="list-group-item"><span class="badge">5</span> Link text</a>
+		</div>
+	</div>
+ +

Complex content

+

The following content are not compliant to accessibility and they are there only for example purpose. Skip this non-accessible content section.

+

No links:

+ +

With links:

+
+ +

Heading

+

Content

+
+ +

Heading

+

Content

+
+ +

Heading

+

Content

+
+
+

Code

+
<p>No links:</p>
+	<ul class="list-group">
+		<li class="list-group-item">
+			<h3 class="list-group-item-heading">Heading</h3>
+			<p class="list-group-item-text">Content</p>
+		</li>
+		<li class="list-group-item">
+			<h3 class="list-group-item-heading">Heading</h3>
+			<p class="list-group-item-text">Content</p>
+		</li>
+	</ul>
+	<p>With links:</p>
+	<div class="list-group">
+		<a href="#" class="list-group-item">
+			<h3 class="list-group-item-heading">Heading</h3>
+			<p class="list-group-item-text">Content</p>
+		</a>
+		<a href="#" class="list-group-item active">
+			<h3 class="list-group-item-heading">Heading</h3>
+			<p class="list-group-item-text">Content</p>
+		</a>
+		<a href="#" class="list-group-item">
+			<h3 class="list-group-item-heading">Heading</h3>
+			<p class="list-group-item-text">Content</p>
+		</a>
+	</div>
+
+
diff --git a/common/list/lists-en.html b/common/list/lists-en.html new file mode 100644 index 000000000..f7e586b80 --- /dev/null +++ b/common/list/lists-en.html @@ -0,0 +1,385 @@ +--- +{ + "title": "Lists", + "language": "en", + "altLangPage": "lists-fr.html", + "breadcrumbs": [ + { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" } + ], + "dateModified": "2023-03-05" +} +--- +
+ +

Unordered lists

+ +

Code

+
<ul>
+	<li>...</li>
+	</ul>
+
+ +

Ordered lists

+
    +
  1. List item 1
  2. +
  3. List item 2
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+<li>...</li>
+</ol>
+ +

Definition lists

+
+
Term 1
+
Definition of term 1
+
Term 2
+
Definition of term 2
+
+
// Data list
+<dl>
+
+// Data term:
+<dt>...</dt>
+
+// Data definition:
+<dd>...</dd>
+</dl>
+ +

Unstyled lists

+

Unstyled list:

+ +

Unstyled nested list:

+ +

Code

+
//Unstyled list:
+<ul class="list-unstyled">
+	<li>...</li>
+</ul>
+
+//Unstyled nested list:
+<ul>
+	<li>List item 1
+		<ul class="lst-none">
+			<li>List item 1a</li>
+			<li>List item 1b</li>
+		</ul>
+	</li>
+</ul>
+ +

Numbered lists

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+<li>...
+	<ol class="lst-num">
+	<li>...</li>
+	</ol>
+</li>
+<li>...</li>
+</ol>
+ +

Alpha lists − Lower alpha

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+<li>...
+	<ol class="lst-lwr-alph">
+	<li>...</li>
+	</ol>
+</li>
+<li>...</li>
+</ol>
+ +

Alpha lists − Upper alpha

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol class="lst-upr-alph">
+<li>...</li>
+</ol>
+ +

Roman numeral − Lower Roman

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+<li>...
+	<ol class="lst-lwr-rmn">
+	<li>...</li>
+	</ol>
+</li>
+<li>...</li>
+</ol>
+ +

Roman numeral − Upper Roman

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol class="lst-upr-rmn">
+	<li>...</li>
+</ol>
+ +

List inline

+ +

Code

+
<ol class="list-inline">
+	<li>...</li>
+</ol>
+ +

Spacing lists - spaces added

+ +

Code

+
// Spaced list:
+<ul class="lst-spcd">
+<li>List item 1</li>
+<li>List item 2</li>
+<li>List item 3</li>
+</ul>
+ +

Definition lists − horizontal layout

+
+
Term 1
+
Definition of term 1
+
Term 2
+
Definition of term 2
+
+

With no border

+
+
Term 1
+
Definition of term 1
+
Term 2
+
Definition of term 2
+
+

Code

+
<dl class="dl-horizontal">
+<dt>...</dt>
+<dd>...</dd>
+</dl>
+//With no border
+<dl class="dl-horizontal brdr-0">
+<dt>...</dt>
+<dd>...</dd>
+</dl>
+ +

List columns

+ +

Appearance − Two columns

+ +

code

+
<ul class="colcount-sm-2">
+<li>Item 1</li>
+...
+<li>Item 8</li>
+</ul>
+ +

Appearance − Three columns

+ +

code

+
<ul class="colcount-sm-3">
+<li>Item 1</li>
+...
+<li>Item 8</li>
+</ul>
+ +

Appearance − Four columns

+ +
<ul class="colcount-sm-4">
+<li>Item 1</li>
+...
+<li>Item 8</li>
+</ul>
+ +

Appearance − Multi-class

+ +
<ul class="colcount-sm-2 colcount-md-3 colcount-lg-4">
+<li>Item 1</li>
+...
+<li>Item 8</li>
+</ul>
+ +

Responsive list .list-responsive

+ +

code

+
<ul class="list-responsive">
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+</ul>
+
+ +

List - Additional styles - GCWeb theme V5

+

List double spaced .lst-spcd-2

+ +

code

+
<ul class="lst-spcd-2">
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+</ul>
+ +

Lists in columns .list-col-[breakpoint]-[columns]

+ +

code

+
<ul class="list-col-xs-1 list-col-sm-2 list-col-md-3 list-col-lg-4">
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+<li>Item</li>
+</ul>
+
diff --git a/common/list/lists-fr.html b/common/list/lists-fr.html new file mode 100644 index 000000000..d6d36e3d5 --- /dev/null +++ b/common/list/lists-fr.html @@ -0,0 +1,388 @@ +--- +{ + "title": "Listes", + "language": "fr", + "altLangPage": "lists-en.html", + "breadcrumbs": [ + { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" } + ], + "dateModified": "2023-03-05" +} +--- +
+ +

Cette page nécessite une traduction.

+
+

Unordered lists

+ +

Code

+
<ul>
+		<li>...</li>
+		</ul>
+	
+ +

Ordered lists

+
    +
  1. List item 1
  2. +
  3. List item 2
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+	<li>...</li>
+	</ol>
+ +

Definition lists

+
+
Term 1
+
Definition of term 1
+
Term 2
+
Definition of term 2
+
+
// Data list
+	<dl>
+
+	// Data term:
+	<dt>...</dt>
+
+	// Data definition:
+	<dd>...</dd>
+	</dl>
+ +

Unstyled lists

+

Unstyled list:

+ +

Unstyled nested list:

+ +

Code

+
//Unstyled list:
+	<ul class="list-unstyled">
+		<li>...</li>
+	</ul>
+
+	//Unstyled nested list:
+	<ul>
+		<li>List item 1
+			<ul class="lst-none">
+				<li>List item 1a</li>
+				<li>List item 1b</li>
+			</ul>
+		</li>
+	</ul>
+ +

Numbered lists

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+	<li>...
+		<ol class="lst-num">
+		<li>...</li>
+		</ol>
+	</li>
+	<li>...</li>
+	</ol>
+ +

Alpha lists − Lower alpha

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+	<li>...
+		<ol class="lst-lwr-alph">
+		<li>...</li>
+		</ol>
+	</li>
+	<li>...</li>
+	</ol>
+ +

Alpha lists − Upper alpha

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol class="lst-upr-alph">
+	<li>...</li>
+	</ol>
+ +

Roman numeral − Lower Roman

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol>
+	<li>...
+		<ol class="lst-lwr-rmn">
+		<li>...</li>
+		</ol>
+	</li>
+	<li>...</li>
+	</ol>
+ +

Roman numeral − Upper Roman

+
    +
  1. List item 1
  2. +
  3. + List item 2 +
      +
    1. List item 2a
    2. +
    3. List item 2b
    4. +
    +
  4. +
  5. List item 3
  6. +
+

Code

+
<ol class="lst-upr-rmn">
+		<li>...</li>
+	</ol>
+ +

List inline

+ +

Code

+
<ol class="list-inline">
+		<li>...</li>
+	</ol>
+ +

Spacing lists - spaces added

+ +

Code

+
// Spaced list:
+	<ul class="lst-spcd">
+	<li>List item 1</li>
+	<li>List item 2</li>
+	<li>List item 3</li>
+	</ul>
+ +

Definition lists − horizontal layout

+
+
Term 1
+
Definition of term 1
+
Term 2
+
Definition of term 2
+
+

With no border

+
+
Term 1
+
Definition of term 1
+
Term 2
+
Definition of term 2
+
+

Code

+
<dl class="dl-horizontal">
+	<dt>...</dt>
+	<dd>...</dd>
+	</dl>
+	//With no border
+	<dl class="dl-horizontal brdr-0">
+	<dt>...</dt>
+	<dd>...</dd>
+	</dl>
+ +

List columns

+ +

Appearance − Two columns

+ +

code

+
<ul class="colcount-sm-2">
+	<li>Item 1</li>
+	...
+	<li>Item 8</li>
+	</ul>
+ +

Appearance − Three columns

+ +

code

+
<ul class="colcount-sm-3">
+	<li>Item 1</li>
+	...
+	<li>Item 8</li>
+	</ul>
+ +

Appearance − Four columns

+ +
<ul class="colcount-sm-4">
+	<li>Item 1</li>
+	...
+	<li>Item 8</li>
+	</ul>
+ +

Appearance − Multi-class

+ +
<ul class="colcount-sm-2 colcount-md-3 colcount-lg-4">
+	<li>Item 1</li>
+	...
+	<li>Item 8</li>
+	</ul>
+ +

Responsive list .list-responsive

+ +

code

+
<ul class="list-responsive">
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	</ul>
+	
+ +

List - Additional styles - GCWeb theme V5

+

List double spaced .lst-spcd-2

+ +

code

+
<ul class="lst-spcd-2">
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	</ul>
+ +

Lists in columns .list-col-[breakpoint]-[columns]

+ +

code

+
<ul class="list-col-xs-1 list-col-sm-2 list-col-md-3 list-col-lg-4">
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	<li>Item</li>
+	</ul>
+	
+