Docs: add github badge (#301)

Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
Carson Yang
2023-09-14 17:36:51 +08:00
committed by GitHub
parent 09b6365321
commit 7c1ec04380
3 changed files with 145 additions and 2 deletions

View File

@@ -23,7 +23,72 @@ div.code-toolbar {
z-index: 1;
}
p {
li p {
margin-top: 1rem !important;
margin-bottom: 1rem;
}
footer {
height: 118px !important;
}
/*
footer a:hover {
text-decoration: none !important;
}
*/
/* 徽章样式 */
.github-badge {
display: inline-block;
border-radius: 4px;
text-shadow: none;
font-size: 12px;
color: #fff;
line-height: 15px;
margin-bottom: 5px;
margin-top: 5px;
}
.github-badge .badge-subject {
display: inline-block;
background-color: #4D4D4D;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.github-badge .bg-brightgreen {
background-color: #4DC820 !important;
}
.github-badge .bg-orange {
background-color: #FFA500 !important;
}
.github-badge .bg-yellow {
background-color: #D8B024 !important;
}
.github-badge .bg-blueviolet {
background-color: #8833D7 !important;
}
.github-badge .bg-pink {
background-color: #F26BAE !important;
}
.github-badge .bg-red {
background-color: #e05d44 !important;
}
.github-badge .bg-blue {
background-color: #007EC6 !important;
}
.github-badge .bg-lightgrey {
background-color: #9F9F9F !important;
}
.github-badge .bg-grey, .github-badge .bg-gray {
background-color: #555 !important;
}
.github-badge .bg-lightgrey, .github-badge .bg-lightgray {
background-color: #9f9f9f !important;
}

View File

@@ -0,0 +1,19 @@
<!-- Footer Start -->
<footer class="shadow py-3 d-print-none">
<div class="row align-items-center" style="height: 90px">
<div class="col">
<div class="text-sm-start text-center mx-md-2">
<p class="mb-0">
{{ $yearToken := (cond (isset .Site.Params (lower "copyrightYearToken")) $.Site.Params.copyrightYearToken ":YEAR:") }}
{{ replace $.Site.Params.footer.copyright $yearToken (string (now.Format "2006")) | markdownify }}
</p>
<p class="github-badge">
<span class="badge-subject">云操作系统</span><span class="badge-value bg-blue"><a style="color:#fff" href="https://sealos.io/" target="_blank">Sealos</a></span>
<span class="badge-subject">云开发</span><span class="badge-value bg-brightgreen"><a style="color:#fff" href="https://laf.run" target="_blank">Laf</a></span>
<span class="badge-subject">云原生存储</span><span class="badge-value bg-orange"><a style="color:#fff" href="https://github.com/labring/sealfs" target="_blank">Sealfs</a></span>
</p>
</div>
</div><!--end col-->
</div><!--end row-->
</footer><!--end footer-->
<!-- End -->

View File

@@ -11943,8 +11943,67 @@ div.code-toolbar {
width: 12px;
z-index: 1; }
p {
li p {
margin-top: 1rem !important;
margin-bottom: 1rem; }
/*
footer a:hover {
text-decoration: none !important;
}
*/
/* 徽章样式 */
.github-badge {
display: inline-block;
border-radius: 4px;
text-shadow: none;
font-size: 12px;
color: #fff;
line-height: 15px;
margin-bottom: 5px;
margin-top: 5px; }
.github-badge .badge-subject {
display: inline-block;
background-color: #4D4D4D;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px; }
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px; }
.github-badge .bg-brightgreen {
background-color: #4DC820 !important; }
.github-badge .bg-orange {
background-color: #FFA500 !important; }
.github-badge .bg-yellow {
background-color: #D8B024 !important; }
.github-badge .bg-blueviolet {
background-color: #8833D7 !important; }
.github-badge .bg-pink {
background-color: #F26BAE !important; }
.github-badge .bg-red {
background-color: #e05d44 !important; }
.github-badge .bg-blue {
background-color: #007EC6 !important; }
.github-badge .bg-lightgrey {
background-color: #9F9F9F !important; }
.github-badge .bg-grey, .github-badge .bg-gray {
background-color: #555 !important; }
.github-badge .bg-lightgrey, .github-badge .bg-lightgray {
background-color: #9f9f9f !important; }
/*# sourceMappingURL=style.css.map */