PCv5/templates_dev/css/global.css

162 lines
3.0 KiB
CSS
Raw Normal View History

/*
fonts
*/
@font-face { font-family: NotoSans; src: url(../fonts/noto_sans.ttf); }
@font-face { font-family: Raleway; font-weight: 200; src: url(../fonts/raleway_200.ttf); }
@font-face { font-family: Raleway; font-weight: 300; src: url(../fonts/raleway_300.ttf); }
/*
body
*/
body {
margin: 0;
background: #f8f8f8;
font-family: 'DejaVu Sans', sans-serif;
}
#container {
margin-left: 60px;
}
#container.extended {
margin-left: 160px;
}
/*
links
*/
a {
text-decoration: none;
color: #be1818;
}
a:hover {
text-decoration: underline;
}
a:focus {
text-decoration: underline;
outline: none;
}
quote { display: block; background: #e0e0e8; background: rgba(0, 0, 64, .12); border: 2px solid rgba(0, 0, 64, .08); border-width: 1px 0; padding: 4px 8px; }
quote quote { background: rgba(0, 0, 64, .12); }
quote[author]:before {
display: inline-block; margin-bottom: 5px;
font-style: italic; /*font-weight: bold;*/
content: attr(author) ' a écrit :';
}
/*
alert overlay
*/
.alert {
position: fixed; left: 15%;
display: flex; align-items: center;
width: 70%; z-index: 10;
font-family: NotoSans; font-size: 14px; color: #212121;
background: #ffffff;
border-bottom: 5px solid #4caf50;
border-radius: 1px; box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
transition: opacity .15s ease;
}
.alert.ok {
border-color: #4caf50;
}
.alert.error {
border-color: #f44336;
}
.alert span {
flex-grow: 1; margin: 15px 10px 10px 0;
}
.alert input[type="button"] {
margin: 3px 30px 0 0;
}
.alert svg {
margin: 15px 20px 10px 30px;
}
/*
buttons
*/
input[type="button"] {
font-family: NotoSans; font-size: 14px; /*font-weight: bold;*/
text-align: center;
padding: 5px 15px;
transition: .1s ease;
}
/* flat */
input[type="button"].flat {
border: none;
background: rgba(0, 0, 0, 0); color: #727272;
}
input[type="button"].flat:hover {
background: rgba(0, 0, 0, .1);
}
input[type="button"].flat:focus {
background: rgba(0, 0, 0, .2);
}
/* raised */
input[type="button"].raised {
border: none;
background: #e0e0e0; color: #212121;
box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
input[type="button"].raised:hover,
input[type="button"].raised:focus {
background: #d5d5d5;
}
input[type="button"].raised:active {
background: #d6d6d6;
box-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
/* Input text */
input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus {
}
span[title='nickname'][data-status='redac'] { color: #2549e4; }
span[title='nickname'][data-status='honor'] { color: #dd9b00; }
span[title='nickname'][data-status='admin'] { color: #ff2121; }
section {
margin: 10px 5%;
}
section h1 {
border-bottom: 1px solid #a0a0a0;
font-family: Raleway; font-size: 24px;
font-weight: 200; color: #242424;
}
* {
transition: .15s ease;
}
#overlay { position: fixed; top: -100%; left: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0);
transition: top 0s ease .3s, background .3s;
z-index: 4;
}
#overlay.opened {
top: 0%;
background: rgba(0, 0, 0, .75);
transition: top 0s, background .3s;
}