-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version with icon, missing links and the end of the icon page
- Loading branch information
1 parent
b52d72b
commit ca6489b
Showing
10 changed files
with
262 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
[class*="-icon"] { | ||
width: 1em; | ||
height: 1em; | ||
fill: currentcolor; | ||
} | ||
|
||
@each $icon-size in $ouds-icon-sizes { | ||
.hxl-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-heading-xlarge) if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.hl-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-heading-large) if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.hm-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-heading-medium) if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.hs-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-heading-small) if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.bl-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-body-large) if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.bm-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-body-medium) if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.bs-#{$icon-size}-icon { | ||
font-size: var(--#{$prefix}icon-#{$icon-size}-with-body-small) if($enable-important-utilities, !important, null); | ||
} | ||
} | ||
|
||
.lxl-short-icon { | ||
font-size: $ouds-size-icon-with-label-xlarge-size-short if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.lxl-medium-icon { | ||
font-size: $ouds-size-icon-with-label-xlarge-size-medium if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.lxl-tall-icon { | ||
font-size: $ouds-size-icon-with-label-xlarge-size-tall if($enable-important-utilities, !important, null); | ||
} | ||
|
||
// TODO LM: Why is there 2 more sizes for label-large ? | ||
.ll-shorter-icon { | ||
font-size: $ouds-size-icon-with-label-large-size-shorter if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ll-short-icon { | ||
font-size: $ouds-size-icon-with-label-large-size-short if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ll-medium-icon { | ||
font-size: $ouds-size-icon-with-label-large-size-medium if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ll-tall-icon { | ||
font-size: $ouds-size-icon-with-label-large-size-tall if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ll-taller-icon { | ||
font-size: $ouds-size-icon-with-label-large-size-taller if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.lm-short-icon { | ||
font-size: $ouds-size-icon-with-label-medium-size-short if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.lm-medium-icon { | ||
font-size: $ouds-size-icon-with-label-medium-size-medium if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.lm-tall-icon { | ||
font-size: $ouds-size-icon-with-label-medium-size-tall if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ls-short-icon { | ||
font-size: $ouds-size-icon-with-label-small-size-short if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ls-medium-icon { | ||
font-size: $ouds-size-icon-with-label-small-size-medium if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.ls-tall-icon { | ||
font-size: $ouds-size-icon-with-label-small-size-tall if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-shortest-icon { | ||
font-size: $ouds-size-icon-decorative-shortest if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-shorter-icon { | ||
font-size: $ouds-size-icon-decorative-shorter if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-short-icon { | ||
font-size: $ouds-size-icon-decorative-short if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-medium-icon { | ||
font-size: $ouds-size-icon-decorative-medium if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-tall-icon { | ||
font-size: $ouds-size-icon-decorative-tall if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-taller-icon { | ||
font-size: $ouds-size-icon-decorative-taller if($enable-important-utilities, !important, null); | ||
} | ||
|
||
.decorative-tallest-icon { | ||
font-size: $ouds-size-icon-decorative-tallest if($enable-important-utilities, !important, null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
--- | ||
layout: docs | ||
title: Icon link | ||
description: Quickly see the icon sizes you should use with a specific typography. | ||
group: helpers | ||
aliases: | ||
- "/docs/helpers/icon-link/" | ||
toc: true | ||
--- | ||
|
||
## Core concept | ||
|
||
Free to use how you want with img, svg or icon font | ||
Inside or outside of the text element | ||
|
||
## Displays | ||
|
||
You should not use any icon with our `.display-*` font sizes, because we prefer to keep the place for the text. | ||
|
||
## Headings | ||
|
||
{{< example >}} | ||
<h1> <!-- h1 uses heading-xlarge font reference so all related classes as `.h1`, `.fs-hxl`, etc... --> | ||
<svg class="hxl-tall-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H1 with tall icon | ||
</h1> | ||
<h1> <!-- h1 uses heading-xlarge font reference so all related classes as `.h1`, `.fs-hxl`, etc... --> | ||
<svg class="hxl-medium-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H1 with medium icon | ||
</h1> | ||
<h1> <!-- h1 uses heading-xlarge font reference so all related classes as `.h1`, `.fs-hxl`, etc... --> | ||
<svg class="hxl-short-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H1 with short icon | ||
</h1> | ||
|
||
<hr> | ||
|
||
<h2> <!-- h2 uses heading-large font reference so all related classes as `.h2`, `.fs-hl`, etc... --> | ||
<svg class="hl-tall-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H2 with tall icon | ||
</h2> | ||
<h2> <!-- h2 uses heading-large font reference so all related classes as `.h2`, `.fs-hl`, etc... --> | ||
<svg class="hl-medium-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H2 with medium icon | ||
</h2> | ||
<h2> <!-- h2 uses heading-large font reference so all related classes as `.h2`, `.fs-hl`, etc... --> | ||
<svg class="hl-short-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H2 with short icon | ||
</h2> | ||
|
||
<hr> | ||
|
||
<h3> <!-- h3 uses heading-medium font reference so all related classes as `.h3`, `.fs-hm`, etc... --> | ||
<svg class="hm-tall-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H3 with tall icon | ||
</h3> | ||
<h3> <!-- h3 uses heading-medium font reference so all related classes as `.h3`, `.fs-hm`, etc... --> | ||
<svg class="hm-medium-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H3 with medium icon | ||
</h3> | ||
<h3> <!-- h3 uses heading-medium font reference so all related classes as `.h3`, `.fs-hm`, etc... --> | ||
<svg class="hm-short-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H3 with short icon | ||
</h3> | ||
|
||
<hr> | ||
|
||
<h4> <!-- h4 uses heading-small font reference so all related classes as `.h4`, `.fs-hs`, etc... --> | ||
<svg class="hs-tall-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H4 with tall icon | ||
</h4> | ||
<h4> <!-- h4 uses heading-small font reference so all related classes as `.h4`, `.fs-hs`, etc... --> | ||
<svg class="hs-medium-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H4 with medium icon | ||
</h4> | ||
<h4> <!-- h4 uses heading-small font reference so all related classes as `.h4`, `.fs-hs`, etc... --> | ||
<svg class="hs-short-icon me-shortest text-info" width="1rem" height="1rem" fill="currentColor" aria-hidden="true"> | ||
<use xlink:href="/docs/{{< param docs_version >}}/assets/img/ouds-web-sprite.svg#vector"/> | ||
</svg> | ||
H4 with short icon | ||
</h4> | ||
{{< /example >}} | ||
|
||
## Regular texts | ||
|
||
{{< example >}} | ||
|
||
{{< /example >}} | ||
|
||
<!-- TODO LM: Should we keep those ? --> | ||
|
||
## Labels | ||
|
||
{{< example >}} | ||
|
||
{{< /example >}} | ||
|
||
## Decorative | ||
|
||
{{< example >}} | ||
|
||
{{< /example >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.