mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 15:05:01 +00:00
Autogenerate services.m3o.com (#37)
* Autogenerate services.m3o.com * Openapi for all * Gen * Fix * Whaat * Fix dep * Fix * Hmm * Install make * Debug * Debug 1 * Location -> locations * Fix * Intall protoc gen micro * F * F * F * Push * Rename secret * Fix npm install * Fix script * Fix v2 * Ignore errors * Ignore v2 * F * F * F * Docs index * Add hugo theme * Hugo tania fixes * Change gen * Change gen 2 * Install hugo * Change gen * Gen fix * Change hugo install * Change hugo install * CNAME * Change articles wording * Tiny fix * Fix gen * Redoc it all * Fix gen * Fixing up protos * Fix proto * Fix gen * Fix * Trigger build * Fix copy * Openapi docs * Flatten * Changes * No date vol2 * Changes * Add make to chat * Fixes * Change * api spec * replace RSS * fix link * Dont continue on error * increase the width * use micro at master * change box colours * move some things * Pushing new readmes to see how they look like * Add skip file * Readmes * Nicer api link * Remove stutter * FIx mistake * set service font weight * Messages readme fix * add other font bold * Notes * Remove post from url * Revert "Remove post from url" This reverts commit 5fea2c23d0bafa910f5dc4d4cc63f71f578530e3. * move exampleSite to site * replace exampleSite with site * update readme * use filename for post * update index * Add source urls * set source as params * set source as params * Fix entries * Generator in go * Fixes to generator * F * Change doc gen * FIx cname * Fixing protos * Change to makefiles * Fix gen script Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
11
docs/hugo-tania/assets/sass/components/_bio.scss
Normal file
11
docs/hugo-tania/assets/sass/components/_bio.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.my {
|
||||
padding-top: 2rem;
|
||||
a {
|
||||
border: none;
|
||||
margin-right: 1rem;
|
||||
|
||||
&:hover {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
77
docs/hugo-tania/assets/sass/components/_footer.scss
Normal file
77
docs/hugo-tania/assets/sass/components/_footer.scss
Normal file
@@ -0,0 +1,77 @@
|
||||
/* Footer */
|
||||
|
||||
.footer {
|
||||
padding: 2rem 0;
|
||||
|
||||
>.flex {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
a {
|
||||
border-radius: 0.35rem;
|
||||
margin: 0 0.05rem;
|
||||
font-weight: 400;
|
||||
font-size: 1rem;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.5rem;
|
||||
margin: 0 0.5rem;
|
||||
color: var(--light-font-color);
|
||||
|
||||
&:hover {
|
||||
color: var(--heading-color);
|
||||
background: var(--light-background);
|
||||
}
|
||||
|
||||
&.img {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0 0.75rem;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.flex nav {
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.footer {
|
||||
>.flex {
|
||||
align-items: flex-start;
|
||||
margin-left: -1.5rem;
|
||||
margin-right: -1.5rem;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: 0.75rem;
|
||||
|
||||
&.img {
|
||||
padding: 0 0.5rem;
|
||||
margin: 0 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media print {
|
||||
.footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
18
docs/hugo-tania/assets/sass/components/_helpers.scss
Normal file
18
docs/hugo-tania/assets/sass/components/_helpers.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
/* Helpers */
|
||||
|
||||
.small {
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
time,
|
||||
.meta {
|
||||
color: var(--light-font-color);
|
||||
font-size: 0.85rem;
|
||||
white-space: nowrap;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.meta {
|
||||
color: var(--medium-font-color);
|
||||
font-size: 1rem;
|
||||
}
|
||||
165
docs/hugo-tania/assets/sass/components/_highlight.scss
Normal file
165
docs/hugo-tania/assets/sass/components/_highlight.scss
Normal file
@@ -0,0 +1,165 @@
|
||||
$code-font-size: 0.9rem !default;
|
||||
$code-color: #f8f8f2 !default;
|
||||
$code-background: #373b41 !default;
|
||||
$gray: #cacaca !default;
|
||||
$code-font-family: Consolas, Monaco, Menlo, "DejaVu Sans Mono",
|
||||
"Bitstream Vera Sans Mono", "Courier New", monospace !default;
|
||||
|
||||
code, pre {
|
||||
font-size: $code-font-size;
|
||||
font-family: $code-font-family;
|
||||
background: $code-background;
|
||||
}
|
||||
|
||||
:not(pre) > code {
|
||||
color: var(--dark-font-color);
|
||||
background: var(--light-background);
|
||||
}
|
||||
|
||||
code {
|
||||
padding: 3px 5px;
|
||||
border-radius: 4px;
|
||||
color: $code-color;
|
||||
}
|
||||
|
||||
pre > code {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.highlight > .chroma {
|
||||
margin: 0;
|
||||
|
||||
border-radius: 5px;
|
||||
overflow-x: auto;
|
||||
box-shadow: 1px 1px 2px rgba(0,0,0,0.125);
|
||||
position: relative;
|
||||
background: $code-background;
|
||||
|
||||
code {
|
||||
padding: 30px 10px 10px;
|
||||
}
|
||||
|
||||
code[data-lang]::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
padding: 2px 10px;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
font-size: $code-font-size;
|
||||
line-height: 1.9;
|
||||
font-weight: bold;
|
||||
color: #b1b1b1;
|
||||
background: darken($code-background, 3%);
|
||||
content: attr(data-lang);
|
||||
}
|
||||
|
||||
table {
|
||||
position: relative;
|
||||
border: none;
|
||||
|
||||
code {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.lntd {
|
||||
&:first-child {
|
||||
width: 10px;
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 30px 7px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
vertical-align: top;
|
||||
|
||||
pre {
|
||||
margin: 0;
|
||||
padding: 30px 10px 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
table, tr, td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* LineHighlight */ .hl { display: block; width: 100%;background-color: black }
|
||||
/* LineNumbersTable */ .lnt { color: #7f7f7f }
|
||||
/* LineNumbers */ .ln { padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
|
||||
.err { color: #960050 } /* Error */
|
||||
.c { color: #999999 } /* Comment */
|
||||
.err { color: #f2777a } /* Error */
|
||||
.k { color: #cc99cc } /* Keyword */
|
||||
.l { color: #f99157 } /* Literal */
|
||||
.n { color: #cccccc } /* Name */
|
||||
.o { color: #66cccc } /* Operator */
|
||||
.p { color: #cccccc } /* Punctuation */
|
||||
.cm { color: #999999 } /* Comment.Multiline */
|
||||
.cp { color: #999999 } /* Comment.Preproc */
|
||||
.c1 { color: #999999 } /* Comment.Single */
|
||||
.cs { color: #999999 } /* Comment.Special */
|
||||
.gd { color: #f2777a } /* Generic.Deleted */
|
||||
.ge { font-style: italic } /* Generic.Emph */
|
||||
.gh { color: #cccccc; font-weight: bold } /* Generic.Heading */
|
||||
.gi { color: #99cc99 } /* Generic.Inserted */
|
||||
.gp { color: #999999; font-weight: bold } /* Generic.Prompt */
|
||||
.gs { font-weight: bold } /* Generic.Strong */
|
||||
.gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
|
||||
.kc { color: #cc99cc } /* Keyword.Constant */
|
||||
.kd { color: #cc99cc } /* Keyword.Declaration */
|
||||
.kn { color: #66cccc } /* Keyword.Namespace */
|
||||
.kp { color: #cc99cc } /* Keyword.Pseudo */
|
||||
.kr { color: #cc99cc } /* Keyword.Reserved */
|
||||
.kt { color: #ffcc66 } /* Keyword.Type */
|
||||
.ld { color: #99cc99 } /* Literal.Date */
|
||||
.m { color: #f99157 } /* Literal.Number */
|
||||
.s { color: #99cc99 } /* Literal.String */
|
||||
.na { color: #6699cc } /* Name.Attribute */
|
||||
.nb { color: #cccccc } /* Name.Builtin */
|
||||
.nc { color: #ffcc66 } /* Name.Class */
|
||||
.no { color: #f2777a } /* Name.Constant */
|
||||
.nd { color: #66cccc } /* Name.Decorator */
|
||||
.ni { color: #cccccc } /* Name.Entity */
|
||||
.ne { color: #f2777a } /* Name.Exception */
|
||||
.nf { color: #6699cc } /* Name.Function */
|
||||
.nl { color: #cccccc } /* Name.Label */
|
||||
.nn { color: #ffcc66 } /* Name.Namespace */
|
||||
.nx { color: #6699cc } /* Name.Other */
|
||||
.py { color: #cccccc } /* Name.Property */
|
||||
.nt { color: #66cccc } /* Name.Tag */
|
||||
.nv { color: #f2777a } /* Name.Variable */
|
||||
.ow { color: #66cccc } /* Operator.Word */
|
||||
.w { color: #cccccc } /* Text.Whitespace */
|
||||
.mf { color: #f99157 } /* Literal.Number.Float */
|
||||
.mh { color: #f99157 } /* Literal.Number.Hex */
|
||||
.mi { color: #f99157 } /* Literal.Number.Integer */
|
||||
.mo { color: #f99157 } /* Literal.Number.Oct */
|
||||
.sb { color: #99cc99 } /* Literal.String.Backtick */
|
||||
.sc { color: #cccccc } /* Literal.String.Char */
|
||||
.sd { color: #999999 } /* Literal.String.Doc */
|
||||
.s2 { color: #99cc99 } /* Literal.String.Double */
|
||||
.se { color: #f99157 } /* Literal.String.Escape */
|
||||
.sh { color: #99cc99 } /* Literal.String.Heredoc */
|
||||
.si { color: #f99157 } /* Literal.String.Interpol */
|
||||
.sx { color: #99cc99 } /* Literal.String.Other */
|
||||
.sr { color: #99cc99 } /* Literal.String.Regex */
|
||||
.s1 { color: #99cc99 } /* Literal.String.Single */
|
||||
.ss { color: #99cc99 } /* Literal.String.Symbol */
|
||||
.bp { color: #cccccc } /* Name.Builtin.Pseudo */
|
||||
.vc { color: #f2777a } /* Name.Variable.Class */
|
||||
.vg { color: #f2777a } /* Name.Variable.Global */
|
||||
.vi { color: #f2777a } /* Name.Variable.Instance */
|
||||
.il { color: #f99157 } /* Literal.Number.Integer.Long */
|
||||
}
|
||||
166
docs/hugo-tania/assets/sass/components/_navbar.scss
Normal file
166
docs/hugo-tania/assets/sass/components/_navbar.scss
Normal file
@@ -0,0 +1,166 @@
|
||||
/* Navbar */
|
||||
|
||||
main {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
main {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.emoji {
|
||||
margin: 0 0.4rem 0 0.1rem;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: var(--navbar-color);
|
||||
box-shadow: 0 3px 13px rgba(100, 110, 140, 0.1),
|
||||
0 2px 4px rgba(100, 110, 140, 0.15);
|
||||
z-index: 2;
|
||||
padding: 0.5rem;
|
||||
|
||||
.flex {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
a {
|
||||
border-radius: 0.35rem;
|
||||
margin: 0 0.05rem;
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
font-weight: 400;
|
||||
font-size: 0.85rem;
|
||||
border: 1px solid transparent;
|
||||
padding: 0 0.3rem;
|
||||
background: transparent;
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: -1rem;
|
||||
}
|
||||
|
||||
.emoji {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.brand {
|
||||
font-weight: 500;
|
||||
color: white;
|
||||
white-space: nowrap;
|
||||
border: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 1;
|
||||
background: transparent;
|
||||
|
||||
.emoji {
|
||||
display: inline-block !important;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button {
|
||||
font-size: 1rem;
|
||||
margin-right: -1rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 500px) {
|
||||
.navbar a {
|
||||
font-size: 0.95rem;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.emoji {
|
||||
margin: 0 0.5rem 0 0.1rem;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
position: static;
|
||||
padding: 1.5rem 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
|
||||
.flex {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
a {
|
||||
padding: 0.75rem 1.25rem;
|
||||
margin: 0 0.25rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 400;
|
||||
color: var(--font-color);
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: -1.5rem;
|
||||
}
|
||||
|
||||
&:hover, &[aria-current='page'] {
|
||||
background: var(--light-background);
|
||||
color: var(--dark-font-color);
|
||||
}
|
||||
|
||||
&.brand {
|
||||
font-size: 1.3rem;
|
||||
margin-right: 3rem;
|
||||
border: none;
|
||||
background: transparent !important;
|
||||
color: var(--dark-font-color);
|
||||
|
||||
&:hover {
|
||||
background: var(--light-background) !important;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#dark-mode-button:hover {
|
||||
background: var(--light-background);
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
.navbar {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#dark-mode-button {
|
||||
display: flex;
|
||||
border: none;
|
||||
padding: 0.2rem 0.7rem 0.2rem 0.5rem;
|
||||
border-radius: 0.35rem;
|
||||
box-sizing: content-box;
|
||||
cursor: pointer;
|
||||
font-size: 1.1rem;
|
||||
background: transparent;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
#dark-mode-button {
|
||||
padding: 0.95rem 0.75rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
173
docs/hugo-tania/assets/sass/components/_post.scss
Normal file
173
docs/hugo-tania/assets/sass/components/_post.scss
Normal file
@@ -0,0 +1,173 @@
|
||||
/* Post */
|
||||
|
||||
header {
|
||||
padding: 1.5rem 0;
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
display: inline-block;
|
||||
font-weight: 600;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
u {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
padding: 0.4rem 0;
|
||||
}
|
||||
}
|
||||
|
||||
.article-header {
|
||||
padding-top: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
|
||||
.container {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 700;
|
||||
font-size: 1.8rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1.2rem;
|
||||
color: var(--light-font-color);
|
||||
font-weight: 300;
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
margin-top: 1rem;
|
||||
padding: 0;
|
||||
color: var(--light-font-color);
|
||||
font-size: 0.9rem;
|
||||
|
||||
a {
|
||||
color: var(--font-color);
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
time {
|
||||
margin-top: 0.2rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.tags {
|
||||
margin-top: 0.5rem;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.article-post {
|
||||
margin-bottom: 2rem;
|
||||
|
||||
a {
|
||||
box-shadow: 0px -2px 0px rgba(189, 195, 199, 0.5) inset;
|
||||
transition: all .3s ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0px -10px 0px rgba(189, 195, 199, 0.7) inset;
|
||||
}
|
||||
}
|
||||
|
||||
@for $i from 1 through 6 {
|
||||
h#{$i} {
|
||||
.anchor {
|
||||
stroke: var(--link-color);
|
||||
stroke-width: 1px;
|
||||
fill: var(--link-color);
|
||||
font-weight: 700;
|
||||
left: -0.25rem;
|
||||
border-width: 0;
|
||||
float: left;
|
||||
line-height: 1;
|
||||
margin-left: -20px;
|
||||
padding-right: 4px;
|
||||
box-shadow: none;
|
||||
transition: none;
|
||||
|
||||
.icon {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.anchor {
|
||||
box-shadow: none;
|
||||
.icon {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.article-post {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.article-post h1,
|
||||
.article-post h2,
|
||||
.article-post h3,
|
||||
.article-post h4,
|
||||
.article-post h5 {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
margin-top: 1.5rem;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 3rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
header u {
|
||||
background: linear-gradient(transparent 85%, #bac8ff 0);
|
||||
}
|
||||
|
||||
.article-header {
|
||||
padding-top: 3rem;
|
||||
|
||||
h1 {
|
||||
padding-top: 0;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1.8rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1100px) {
|
||||
.article-header h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.post-thumbnail {
|
||||
display: block !important;
|
||||
}
|
||||
26
docs/hugo-tania/assets/sass/components/_post_tag.scss
Normal file
26
docs/hugo-tania/assets/sass/components/_post_tag.scss
Normal file
@@ -0,0 +1,26 @@
|
||||
.new-post,
|
||||
.popular-post {
|
||||
display: inline-block;
|
||||
color: #111;
|
||||
padding: 0.3rem 0.4rem;
|
||||
border-radius: 0.3rem;
|
||||
font-size: 0.85rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.new-post {
|
||||
background: #d3f9d8;
|
||||
}
|
||||
|
||||
.popular-post {
|
||||
background: #dce6fd;
|
||||
color: var(--heading-color);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
|
||||
.new-post,
|
||||
.popular-post {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
68
docs/hugo-tania/assets/sass/components/_posts.scss
Normal file
68
docs/hugo-tania/assets/sass/components/_posts.scss
Normal file
@@ -0,0 +1,68 @@
|
||||
/* Posts */
|
||||
|
||||
.post-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
|
||||
time {
|
||||
display: block;
|
||||
flex: 0 0 65px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.posts .post:last-of-type a {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
.post {
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: stretch;
|
||||
padding: 1rem 0;
|
||||
border-bottom: 2px solid var(--light-background);
|
||||
|
||||
&:hover {
|
||||
border-radius: 0.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 0.1rem;
|
||||
margin-bottom: 0;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.posts {
|
||||
margin-left: -1rem;
|
||||
margin-right: -1rem;
|
||||
}
|
||||
|
||||
.post {
|
||||
a {
|
||||
padding: 0.75rem 1rem;
|
||||
border-bottom-color: transparent;
|
||||
|
||||
&:hover {
|
||||
background: var(--light-background);
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
.post-row time {
|
||||
flex: 0 0 80px;
|
||||
}
|
||||
}
|
||||
58
docs/hugo-tania/assets/sass/components/_projects.scss
Normal file
58
docs/hugo-tania/assets/sass/components/_projects.scss
Normal file
@@ -0,0 +1,58 @@
|
||||
/* Projects */
|
||||
|
||||
.projects .project:last-of-type {
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
.project {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0.75rem 0;
|
||||
border-bottom: 2px solid var(--light-background);
|
||||
|
||||
.icon {
|
||||
font-size: 1.5rem;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 0.25rem;
|
||||
border-width: 0;
|
||||
|
||||
&:hover h3 {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&.button {
|
||||
margin-left: 1.5rem;
|
||||
border-width: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.2rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1.1rem;
|
||||
color: var(--light-font-color);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.project {
|
||||
border-bottom-width: 0;
|
||||
|
||||
h3 {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
57
docs/hugo-tania/assets/sass/components/_side.scss
Normal file
57
docs/hugo-tania/assets/sass/components/_side.scss
Normal file
@@ -0,0 +1,57 @@
|
||||
.side {
|
||||
width: 200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.side-right {
|
||||
float: right;
|
||||
clear: right;
|
||||
margin-right: calc(-200px - 2em);
|
||||
|
||||
p {
|
||||
font-size: .9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.note-ref {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.bg-number {
|
||||
background: var(--light-background);
|
||||
font-size: .9rem;
|
||||
color: var(--font-color);
|
||||
text-decoration: none;
|
||||
padding: 1px 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.side {
|
||||
width: 100%;
|
||||
padding: 0 2em;
|
||||
}
|
||||
|
||||
.side-right {
|
||||
float: none;
|
||||
clear: both;
|
||||
margin: 1em auto;
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
|
||||
.note-ref:hover ~ .side {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
margin-left: 1rem;
|
||||
padding: .5rem;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
}
|
||||
46
docs/hugo-tania/assets/sass/components/_suggested.scss
Normal file
46
docs/hugo-tania/assets/sass/components/_suggested.scss
Normal file
@@ -0,0 +1,46 @@
|
||||
/* Suggested */
|
||||
|
||||
.suggested {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
margin-left: -1rem;
|
||||
margin-right: -1rem;
|
||||
padding: 0;
|
||||
|
||||
span {
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
font-size: 0.9rem;
|
||||
color: var(--transparent-text);
|
||||
}
|
||||
|
||||
a {
|
||||
background: none;
|
||||
margin: 0.5rem 1rem;
|
||||
border-bottom: none;
|
||||
transition: all 0.2s ease;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.35rem;
|
||||
color: var(--heading-color);
|
||||
border: 1px solid #eeeeee;
|
||||
|
||||
&:hover {
|
||||
transform: translate3D(0, -1px, 0);
|
||||
background: var(--light-background-hover);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.suggested {
|
||||
flex-direction: row;
|
||||
|
||||
a {
|
||||
flex: 0 0 calc(50% - 2rem);
|
||||
|
||||
&:first-of-type {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
49
docs/hugo-tania/assets/sass/components/_table.scss
Normal file
49
docs/hugo-tania/assets/sass/components/_table.scss
Normal file
@@ -0,0 +1,49 @@
|
||||
/* Tables */
|
||||
|
||||
table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
thead,
|
||||
tbody {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th {
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
|
||||
tfoot th {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
td {
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 0.75rem;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(even) {
|
||||
background-color: var(--light-background);
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
table {
|
||||
display: table;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
thead,
|
||||
tbody {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
74
docs/hugo-tania/assets/sass/components/_tags.scss
Normal file
74
docs/hugo-tania/assets/sass/components/_tags.scss
Normal file
@@ -0,0 +1,74 @@
|
||||
/* Tags */
|
||||
|
||||
.count {
|
||||
font-weight: 700;
|
||||
color: var(--link-color);
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
margin-left: -0.5rem;
|
||||
margin-right: -0.5rem;
|
||||
|
||||
>a {
|
||||
display: block;
|
||||
font-weight: 500;
|
||||
background: var(--light-background);
|
||||
color: var(--font-color);
|
||||
margin: 0.2rem;
|
||||
padding: 0.5rem 0.6rem;
|
||||
font-size: 0.8rem;
|
||||
border-radius: 0.3rem;
|
||||
border-bottom: 0;
|
||||
white-space: nowrap;
|
||||
line-height: 1;
|
||||
|
||||
&:hover {
|
||||
background: var(--light-background-hover);
|
||||
color: var(--heading-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #ffec99;
|
||||
}
|
||||
|
||||
.utterances {
|
||||
margin-left: -4px;
|
||||
margin-right: -4px;
|
||||
}
|
||||
|
||||
kbd {
|
||||
background-color: #f7f7f7;
|
||||
border: 2px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 2px #fff;
|
||||
color: #333;
|
||||
display: inline-block;
|
||||
font-family: Helvetica Neue, Inter, -apple-system, BlinkMacSystemFont,
|
||||
Helvetica, Arial, sans-serif;
|
||||
line-height: 1.4;
|
||||
margin: 0 0.1em;
|
||||
padding: 0.1em 0.6em;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#comments {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
#comments h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
||||
.comments,
|
||||
#comments {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
15
docs/hugo-tania/assets/sass/components/_terms.scss
Normal file
15
docs/hugo-tania/assets/sass/components/_terms.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
.terms {
|
||||
a {
|
||||
padding: .75rem 1.25rem;
|
||||
margin: 0 .25rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 400;
|
||||
color: var(--font-color);
|
||||
border-radius: .35rem;
|
||||
|
||||
&:hover {
|
||||
background: var(--light-background);
|
||||
color: var(--dark-font-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user