outdated-browser-rework
Version:
Detects outdated browsers and asks users to upgrade to a new version. Handles mobile devices!
62 lines (61 loc) • 1.41 kB
CSS
#outdated {
font-family: "Open Sans", "Segoe UI", sans-serif;
position: absolute;
background-color: #f25648;
color: white;
display: none;
overflow: hidden;
left: 0;
position: fixed;
text-align: center;
text-transform: uppercase;
top: 0;
width: 100%;
z-index: 1500;
padding: 0 24px 24px 0; }
#outdated.fullscreen {
height: 100%; }
#outdated .vertical-center {
display: table-cell;
text-align: center;
vertical-align: middle; }
#outdated h6 {
font-size: 25px;
line-height: 25px;
margin: 12px 0; }
#outdated p {
font-size: 12px;
line-height: 12px;
margin: 0; }
#outdated #buttonUpdateBrowser {
border: 2px solid white;
color: white;
cursor: pointer;
display: block;
margin: 30px auto 0;
padding: 10px 20px;
position: relative;
text-decoration: none;
width: 230px; }
#outdated #buttonUpdateBrowser:hover {
background-color: white;
color: #f25648; }
#outdated .last {
height: 20px;
position: absolute;
right: 70px;
top: 10px;
width: auto;
display: inline-table; }
#outdated .last[dir=rtl] {
left: 25px ;
right: auto ; }
#outdated #buttonCloseUpdateBrowser {
color: white;
display: block;
font-size: 36px;
height: 100%;
line-height: 36px;
position: relative;
text-decoration: none;
width: 100%; }