*.css
input[type=button], input[type=password] {
background-color: grey;
border: none;
color: white;
padding: 6px 32px;
text-decoration: none;
margin: 1px 1px;
cursor: pointer;
border-radius: 1px;
}
input[type=button], input[type=submit] {
background-color: #4CAF50;
border: none;
color: white;
padding: 16px 32px;
text-decoration: none;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
html{
background-image:
linear-gradient(
to bottom,
#0D2F5C,
#1965A1
);
background-size: contain;
background-repeat: no-repeat;
background-size: cover;
height: 100%;
background-attachment: fixed;
font: 1.1em sans-serif;
color : white;
}
ul{
display: table;
width: 850px;
margin: 50px auto;
padding: 0;
background: -webkit-linear-gradient(#0D2F5C, #1965A1);
background: -moz-linear-gradient(#0D2F5C, #1965A1);
background: -ms-linear-gradient(#0D2F5C, #1965A1);
background: -o-linear-gradient(#0D2F5C, #1965A1);
background: linear-gradient(#0D2F5C, #1965A1);
border-radius: 0px;
box-shadow: 0 1px 3px rgba(0, 0, 0, .3),
0 3px 5px rgba(0, 0, 0, .2),
0 5px 10px rgba(0, 0, 0, .2),
0 20px 20px rgba(0, 0, 0, .15);
}
ul li{
display: table-cell;
}
ul li a{
display: block;
text-align: center;
color: rgba(0, 0, 0, .7);
text-decoration: none;
padding: 8px 8px 17px 8px;
box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset,
0 -1px 0 hsl(210, 100%, 32%) inset,
0 -2px 0 hsl(210, 100%, 38%) inset,
0 -3px 0 hsl(210, 100%, 44%) inset,
0 -4px 0 hsl(210, 100%, 50%) inset,
0 -5px 0 hsl(210, 100%, 60%) inset;
text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
transition: padding .3s;
transition: all .3s;
position: relative;
}
ul li a::before{
content: '';
position: absolute;
left: 50%;
bottom: 9px;
margin-left: -2px;
width: 4px;
height: 4px;
border-radius: 50%;
background: rgba(0, 0, 0, .5);
}
ul li a:focus::before{
background: green;
box-shadow: 0 0 2px white,
0 -1px 0 rgba(0, 0, 0, .4);
}
ul li:first-child a{
border-radius: 3px 0 0 3px;
}
ul li:last-child a{
border-radius: 0 3px 3px 0;
}
ul li a:hover,
ul li a:focus{
background-color: gold;
box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset,
0 -1px 0 hsl(210, 100%, 42%) inset,
0 -2px 0 hsl(210, 100%, 48%) inset,
0 -3px 0 hsl(210, 100%, 54%) inset,
0 -4px 0 hsl(210, 100%, 60%) inset,
0 -5px 0 hsl(210, 100%, 70%) inset;
}
ul li a:hover,
ul li a:focus{
background: #0D2F5C;
box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset,
0 -1px 0 hsl(210, 100%, 42%) inset,
0 -2px 0 hsl(210, 100%, 48%) inset,
0 -3px 0 hsl(210, 100%, 54%) inset,
0 -4px 0 hsl(210, 100%, 60%) inset,
0 -5px 0 hsl(210, 100%, 70%) inset;
padding: 8px 25px 17px 25px;
}
ul li a:active{
background: linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.1));
box-shadow: 0 0 2px rgba(0,0,0,.3) inset;
}