2013-11-19 14:23:30 +00:00
|
|
|
title: $:/plugins/tiddlywiki/github-fork-ribbon/styles
|
|
|
|
|
|
|
|
/* Left will inherit from right (so we don't need to duplicate code */
|
|
|
|
.github-fork-ribbon {
|
|
|
|
/* The right and left lasses determine the side we attach our banner to */
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
/* Add a bit of padding to give some substance outside the "stitching" */
|
|
|
|
padding: 2px 0;
|
|
|
|
|
|
|
|
/* Set the base colour */
|
2024-03-28 19:27:58 +00:00
|
|
|
background-color: <<color>>;
|
2013-11-19 14:23:30 +00:00
|
|
|
|
|
|
|
/* 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.00)), to(rgba(0, 0, 0, 0.15)));
|
|
|
|
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
|
|
|
|
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
|
|
|
|
background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
|
|
|
|
background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
|
|
|
|
background-image: linear-gradient(top, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.15));
|
|
|
|
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#000000', EndColorStr='#000000');
|
|
|
|
|
|
|
|
/* Add a drop shadow */
|
|
|
|
-webkit-box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);
|
|
|
|
box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5);
|
|
|
|
|
2024-03-28 19:27:58 +00:00
|
|
|
z-index: 700;
|
2013-11-19 14:23:30 +00:00
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
2014-08-28 17:13:46 +00:00
|
|
|
.github-fork-ribbon a, .github-fork-ribbon a.tc-tiddlylink,
|
|
|
|
.github-fork-ribbon a:hover, .github-fork-ribbon a.tc-tiddlylink:hover {
|
2013-11-19 14:23:30 +00:00
|
|
|
/* Set the font */
|
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 700;
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
/* Set the text properties */
|
|
|
|
text-decoration: none;
|
|
|
|
text-shadow: 0 -1px rgba(0,0,0,0.5);
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
/* Set the geometry. If you fiddle with these you'll also need to tweak the top and right values in #github-fork-ribbon. */
|
|
|
|
width: 200px;
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
|
|
/* Set the layout properties */
|
|
|
|
display: inline-block;
|
|
|
|
padding: 2px 0;
|
|
|
|
|
|
|
|
/* Add "stitching" effect */
|
|
|
|
border-width: 1px 0;
|
|
|
|
border-style: dotted;
|
|
|
|
border-color: rgba(255,255,255,0.7);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper {
|
|
|
|
width: 150px;
|
|
|
|
height: 150px;
|
|
|
|
position: absolute;
|
|
|
|
overflow: hidden;
|
2024-03-28 19:27:58 +00:00
|
|
|
top: <<top>>;
|
|
|
|
z-index: 700;
|
2013-11-19 14:23:30 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.fixed {
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.left {
|
2024-03-28 19:27:58 +00:00
|
|
|
left: <<left>>;
|
2013-11-19 14:23:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.right {
|
2024-03-28 19:27:58 +00:00
|
|
|
right: <<right>>;
|
2013-11-19 14:23:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.left-bottom {
|
|
|
|
position: fixed;
|
|
|
|
top: inherit;
|
2024-03-28 19:27:58 +00:00
|
|
|
bottom: <<bottom>>;
|
|
|
|
left: <<left>>;
|
2013-11-19 14:23:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.right-bottom {
|
|
|
|
position: fixed;
|
|
|
|
top: inherit;
|
2024-03-28 19:27:58 +00:00
|
|
|
bottom: <<bottom>>;
|
|
|
|
right: <<right>>;
|
2013-11-19 14:23:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.right .github-fork-ribbon {
|
|
|
|
top: 42px;
|
|
|
|
right: -43px;
|
|
|
|
|
|
|
|
/* Rotate the banner 45 degrees */
|
|
|
|
-webkit-transform: rotate(45deg);
|
|
|
|
-moz-transform: rotate(45deg);
|
|
|
|
-o-transform: rotate(45deg);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.left .github-fork-ribbon {
|
|
|
|
top: 42px;
|
|
|
|
left: -43px;
|
|
|
|
|
|
|
|
/* Rotate the banner -45 degrees */
|
|
|
|
-webkit-transform: rotate(-45deg);
|
|
|
|
-moz-transform: rotate(-45deg);
|
|
|
|
-o-transform: rotate(-45deg);
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.left-bottom .github-fork-ribbon {
|
|
|
|
top: 80px;
|
|
|
|
left: -43px;
|
|
|
|
|
|
|
|
/* Rotate the banner -45 degrees */
|
|
|
|
-webkit-transform: rotate(45deg);
|
|
|
|
-moz-transform: rotate(45deg);
|
|
|
|
-o-transform: rotate(45deg);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.github-fork-ribbon-wrapper.right-bottom .github-fork-ribbon {
|
|
|
|
top: 80px;
|
|
|
|
right: -43px;
|
|
|
|
|
|
|
|
/* Rotate the banner -45 degrees */
|
|
|
|
-webkit-transform: rotate(-45deg);
|
|
|
|
-moz-transform: rotate(-45deg);
|
|
|
|
-o-transform: rotate(-45deg);
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
}
|