Committer: root <root@fruw.org>

This commit is contained in:
root 2023-07-29 19:04:05 +05:00
parent 0ff0b4fd3f
commit 8b649389a3
6 changed files with 216 additions and 165 deletions

View File

@ -1,159 +0,0 @@
body {
color: white;
background-color: #202124;
}
::-moz-selection {
background: blue;
color: #fff;
text-shadow: none;
}
::selection {
background: red;
color: #fff;
text-shadow: none;
}
hr {
border-top: 3px dotted blue;
}
code {
background-color: lightblue;
color: black;
text-decoration: bold;
padding: 0.1em 0.2em;
}
pre {
background-color: #272822;
line-height: 1.4;
overflow-x: auto;
padding: 1em;
}
blockquote {
border-color: blue;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #ddd;
}
h1::before {
color: var(--darkMaincolor);
content: "# ";
}
h2::before {
color: var(--darkMaincolor);
content: "## ";
}
h3::before {
color: var(--darkMaincolor);
content: "### ";
}
h4::before {
color: var(--darkMaincolor);
content: "#### ";
}
h5::before {
color: var(--darkMaincolor);
content: "##### ";
}
h6::before {
color: var(--darkMaincolor);
content: "###### ";
}
a {
border-bottom: 3px solid var(--darkMaincolor);
color: inherit;
}
a:hover {
background-color: var(--darkMaincolor);
color: black;
}
.site-description a {
color: #ddd;
}
.site-description a:hover {
color: black;
}
.tags a {
border-bottom: 3px solid var(--darkMaincolor);
}
.tags a:hover {
background-color: var(--darkMaincolor);
color: black;
}
.site-title a {
color: white;
text-decoration: none !important;
}
.header nav,
.footer {
border-color: #333;
}
.highlight {
background-color: #333;
}
.soc:hover {
color: black;
}
.draft-label {
color: var(--darkMaincolor);
background-color: blue;
}
.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-js"]::before {
content: "js";
background: #f7df1e;
color: black;
}
.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
content: 'yaml';
background: #f71e6a;
color: white;
}
.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
content: 'shell';
background: green;
color:white
}
.highlight pre code[class*='language-json']::before{
content: 'json';
background: dodgerblue;
color: #000000
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
content: 'py';
background: blue;
color: yellow ;
}
.highlight pre code[class*='language-css']::before{
content: 'css';
background: cyan;
color: black ;
}
.highlight pre code[class*='language-go']::before{
content: 'Go';
background: cyan;
color: royalblue ;
}
.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{
content: 'Markdown';
background: royalblue;
color: whitesmoke ;
}

View File

@ -6,16 +6,19 @@
--hovercolor:navy; --hovercolor:navy;
--darkMaincolor: #50fa7b; --darkMaincolor: #50fa7b;
} }
html { html {
color: #232333; color: #232333;
font-family: 'Roboto Mono', monospace; font-family: 'Roboto Mono', monospace;
font-size: 15px; font-size: 15px;
line-height: 1.6em; line-height: 1.6em;
} }
body{ body{
display: block; display: block;
margin: 8px; margin: 8px;
} }
* { * {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
} }
@ -48,6 +51,7 @@ a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
a:hover { a:hover {
background-color: var(--hovercolor); background-color: var(--hovercolor);
color: #fff; color: #fff;
@ -169,16 +173,19 @@ footer {
padding: 2rem 0rem; padding: 2rem 0rem;
margin-top: 2rem; margin-top: 2rem;
} }
.soc { .soc {
display: flex; display: flex;
align-items: center; align-items: center;
border-bottom: none; border-bottom: none;
} }
.border { .border {
margin-left: 0.5rem; margin-left: 0.5rem;
margin-right: 0.5rem; margin-right: 0.5rem;
border: 1px solid; border: 1px solid;
} }
.footer-info { .footer-info {
padding: var(--footer-padding); padding: var(--footer-padding);
} }
@ -223,22 +230,32 @@ article .title {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.tags li::before{ .tags li::before{
content: "🏷 "; content: "<";
} }
.tags li::after{
content: ">";
}
.tags a{ .tags a{
border-bottom: 3px solid var(--maincolor); border-bottom: 3px solid var(--maincolor);
} }
.tags a:hover{ .tags a:hover{
color:white; color:white;
background-color: var(--hovercolor); background-color: var(--hovercolor);
} }
svg{ svg{
max-height: 15px; max-height: 15px;
} }
.soc:hover{ .soc:hover{
color: white; color: white;
} }
.draft-label{ .draft-label{
color: var(--bordercl); color: var(--bordercl);
text-decoration: none; text-decoration: none;
@ -247,13 +264,16 @@ svg{
margin-left: 6px; margin-left: 6px;
background-color: #f9f2f4; background-color: #f9f2f4;
} }
.highlight { .highlight {
position: relative; position: relative;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.highlight pre code[class*="language-"] { .highlight pre code[class*="language-"] {
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.highlight pre code[class*="language-"]::before { .highlight pre code[class*="language-"]::before {
background: black; background: black;
border-radius: 0 0 0.25rem 0.25rem; border-radius: 0 0 0.25rem 0.25rem;
@ -274,12 +294,14 @@ content: "js";
background: #f7df1e; background: #f7df1e;
color: black; color: black;
} }
.highlight pre code[class*='language-yml']::before, .highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before { .highlight pre code[class*='language-yaml']::before {
content: 'yaml'; content: 'yaml';
background: #f71e6a; background: #f71e6a;
color: white; color: white;
} }
.highlight pre code[class*='language-shell']::before, .highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before, .highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before { .highlight pre code[class*='language-sh']::before {
@ -287,27 +309,32 @@ content: 'shell';
background: green; background: green;
color:white color:white
} }
.highlight pre code[class*='language-json']::before{ .highlight pre code[class*='language-json']::before{
content: 'json'; content: 'json';
background: dodgerblue; background: dodgerblue;
color: #000000 color: #000000
} }
.highlight pre code[class*='language-python']::before, .highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before { .highlight pre code[class*='language-py']::before {
content: 'py'; content: 'py';
background: blue; background: blue;
color: yellow ; color: yellow ;
} }
.highlight pre code[class*='language-css']::before{ .highlight pre code[class*='language-css']::before{
content: 'css'; content: 'css';
background: cyan; background: cyan;
color: black ; color: black ;
} }
.highlight pre code[class*='language-go']::before{ .highlight pre code[class*='language-go']::before{
content: 'Go'; content: 'Go';
background: cyan; background: cyan;
color: royalblue ; color: royalblue ;
} }
.highlight pre code[class*='language-md']::before, .highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{ .highlight pre code[class*='language-md']::before{
content: 'Markdown'; content: 'Markdown';
@ -331,3 +358,182 @@ table td{
padding: 6px 13px; padding: 6px 13px;
border: 1px solid #dfe2e5; border: 1px solid #dfe2e5;
} }
body {
color: white;
background-color: #202124;
}
::-moz-selection {
background: blue;
color: #fff;
text-shadow: none;
}
::selection {
background: red;
color: #fff;
text-shadow: none;
}
hr {
border-top: 3px dotted blue;
}
code {
background-color: lightblue;
color: black;
text-decoration: bold;
padding: 0.1em 0.2em;
}
pre {
background-color: #272822;
line-height: 1.4;
overflow-x: auto;
padding: 1em;
}
blockquote {
border-color: blue;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #ddd;
}
h1::before {
color: var(--darkMaincolor);
content: "# ";
}
h2::before {
color: var(--darkMaincolor);
content: "## ";
}
h3::before {
color: var(--darkMaincolor);
content: "### ";
}
h4::before {
color: var(--darkMaincolor);
content: "#### ";
}
h5::before {
color: var(--darkMaincolor);
content: "##### ";
}
h6::before {
color: var(--darkMaincolor);
content: "###### ";
}
a {
border-bottom: 3px solid var(--darkMaincolor);
color: inherit;
}
a:hover {
background-color: var(--darkMaincolor);
color: black;
}
.site-description a {
color: #ddd;
}
.site-description a:hover {
color: black;
}
.tags a {
border-bottom: 3px solid var(--darkMaincolor);
}
.tags a:hover {
background-color: var(--darkMaincolor);
color: black;
}
.site-title a {
color: white;
text-decoration: none !important;
}
.header nav,
.footer {
border-color: #333;
}
.highlight {
background-color: #333;
}
.soc:hover {
color: black;
}
.draft-label {
color: var(--darkMaincolor);
background-color: blue;
}
.highlight pre code[class=language-javaScript]::before,
.highlight pre code[class="language-js"]::before {
content: "js";
background: #f7df1e;
color: black;
}
.highlight pre code[class*='language-yml']::before,
.highlight pre code[class*='language-yaml']::before {
content: 'yaml';
background: #f71e6a;
color: white;
}
.highlight pre code[class*='language-shell']::before,
.highlight pre code[class*='language-bash']::before,
.highlight pre code[class*='language-sh']::before {
content: 'shell';
background: green;
color:white
}
.highlight pre code[class*='language-json']::before{
content: 'json';
background: dodgerblue;
color: #000000
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
content: 'py';
background: blue;
color: yellow ;
}
.highlight pre code[class*='language-css']::before{
content: 'css';
background: cyan;
color: black ;
}
.highlight pre code[class*='language-go']::before{
content: 'Go';
background: cyan;
color: royalblue ;
}
.highlight pre code[class*='language-md']::before,
.highlight pre code[class*='language-md']::before{
content: 'Markdown';
background: royalblue;
color: whitesmoke ;
}

View File

@ -1,8 +1,8 @@
{{ define "main" }} {{ define "main" }}
{{ if isset .Data "Term" }} {{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1> <h1>Все посты - "{{ .Data.Term }}"</h1>
{{ else }} {{ else }}
<h1 class="page-title">All articles</h1> <h1 class="page-title">Все посты</h1>
{{ end }} {{ end }}
<ul class="posts"> <ul class="posts">

View File

@ -1,8 +1,8 @@
{{ define "main" }} {{ define "main" }}
{{ if isset .Data "Term" }} {{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1> <h1>Все посты - "{{ .Data.Term }}"</h1>
{{ else }} {{ else }}
<h1 class="page-title">All articles</h1> <h1 class="page-title">Все посты</h1>
{{ end }} {{ end }}
<ul class="posts"> <ul class="posts">

View File

@ -1,5 +1,5 @@
{{ define "main" }} {{ define "main" }}
<h1 class="page-title">All tags</h1> <h1 class="page-title">Все теги</h1>
{{ $biggest := 1 }} {{ $biggest := 1 }}
{{ $smallest := 1 }} {{ $smallest := 1 }}

View File

@ -4,11 +4,15 @@
<span class="page-item page-prev"> <span class="page-item page-prev">
{{ if $pag.HasPrev }} {{ if $pag.HasPrev }}
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a> <a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a>
{{ else }}
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
{{ end }} {{ end }}
</span> </span>
<span class="page-item page-next"> <span class="page-item page-next">
{{ if $pag.HasNext }} {{ if $pag.HasNext }}
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a> <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Вперёд →</span></a>
{{ else }}
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Назад</span></a>
{{ end }} {{ end }}
</span> </span>
</ul> </ul>