cssjs-func-lib/flag.css
2023-06-10 22:34:00 +02:00

73 lines
1.2 KiB
CSS

#flag-panel {
position: fixed;
bottom: 0px;
right: 0px;
width: 170px;
border: 1px solid #fff;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
margin-right: -145px;
z-index: 99999;
}
@media (max-width:1081px) {
#flag-panel {
border: 10px solid #fff;
border-top-left-radius: 23px;
border-bottom-left-radius: 23px;
margin-right: -135px;
}
}
#flag-panel.open {
margin-right: 0px !important;
}
#flag-panel.opened {
transition: margin-right 1s;
}
#flag-panel span {
margin-right: 10px;
margin-left: 5px;
}
#flag-overlay {
position: fixed;
width: 100%;
height: 100vh;
top: 0;
left: 0;
background-color: rgba(0,0,0,0.5);
z-index: 9999;
}
#flag-iframe {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
z-index: 10000;
background-color: #000;
border: 3px solid #fff;
border-radius: 1em;
overflow-y: scroll;
height: 97vh;
min-width: 350px;
width: 80%;
display: block;
margin: 0 auto;
margin-top: 1vh;
}
#flag-overlay.closing {
transition: opacity 0.5s;
}
#flag-iframe.closing {
transition: margin 1s ease, width 1s ease, height 1s ease;
width: 350px;
height: 170px;
margin-top: calc(50vh - 50px);
overflow: hidden;
}