cv-online/css/main.css

713 lines
16 KiB
CSS

@charset "UTF-8";
nav#left {
position: fixed;
left: -210px;
width: 230px;
top: 0;
bottom: 0;
direction: rtl;
overflow-x: hidden;
overflow-y: auto;
z-index: 1;
border-style: solid;
border-width: 0 1px 0 0;
border-color: #000000;
background-image: url(../img/ui/bggray.png);
-webkit-box-shadow: -4px 0px 10px #202020 inset;
-moz-box-shadow: -4px 0px 10px #202020 inset;
-ms-box-shadow: -4px 0px 10px #202020 inset;
-o-box-shadow: -4px 0px 10px #202020 inset;
box-shadow: -4px 0px 10px #202020 inset;
text-align: center;
font-size: large;
-webkit-transition-property: left;
-moz-transition-property: left;
-ms-transition-property: left;
-o-transition-property: left;
transition-property: left;
-webkit-transition-duration: 0.2s;
-moz-transition-duration: 0.2s;
-ms-transition-duration: 0.2s;
-o-transition-duration: 0.2s;
transition-duration: 0.2s;
-webkit-transition-delay: 0.1s;
-moz-transition-delay: 0.1s;
-ms-transition-delay: 0.1s;
-o-transition-delay: 0.1s;
transition-delay: 0.1s;
}
nav#left .arrow {
position: absolute;
right: 0;
top: 50%;
height: 35px;
-webkit-transition-property: opacity;
-moz-transition-property: opacity;
-ms-transition-property: opacity;
-o-transition-property: opacity;
transition-property: opacity;
-webkit-transition-duration: 0.2s;
-moz-transition-duration: 0.2s;
-ms-transition-duration: 0.2s;
-o-transition-duration: 0.2s;
transition-duration: 0.2s;
-webkit-transition-delay: 0.1s;
-moz-transition-delay: 0.1s;
-ms-transition-delay: 0.1s;
-o-transition-delay: 0.1s;
transition-delay: 0.1s;
}
nav#left figure {
margin: 20px 0 10px 0;
}
nav#left figure figcaption {
color: #FAFAFA;
font-family: "Croissant One", cursive;
font-weight: bold;
font-style: italic;
font-size: 1.2em;
text-decoration: none;
}
nav#left a {
outline: none !important;
display: block;
padding: 5px;
margin: 7px 20px 7px 20px;
background-color: #303030;
border-style: solid;
border-width: 1px;
border-color: #000;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
color: #FAFAFA;
font-weight: bold;
text-decoration: none;
text-align: center;
font-size: 1.2em;
-webkit-transition-property: border-color background-color;
-moz-transition-property: border-color background-color;
-ms-transition-property: border-color background-color;
-o-transition-property: border-color background-color;
transition-property: border-color background-color;
-webkit-transition-duration: 0.1s;
-moz-transition-duration: 0.1s;
-ms-transition-duration: 0.1s;
-o-transition-duration: 0.1s;
transition-duration: 0.1s;
}
nav#left a:hover {
background-color: #383838;
border-color: #202020;
}
nav#left a:active, nav#left a.active {
background-color: #215D9C;
}
nav#left a.external:after {
content: "↳ ";
}
nav#left a.external:hover {
border-color: #013D6C;
}
nav#left a.logo {
display: inline-block;
border-style: none;
background: none;
}
nav#left a.logo img {
height: 48px;
}
nav#left footer {
margin-top: 20px;
}
nav#left:hover, nav#left:active {
left: 0px;
}
nav#left:hover .arrow, nav#left:active .arrow {
opacity: 0;
}
nav#top {
position: fixed;
display: inline-block;
top: 0px;
height: 190px;
width: 100%;
color: #5F5F5F;
padding: 4px 0px;
overflow: auto;
background-image: url(../img/ui/bgdark.png);
border-style: solid;
border-width: 0 1px 1px 1px;
border-color: #000000;
text-align: center;
white-space: nowrap;
-webkit-transition-property: top;
-moz-transition-property: top;
-ms-transition-property: top;
-o-transition-property: top;
transition-property: top;
-webkit-transition-duration: 0.1s;
-moz-transition-duration: 0.1s;
-ms-transition-duration: 0.1s;
-o-transition-duration: 0.1s;
transition-duration: 0.1s;
}
nav#top .arrow {
position: absolute;
left: calc(50% - 13px);
bottom: 3px;
width: 26px;
}
nav#top a {
outline: none !important;
width: auto;
height: auto;
padding: 5px;
margin: 4px 0px 4px 0px;
display: inline-block;
color: #FAFAFA;
font-family: "Croissant One", cursive;
font-size: 18px;
font-style: italic;
text-decoration: none;
-webkit-text-shadow: 0 0 5px #000000;
-moz-text-shadow: 0 0 5px #000000;
-ms-text-shadow: 0 0 5px #000000;
-o-text-shadow: 0 0 5px #000000;
text-shadow: 0 0 5px #000000;
text-align: center;
}
nav#top a img {
margin: 4px 4px 0 4px;
width: 128px;
height: 128px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 10px #000000;
-moz-box-shadow: 0px 0px 10px #000000;
-ms-box-shadow: 0px 0px 10px #000000;
-o-box-shadow: 0px 0px 10px #000000;
box-shadow: 0px 0px 10px #000000;
}
nav#top a figcaption {
width: 128px;
}
nav#top a:hover {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
background-color: rgba(255, 255, 255, 0.15);
}
nav#top:hover, nav#top:active {
top: 0px !important;
}
@keyframes UnwrapHeader {
from {
margin-left: 50%;
margin-right: 50%;
}
to {
margin-left: 40px;
margin-right: 40px;
}
}
#section-main {
position: absolute;
left: 20px;
right: 0px;
-webkit-transition-property: left;
-moz-transition-property: left;
-ms-transition-property: left;
-o-transition-property: left;
transition-property: left;
-webkit-transition-duration: 0.2s;
-moz-transition-duration: 0.2s;
-ms-transition-duration: 0.2s;
-o-transition-duration: 0.2s;
transition-duration: 0.2s;
-webkit-transition-delay: 0.1s;
-moz-transition-delay: 0.1s;
-ms-transition-delay: 0.1s;
-o-transition-delay: 0.1s;
transition-delay: 0.1s;
}
#section-main header {
margin: 30px 30px 60px 30px;
color: #FAFAFA;
font-family: "Noto Serif", serif;
font-style: italic;
font-size: 1.3em;
text-align: center;
text-shadow: 0 0 10px #000000;
border-style: solid;
border-width: 0 5px 0 5px;
border-color: #FAFAFA;
border-radius: 20px;
overflow: hidden;
animation: UnwrapHeader 1s;
white-space: nowrap;
}
#section-main article {
margin-left: auto;
margin-right: auto;
padding: 20px;
padding-top: 0;
margin-bottom: 10vh;
color: #202020;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
border-style: solid;
border-width: 3px;
border-color: #FFFFFF;
border-radius: 20px;
background-color: #FAFAFA;
max-width: 800px;
font-size: 0.6em;
line-height: 1.3em;
-webkit-transition-property: border-radius;
-moz-transition-property: border-radius;
-ms-transition-property: border-radius;
-o-transition-property: border-radius;
transition-property: border-radius;
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-ms-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
transition-duration: 0.5s;
}
#section-main article h1:first-child {
margin: 0;
margin-left: -23px;
width: 100%;
padding: 20px 23px;
margin-top: -23px;
border-radius: 18px 18px 0 0;
background-color: #215D9C;
background-image: url("../img/ui/stripes.png");
color: #FAFAFA;
font-family: "Croissant One", cursive;
font-weight: bold;
font-style: italic;
font-size: 1.7em;
text-align: left;
letter-spacing: -0.03em;
-webkit-transition-property: border-radius;
-moz-transition-property: border-radius;
-ms-transition-property: border-radius;
-o-transition-property: border-radius;
transition-property: border-radius;
-webkit-transition-duration: 0.5s;
-moz-transition-duration: 0.5s;
-ms-transition-duration: 0.5s;
-o-transition-duration: 0.5s;
transition-duration: 0.5s;
}
#section-main article h1:first-child img {
border: none;
float: right;
display: inline;
margin: auto;
height: 1em;
}
#section-main article h2 {
margin: 0 -23px;
padding: 10px 23px;
border-top: 1px solid #d5d5d5;
border-bottom: 1px solid #d5d5d5;
background-image: url("../img/ui/stripes.png");
color: #3A4145;
font-family: "Croissant One", cursive;
font-size: x-large;
}
#section-main article h2 a, #section-main article h2 a:visited {
color: #3A4145;
}
#section-main article h3 {
color: #3A4145;
font-family: "Croissant One", cursive;
padding-left: 10px;
font-size: large;
}
#section-main article hr {
margin-left: -23px;
width: calc(100% + 40px + 6px);
border-style: solid;
border-width: 5px;
border-color: rgba(0, 0, 0, 0.1);
border-radius: 1px;
}
#section-main article blockquote {
position: relative;
padding: 1px 20px;
margin: 10px;
background-color: #eee;
border-radius: 0.2em;
font-style: italic;
}
#section-main article blockquote:after {
display: block;
position: absolute;
content: "";
width: 0;
top: 20px;
left: -20px;
border-style: solid;
border-width: 15px 20px 15px 0;
border-color: transparent #eee;
}
#section-main article img:not(.raw), #section-main article video:not(.raw), #section-main article iframe:not(.raw) {
max-height: 150px;
width: auto;
vertical-align: middle;
margin: 5px;
border: 3px solid black;
border-radius: 2px;
transition-property: border-color;
transition-duration: 0.3s;
}
#section-main article video {
width: 80%;
height: auto;
}
#section-main article a {
color: #215D9C;
}
#section-main article a img:hover, #section-main article a video:hover, #section-main article a iframe:hover {
border-color: #808080;
}
#section-main article a:hover {
color: #2B7ACC;
}
#section-main article strong {
color: #2F3A45;
}
#section-main article img.nostyle {
height: auto;
border: 0;
border-radius: 0;
}
#section-main article img.fill {
width: 100%;
height: auto;
}
#section-main article .cinema {
margin: 0;
margin-left: -23px;
width: 100%;
padding: 10px 23px;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
color: #FAFAFA;
background-image: url("../img/ui/bgdark.png");
-webkit-box-shadow: 0px 0px 10px #000 inset;
-moz-box-shadow: 0px 0px 10px #000 inset;
-ms-box-shadow: 0px 0px 10px #000 inset;
-o-box-shadow: 0px 0px 10px #000 inset;
box-shadow: 0px 0px 10px #000 inset;
}
#section-main article .cinema img, #section-main article .cinema video, #section-main article .cinema iframe {
border-width: 1px;
border-radius: 0;
margin: -1px 4px 0px -5px;
border-left: 5px solid #000;
border-right: 5px solid #000;
}
#section-main article .cinema a img:hover, #section-main article .cinema a video:hover, #section-main article .cinema a iframe:hover {
border-color: #333;
}
#section-main article .cinema:first-child {
margin-top: -23px;
padding-top: 20px;
border-radius: 20px 20px 0 0;
}
#section-main article .cinema:last-child {
margin-bottom: -23px;
padding-bottom: 20px;
border-radius: 0 0 20px 20px;
}
#section-main article .markdown > div.content > pre {
margin: 0;
margin-left: -23px;
width: 100%;
padding: 10px 23px;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
color: #FAFAFA;
background-image: url("../img/ui/bggray.png");
-webkit-box-shadow: 0px 0px 10px #000 inset;
-moz-box-shadow: 0px 0px 10px #000 inset;
-ms-box-shadow: 0px 0px 10px #000 inset;
-o-box-shadow: 0px 0px 10px #000 inset;
box-shadow: 0px 0px 10px #000 inset;
}
#section-main article .markdown > div.content > pre code, #section-main article .markdown > div.content > pre pre {
margin-bottom: 0px;
}
#section-main article figure {
margin-bottom: 15px;
}
#section-main article figure figcaption {
font-size: small;
font-style: italic;
text-decoration: none;
}
#section-main article ul {
margin-top: 5px;
}
#section-main article li {
margin-bottom: 5px;
}
#section-main article a.gototop {
display: block;
width: 100%;
height: 28px;
background-image: url(../img/ui/gototop.svg);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
#section-main article .center {
text-align: center;
}
body[data-width=small] #section-main article {
max-width: 100%;
border-radius: 0;
}
body[data-width=small] #section-main article h1 {
border-radius: 0;
}
.spacer {
height: 60vh;
}
/*
Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #23241f;
-webkit-text-size-adjust: none;
}
.hljs,
.hljs-tag,
.css .hljs-rule,
.css .hljs-value,
.aspectj .hljs-function,
.css .hljs-function .hljs-preprocessor,
.hljs-pragma {
color: #f8f8f2;
}
.hljs-strongemphasis,
.hljs-strong,
.hljs-emphasis {
color: #a8a8a2;
}
.hljs-bullet,
.hljs-blockquote,
.hljs-horizontal_rule,
.hljs-number,
.hljs-regexp,
.alias .hljs-keyword,
.hljs-literal,
.hljs-hexcolor {
color: #ae81ff;
}
.hljs-tag .hljs-value,
.hljs-code,
.hljs-title,
.css .hljs-class,
.hljs-class .hljs-title:last-child {
color: #a6e22e;
}
.hljs-link_url {
font-size: 80%;
}
.hljs-strong,
.hljs-strongemphasis {
font-weight: bold;
}
.hljs-emphasis,
.hljs-strongemphasis,
.hljs-class .hljs-title:last-child,
.hljs-typename {
font-style: italic;
}
.hljs-keyword,
.ruby .hljs-class .hljs-keyword:first-child,
.ruby .hljs-function .hljs-keyword,
.hljs-function,
.hljs-change,
.hljs-winutils,
.hljs-flow,
.nginx .hljs-title,
.tex .hljs-special,
.hljs-header,
.hljs-attribute,
.hljs-symbol,
.hljs-symbol .hljs-string,
.hljs-tag .hljs-title,
.hljs-value,
.alias .hljs-keyword:first-child,
.css .hljs-tag,
.css .unit,
.css .hljs-important {
color: #f92672;
}
.hljs-function .hljs-keyword,
.hljs-class .hljs-keyword:first-child,
.hljs-aspect .hljs-keyword:first-child,
.hljs-constant,
.hljs-typename,
.hljs-name,
.css .hljs-attribute {
color: #66d9ef;
}
.hljs-variable,
.hljs-params,
.hljs-class .hljs-title,
.hljs-aspect .hljs-title {
color: #f8f8f2;
}
.hljs-string,
.css .hljs-id,
.hljs-subst,
.hljs-type,
.ruby .hljs-class .hljs-parent,
.hljs-built_in,
.django .hljs-template_tag,
.django .hljs-variable,
.smalltalk .hljs-class,
.django .hljs-filter .hljs-argument,
.smalltalk .hljs-localvars,
.smalltalk .hljs-array,
.hljs-attr_selector,
.hljs-pseudo,
.hljs-addition,
.hljs-stream,
.hljs-envvar,
.apache .hljs-tag,
.apache .hljs-cbracket,
.tex .hljs-command,
.hljs-prompt,
.hljs-link_label,
.hljs-link_url {
color: #e6db74;
}
.hljs-comment,
.hljs-annotation,
.hljs-decorator,
.hljs-pi,
.hljs-doctype,
.hljs-deletion,
.hljs-shebang,
.apache .hljs-sqbracket,
.tex .hljs-formula {
color: #75715e;
}
.coffeescript .javascript,
.javascript .xml,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata,
.xml .php,
.php .xml {
opacity: 0.5;
}
body {
background-image: url(../img/ui/gnome3.jpg);
background-size: 100% 100vh;
background-attachment: fixed;
font-family: "Noto Serif", serif;
font-size: 1.8rem;
color: #3A4145;
}
/*
=====================================================================
Spécifique aux pages
*/
body[data-page=home] #section-main {
left: 230px;
}
body[data-page=home] nav#left {
left: 0px;
}
body[data-page=home] nav#left .arrow {
opacity: 0;
}
@media screen and (min-width: 1100px) {
#section-main {
left: 230px;
}
nav#left {
left: 0px;
}
nav#left .arrow {
opacity: 0;
}
}
body.skills #section-main article .skillexcellent, body.skills #section-main article .skillgood, body.skills #section-main article .skillmed, body.skills #section-main article .skillknown, body.skills #section-main article .skillperso, body.skills #section-main article .skillstudy {
padding: 0 3px 0 3px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
}
body.skills #section-main article .skillexcellent {
background: linear-gradient(#00C107, #00A806);
}
body.skills #section-main article .skillgood {
background: linear-gradient(#73C100, #64A800);
}
body.skills #section-main article .skillmed {
background: linear-gradient(#BAC100, #A2A800);
}
body.skills #section-main article .skillknown {
background: linear-gradient(#C18F00, #A87D00);
}
body.skills #section-main article .skillperso {
border-style: solid;
border-width: 2px;
border-color: #8000FF;
}
body.skills #section-main article .skillstudy {
border-style: solid;
border-width: 2px;
border-color: #9E9E9E;
}