RE: Menu Buggato
11-09-2016, 18:05ok buono
Ora sto sistemando un po il codice perchè pure ora aveva qualche problema, ma niente di che. Quasi tutto semplice. Ora vedo, se ho problemi, riferisco
.clearfix:before,
.clearfix:after{
content:"";
display:table
}
.clearfix:after{
clear:both
}
.clearfix{
zoom:1
}
table {
border-collapse:collapse
}
td, th {
border:1px solid #ddd;
padding:8px;
}
@font-face {
font-family: arial;
src: url(arial.ttf);
font-family: 'arial' !important;
}
a {
color: #0097cf !important;
transition: all 250ms;
}
a:hover {
color: #000066 !important;
}
body {
margin: 0;
padding: 0;
background: url("http://i.imgur.com/LEa9lx9.png");
font-family: 'arial' !important;
}
input[type="button" i], input[type="submit" i], input[type="reset" i], input[type="file" i]::-webkit-file-upload-button, button {
background: #0064c7 !important;
border: none !important;
padding: 7px 10px !important;
color: white !important;
transition: all 500ms;
}
input[type="button" i]:hover, input[type="submit" i]:hover, input[type="reset" i]:hover, input[type="file" i]:hover::-webkit-file-upload-button, button:hover {
background: #000066 !important;
}
.sogno a {
text-decoration: none;
font-weight: bold;
font-size: 18px;
}
.sogno {
float: left !important;
width: 30% !important;
padding: 5px;
background: #e2e2e2;
border: 1px solid transparent;
text-align: center;
margin-left: 10px;
margin-right: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
.sogno:hover {
border: 1px solid #0064c7;
}
.imgS {
height: 200px !important;
width: 300px !important;
text-align: center;
border: 2px solid #0064c7;
}
.welcome {
text-align: center;
background: rgba(0, 100, 199, 0.45);
font-size: 22px;
border-radius: 3px;
padding: 15px;
color: #000066;
}
.welcome a {
font-size: 20px;
font-weight: bold;
padding: 7px 10px;
text-decoration: none;
color: white !important;
background: #e62117;
transition: all 250ms;
border-radius: 4px;
}
.welcome a:hover {
color: white !important;
background: #cc181e;
}
.header {
padding: 0;
background: url("http://i.imgur.com/rX4xXh4.png?1");
background-position: center;
height: 200px !important;
}
.header img {
margin-bottom: 200px !important;
}
.header {
font-weight: bold;
text-align: left;
color: #fff;
}
.buttonT a {
padding: 5px 8px;
text-decoration: none;
color: white !important;
background: #e62117;
transition: all 250ms;
border-radius: 2px;
}
.buttonT a:hover {
color: white !important;
background: #cc181e;
}
.title {
background: #0064c7;
color: white;
font-weight: bold;
padding: 10px;
padding-left: 100px !important;
padding-right: 100px !important;
}
.content {
width: 90%;
padding: 20px;
background: white;
border: 2px solid #0064c7;
box-shadow: 0 0 100px #0064c7;
margin: auto;
margin-bottom: 40px;
}
.sticky {
position: fixed;
width: 100%;
left: 0;
top: 0;
z-index: 100;
border-top: 0;
}
.reglog a {
padding: 5px 8px;
text-decoration: none;
color: white !important;
background: #e62117;
transition: all 250ms;
border-radius: 4px;
}
.reglog a:hover {
color: white !important;
background: #cc181e;
}
.reglog {
background: rgba(255,255,255,0.75);
border: 2px solid #0064c7;
border-radius: 3px;
padding: 7px 10px;
color: #000066;
margin-top: 15px !important;
margin-right: 15px;
float: right !important;
}
.rltable td {
border: none !important;
}
.rltable tr {
border: none !important;
}
@media (min-device-width : 320px) and (max-device-width : 480px) {
.sogno {
float: none !important;
width: 100% !important;
padding: 5px;
background: #e2e2e2;
border: 1px solid transparent;
text-align: center;
margin-left: 0px;
margin-right: 0px;
margin-top: 20px;
margin-bottom: 20px;
}
}
@media (min-device-width : 768px) and (max-device-width : 1024px) {
.sogno {
float: left !important;
width: 45% !important;
padding: 5px;
background: #e2e2e2;
border: 1px solid transparent;
text-align: center;
margin-left: 10px;
margin-right: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
}
.container {
overflow: hidden;
background-color: #000;
/* Prevents Flickering */
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
}
header {
height: 60px;
position: relative;
background-color: #F04949;
}
header h1 a {
color: #fff;
text-align: left;
font-size: 27px;
line-height: 60px;
font-weight: bold;
padding-left: 20px;
}
header h1 a:hover {color: #2d2321;}
.burger {
position: absolute;
float: left;
padding: 10px;
top: 4px;
left: 10px;
cursor:pointer;
display: none;
}
.burger li {
width: 30px;
height: 4px;
background-color: #fff;
border-radius: 3px;
margin: 5px 0;
}
.burger.open li {background-color: #d9dde1;}
nav {
position: absolute;
top: 0;
right: 5px;
}
nav li {
float: left;
display: inline-block;
}
nav li a {
font-size: 14px;
color: #fff;
padding: 22px 15px;
font-weight:600;
display: block;
}
nav li a:hover {color: #2d2321;}
/* Removable CSS */
.header-section,
.body-section,
.footer-section
{padding: 0px;}
.header-section {background-color: #203748;}
.body-section {background-color: #39D084;}
.footer-section {background-color: #355267;}
.placefiller {
text-align: center;
font-size: 2em;
color:#fbf59c;
border: 1px dashed #fbf59c;
}
.header-section .placefiller {line-height: 300px;color: #FFFFFF;
font-size: 3em;}
.body-section .placefiller {line-height: 900px;}
.footer-section .placefiller {
line-height: 200px;
border: 1px dashed rgba(190, 196, 202, 0.9);
}
@media only screen and (max-width: 780px) {
header {
height: 60px;
z-index: 2;
background-color: #f04949;
position: fixed;
top: 0;
right: 0;
left: 0;
/* starting point */
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
header h1 a {
color: #ffffff;
text-align: center;
padding-left: 70px;
display: block;
}
.burger {display: block;}
/* Nav Drawer Layout */
nav {position: relative;}
nav ul {
height: 100%;
overflow-y: auto;
}
nav li {
display: block;
float: right;
}
nav li a {
padding: 21px 25px;
letter-spacing: 3px;
font-size: 14px;
}
nav li a.logo {
display: none;
}
nav li a.active {
color: #fff;
background-color: #141e23;
}
nav li a:hover {
color: #fff;
background-color: #19252c;
}
nav li:first-child a.active,
nav li:first-child a:hover
{border-radius: 10px 0 0 0;}
.header-section {margin-top: 0px;}
/* NAVIGATION ANNIMATION */
nav {
width: 93%;
height: 100%;
position: fixed;
left: 0;
top: 0;
margin: 0;
background-color: #1d2d35;
border-radius: 8px;
/* starting point */
opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);
-moz-transform: translate3d(5%,0,0)scale(.97);
transform: translate3d(5%,0,0)scale(.97);
}
/*Nav Expanding Open Effect*/
nav.open {
opacity: 1;
-webkit-transform: translate3d(0,0,0)scale(1);
-webkit-animation: slideIn .35s ease-in-out;
-moz-transform: translate3d(0,0,0)scale(1);
-moz-animation: slideIn .35s ease-in-out;
transform: translate3d(0,0,0)scale(1);
animation: slideIn .35s ease-in-out;
}
@-webkit-keyframes slideIn {
0% {opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);}
100% {opacity: 1;
-webkit-transform: translate3d(0,0,0)scale(1);}
}
@-moz-keyframes slideIn {
0% {opacity: .3;
-moz-transform: translate3d(5%,0,0)scale(.97);}
100% {opacity: 1;
-moz-transform: translate3d(0,0,0)scale(1);}
}
@keyframes slideIn {
0% {opacity: .3;
transform: translate3d(5%,0,0)scale(.97);}
100% {opacity: 1;
transform: translate3d(0,0,0)scale(1);}
}
/*Nav Shrinking Closed Effect*/
nav.close {
opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);
-webkit-animation: slideOut .3s ease-in-out;
-moz-transform: translate3d(5%,0,0)scale(.97);
-moz-animation: slideOut .3s ease-in-out;
transform: translate3d(5%,0,0)scale(.97);
animation: slideOut .3s ease-in-out;
}
@-webkit-keyframes slideOut {
0% {opacity: 1;
-webkit-transform: translate3d(0,0,0)scale(1);}
100% {opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);}
}
@-moz-keyframes slideOut {
0% {opacity: 1;
-moz-transform: translate3d(0,0,0)scale(1);}
100% {opacity: .3;
-moz-transform: translate3d(5%,0,0)scale(.97);}
}
@keyframes slideOut {
0% {opacity: 1;
transform: translate3d(0,0,0)scale(1);}
100% {opacity: .3;
transform: translate3d(5%,0,0)scale(.97);}
}
/* CONTENT ANNIMATION */
.content {
/* starting point */
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
z-index: 1;
}
/*Content Sliding Open Effect*/
header.open,
.content.open
{
-webkit-transform: translate3d(240px,0,0);
-webkit-animation: open .5s ease-in-out;
-moz-transform: translate3d(240px,0,0);
-moz-animation: open .5s ease-in-out;
transform: translate3d(240px,0,0);
animation: open .5s ease-in-out;
}
@-webkit-keyframes open {
0% {-webkit-transform: translate3d(0,0,0);}
70% {-webkit-transform: translate3d(260px,0,0);}
100% {-webkit-transform: translate3d(240px,0,0);}
}
@-moz-keyframes open {
0% {-moz-transform: translate3d(0,0,0);}
70% {-moz-transform: translate3d(260px,0,0);}
100% {-moz-transform: translate3d(240px,0,0);}
}
@keyframes open {
0% {transform: translate3d(0,0,0);}
70% {transform: translate3d(260px,0,0);}
100% {transform: translate3d(240px,0,0);}
}
/*Content Sliding Closed Effect*/
header.close,
.content.close
{
-webkit-transform: translate3d(0,0,0);
-webkit-animation: close .3s ease-in-out;
-moz-transform: translate3d(0,0,0);
-moz-animation: close .3s ease-in-out;
transform: translate3d(0,0,0);
animation: close .3s ease-in-out;
}
@-webkit-keyframes close {
0% {-webkit-transform: translate3d(240px,0,0);}
100% {-webkit-transform: translate3d(0,0,0);}
}
@-moz-keyframes close {
0% {-moz-transform: translate3d(240px,0,0);}
100% {-moz-transform: translate3d(0,0,0);}
}
@keyframes close {
0% {transform: translate3d(240px,0,0);}
100% {transform: translate3d(0,0,0);}
}
}