pull/779/head^2
Mattia Iavarone 5 years ago
parent 968d181af4
commit aa95d19902
  1. 1
      docs/_layouts/main.html
  2. 13
      docs/_layouts/page.html
  3. 59
      docs/css/carbon.css

@ -5,6 +5,7 @@
<title>{{ site.title }}{% if page.title %} | {{ page.title }}{% endif %}</title>
<link rel="stylesheet" href="{{ site.baseurl }}/css/main.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/fonts_responsive.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/carbon.css">
</head>
<body>
{% include header.html %}

@ -2,10 +2,15 @@
layout: main
---
<div class="page-header border-bottom has-divider pb-3">
<h1 class="d-inline-block mt-1 mb-0 mr-2">{{ page.title }}</h1>
{% if page.description %}<span class="mr-2">{{ page.description }}</span>{% endif %}
<span><a href="https://github.com/{{ site.author.github }}/{{ site.github_repo }}/edit/{{ site.github_branch }}/docs/{{ page.path }}">[edit this page]</a></span>
<div class="page-header border-bottom has-divider pb-3 d-flex flex-column flex-sm-row flex-nowrap align-items-start">
<div class="flex-grow-1">
<h1 class="d-inline-block mt-1 mb-0 mr-2">{{ page.title }}</h1>
{% if page.description %}<div><span class="mr-2">{{ page.description }}</span></div>{% endif %}
<div><span><a href="https://github.com/{{ site.author.github }}/{{ site.github_repo }}/edit/{{ site.github_branch }}/docs/{{ page.path }}">[edit this page]</a></span></div>
</div>
<div class="flex-shrink-0 pt-2 pl-sm-2">
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CE7DL27Y&placement=natario1githubio" id="_carbonads_js"></script>
</div>
</div>
<div class="page my-4">
{{ content }}

@ -0,0 +1,59 @@
#carbonads {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#carbonads {
display: flex;
max-width: 330px;
background-color: hsl(0, 0%, 98%);
box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
}
#carbonads a {
color: inherit;
text-decoration: none;
}
#carbonads a:hover {
color: inherit;
}
#carbonads span {
position: relative;
display: block;
overflow: hidden;
}
#carbonads .carbon-wrap {
display: flex;
}
.carbon-img {
display: block;
margin: 0;
line-height: 1;
}
.carbon-img img {
display: block;
}
.carbon-text {
font-size: 13px;
padding: 10px;
line-height: 1.5;
text-align: left;
}
.carbon-poweredby {
display: block;
padding: 8px 10px;
background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
text-align: center;
text-transform: uppercase;
letter-spacing: .5px;
font-weight: 600;
font-size: 9px;
line-height: 1;
}
Loading…
Cancel
Save