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