body{ z-index: 1; background-color: #e5e5e5; margin: 20px; text-align: center; } .logo{ display: block; } h1{ margin: 40px; font-weight: bold; color: #454545; } p{ font-weight: bold; color: #454444; font-size: 20px; height: 20px; } /* Form */ form{ width: 400px; position: relative; background-color: #ffffff; display: block; margin: auto; border-radius: 30px; padding: 20px; } .container-champ{ position: relative; } .container-champ small{ display: none; color: red; } .champ{ background-color: inherit; position: relative; display: block; text-decoration-line: none; text-align: center; color: #454444; margin: 10px auto; border: 4px solid #4e4d4d; padding: 10px 10px; border-radius: 30px; width: 60%; transition: 0.25s; } .champ:focus, .champ:hover{ width: 75%; border-color: #ac2a8d; background-color: #dddddd; } .champ img{ display: none; position: relative; float: right; width: 20px; bottom: 20px; right: 20px; } .entry{ border: none; resize: none; outline: none; width: 100%; text-align: inherit; background-color: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none; } .submit{ background-color: inherit; position: relative; display: block; text-align: center; color: #454444; margin: 10px auto; border: 4px solid #4e4d4d; padding: 10px 10px; border-radius: 30px; width: 60%; transition: 0.25s; } .submit:hover{ width: 70%; background-color: #82E6AC; border-color: #2ecc71; } /* Indice */ .help{ display: none; z-index: 2; position: absolute; width: 170px; right: 0; top: 30%; border-radius: 30px; padding: 15px; margin: 0; background-color: #dddddd; } .help * { font-size: 14px; width: 100%; } .help p{ position: relative; } code { background-color: #aaa; border-radius: 5px; font-family: courier, monospace; padding: 3px 5px; } /* Nav */ nav{ width: 80%; margin-left: 10%; margin-bottom: 5%; background-color: #84878C; /*couleur nav entière*/ border-radius: 20px; } nav > ul{ margin-left: auto; margin-right: auto; padding: 0px; width: 60%; } nav > ul::after{ content: ""; display: block; clear: both; } nav > ul > li{ width: 20%; float: left; position: relative; text-align: center; list-style-type: none; } nav> ul > li > a{ font-size: 100%; padding-top: 10px; padding-bottom: 10px; color: #eee; display: inline-block; text-decoration: none; } .menu:hover{ background-color: #59184E; transition: 1s; border-radius: 10px; } .menu:hover > a{ color: #fff; font-weight: bold; } /* Table */ .table-title td{ color: #ac2a8d; font-weight: bold; } table{ width: 80%; border-radius: 5px; margin-left: 10%; margin-top: 2%; background-color: #84878C; color: #fff; border: 1px solid #84878C; } td { background-color: #e5e5e5; border: 1px solid #84878C; border-radius: 5px; text-align: center; word-break: break-all; color: #84878C; } th{ width: 100%; } /* SWITCH */ .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: crimson; border-radius: 34px; -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; border-radius: 50%; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked + .slider { background-color:#2ecc71; } input:focus + .slider { box-shadow: 0 0 1px #2ecc71; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); }