feat(aio): api label styles
- Moved info bar section in pipe template to be the first section to match other templates - Fixed label styling for type label - Added label styling for status label
This commit is contained in:

committed by
Pete Bacon Darwin

parent
a8379a46cf
commit
d27588b5fb
@ -36,29 +36,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-type-label {
|
|
||||||
|
.api-header label {
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 4px 16px;
|
padding: 4px 16px;
|
||||||
background-color: $accentblue;
|
|
||||||
display: inline;
|
display: inline;
|
||||||
margin: 0 16px;
|
font-size: 14px;
|
||||||
|
color: white;
|
||||||
@each $name, $symbol in $api-symbols {
|
margin: 0 8px 0 16px;
|
||||||
&.#{$name} {
|
font-weight: 500;
|
||||||
background: map-get($symbol, background);
|
text-transform: uppercase;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
&.api-status-label {
|
||||||
font-size: 14px;
|
background-color: $mediumgray;
|
||||||
color: white;
|
|
||||||
font-weight: 500;
|
|
||||||
text-transform: uppercase;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.api-type-label {
|
||||||
|
background-color: $accentblue;
|
||||||
|
|
||||||
|
@each $name, $symbol in $api-symbols {
|
||||||
|
&.#{$name} {
|
||||||
|
background: map-get($symbol, background);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,6 +1,7 @@
|
|||||||
/* BANNER */
|
/* BANNER */
|
||||||
|
|
||||||
.info-banner {
|
.info-banner {
|
||||||
|
margin: 16px 0;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: $white;
|
background: $white;
|
||||||
border: 1px solid rgba($lightgray, 0.5);
|
border: 1px solid rgba($lightgray, 0.5);
|
||||||
@ -17,8 +18,8 @@
|
|||||||
|
|
||||||
p, .text-body {
|
p, .text-body {
|
||||||
color: $darkgray;
|
color: $darkgray;
|
||||||
font-size: 18px;
|
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{% extends 'base.template.html' -%}
|
{% extends 'base.template.html' -%}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% include "includes/what-it-does.html" %}
|
|
||||||
{% include "includes/info-bar.html" %}
|
{% include "includes/info-bar.html" %}
|
||||||
|
{% include "includes/what-it-does.html" %}
|
||||||
{% include "includes/security-notes.html" %}
|
{% include "includes/security-notes.html" %}
|
||||||
{% include "includes/deprecation.html" %}
|
{% include "includes/deprecation.html" %}
|
||||||
{% include "includes/how-to-use.html" %}
|
{% include "includes/how-to-use.html" %}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{%- if doc.whatItDoes %}
|
{%- if doc.whatItDoes %}
|
||||||
<div class="what-it-does">
|
<div class="what-it-does info-banner">
|
||||||
{$ doc.whatItDoes | marked $}
|
{$ doc.whatItDoes | marked $}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
Reference in New Issue
Block a user