1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

reduce unused styling

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2022-09-14 15:34:45 +05:30
parent 2ba5689a76
commit e6e5a939f3
7 changed files with 54 additions and 67 deletions
@@ -4,7 +4,7 @@ date: 2022-02-27 20:47
modified: 2022-03-07 22:47 modified: 2022-03-07 22:47
category: development category: development
tags: [tekton, go, kubernetes, openshift, redhat, intern, golang, openshift-pipelines] tags: [tekton, go, kubernetes, openshift, redhat, intern, golang, openshift-pipelines]
description: This blog is a descreptive account of the development of Minimal Tekton Server. This is highly technical in nature, so please make sure that you have sufficient knowledge about Golang, Docker, Kubernetes and TektonCD. You can refer to my [previous blog]("https://avinal.space/posts/development/i-am-loving-it-redhat.html") to know about these topics. description: 'This blog is a descreptive account of the development of Minimal Tekton Server. This is highly technical in nature, so please make sure that you have sufficient knowledge about Golang, Docker, Kubernetes and TektonCD. You can refer to my [previous blog]("https://avinal.space/posts/development/i-am-loving-it-redhat.html") to know about these topics.'
--- ---
# Developing Minimal Tekton Server # Developing Minimal Tekton Server
Binary file not shown.
+9 -9
View File
@@ -1,14 +1,14 @@
@charset "UTF-8"; @charset "UTF-8";
a, a,
abbr, /* abbr, */
acronym, acronym,
address, address,
applet, applet,
article, /* article, */
aside, aside,
audio, audio,
b, /* b, */
big, big,
blockquote, blockquote,
canvas, canvas,
@@ -26,8 +26,8 @@ dt,
em, em,
embed, embed,
fieldset, fieldset,
figcaption, /* figcaption, */
figure, /* figure, */
footer, footer,
form, form,
/* h1, /* h1,
@@ -39,8 +39,8 @@ h6, */
header, header,
hgroup, hgroup,
html, html,
i, /* i, */
iframe, /* iframe, */
img, img,
ins, ins,
kbd, kbd,
@@ -59,7 +59,7 @@ q,
ruby, ruby,
s, s,
samp, samp,
section, /* section, */
small, small,
/* span, */ /* span, */
strike, strike,
@@ -1436,7 +1436,7 @@ body {
.foo-console, .foo-console,
.foo-console .foo-cmd { .foo-console .foo-cmd {
font-family: "Share Tech Mono", monospace; /* font-family: "Share Tech Mono", monospace; */
color: #fff color: #fff
} }
+1
View File
File diff suppressed because one or more lines are too long
+5 -26
View File
@@ -5,8 +5,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/website/mdn-style.css"> <link rel="stylesheet" href="/website/mdn-style.min.css">
<link rel="stylesheet" href="/website/foo-style.css"> <link rel="stylesheet" href="/website/foo-style.min.css">
<title>Document</title> <title>Document</title>
<script src="/website/redirect.js"></script> <script src="/website/redirect.js"></script>
@@ -16,9 +16,6 @@
<div id="app"></div> <div id="app"></div>
<script src="/website/app.js"></script> <script src="/website/app.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.7/clipboard.min.js"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="/website/prism.js"></script> <script src="/website/prism.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script>
@@ -61,7 +58,6 @@
marked.setOptions({ marked.setOptions({
renderer: renderer, renderer: renderer,
highlight: function (code, lang) { highlight: function (code, lang) {
console.log(Prism.languages);
const grammar = Prism.languages[lang]; const grammar = Prism.languages[lang];
if (!grammar) { if (!grammar) {
console.warn( console.warn(
@@ -72,29 +68,12 @@
return Prism.highlight(code, grammar, lang); return Prism.highlight(code, grammar, lang);
} }
}) })
document.getElementById("insert-here").innerHTML = marked.parse(markdowndata); document.getElementById("insert-here").innerHTML = marked.parse(markdowndata, function () {
app.ports.isRenderComplete.send(true);
});
// document.getElementById("toc-entries").innerHTML = toc; // document.getElementById("toc-entries").innerHTML = toc;
}); });
$(function () {
// copy-btn HTML
var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
btn += '<i class="far fa-clone"></i>';
btn += '</span>';
// mount it!
$(".highlight table").before(btn);
var clip = new ClipboardJS('.btn-copy', {
text: function (trigger) {
return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str, it) => str + it.innerText + '\n', '')
}
});
clip.on('success', function (e) {
e.trigger.setAttribute('aria-label', "Copied!");
e.clearSelection();
})
});
</script> </script>
</body> </body>
</html> </html>
+36 -30
View File
@@ -1,3 +1,9 @@
@import url('https://rsms.me/inter/inter.css');
html { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
html { font-family: 'Inter var', sans-serif; }
}
*, *,
:after, :after,
:before { :before {
@@ -557,7 +563,7 @@ u {
--code-color: var(--plus-code-color); --code-color: var(--plus-code-color);
--mark-color: var(--plus-mark-color) --mark-color: var(--plus-mark-color)
} }
/*
.category-html { .category-html {
--background-toc-active: var(--html-accent-background-color); --background-toc-active: var(--html-accent-background-color);
--category-color: var(--html-accent-color); --category-color: var(--html-accent-color);
@@ -598,9 +604,9 @@ u {
--category-color: var(--learn-accent-color); --category-color: var(--learn-accent-color);
--category-color-background: var(--learn-accent-background-color); --category-color-background: var(--learn-accent-background-color);
--mark-color: var(--api-mark-color) --mark-color: var(--api-mark-color)
} } */
.mify { /* .mify {
margin-left: .5rem margin-left: .5rem
} }
@@ -634,14 +640,14 @@ u {
text-decoration-color: var(--text-link); text-decoration-color: var(--text-link);
text-decoration-thickness: .1em; text-decoration-thickness: .1em;
text-underline-offset: .1em text-underline-offset: .1em
} } */
@media(forced-colors:active) { @media(forced-colors:active) {
.icon { .icon {
background-color: CanvasText !important background-color: CanvasText !important
} }
} }
/*
.homepage { .homepage {
align-items: center; align-items: center;
display: flex; display: flex;
@@ -1173,7 +1179,7 @@ svg.icon {
.icon.icon-yes-circle { .icon.icon-yes-circle {
-webkit-mask-image: url(/static/media/yes-circle.1c4f7a083d20df35ca93.svg); -webkit-mask-image: url(/static/media/yes-circle.1c4f7a083d20df35ca93.svg);
mask-image: url(/static/media/yes-circle.1c4f7a083d20df35ca93.svg) mask-image: url(/static/media/yes-circle.1c4f7a083d20df35ca93.svg)
} } */
.button, .button,
button { button {
@@ -1664,7 +1670,7 @@ button {
display: block; display: block;
right: 2.8rem right: 2.8rem
} }
/*
.mandala-container { .mandala-container {
--mandala-primary: #4e4e4e; --mandala-primary: #4e4e4e;
--mandala-accent-1: var(--html-accent-color); --mandala-accent-1: var(--html-accent-color);
@@ -2288,7 +2294,7 @@ button {
to { to {
opacity: 0 opacity: 0
} }
} } */
.generic-loading { .generic-loading {
align-items: center; align-items: center;
@@ -3197,7 +3203,7 @@ li:last-child .submenu a:not(:focus) {
.learn-link-container a:hover .submenu-icon.learn { .learn-link-container a:hover .submenu-icon.learn {
background-color: var(--learn-accent-color) !important background-color: var(--learn-accent-color) !important
} }
/*
.submenu-icon.html { .submenu-icon.html {
background-color: var(--html-accent-engage) background-color: var(--html-accent-engage)
} }
@@ -3239,7 +3245,7 @@ li:last-child .submenu a:not(:focus) {
.mdn-plus .mobile-only { .mdn-plus .mobile-only {
display: none display: none
} }
} } */
ul.main-menu { ul.main-menu {
grid-gap: 1rem; grid-gap: 1rem;
@@ -3320,7 +3326,7 @@ ul.main-menu.show {
} }
} }
.signout-form { /* .signout-form {
padding: .5rem padding: .5rem
} }
@@ -3337,8 +3343,8 @@ button.signout-button {
button.signout-button:focus, button.signout-button:focus,
button.signout-button:hover { button.signout-button:hover {
background-color: var(--background-secondary) background-color: var(--background-secondary)
} } */
/*
.user-menu { .user-menu {
position: relative position: relative
} }
@@ -3451,7 +3457,7 @@ button.signout-button:hover {
.dropdown-item .button.action.active-menu-item { .dropdown-item .button.action.active-menu-item {
--button-bg: var(--background-primary); --button-bg: var(--background-primary);
--button-border-color: var(--border-secondary) --button-border-color: var(--border-secondary)
} } */
.top-navigation-main { .top-navigation-main {
display: none; display: none;
@@ -3658,7 +3664,7 @@ button.signout-button:hover {
} }
} }
.theme-switcher-menu { /* .theme-switcher-menu {
margin-bottom: .5rem margin-bottom: .5rem
} }
@@ -3794,7 +3800,7 @@ button.signout-button:hover {
white-space: nowrap !important; white-space: nowrap !important;
width: 1px !important width: 1px !important
} }
} } */
.top-navigation { .top-navigation {
background-color: var(--background-primary); background-color: var(--background-primary);
@@ -3848,7 +3854,7 @@ button.signout-button:hover {
flex: 0 1 flex: 0 1
} }
} }
/*
.breadcrumbs-container { .breadcrumbs-container {
align-items: center; align-items: center;
display: flex; display: flex;
@@ -4032,7 +4038,7 @@ button.signout-button:hover {
.language-menu { .language-menu {
right: 0 right: 0
} }
} } */
.article-actions { .article-actions {
margin-left: auto margin-left: auto
@@ -4399,7 +4405,7 @@ button.signout-button:hover {
max-height: 100vh; max-height: 100vh;
position: fixed; position: fixed;
right: 0; right: 0;
top: --var(--offset) /* top: --var(--offset) */
} }
.sidebar, .sidebar,
@@ -4627,7 +4633,7 @@ body {
--color-announcement-banner-accent: #ff6d91 --color-announcement-banner-accent: #ff6d91
} }
.light { /* .light {
--text-primary: #1b1b1b; --text-primary: #1b1b1b;
--text-secondary: #4e4e4e; --text-secondary: #4e4e4e;
--text-inactive: #9e9e9ea6; --text-inactive: #9e9e9ea6;
@@ -5041,7 +5047,7 @@ body {
--text-primary-yellow: #c7b700; --text-primary-yellow: #c7b700;
color-scheme: dark color-scheme: dark
} }
} } */
.document-page .article-actions-container, .document-page .article-actions-container,
.document-page .document-toc-container, .document-page .document-toc-container,
@@ -5074,8 +5080,8 @@ body {
grid-gap: 3rem; grid-gap: 3rem;
display: grid; display: grid;
gap: 3rem; gap: 3rem;
grid-template-areas: "sidebar main"; /* grid-template-areas: "sidebar main"; */
grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); /* grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); */
padding-left: 1.5rem; padding-left: 1.5rem;
padding-right: 3rem padding-right: 3rem
} }
@@ -5102,8 +5108,8 @@ body {
grid-gap: 3rem; grid-gap: 3rem;
display: grid; display: grid;
gap: 3rem; gap: 3rem;
grid-template-areas: "sidebar main toc"; /* grid-template-areas: "sidebar main toc"; */
grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 15rem); /* grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 15rem); */
padding-left: 1rem; padding-left: 1rem;
padding-right: 1rem padding-right: 1rem
} }
@@ -5139,7 +5145,7 @@ body {
font-stretch: 75% 100%; font-stretch: 75% 100%;
font-style: oblique 0deg 20deg; font-style: oblique 0deg 20deg;
font-weight: 1 999; font-weight: 1 999;
src: url(/static/media/Inter.var.c2fe3cb2b7c746f7966a.woff2) format("woff2 supports variations"), url(/static/media/Inter.var.c2fe3cb2b7c746f7966a.woff2) format("woff2-variations") src: url(/website/fonts/Inter.var.woff2) format("woff2 supports variations"), url(/website/fonts/Inter.var.woff2) format("woff2-variations")
} }
:root { :root {
@@ -6172,7 +6178,7 @@ screen and (min-width:688px)and (max-width:768px) {
} }
.notification-card .desktop-only { .notification-card .desktop-only {
display: hidden display: none
} }
@media screen and (min-width:769px) { @media screen and (min-width:769px) {
@@ -6592,7 +6598,7 @@ article.settings .field-group ul li {
grid-gap: 0 1rem; grid-gap: 0 1rem;
display: grid; display: grid;
gap: 0 1rem; gap: 0 1rem;
grid-template-columns: 1fr minmax(5em); /* grid-template-columns: 1fr minmax(5em); */
margin: 2em 0 margin: 2em 0
} }
@@ -6849,8 +6855,8 @@ main.contribute section h1:before {
content: ""; content: "";
display: inline-block; display: inline-block;
height: 1.2em; height: 1.2em;
-webkit-mask: url(/static/media/m-logo.e19e04547be91a35c8ea.svg) no-repeat 50% 50%; /* -webkit-mask: url(/static/media/m-logo.e19e04547be91a35c8ea.svg) no-repeat 50% 50%;
mask: url(/static/media/m-logo.e19e04547be91a35c8ea.svg) no-repeat 50% 50%; mask: url(/static/media/m-logo.e19e04547be91a35c8ea.svg) no-repeat 50% 50%; */
-webkit-mask-size: cover; -webkit-mask-size: cover;
mask-size: cover; mask-size: cover;
-webkit-transform: translate(-.2em, .2em); -webkit-transform: translate(-.2em, .2em);
+1
View File
File diff suppressed because one or more lines are too long