Skip to content

Commit

Permalink
Merge pull request #15 from RedHat-UX/copy-button-tweak
Browse files Browse the repository at this point in the history
docs(icons): cleaning up copy button styles and more...
  • Loading branch information
markcaron authored Nov 15, 2024
2 parents 257ef5d + cceca40 commit 0670787
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 67 deletions.
11 changes: 10 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,16 @@
</script>
</head>
<body>
<header><h1>Red Hat Icons</h1></header>
<header>
<h1>Red Hat Icons</h1>
<p>Each icon set serves a different purpose and context. <a href="https://ux.redhat.com/elements/icon/guidelines/">Read the guidelines</a>.</p>
<ul>
<li><a href="#microns">Microns</a></li>
<li><a href="#social">Social</a></li>
<li><a href="#standard">Standard</a></li>
<li><a href="#ui">UI</a></li>
</ul>
</header>
<main>
{% for id, set in iconSets %}

Expand Down
24 changes: 19 additions & 5 deletions docs/styles/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ body {
}

header,
main {
main,
footer {
margin: 0 auto;
max-width: 1330px;
}

header {
padding-block-end: var(--rh-space-2xl, 32px);
}

footer {
text-align: center;
}

section {
--rh-tooltip-max-width: 50em;
--rh-tooltip-content-padding-block-start: 0;
Expand Down Expand Up @@ -48,7 +57,7 @@ figcaption {
}

figure svg {
width: var(--rh-size-icon-03, 32px);
width: var(--rh-size-icon-01, 16px);
aspect-ratio: 1;
fill: currentcolor;
margin: var(--rh-space-lg, 16px);
Expand All @@ -58,11 +67,16 @@ figure svg {
color: var(--rh-color-interactive-blue-darker, #0066cc);
}

.microns figure svg {
width: var(--rh-size-icon-01, 16px);
.copy-icon > svg {
margin: 0 4px 0 0;
}

.ui figure > svg,
.social figure > svg {
width: var(--rh-size-icon-03, 32px);
}

.standard figure svg {
.standard figure > svg {
width: var(--rh-size-icon-06, 64px);
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@
},
"serve": {
"service": true,
"command": "eleventy --serve"
"command": "eleventy --serve",
"dependencies": [
"compile"
]
}
}
}
61 changes: 3 additions & 58 deletions src/standard/data-connections.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0670787

Please sign in to comment.