Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
git-seminar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maximilian Konzack
git-seminar
Commits
14b1eabf
Verified
Commit
14b1eabf
authored
7 years ago
by
ck85nori
Browse files
Options
Downloads
Patches
Plain Diff
adds fork me ribbon
parent
69979ac6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
basics.html
+12
-1
12 additions, 1 deletion
basics.html
css/fork-me-ribbon.css
+133
-0
133 additions, 0 deletions
css/fork-me-ribbon.css
with
145 additions
and
1 deletion
basics.html
+
12
−
1
View file @
14b1eabf
...
...
@@ -11,6 +11,7 @@
<link
rel=
"stylesheet"
href=
"reveal.js/lib/css/zenburn.css"
/>
<style
type=
"text/css"
>code
{
white-space
:
pre
;}
</style>
<link
rel=
"stylesheet"
href=
"reveal.js/css/theme/black.css"
id=
"theme"
/>
<link
rel=
"stylesheet"
href=
"css/fork-me-ribbon.css"
>
</head>
<body>
...
...
@@ -177,7 +178,17 @@
</div>
</div>
<!-- end of slides -->
<!-- fork me ribbon -->
<div
class=
"fork-me-ribbon-wrapper right"
>
<div
class=
"fork-me-ribbon"
>
<a
href=
"https://git.idiv.de/sc/edu/git-seminar"
>
fork me
</a>
</div>
</div>
<!-- reveal.stuff -->
<script
src=
"reveal.js/lib/js/head.min.js"
></script>
<script
src=
"reveal.js/js/reveal.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
css/fork-me-ribbon.css
0 → 100644
+
133
−
0
View file @
14b1eabf
/* Left will inherit from right (so we don't need to duplicate code */
.fork-me-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 */
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.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
);
z-index
:
9999
;
}
.fork-me-ribbon
a
,
.fork-me-ribbon
a
:hover
{
/* 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 #fork-me-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
);
}
.fork-me-ribbon-wrapper
{
width
:
150px
;
height
:
150px
;
position
:
absolute
;
overflow
:
hidden
;
top
:
0
;
z-index
:
9999
;
}
.fork-me-ribbon-wrapper.fixed
{
position
:
fixed
;
}
.fork-me-ribbon-wrapper.left
{
left
:
0
;
}
.fork-me-ribbon-wrapper.right
{
right
:
0
;
}
.fork-me-ribbon-wrapper.left-bottom
{
position
:
fixed
;
top
:
inherit
;
bottom
:
0
;
left
:
0
;
}
.fork-me-ribbon-wrapper.right-bottom
{
position
:
fixed
;
top
:
inherit
;
bottom
:
0
;
right
:
0
;
}
.fork-me-ribbon-wrapper.right
.fork-me-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
);
}
.fork-me-ribbon-wrapper.left
.fork-me-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
);
}
.fork-me-ribbon-wrapper.left-bottom
.fork-me-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
);
}
.fork-me-ribbon-wrapper.right-bottom
.fork-me-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
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment