diff --git a/demo/assets/css/fork-corner.min.css b/demo/assets/css/fork-corner.min.css index 25565d1..b6345a3 100644 --- a/demo/assets/css/fork-corner.min.css +++ b/demo/assets/css/fork-corner.min.css @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga @@ -12,4 +12,4 @@ * Website: warengonzaga.com */ -html,body{overflow-x:hidden;touch-action:pan-y;position:relative}body{margin:0}#fork-corner{z-index:105;position:absolute}.fork-corner.fc-size-small.fc-pos-tr{top:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-tr+div{top:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-tl{top:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-tl+div{top:-75px;left:-75px}.fork-corner.fc-size-small.fc-pos-br{bottom:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-br+div{bottom:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-bl{bottom:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-bl+div{bottom:-75px;left:-75px}.fork-corner.fc-size-small.fc-theme-default>i,.fork-corner.fc-size-small.fc-theme-github>i,.fork-corner.fc-size-small.fc-theme-gitlab>i,.fork-corner.fc-size-small.fc-theme-bitbucket>i{font-size:37.5px}.fork-corner.fc-size-small+div{width:150px;height:150px}.fork-corner.fc-size-medium.fc-pos-tr{top:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-tr+div{top:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-tl{top:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-tl+div{top:-125px;left:-125px}.fork-corner.fc-size-medium.fc-pos-br{bottom:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-br+div{bottom:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-bl{bottom:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-bl+div{bottom:-125px;left:-125px}.fork-corner.fc-size-medium.fc-theme-default>i,.fork-corner.fc-size-medium.fc-theme-github>i,.fork-corner.fc-size-medium.fc-theme-gitlab>i,.fork-corner.fc-size-medium.fc-theme-bitbucket>i{font-size:62.5px}.fork-corner.fc-size-medium+div{width:250px;height:250px}.fork-corner.fc-size-large.fc-pos-tr{top:25px;right:25px}.fork-corner.fc-size-large.fc-pos-tr+div{top:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-tl{top:25px;left:25px}.fork-corner.fc-size-large.fc-pos-tl+div{top:-150px;left:-150px}.fork-corner.fc-size-large.fc-pos-br{bottom:25px;right:25px}.fork-corner.fc-size-large.fc-pos-br+div{bottom:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-bl{bottom:25px;left:25px}.fork-corner.fc-size-large.fc-pos-bl+div{bottom:-150px;left:-150px}.fork-corner.fc-size-large.fc-theme-default>i,.fork-corner.fc-size-large.fc-theme-github>i,.fork-corner.fc-size-large.fc-theme-gitlab>i,.fork-corner.fc-size-large.fc-theme-bitbucket>i{font-size:75px}.fork-corner.fc-size-large+div{width:300px;height:300px}.fork-corner+div{position:absolute;width:200px;height:200px;z-index:100}.fork-corner.fc-pos-tr{top:16.66667px;right:16.66667px}.fork-corner.fc-pos-tr.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tr.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-tr+div{top:-100px;right:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-tl{top:16.66667px;left:16.66667px}.fork-corner.fc-pos-tl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-tl+div{top:-100px;left:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-br{bottom:16.66667px;right:16.66667px}.fork-corner.fc-pos-br.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-br.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-br+div{bottom:-100px;right:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-bl{bottom:16.66667px;left:16.66667px}.fork-corner.fc-pos-bl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-bl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-bl+div{bottom:-100px;left:-100px;transform:rotate(45deg)}.fork-corner.fc-theme-default{text-decoration:none}.fork-corner.fc-theme-default>i{font-size:50px;color:#fff}.fork-corner.fc-theme-default+div{background-color:#f34f29}.fork-corner.fc-theme-github{text-decoration:none}.fork-corner.fc-theme-github>i{font-size:50px;color:#fff}.fork-corner.fc-theme-github+div{background-color:#181717}.fork-corner.fc-theme-gitlab{text-decoration:none}.fork-corner.fc-theme-gitlab>i{font-size:50px;color:#fff}.fork-corner.fc-theme-gitlab+div{background-color:#e24329}.fork-corner.fc-theme-bitbucket{text-decoration:none}.fork-corner.fc-theme-bitbucket>i{font-size:50px;color:#fff}.fork-corner.fc-theme-bitbucket+div{background-color:#205081} +html,body{overflow-x:hidden;touch-action:pan-y;position:relative}body{margin:0}#fork-corner{z-index:105}.fork-corner+div{width:200px;height:200px;z-index:100}.fork-corner.fc-size-small.fc-pos-tr{top:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-tr+div{top:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-tl{top:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-tl+div{top:-75px;left:-75px}.fork-corner.fc-size-small.fc-pos-br{bottom:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-br+div{bottom:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-bl{bottom:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-bl+div{bottom:-75px;left:-75px}.fork-corner.fc-size-small.fc-theme-default>i,.fork-corner.fc-size-small.fc-theme-github>i,.fork-corner.fc-size-small.fc-theme-gitlab>i,.fork-corner.fc-size-small.fc-theme-bitbucket>i{font-size:37.5px}.fork-corner.fc-size-small+div{width:150px;height:150px}.fork-corner.fc-size-medium.fc-pos-tr{top:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-tr+div{top:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-tl{top:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-tl+div{top:-125px;left:-125px}.fork-corner.fc-size-medium.fc-pos-br{bottom:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-br+div{bottom:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-bl{bottom:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-bl+div{bottom:-125px;left:-125px}.fork-corner.fc-size-medium.fc-theme-default>i,.fork-corner.fc-size-medium.fc-theme-github>i,.fork-corner.fc-size-medium.fc-theme-gitlab>i,.fork-corner.fc-size-medium.fc-theme-bitbucket>i{font-size:62.5px}.fork-corner.fc-size-medium+div{width:250px;height:250px}.fork-corner.fc-size-large.fc-pos-tr{top:25px;right:25px}.fork-corner.fc-size-large.fc-pos-tr+div{top:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-tl{top:25px;left:25px}.fork-corner.fc-size-large.fc-pos-tl+div{top:-150px;left:-150px}.fork-corner.fc-size-large.fc-pos-br{bottom:25px;right:25px}.fork-corner.fc-size-large.fc-pos-br+div{bottom:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-bl{bottom:25px;left:25px}.fork-corner.fc-size-large.fc-pos-bl+div{bottom:-150px;left:-150px}.fork-corner.fc-size-large.fc-theme-default>i,.fork-corner.fc-size-large.fc-theme-github>i,.fork-corner.fc-size-large.fc-theme-gitlab>i,.fork-corner.fc-size-large.fc-theme-bitbucket>i{font-size:75px}.fork-corner.fc-size-large+div{width:300px;height:300px}.fork-corner.fc-pos-tr{top:16.66667px;right:16.66667px;position:absolute}.fork-corner.fc-pos-tr.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tr.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-tr+div{top:-100px;right:-100px;transform:rotate(45deg);position:absolute}.fork-corner.fc-pos-tr-sticky{top:16.66667px;right:16.66667px;position:fixed}.fork-corner.fc-pos-tr-sticky.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tr-sticky.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-tr-sticky+div{top:-100px;right:-100px;transform:rotate(45deg);position:fixed}.fork-corner.fc-pos-tl{top:16.66667px;left:16.66667px;position:absolute}.fork-corner.fc-pos-tl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-tl+div{top:-100px;left:-100px;transform:rotate(45deg);position:absolute}.fork-corner.fc-pos-tl-sticky{top:16.66667px;left:16.66667px}.fork-corner.fc-pos-tl-sticky.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tl-sticky.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-tl-sticky+div{top:-100px;left:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-br{bottom:16.66667px;right:16.66667px;position:fixed}.fork-corner.fc-pos-br.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-br.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-br+div{bottom:-100px;right:-100px;transform:rotate(45deg);position:fixed}.fork-corner.fc-pos-bl{bottom:16.66667px;left:16.66667px;position:fixed}.fork-corner.fc-pos-bl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-bl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-bl+div{bottom:-100px;left:-100px;transform:rotate(45deg);position:fixed}.fork-corner.fc-theme-default{text-decoration:none}.fork-corner.fc-theme-default>i{font-size:50px;color:#fff}.fork-corner.fc-theme-default+div{background-color:#f34f29}.fork-corner.fc-theme-github{text-decoration:none}.fork-corner.fc-theme-github>i{font-size:50px;color:#fff}.fork-corner.fc-theme-github+div{background-color:#181717}.fork-corner.fc-theme-gitlab{text-decoration:none}.fork-corner.fc-theme-gitlab>i{font-size:50px;color:#fff}.fork-corner.fc-theme-gitlab+div{background-color:#e24329}.fork-corner.fc-theme-bitbucket{text-decoration:none}.fork-corner.fc-theme-bitbucket>i{font-size:50px;color:#fff}.fork-corner.fc-theme-bitbucket+div{background-color:#205081} diff --git a/demo/assets/js/fork-corner.js b/demo/assets/js/fork-corner.js index 0dd9979..ea5bf6c 100644 --- a/demo/assets/js/fork-corner.js +++ b/demo/assets/js/fork-corner.js @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga diff --git a/demo/assets/js/fork-corner.min.js b/demo/assets/js/fork-corner.min.js index 41138f2..d0fc879 100644 --- a/demo/assets/js/fork-corner.min.js +++ b/demo/assets/js/fork-corner.min.js @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga diff --git a/dist/fork-corner.css b/dist/fork-corner.css index abd1fdc..5a1a503 100644 --- a/dist/fork-corner.css +++ b/dist/fork-corner.css @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga @@ -21,9 +21,14 @@ body { margin: 0; } #fork-corner { - z-index: 105; - position: absolute; } + z-index: 105; } + +.fork-corner + div { + width: 200px; + height: 200px; + z-index: 100; } +/** fork corner sizes **/ .fork-corner.fc-size-small.fc-pos-tr { top: 12.5px; right: 12.5px; } @@ -138,15 +143,11 @@ body { width: 300px; height: 300px; } -.fork-corner + div { - position: absolute; - width: 200px; - height: 200px; - z-index: 100; } - +/** fork corner positions and behavior **/ .fork-corner.fc-pos-tr { top: 16.66667px; - right: 16.66667px; } + right: 16.66667px; + position: absolute; } .fork-corner.fc-pos-tr.fc-animate-default { transition: 0.5s; } .fork-corner.fc-pos-tr.fc-animate-default:hover { @@ -156,11 +157,29 @@ body { .fork-corner.fc-pos-tr + div { top: -100px; right: -100px; - transform: rotate(45deg); } + transform: rotate(45deg); + position: absolute; } + +.fork-corner.fc-pos-tr-sticky { + top: 16.66667px; + right: 16.66667px; + position: fixed; } + .fork-corner.fc-pos-tr-sticky.fc-animate-default { + transition: 0.5s; } + .fork-corner.fc-pos-tr-sticky.fc-animate-default:hover { + transform: rotate(45deg); + transition: 0.5s; } + +.fork-corner.fc-pos-tr-sticky + div { + top: -100px; + right: -100px; + transform: rotate(45deg); + position: fixed; } .fork-corner.fc-pos-tl { top: 16.66667px; - left: 16.66667px; } + left: 16.66667px; + position: absolute; } .fork-corner.fc-pos-tl.fc-animate-default { transition: 0.5s; } .fork-corner.fc-pos-tl.fc-animate-default:hover { @@ -168,13 +187,29 @@ body { transition: 0.5s; } .fork-corner.fc-pos-tl + div { + top: -100px; + left: -100px; + transform: rotate(45deg); + position: absolute; } + +.fork-corner.fc-pos-tl-sticky { + top: 16.66667px; + left: 16.66667px; } + .fork-corner.fc-pos-tl-sticky.fc-animate-default { + transition: 0.5s; } + .fork-corner.fc-pos-tl-sticky.fc-animate-default:hover { + transform: rotate(-45deg); + transition: 0.5s; } + +.fork-corner.fc-pos-tl-sticky + div { top: -100px; left: -100px; transform: rotate(45deg); } .fork-corner.fc-pos-br { bottom: 16.66667px; - right: 16.66667px; } + right: 16.66667px; + position: fixed; } .fork-corner.fc-pos-br.fc-animate-default { transition: 0.5s; } .fork-corner.fc-pos-br.fc-animate-default:hover { @@ -184,11 +219,13 @@ body { .fork-corner.fc-pos-br + div { bottom: -100px; right: -100px; - transform: rotate(45deg); } + transform: rotate(45deg); + position: fixed; } .fork-corner.fc-pos-bl { bottom: 16.66667px; - left: 16.66667px; } + left: 16.66667px; + position: fixed; } .fork-corner.fc-pos-bl.fc-animate-default { transition: 0.5s; } .fork-corner.fc-pos-bl.fc-animate-default:hover { @@ -198,8 +235,10 @@ body { .fork-corner.fc-pos-bl + div { bottom: -100px; left: -100px; - transform: rotate(45deg); } + transform: rotate(45deg); + position: fixed; } +/** fork corner themes **/ .fork-corner.fc-theme-default { text-decoration: none; } .fork-corner.fc-theme-default > i { diff --git a/dist/fork-corner.js b/dist/fork-corner.js index 0dd9979..ea5bf6c 100644 --- a/dist/fork-corner.js +++ b/dist/fork-corner.js @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga diff --git a/dist/fork-corner.min.css b/dist/fork-corner.min.css index 25565d1..b6345a3 100644 --- a/dist/fork-corner.min.css +++ b/dist/fork-corner.min.css @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga @@ -12,4 +12,4 @@ * Website: warengonzaga.com */ -html,body{overflow-x:hidden;touch-action:pan-y;position:relative}body{margin:0}#fork-corner{z-index:105;position:absolute}.fork-corner.fc-size-small.fc-pos-tr{top:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-tr+div{top:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-tl{top:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-tl+div{top:-75px;left:-75px}.fork-corner.fc-size-small.fc-pos-br{bottom:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-br+div{bottom:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-bl{bottom:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-bl+div{bottom:-75px;left:-75px}.fork-corner.fc-size-small.fc-theme-default>i,.fork-corner.fc-size-small.fc-theme-github>i,.fork-corner.fc-size-small.fc-theme-gitlab>i,.fork-corner.fc-size-small.fc-theme-bitbucket>i{font-size:37.5px}.fork-corner.fc-size-small+div{width:150px;height:150px}.fork-corner.fc-size-medium.fc-pos-tr{top:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-tr+div{top:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-tl{top:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-tl+div{top:-125px;left:-125px}.fork-corner.fc-size-medium.fc-pos-br{bottom:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-br+div{bottom:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-bl{bottom:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-bl+div{bottom:-125px;left:-125px}.fork-corner.fc-size-medium.fc-theme-default>i,.fork-corner.fc-size-medium.fc-theme-github>i,.fork-corner.fc-size-medium.fc-theme-gitlab>i,.fork-corner.fc-size-medium.fc-theme-bitbucket>i{font-size:62.5px}.fork-corner.fc-size-medium+div{width:250px;height:250px}.fork-corner.fc-size-large.fc-pos-tr{top:25px;right:25px}.fork-corner.fc-size-large.fc-pos-tr+div{top:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-tl{top:25px;left:25px}.fork-corner.fc-size-large.fc-pos-tl+div{top:-150px;left:-150px}.fork-corner.fc-size-large.fc-pos-br{bottom:25px;right:25px}.fork-corner.fc-size-large.fc-pos-br+div{bottom:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-bl{bottom:25px;left:25px}.fork-corner.fc-size-large.fc-pos-bl+div{bottom:-150px;left:-150px}.fork-corner.fc-size-large.fc-theme-default>i,.fork-corner.fc-size-large.fc-theme-github>i,.fork-corner.fc-size-large.fc-theme-gitlab>i,.fork-corner.fc-size-large.fc-theme-bitbucket>i{font-size:75px}.fork-corner.fc-size-large+div{width:300px;height:300px}.fork-corner+div{position:absolute;width:200px;height:200px;z-index:100}.fork-corner.fc-pos-tr{top:16.66667px;right:16.66667px}.fork-corner.fc-pos-tr.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tr.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-tr+div{top:-100px;right:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-tl{top:16.66667px;left:16.66667px}.fork-corner.fc-pos-tl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-tl+div{top:-100px;left:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-br{bottom:16.66667px;right:16.66667px}.fork-corner.fc-pos-br.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-br.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-br+div{bottom:-100px;right:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-bl{bottom:16.66667px;left:16.66667px}.fork-corner.fc-pos-bl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-bl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-bl+div{bottom:-100px;left:-100px;transform:rotate(45deg)}.fork-corner.fc-theme-default{text-decoration:none}.fork-corner.fc-theme-default>i{font-size:50px;color:#fff}.fork-corner.fc-theme-default+div{background-color:#f34f29}.fork-corner.fc-theme-github{text-decoration:none}.fork-corner.fc-theme-github>i{font-size:50px;color:#fff}.fork-corner.fc-theme-github+div{background-color:#181717}.fork-corner.fc-theme-gitlab{text-decoration:none}.fork-corner.fc-theme-gitlab>i{font-size:50px;color:#fff}.fork-corner.fc-theme-gitlab+div{background-color:#e24329}.fork-corner.fc-theme-bitbucket{text-decoration:none}.fork-corner.fc-theme-bitbucket>i{font-size:50px;color:#fff}.fork-corner.fc-theme-bitbucket+div{background-color:#205081} +html,body{overflow-x:hidden;touch-action:pan-y;position:relative}body{margin:0}#fork-corner{z-index:105}.fork-corner+div{width:200px;height:200px;z-index:100}.fork-corner.fc-size-small.fc-pos-tr{top:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-tr+div{top:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-tl{top:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-tl+div{top:-75px;left:-75px}.fork-corner.fc-size-small.fc-pos-br{bottom:12.5px;right:12.5px}.fork-corner.fc-size-small.fc-pos-br+div{bottom:-75px;right:-75px}.fork-corner.fc-size-small.fc-pos-bl{bottom:12.5px;left:12.5px}.fork-corner.fc-size-small.fc-pos-bl+div{bottom:-75px;left:-75px}.fork-corner.fc-size-small.fc-theme-default>i,.fork-corner.fc-size-small.fc-theme-github>i,.fork-corner.fc-size-small.fc-theme-gitlab>i,.fork-corner.fc-size-small.fc-theme-bitbucket>i{font-size:37.5px}.fork-corner.fc-size-small+div{width:150px;height:150px}.fork-corner.fc-size-medium.fc-pos-tr{top:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-tr+div{top:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-tl{top:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-tl+div{top:-125px;left:-125px}.fork-corner.fc-size-medium.fc-pos-br{bottom:20.83333px;right:20.83333px}.fork-corner.fc-size-medium.fc-pos-br+div{bottom:-125px;right:-125px}.fork-corner.fc-size-medium.fc-pos-bl{bottom:20.83333px;left:20.83333px}.fork-corner.fc-size-medium.fc-pos-bl+div{bottom:-125px;left:-125px}.fork-corner.fc-size-medium.fc-theme-default>i,.fork-corner.fc-size-medium.fc-theme-github>i,.fork-corner.fc-size-medium.fc-theme-gitlab>i,.fork-corner.fc-size-medium.fc-theme-bitbucket>i{font-size:62.5px}.fork-corner.fc-size-medium+div{width:250px;height:250px}.fork-corner.fc-size-large.fc-pos-tr{top:25px;right:25px}.fork-corner.fc-size-large.fc-pos-tr+div{top:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-tl{top:25px;left:25px}.fork-corner.fc-size-large.fc-pos-tl+div{top:-150px;left:-150px}.fork-corner.fc-size-large.fc-pos-br{bottom:25px;right:25px}.fork-corner.fc-size-large.fc-pos-br+div{bottom:-150px;right:-150px}.fork-corner.fc-size-large.fc-pos-bl{bottom:25px;left:25px}.fork-corner.fc-size-large.fc-pos-bl+div{bottom:-150px;left:-150px}.fork-corner.fc-size-large.fc-theme-default>i,.fork-corner.fc-size-large.fc-theme-github>i,.fork-corner.fc-size-large.fc-theme-gitlab>i,.fork-corner.fc-size-large.fc-theme-bitbucket>i{font-size:75px}.fork-corner.fc-size-large+div{width:300px;height:300px}.fork-corner.fc-pos-tr{top:16.66667px;right:16.66667px;position:absolute}.fork-corner.fc-pos-tr.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tr.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-tr+div{top:-100px;right:-100px;transform:rotate(45deg);position:absolute}.fork-corner.fc-pos-tr-sticky{top:16.66667px;right:16.66667px;position:fixed}.fork-corner.fc-pos-tr-sticky.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tr-sticky.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-tr-sticky+div{top:-100px;right:-100px;transform:rotate(45deg);position:fixed}.fork-corner.fc-pos-tl{top:16.66667px;left:16.66667px;position:absolute}.fork-corner.fc-pos-tl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-tl+div{top:-100px;left:-100px;transform:rotate(45deg);position:absolute}.fork-corner.fc-pos-tl-sticky{top:16.66667px;left:16.66667px}.fork-corner.fc-pos-tl-sticky.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-tl-sticky.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-tl-sticky+div{top:-100px;left:-100px;transform:rotate(45deg)}.fork-corner.fc-pos-br{bottom:16.66667px;right:16.66667px;position:fixed}.fork-corner.fc-pos-br.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-br.fc-animate-default:hover{transform:rotate(45deg);transition:0.5s}.fork-corner.fc-pos-br+div{bottom:-100px;right:-100px;transform:rotate(45deg);position:fixed}.fork-corner.fc-pos-bl{bottom:16.66667px;left:16.66667px;position:fixed}.fork-corner.fc-pos-bl.fc-animate-default{transition:0.5s}.fork-corner.fc-pos-bl.fc-animate-default:hover{transform:rotate(-45deg);transition:0.5s}.fork-corner.fc-pos-bl+div{bottom:-100px;left:-100px;transform:rotate(45deg);position:fixed}.fork-corner.fc-theme-default{text-decoration:none}.fork-corner.fc-theme-default>i{font-size:50px;color:#fff}.fork-corner.fc-theme-default+div{background-color:#f34f29}.fork-corner.fc-theme-github{text-decoration:none}.fork-corner.fc-theme-github>i{font-size:50px;color:#fff}.fork-corner.fc-theme-github+div{background-color:#181717}.fork-corner.fc-theme-gitlab{text-decoration:none}.fork-corner.fc-theme-gitlab>i{font-size:50px;color:#fff}.fork-corner.fc-theme-gitlab+div{background-color:#e24329}.fork-corner.fc-theme-bitbucket{text-decoration:none}.fork-corner.fc-theme-bitbucket>i{font-size:50px;color:#fff}.fork-corner.fc-theme-bitbucket+div{background-color:#205081} diff --git a/dist/fork-corner.min.js b/dist/fork-corner.min.js index 41138f2..d0fc879 100644 --- a/dist/fork-corner.min.js +++ b/dist/fork-corner.min.js @@ -1,10 +1,10 @@ /*! * Fork Corner - https://fork-corner.warengonzaga.com * A modern and global open source fork corner label for your project's landing page. - * Version: 1.0.1 + * Version: 1.1.0 * Github: https://github.com/WarenGonzaga/fork-corner * Licensed Under The MIT License: http://opensource.org/licenses/MIT - * Copyright (c) 2020 Waren Gonzaga + * Copyright (c) 2021 Waren Gonzaga * * Facebook: @warengonzagaofficial * Twitter: @warengonzaga