From 61f233377bcad1c1cba3ce4f683a398ddfbcbd22 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Fri, 11 Feb 2022 22:03:04 +0100 Subject: [PATCH] refactoring --- batchCodeTable.html | 109 +++++++++++++------------------------------- forkMeOnGitHub.css | 63 +++++++++++++++++++++++++ index.html | 66 +-------------------------- 3 files changed, 96 insertions(+), 142 deletions(-) create mode 100644 forkMeOnGitHub.css diff --git a/batchCodeTable.html b/batchCodeTable.html index 29d5c2c68b5..b0dc34f471d 100644 --- a/batchCodeTable.html +++ b/batchCodeTable.html @@ -7,28 +7,36 @@ batch codes + Fork me on GitHub + Fork me on GitHub

- Check out your batch code (last updated 11th February 2022) -

+ Check out your batch code (last updated 11th February + 2022) +

diff --git a/forkMeOnGitHub.css b/forkMeOnGitHub.css new file mode 100644 index 00000000000..37c46365b06 --- /dev/null +++ b/forkMeOnGitHub.css @@ -0,0 +1,63 @@ +/* adapted from https: //codepo8.github.io/css-fork-on-github-ribbon/ */ + +#forkongithub a { + background: #000; + color: #fff; + text-decoration: none; + font-family: arial, sans-serif; + text-align: center; + font-weight: bold; + padding: 5px 40px; + font-size: 1rem; + line-height: 2rem; + position: relative; + transition: 0.5s; +} + +#forkongithub a:hover { + background: #c11; + color: #fff; +} + +#forkongithub a::before, +#forkongithub a::after { + content: ""; + width: 100%; + display: block; + position: absolute; + top: 1px; + left: 0; + height: 1px; + background: #fff; +} + +#forkongithub a::after { + bottom: 1px; + top: auto; +} + +@media screen and (min-width:800px) { + #forkongithub { + position: absolute; + display: block; + top: 0; + right: 0; + width: 200px; + overflow: hidden; + height: 200px; + z-index: 9999; + } + + #forkongithub a { + width: 200px; + position: absolute; + top: 60px; + right: -60px; + transform: rotate(45deg); + -webkit-transform: rotate(45deg); + -ms-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -o-transform: rotate(45deg); + box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); + } +} \ No newline at end of file diff --git a/index.html b/index.html index 5759d4edcef..0651eaca816 100644 --- a/index.html +++ b/index.html @@ -5,73 +5,11 @@ How Bad is My Batch + - - Fork me on GitHub + Fork me on GitHub

How Bad is My Batch