Moved popup styles to base.css
parent
b8cec7c2da
commit
98c3f6f229
|
@ -185,3 +185,27 @@ a.underline:hover:not(.btn) {
|
||||||
.btn .fa {
|
.btn .fa {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Popups */
|
||||||
|
.popup {
|
||||||
|
background: #111;
|
||||||
|
padding: 3vw;
|
||||||
|
border-radius: 2vw;
|
||||||
|
z-index: 50;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
.popup h1 {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.popup p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.popup .close {
|
||||||
|
cursor: pointer;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
|
@ -45,29 +45,7 @@
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
||||||
{% if user and newuserurl %}
|
{% if user and newuserurl %}
|
||||||
<div id='welcome'>
|
<div id='welcome' class='popup'>
|
||||||
<style>
|
|
||||||
#welcome {
|
|
||||||
background: #111;
|
|
||||||
padding: 3vw;
|
|
||||||
border-radius: 2vw;
|
|
||||||
z-index: 50;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
}
|
|
||||||
#welcome h1 {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
#welcome p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
#welcome .close {
|
|
||||||
cursor: pointer;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<h1>Welcome!</h1>
|
<h1>Welcome!</h1>
|
||||||
<span class='close' onclick="$('#welcome').hide();">✖️</span>
|
<span class='close' onclick="$('#welcome').hide();">✖️</span>
|
||||||
|
|
Loading…
Reference in New Issue