Skip to content

Commit

Permalink
Add Info subtle
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo committed Mar 11, 2021
1 parent 4052a3f commit a66f1a2
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/shared/components/info-subtle/Info-subtle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{navigation}



### Markup
```code
[Base] .hw-info-subtle
Elements:
[Icon] .hw-info-subtle__icon
```

### Info subtle

```html|plain,light
<div class="hw-info-subtle">
The body text is here. Inline elements only.&nbsp;
<a class="hw-link">Click me</a>
</div>
```

## Info subtle - with icon

```html|plain,light
<div class="hw-info-subtle">
<i class="fas fa-exclamation-triangle hw-info-subtle__icon"></i>
The body text is here. Inline elements only.&nbsp;
<a class="hw-link">Click me</a>
</div>
```


28 changes: 28 additions & 0 deletions src/shared/components/info-subtle/info-subtle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Block
*/

.hw-info-subtle {
border-radius: var(--hw-border-radius);
display: flex;
align-items: center;
border-width: 1px;
border-style: solid;
border-color: var(--hw-color-primary-dark);
padding: var(--hw-spacing-small-3) var(--hw-spacing-medium-1);
@media (--large) {
padding: var(--hw-spacing-small-4) var(--hw-spacing-medium-2);
}


/**
* Elements
*/

&__icon {
margin-right: var(--hw-spacing-medium-1);
@media (--large) {
margin-right: var(--hw-spacing-medium-2);
}
}
}

0 comments on commit a66f1a2

Please sign in to comment.