Implement FrostFS design version

Signed-off-by: Mikhail Petrov <m.petrov@yadro.com>
This commit is contained in:
Mike Petrov 2022-12-23 13:28:30 +03:00
parent dd500e1b2b
commit 72d06db4e8
23 changed files with 76537 additions and 84 deletions

View file

@ -1,3 +1,27 @@
@font-face {
font-family: "WorkSans";
font-style: normal;
font-weight: normal;
src: url(../fonts/WorkSans-Regular.eot);
src: url(../fonts/WorkSans-Regular.eot?#iefix) format("embedded-opentype"), url(../fonts/WorkSans-Regular.woff) format("woff"), url(../fonts/WorkSans-Regular.ttf) format("truetype"), url(../fonts/WorkSans-Regular.svg) format("svg")
}
@font-face {
font-family: "WorkSans";
font-style: normal;
font-weight: bold;
src: url(../fonts/WorkSans-Bold.eot);
src: url(../fonts/WorkSans-Bold.eot?#iefix) format("embedded-opentype"), url(../fonts/WorkSans-Bold.woff) format("woff"), url(../fonts/WorkSans-Bold.ttf) format("truetype"), url(../fonts/WorkSans-Bold.svg) format("svg")
}
@font-face {
font-family: "WorkSans";
font-style: normal;
font-weight: 700;
src: url(../fonts/WorkSans-SemiBold.eot);
src: url(../fonts/WorkSans-SemiBold.eot?#iefix) format("embedded-opentype"), url(../fonts/WorkSans-SemiBold.woff) format("woff"), url(../fonts/WorkSans-SemiBold.ttf) format("truetype"), url(../fonts/WorkSans-SemiBold.svg) format("svg")
}
body { body {
line-height: 1.5; line-height: 1.5;
font-family: var(--font-family), sans-serif; font-family: var(--font-family), sans-serif;
@ -193,6 +217,7 @@ select:focus {
.section-sm { .section-sm {
padding-top: 60px; padding-top: 60px;
padding-bottom: 60px; padding-bottom: 60px;
background: #fff;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
@ -244,11 +269,12 @@ pre {
} }
.bg-primary { .bg-primary {
background: var(--primary-color) !important; background: var(--bg-color) !important;
} }
.bg-white { .bg-white {
background-color: var(--white-color) !important; background-color: var(--white-color) !important;
font-weight: 400;
} }
.bg-light { .bg-light {
@ -276,7 +302,11 @@ pre {
} }
.navbar { .navbar {
padding: 0; background: #fff;
}
.navbar img {
height: 34px;
} }
.navbar-dark .navbar-toggler-icon { .navbar-dark .navbar-toggler-icon {
@ -289,15 +319,17 @@ pre {
} }
} }
.navbar-brand {
padding: 0;
}
.navbar-brand img { .navbar-brand img {
max-width: 100px;
margin-bottom: 0; margin-bottom: 0;
} }
.navbar .nav-item .nav-link { .navbar .nav-item .nav-link {
text-transform: uppercase; padding: 0.5rem 1rem !important;
padding: 10px 15px !important; font-size: 16px;
font-size: 15px;
} }
.navbar .dropdown:hover .dropdown-menu { .navbar .dropdown:hover .dropdown-menu {
@ -395,19 +427,28 @@ pre {
.banner p { .banner p {
font-size: 20px; font-size: 20px;
opacity: .8; }
.ti-github,
.ti-twitter-alt {
font-size: 20px;
} }
.banner .nav-link.text-dark { .banner .nav-link.text-dark {
color: var(--white-color) !important; color: var(--dark-color) !important;
} }
.banner .nav-link.text-dark:hover { .banner .nav-link.text-dark:hover {
color: var(--white-color) !important; color: var(--dark-color) !important;
} }
.banner .navbar-brand { .banner .navbar-brand {
color: var(--white-color) !important; color: var(--dark-color) !important;
}
.copyright-container {
color: #939b9f;
font-weight: 600;
} }
/* search */ /* search */
@ -498,10 +539,12 @@ pre {
border-radius: 25px; border-radius: 25px;
border: 0; border: 0;
padding: 0 20px; padding: 0 20px;
border: 1px solid #ced4da;
border-radius: 0;
} }
.form-control:focus { .form-control:focus {
border: 0; border-color: #ced4da;
box-shadow: none !important; box-shadow: none !important;
} }
@ -558,35 +601,25 @@ textarea.form-control {
height: 8px; height: 8px;
width: 8px; width: 8px;
border-radius: 50%; border-radius: 50%;
background: var(--primary-color); background: #003;
opacity: .3;
left: 0; left: 0;
top: 8px; top: 8px;
} }
.list-styled li { .list-styled li {
padding-left: 20px;
position: relative; position: relative;
} }
.list-styled li::before {
position: absolute;
content: '';
height: 8px;
width: 8px;
border-radius: 50%;
background: var(--primary-color);
opacity: .3;
left: 0;
top: 17px;
}
.post-meta { .post-meta {
color: var(--text-color); color: var(--text-color);
font-style: italic; font-style: italic;
font-size: 14px; font-size: 14px;
} }
.border-bottom {
border-bottom: 2px solid #003 !important;
}
blockquote { blockquote {
font-size: 20px !important; font-size: 20px !important;
color: var(--text-color-dark); color: var(--text-color-dark);
@ -607,6 +640,7 @@ blockquote p {
.pagination a { .pagination a {
color: var(--primary-color); color: var(--primary-color);
font-weight: 700;
} }
.pagination i { .pagination i {
@ -738,18 +772,38 @@ li.sidelist>a {
margin-bottom: 10px; margin-bottom: 10px;
display: block; display: block;
font-size: 20px; font-size: 20px;
font-weight: 700;
} }
li.sidelist li a { li.sidelist li a {
margin: 0; margin: 0;
font-weight: 700;
font-size: 18px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
}
li.sidelist li a:hover {
color: var(--primary-color);
} }
.sidelist li.sidelist { .sidelist li.sidelist {
display: block; display: block;
} }
.sidelist li.sidelist.active a { .sidelist i {
color: var(--primary-color); display: none;
}
.sidelist li.sidelist.active>a {
border-left: 5px solid var(--primary-color);
background: #e9eeed;
}
.sidelist li.sidelist.active>a>i {
display: block;
} }
.sidelist li.sidelist.active::before { .sidelist li.sidelist.active::before {
@ -804,12 +858,11 @@ code {
color: inherit; color: inherit;
text-align: right; text-align: right;
z-index: 1; z-index: 1;
left: -5px; left: -22px;
top: -5px; top: -5px;
} }
.ui-autocomplete-input { .ui-autocomplete-input {
border-bottom: 1px solid rgb(212, 212, 212) !important;
padding-right: 50px; padding-right: 50px;
} }
@ -848,7 +901,7 @@ pre code::-webkit-scrollbar-thumb {
/* content tabs */ /* content tabs */
.code-tabs { .code-tabs {
border: 1px solid #dee2e6; border: 2px solid #003;
overflow: hidden; overflow: hidden;
margin: 20px 0px; margin: 20px 0px;
} }
@ -866,9 +919,13 @@ pre code::-webkit-scrollbar-thumb {
margin-bottom: 0; margin-bottom: 0;
} }
.nav-tabs {
border-bottom: 2px solid #003;
}
.code-tabs .nav-tabs .nav-item { .code-tabs .nav-tabs .nav-item {
padding-left: 0; padding-left: 0;
border-right: 1px solid #dee2e6; border-right: 2px solid #003;
} }
.code-tabs .nav-tabs .nav-item .nav-link { .code-tabs .nav-tabs .nav-item .nav-link {
@ -876,6 +933,16 @@ pre code::-webkit-scrollbar-thumb {
font-weight: 500; font-weight: 500;
border: 0; border: 0;
margin-bottom: 0; margin-bottom: 0;
font-weight: 700;
}
table td,
table th {
font-weight: 500;
}
.nav-tabs .nav-item {
margin-bottom: -2px;
} }
.code-tabs .nav-tabs .nav-item::before { .code-tabs .nav-tabs .nav-item::before {

View file

@ -36,7 +36,7 @@ white_color = "#ffffff"
light_color = "#f8f9fa" light_color = "#f8f9fa"
# font family # font family
font_family = "lato" # Choose font family from : https://fonts.google.com/ font_family = "WorkSans" # Choose font family from : https://fonts.google.com/
# contact form action # contact form action
contact_form_action = "#" # contact form works with : https://formspree.io contact_form_action = "#" # contact form works with : https://formspree.io

View file

@ -51,5 +51,5 @@ If you need to change this default behavior, create a new file in `layouts/parti
```toml ```toml
[params] [params]
# font family # font family
font_family = "lato" # Choose font family from : https://fonts.google.com/ font_family = "WorkSans" # Choose font family from : https://fonts.google.com/
``` ```

View file

@ -51,5 +51,5 @@ If you need to change this default behavior, create a new file in `layouts/parti
```toml ```toml
[params] [params]
# font family # font family
font_family = "lato" # Choose font family from : https://fonts.google.com/ font_family = "WorkSans" # Choose font family from : https://fonts.google.com/
``` ```

View file

@ -2,7 +2,7 @@
<section class="single section-sm pb-0"> <section class="single section-sm pb-0">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-3"> <div class="col-lg-4">
<div class="sidebar"> <div class="sidebar">
<a <a
class="back-btn" class="back-btn"
@ -10,25 +10,49 @@
aria-label="back" aria-label="back"
></a> ></a>
<ul class="list-styled"> <ul class="list-styled">
{{ $currentNode := . }} {{range .Site.Home.Sections.ByWeight}} {{ if {{ $currentNode := . }}
eq .FirstSection $currentNode.FirstSection }} {{ template {{range .Site.Home.Sections.ByWeight}}
"section-tree-nav" dict "sect" . "currentnode" $currentNode}} {{ end {{ if eq .FirstSection $currentNode.FirstSection }}
}} {{ end }} {{ if .Content }} {{ if eq .Params.downloadBtn "true" {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
}} {{ end }}
{{ end }}
{{ if .Content }}
{{ if eq .Params.downloadBtn "true" }}
<div> <div>
<button class="btn btn-primary btn-block" id="generatePDF"> <button class="btn btn-primary btn-block" id="generatePDF">
Get Pdf Get Pdf
</button> </button>
</div> </div>
{{ end }} {{ end }} {{ end }}
{{ end }}
</ul> </ul>
</div> </div>
</div> </div>
<div class="col-lg-9"> <div class="col-lg-8">
<div class="p-lg-5 p-4 bg-white" id="content"> <div class="p-lg-5 p-4 bg-white" id="content">
<h2 class="mb-5" id="title">{{ .Title }}</h2> <h2 class="mb-5" id="title">{{ .Title }}</h2>
{{ if .Content }} {{ if .Content }}
<div class="content">{{.Content}}</div> <div class="content">
{{ if isset .Params "status" }}
<table>
<thead>
<tr>
<th>Status</th>
<th>Category</th>
<th>Authors</th>
</tr>
</thead>
<tbody>
<tr>
<th>{{ .Params.status }}</th>
<th>{{ .Params.category }}</th>
<th>{{ .Params.author }}</th>
</tr>
</tbody>
</table>
{{ end }}
{{.Content}}
</div>
{{ else }} {{ else }}
<div class="bg-light p-4"> <div class="bg-light p-4">
<ul class="page-list"> <ul class="page-list">
@ -85,11 +109,19 @@
<!-- /details page --> <!-- /details page -->
<!-- templates --> <!-- templates -->
{{ define "section-tree-nav" }} {{ $showvisitedlinks := .showvisitedlinks }} {{ {{ define "section-tree-nav" }}
$currentNode := .currentnode }} {{with .sect}} {{safeHTML .Params.head}} {{ {{ $showvisitedlinks := .showvisitedlinks }}
$fileUniqueID := "" }} {{ with .File }}{{ $fileUniqueID = .UniqueID }}{{ end }} {{ $currentNode := .currentnode }}
{{ $currentNodeFileUniqueID := "" }} {{ with $currentNode.File }}{{ {{with .sect}}
$currentNodeFileUniqueID = .UniqueID }}{{ end }} {{safeHTML .Params.head}}
{{ $fileUniqueID := "" }}
{{ with .File }}
{{ $fileUniqueID = .UniqueID }}
{{ end }}
{{ $currentNodeFileUniqueID := "" }}
{{ with $currentNode.File }}
{{ $currentNodeFileUniqueID = .UniqueID }}
{{ end }}
<li <li
data-nav-id="{{.Permalink}}" data-nav-id="{{.Permalink}}"
title="{{.Title}}" title="{{.Title}}"
@ -97,16 +129,30 @@ $currentNodeFileUniqueID = .UniqueID }}{{ end }}
{{if eq $fileUniqueID $currentNodeFileUniqueID}}active{{end}}" {{if eq $fileUniqueID $currentNodeFileUniqueID}}active{{end}}"
> >
<a href="{{.Permalink}}"> <a href="{{.Permalink}}">
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML {{ safeHTML .Params.Pre }}
.Params.Post}} {{ or .Params.menuTitle .LinkTitle .Title }}
{{ safeHTML .Params.Post }}
<i class="ti-angle-right"></i>
</a> </a>
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }} {{ if ne {{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
$numberOfPages 0 }} {{ if ne $numberOfPages 0 }}
<ul> <ul>
{{ range .Pages.ByWeight }} {{ if and .Params.hidden (not $.showhidden) }} {{ $currentNodePath := split $currentNode.File "/" }}
{{else}} {{ template "section-tree-nav" dict "sect" . "currentnode" {{ $folderName := (index $currentNodePath 1) }}
$currentNode }} {{end}} {{end}} {{ if gt (len (findRE ".md" $folderName)) 0 }}
{{ $folderName = "Others" }}
{{ end }}
{{ range .Pages.ByWeight }}
{{ if eq (isset .Page.Params "status") false }}
{{ if and .Params.hidden (not $.showhidden) }}
{{else}}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }}
{{end}}
{{end}}
{{end}}
</ul> </ul>
{{ end }} {{ end }}
</li> </li>
{{ end }} {{ end }} {{ end }}
{{ end }}

View file

@ -3,7 +3,7 @@
<div class="container"> <div class="container">
<div class="row align-items-center"> <div class="row align-items-center">
<div class="col-md-8 text-md-left text-center"> <div class="col-md-8 text-md-left text-center">
<p class="mb-md-0 mb-4">{{ .Site.Params.copyright | markdownify }}</p> <p class="mb-md-0 mb-4 copyright-container">{{ .Site.Params.copyright | markdownify }}</p>
</div> </div>
<div class="col-md-4 text-md-right text-center"> <div class="col-md-4 text-md-right text-center">
<ul class="list-inline"> <ul class="list-inline">

View file

@ -28,12 +28,6 @@
type="image/x-icon" type="image/x-icon"
/> />
<!-- fonts -->
<link
href="https://fonts.googleapis.com/css?family={{replace .Site.Params.font_family ' ' '+' | title}}:300,400,700&display=swap"
rel="stylesheet"
/>
<!-- PDF.js --> <!-- PDF.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.9.359/pdf.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.9.359/pdf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.js"></script>
@ -42,6 +36,7 @@
:root{ :root{
--primary-color:{{ .Site.Params.primary_color }}; --primary-color:{{ .Site.Params.primary_color }};
--body-color:{{ .Site.Params.body_color }}; --body-color:{{ .Site.Params.body_color }};
--bg-color:{{ .Site.Params.bg_color }};
--text-color:{{ .Site.Params.text_color }}; --text-color:{{ .Site.Params.text_color }};
--text-color-dark:{{ .Site.Params.text_color_dark }}; --text-color-dark:{{ .Site.Params.text_color_dark }};
--white-color:{{ .Site.Params.white_color }}; --white-color:{{ .Site.Params.white_color }};

View file

@ -1,6 +1,6 @@
<nav class="navbar navbar-expand-md {{ if .IsHome }}navbar-dark{{ else }}navbar-light{{ end }}"> <nav class="navbar navbar-expand-md {{ if .IsHome }}navbar-dark{{ else }}navbar-light{{ end }}">
<div class="container px-2 px-md-0"> <div class="container px-2 px-md-0">
<a class="navbar-brand px-2" href="{{ site.BaseURL | relLangURL }}"> <a class="navbar-brand" href="{{ site.BaseURL | relLangURL }}">
{{ $logo:= site.Params.logo }} {{ $logo:= site.Params.logo }}
{{ $logoWhite:= site.Params.logo_white }} {{ $logoWhite:= site.Params.logo_white }}
{{ if (or $logo $logoWhite) }} {{ if (or $logo $logoWhite) }}

Binary file not shown.

Binary file not shown.

26488
static/fonts/WorkSans-Bold.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Binary file not shown.