WikiLerni/front/public/themes/wikilerni/css/common.css

252 lines
5.1 KiB
CSS
Raw Normal View History

@font-face {
font-family: Millimetre;
src: url(../webfonts/Light/Millimetre-Light_web.woff);
font-weight: lighter;
}
@font-face {
font-family: Millimetre;
src: url(../webfonts/Regular/Millimetre-Regular_web.woff);
font-weight: regular;
}
@font-face {
font-family: Millimetre;
src: url(../webfonts/Bold/Millimetre-Bold_web.woff);
font-weight: bold;
}
body
{margin: 0px;
overflow-x: hidden;
background-color: #8c599c;}
body, a, input
{
font-family: Millimetre;
font-weight: regular;
color: rgba(255,255,255,1);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.75);
}
input, #headLinks a, #footLinks a, a.button,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a
{
text-decoration: none;
outline: none;
}
a:hover
{
color: rgba(0,0,0,0.66);
text-shadow: 0px 1px 0px rgba(255,255,255,0.75);
}
a.button:hover
{
color:white;
text-shadow:none;
}
header,
footer
{background-color: #FF8800;
border-bottom: 1px solid rgba(0,0,0,0.75);
box-shadow: 0px 0px 10px black;
font-size: 1.5em;
width: 100%;
height:100px;
margin-top: 1em;
transform: rotate(0.66deg);}
header img
{max-height:80px;
margin-left:10px;
margin-top: 10px;
display: inline-block;}
header ul, footer ul
{list-style-type: none;
display: inline-block;
float: right;
line-height: 50px;}
header ul li
{float: right;
display: block;}
footer ul li
{display:inline-block;}
footer ul
{width: 100%;}
header ul li::after,
footer ul li::after
{width: 1px;
height: 80px;
display: block;
float: right;
content: '';
margin-left: 1em;
margin-top: -20px;
background: linear-gradient(to top, rgba(255,255,255,0.25), rgba(255,255,255,0.0));}
header ul li::before,
footer ul li::before
{width: 1px;
height: 80px;
display: block;
float: right;
content: '';
margin-top: -20px;
margin-right: 1em;
background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0.0));}
header ul li:first-child::after,
footer ul li:last-child::after
{display: none;}
header ul li:first-child::before,
footer ul li:last-child::before
{display: none;}
header ul li:first-child,
footer ul li:first-child
{margin-right: 1em;}
footer
{transform: rotate(-0.66deg);
clear: both;
text-align: center;}
fieldset
{border: 0px;}
.needJS
{
display: none;
}
.engraved
{
color: white;
text-shadow: 0px -1px 0px rgba(0, 0, 0, 1);
font-family: verdana;
}
.framed
{
border: 1px solid rgba(0, 0, 0, 0.33);
border-radius: 5px;
padding-top: 0.5em;
padding-bottom: 0.5em;
box-shadow: 0px 1px 0px rgba(255,255,255,0.5), inset 0px 1px 0px rgba(255,255,255,1);
background-image: url('../img/background-texture.png');
display: inline-block;
margin: 1em;
}
#explanations
{
padding: 1em;
}
#explanations p
{
margin:1.3em;
}
.cardboard, .error, .success, .info
{
background-opacity: 0.75;
background-image: url('../img/background-texture.png');
}
/* This allow the motion of the button while overing without displacing the content of the page */
.input_wrapper
{
height: 40px;
display: inline-block;
margin-bottom: 1em;
}
input[type=submit], input[type=text], input[type=email], input[type=password], .button
{background-color: #8c599c;
padding: 10px;
border: 0px;
border-radius: 3px;
margin-top:-10px;
color: white;
font-family: sans;
font-weight: bold;
position: relative;
transition: 0.125s ease all;
margin-top: 0px;
box-shadow: inset 0px 1px 0px rgba(255,255,255,0.66), inset 0px -1px 0px rgba(0, 0, 0,0.66), 0px 3px 8px rgba(0,0,0,0.66);}
input[type=submit]:hover, .button:hover
{
margin-top: 2px;
box-shadow: inset 0px 1px 0px rgba(255,255,255,0.66), inset 0px -1px 0px rgba(0, 0, 0,0.66), 0px 0px 5px rgba(0,0,0,0.66);
}
input[type=text], input[type=password], input[type=email] {
box-shadow: inset 0px 1px 0px rgba(0,0,0,0.66), inset 0px -1px 0px rgba(255,255,255,0.66), inset 0px 3px 8px rgba(0,0,0,0.66);}
input[type=checkbox]
{width:15px;
height:15px;
margin-left: 0px;
margin-right: -16px;
opacity:0.0;}
/* The following is a trick to force browser to let me redefine checkbox style */
.checkbox_override
{width: 15px;
height: 15px;
border-radius: 2px;
box-shadow: inset 0px 2px 2px rgba(0, 0, 0, 0.5);
background-color: rgba(0, 0, 0, 0.25);
border-top: 1px solid rgba(0,0,0,0.75);
border-bottom: 1px solid rgba(255,255,255,0.5);
display: inline-block;}
input:hover ~ .checkbox_override
{background-color: rgba(0, 0, 0, 0.125);}
input:checked ~ .checkbox_override {
border-bottom: 1px solid rgba(0,0,0,0.75);
border-top: 1px solid rgba(255,255,255,0.5);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
background-color: rgba(255, 255, 255, 0.25);
}
::placeholder
{
color:#c6b4cb;
}
p.error, p.success, p.info,
div.error, div.success, div.info
{
width: calc(100% - 20px);
height: auto;
padding: 1em;
opacity: 1;
margin-left: 0px;
line-height: 1.4em;
}
.error {background-color: red;}
.info {background-color: #8c599c;}
.success {background-color: #00c684;}
#zerozozio
{
margin:1em;
text-align:right;
}
#zerozozio a, span
{
padding:0 0.3em;
}