Author: bdemers
Date: Thu Mar 17 22:42:55 2016
New Revision: 1735515
URL: http://svn.apache.org/viewvc?rev=1735515&view=rev
Log:
adding github fork-me ribbon
Added:
shiro/site/trunk/assets/css/gh-pages/
shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css (with props)
shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css (with props)
Modified:
shiro/site/trunk/templates/default.vtl
Added: shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css
URL:
http://svn.apache.org/viewvc/shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css?rev=1735515&view=auto
==============================================================================
--- shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css (added)
+++ shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css Thu Mar 17 22:42:55
2016
@@ -0,0 +1,116 @@
+/*!
+ * "Fork me on GitHub" CSS ribbon v0.2.0 | MIT License
+ * https://github.com/simonwhitaker/github-fork-ribbon-css
+*/
+
+.github-fork-ribbon {
+ width: 12.1em;
+ height: 12.1em;
+ position: absolute;
+ overflow: hidden;
+ top: 0;
+ right: 0;
+ z-index: 9999;
+ pointer-events: none;
+ font-size: 13px;
+ text-decoration: none;
+ text-indent: -999999px;
+}
+
+.github-fork-ribbon.fixed {
+ position: fixed;
+}
+
+.github-fork-ribbon:before, .github-fork-ribbon:after {
+ /* The right and left classes determine the side we attach our banner to */
+ position: absolute;
+ display: block;
+ width: 15.38em;
+ height: 1.54em;
+
+ top: 3.23em;
+ right: -3.23em;
+
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+
+.github-fork-ribbon:before {
+ content: "";
+
+ /* Add a bit of padding to give some substance outside the "stitching" */
+ padding: .38em 0;
+
+ /* Set the base colour */
+ background-color: #a00;
+
+ /* Set a gradient: transparent black at the top to almost-transparent
black at the bottom */
+ background-image: -webkit-gradient(linear, left top, left bottom,
from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.15)));
+ background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0,
0, 0, 0.15));
+ background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0,
0, 0.15));
+ background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0,
0.15));
+ background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0,
0.15));
+ background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0,
0, 0.15));
+
+ /* Add a drop shadow */
+ -webkit-box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
+ -moz-box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
+ box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
+
+ pointer-events: auto;
+}
+
+.github-fork-ribbon:after {
+ /* Set the text from the title attribute */
+ content: attr(title);
+
+ /* Set the text properties */
+ color: #fff;
+ font: 700 1em "Helvetica Neue", Helvetica, Arial, sans-serif;
+ line-height: 1.54em;
+ text-decoration: none;
+ text-shadow: 0 -.08em rgba(0, 0, 0, 0.5);
+ text-align: center;
+ text-indent: 0;
+
+ /* Set the layout properties */
+ padding: .15em 0;
+ margin: .15em 0;
+
+ /* Add "stitching" effect */
+ border-width: .08em 0;
+ border-style: dotted;
+ border-color: #fff;
+ border-color: rgba(255, 255, 255, 0.7);
+}
+
+.github-fork-ribbon.left-top, .github-fork-ribbon.left-bottom {
+ right: auto;
+ left: 0;
+}
+
+.github-fork-ribbon.left-bottom, .github-fork-ribbon.right-bottom {
+ top: auto;
+ bottom: 0;
+}
+
+.github-fork-ribbon.left-top:before, .github-fork-ribbon.left-top:after,
.github-fork-ribbon.left-bottom:before, .github-fork-ribbon.left-bottom:after {
+ right: auto;
+ left: -3.23em;
+}
+
+.github-fork-ribbon.left-bottom:before, .github-fork-ribbon.left-bottom:after,
.github-fork-ribbon.right-bottom:before, .github-fork-ribbon.right-bottom:after
{
+ top: auto;
+ bottom: 3.23em;
+}
+
+.github-fork-ribbon.left-top:before, .github-fork-ribbon.left-top:after,
.github-fork-ribbon.right-bottom:before, .github-fork-ribbon.right-bottom:after
{
+ -webkit-transform: rotate(-45deg);
+ -moz-transform: rotate(-45deg);
+ -ms-transform: rotate(-45deg);
+ -o-transform: rotate(-45deg);
+ transform: rotate(-45deg);
+}
\ No newline at end of file
Propchange: shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.css
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css
URL:
http://svn.apache.org/viewvc/shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css?rev=1735515&view=auto
==============================================================================
--- shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css (added)
+++ shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css Thu Mar 17
22:42:55 2016
@@ -0,0 +1,49 @@
+/*!
+ * "Fork me on GitHub" CSS ribbon v0.2.0 | MIT License
+ * https://github.com/simonwhitaker/github-fork-ribbon-css
+*/
+
+/* IE voodoo courtesy of http://stackoverflow.com/a/4617511/263871 and
+ * http://www.useragentman.com/IETransformsTranslator */
+
+html {
+ overflow: auto;
+}
+
+body {
+ position: relative;
+ width: 100%;
+ height: auto;
+ overflow: hidden;
+}
+
+.github-fork-ribbon {
+ width: 15.38em;
+ height: 5.62em;
+
+ /* IE positioning hack (couldn't find a transform-origin alternative for
IE) */
+ top: -3.92em;
+ right: -4.46em;
+
+ /* IE8+ */
+ -ms-filter:
"progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474,
M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474,
SizingMethod='auto expand')";
+}
+
+.github-fork-ribbon.left-top, .github-fork-ribbon.right-bottom {
+ /* IE8+ */
+ -ms-filter:
"progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483,
M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483,
SizingMethod='auto expand')";
+}
+
+.github-fork-ribbon:before, .github-fork-ribbon:after {
+ left: auto !important;
+ right: auto !important;
+ font-size: inherit;
+}
+
+.github-fork-ribbon.left-top, .github-fork-ribbon.left-bottom {
+ left: -3.92em;
+}
+
+.github-fork-ribbon.left-bottom, .github-fork-ribbon.right-bottom {
+ bottom: 4.77em;
+}
\ No newline at end of file
Propchange: shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: shiro/site/trunk/assets/css/gh-pages/gh-fork-ribbon.ie.css
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: shiro/site/trunk/templates/default.vtl
URL:
http://svn.apache.org/viewvc/shiro/site/trunk/templates/default.vtl?rev=1735515&r1=1735514&r2=1735515&view=diff
==============================================================================
--- shiro/site/trunk/templates/default.vtl (original)
+++ shiro/site/trunk/templates/default.vtl Thu Mar 17 22:42:55 2016
@@ -44,6 +44,17 @@
<link rel="stylesheet" type="text/css"
href="$root/assets/css/confluence.css" media="screen">
<link rel="stylesheet" type="text/css" href="$root/assets/css/style.css">
+ <link rel="stylesheet" href="$root/assets/css/gh-pages/gh-fork-ribbon.css"
/>
+ <!--[if lt IE 9]>
+ <link rel="stylesheet"
href="$root/assets/css/gh-pages/gh-fork-ribbon.ie.css" />
+ <![endif]-->
+
+ <style>
+ .github-fork-ribbon.right-top:before {
+ background-color: #3254a0;
+ }
+ </style>
+
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript"
src="$root/assets/js/jquery_googleanalytics/jquery.google-analytics.js"></script>
<script type="text/javascript">
@@ -56,6 +67,8 @@
</head>
<body>
+ <a class="github-fork-ribbon right-top"
href="https://github.com/apache/shiro" title="Fork me on GitHub">Fork me on
GitHub</a>
+
<div id="top-bar"></div>
<div class="wrapper">