mirror of https://github.com/CIRCL/lookyloo
new: Add ribbons on index
parent
a4a51e50d3
commit
d1f33d6914
|
@ -0,0 +1,74 @@
|
||||||
|
/* Source: https://codepen.io/eode9/pen/twkKm */
|
||||||
|
|
||||||
|
/* The ribbons */
|
||||||
|
|
||||||
|
.corner-ribbon{
|
||||||
|
width: 200px;
|
||||||
|
background: #e43;
|
||||||
|
position: absolute;
|
||||||
|
top: 25px;
|
||||||
|
left: -50px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 50px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
color: #f0f0f0;
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
-webkit-transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom styles */
|
||||||
|
|
||||||
|
.corner-ribbon.sticky{
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner-ribbon.shadow{
|
||||||
|
box-shadow: 0 0 3px rgba(0,0,0,.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Different positions */
|
||||||
|
|
||||||
|
.corner-ribbon.top-left{
|
||||||
|
top: 22px;
|
||||||
|
left: -53px;
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
-webkit-transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner-ribbon.top-right{
|
||||||
|
top: 22px;
|
||||||
|
right: -50px;
|
||||||
|
left: auto;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner-ribbon.bottom-left{
|
||||||
|
top: auto;
|
||||||
|
bottom: 25px;
|
||||||
|
left: -50px;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
-webkit-transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.corner-ribbon.bottom-right{
|
||||||
|
top: auto;
|
||||||
|
right: -50px;
|
||||||
|
bottom: 25px;
|
||||||
|
left: auto;
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
-webkit-transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Colors */
|
||||||
|
|
||||||
|
.corner-ribbon.white{background: #f0f0f0; color: #555;}
|
||||||
|
.corner-ribbon.black{background: #333;}
|
||||||
|
.corner-ribbon.grey{background: #999;}
|
||||||
|
.corner-ribbon.blue{background: #39d;}
|
||||||
|
.corner-ribbon.green{background: #2c7;}
|
||||||
|
.corner-ribbon.turquoise{background: #1b9;}
|
||||||
|
.corner-ribbon.purple{background: #95b;}
|
||||||
|
.corner-ribbon.red{background: #e43;}
|
||||||
|
.corner-ribbon.orange{background: #e82;}
|
||||||
|
.corner-ribbon.yellow{background: #ec0;}
|
|
@ -34,10 +34,17 @@ $(document).ready(function () {
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='datatables.min.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='datatables.min.css') }}">
|
||||||
|
<link rel="stylesheet" href="{{ url_for('static', filename='index.css') }}">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="corner-ribbon top-left sticky white shadow">
|
||||||
|
<a href="https://www.lookyloo.eu/docs/main/index.html">Documentation</a>
|
||||||
|
</div>
|
||||||
|
<div class="corner-ribbon top-right sticky white shadow">
|
||||||
|
<a href="https://github.com/Lookyloo">Project page</a>
|
||||||
|
</div>
|
||||||
<center>
|
<center>
|
||||||
<a href="{{ url_for('capture_web') }}">
|
<a href="{{ url_for('capture_web') }}">
|
||||||
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
|
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
|
||||||
|
|
Loading…
Reference in New Issue