Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix: change spec badges
Browse files Browse the repository at this point in the history
- remove the left border from inline spec badges
- add additional left and right padding

fix #691
  • Loading branch information
Schalk Neethling committed Jul 13, 2021
1 parent 76e32a3 commit b64194f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
17 changes: 1 addition & 16 deletions sass/atoms/_meta.scss
Expand Up @@ -5,28 +5,13 @@
background-color: $mdn-neutral100;
border-radius: 6px;
margin-right: math.div($base-spacing, 4);
padding: 0 math.div($base-spacing, 4);
padding: 0 math.div($base-spacing, 2);

a {
color: $mdn-neutral100;
}
}

.html-version,
.optional,
.readonly {
border-left: 5px solid $mdn-neutral600;
}

.optional,
.readonly {
border-color: $mdn-neutral100;
}

.html-version {
border-color: $mdn-green600;
}

/* Specification badges */
.spec-living,
.spec-standard {
Expand Down
29 changes: 29 additions & 0 deletions styleguide/content/meta/_index.md
@@ -0,0 +1,29 @@
---
title: Meta data element styles - MDN Minimalist
keywords: forms, form elements, mdn minimalist, mdn, sass, library
description: The MDN Web Docs meta data element styles
---

## Meta data element styles

### Read only badge (inline)

<span title="This value may not be changed." class="badge inline readonly">Read only </span>

#### Code

```html
<span title="This value may not be changed." class="badge inline readonly"
>Read only
</span>
```

### Optional badge (inline)

<span class="badge inline optional">Optional</span>

#### Code

```html
<span class="badge inline optional">Optional</span>
```
3 changes: 3 additions & 0 deletions styleguide/layouts/partials/main-nav.html
Expand Up @@ -14,6 +14,9 @@
<li>
<a href="/forms/">Forms</a>
</li>
<li>
<a href="/meta/">Metadata</a>
</li>
<li>
<a href="/tables/">Tables</a>
</li>
Expand Down

0 comments on commit b64194f

Please sign in to comment.