346 lines
7 KiB
SCSS
346 lines
7 KiB
SCSS
/* Welcome to Compass.
|
||
* In this file you should write your main styles. (or centralize your imports)
|
||
* Import this file using the following HTML or equivalent:
|
||
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
|
||
|
||
@import "compass/reset";
|
||
@import "_colors.scss";
|
||
|
||
@import url('https://fonts.googleapis.com/css?family=Bitter:400,700|Source+Sans+Pro:400,700');
|
||
|
||
$switchwidth: 600px;
|
||
|
||
*, *:after, *:before {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body, html {
|
||
background: $jaune;
|
||
padding: 0;
|
||
margin: 0;
|
||
height: 100%;
|
||
font-family: $pfont;
|
||
font-size: 18px;
|
||
line-height: 1.45;
|
||
}
|
||
|
||
body.plain {
|
||
#main {
|
||
max-width: 500px;
|
||
position: absolute;
|
||
text-align: center;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform:translateY(-50%) translateX(-50%);
|
||
background: $cadreclair;
|
||
padding: 25px;
|
||
|
||
button {
|
||
background: $rouge;
|
||
color: $cadreclair;
|
||
display: inline-block;
|
||
padding: 30px;
|
||
font: 25px $pfont;
|
||
font-weight: bold;
|
||
border: 1px solid #fff;
|
||
}
|
||
}
|
||
}
|
||
|
||
h1, h2, h3, h4 {
|
||
font-family: $hfont;
|
||
}
|
||
|
||
h2 {
|
||
font-size: 1.8em;
|
||
text-align: center;
|
||
border-bottom: 2px solid #000;
|
||
padding: 10px;
|
||
margin-bottom: 0.7em;
|
||
}
|
||
|
||
h3 {
|
||
font-size: 1.5em;
|
||
text-align: left;
|
||
padding: 15px;
|
||
margin-bottom: 0.4em;
|
||
}
|
||
|
||
strong, b {
|
||
font-weight: bold;
|
||
}
|
||
|
||
i, em {
|
||
font-style: italic;
|
||
}
|
||
|
||
a {
|
||
color: $rouge;
|
||
text-decoration: none;
|
||
font-weight: bold;
|
||
}
|
||
|
||
/* From http://adis.ca/entry/2011/pretty-code-block-in-css/ */
|
||
pre {
|
||
font-family: $preFont;
|
||
font-size: 80%;
|
||
line-height: 140%;
|
||
white-space: pre;
|
||
white-space: pre-wrap;
|
||
white-space: -moz-pre-wrap;
|
||
white-space: -o-pre-wrap;
|
||
background-color: $codeGray;
|
||
padding: 10px;
|
||
}
|
||
|
||
/* From http://adis.ca/entry/2011/pretty-code-block-in-css/ */
|
||
code {
|
||
font-family: $codeFont;
|
||
font-size: 80%;
|
||
line-height: 140%;
|
||
white-space: pre;
|
||
white-space: pre-wrap;
|
||
white-space: -moz-pre-wrap;
|
||
white-space: -o-pre-wrap;
|
||
background-color: $codeGray;
|
||
}
|
||
|
||
header {
|
||
max-width: 700px;
|
||
margin: 0 auto;
|
||
text-align: center;
|
||
@media screen and (min-width:$switchwidth) {
|
||
border-bottom: 3px solid #000;
|
||
position: relative;
|
||
padding-bottom: 15px;
|
||
margin: 30px auto;
|
||
margin-bottom: 55px;
|
||
|
||
&:after {
|
||
content: " ";
|
||
position: absolute;
|
||
width: 90%;
|
||
z-index: 1;
|
||
left: 5%;
|
||
bottom: -25px;
|
||
border-bottom: 3px solid #000;
|
||
}
|
||
}
|
||
}
|
||
|
||
.container {
|
||
margin: 0 auto;
|
||
max-width: 1200px;
|
||
@media screen and (min-width:$switchwidth) {
|
||
display: table;
|
||
display: flex;
|
||
padding: 15px;
|
||
}
|
||
width: 100%;
|
||
}
|
||
|
||
.sidebar {
|
||
width: 400px;
|
||
padding-right: 40px;
|
||
|
||
.minimenu {
|
||
display: none;
|
||
}
|
||
|
||
ul.nav {
|
||
margin-bottom: 30px;
|
||
|
||
li {
|
||
display: block;
|
||
font-weight: normal;
|
||
margin: 7px 0;
|
||
|
||
a {
|
||
border: 1px solid rgba($rouge, 0.5);
|
||
background: $blanc;
|
||
color: $rouge;
|
||
padding: 10px 0;
|
||
display: block;
|
||
text-align: center;
|
||
|
||
@media screen and (min-width:$switchwidth) {
|
||
box-shadow: -2px 2px 0 $orange;
|
||
transition: box-shadow 0.4s ease-out, transform 0.4s ease-out;
|
||
|
||
&:hover {
|
||
box-shadow: -6px 6px 0 $orange;
|
||
transform: translateX(2px) translateY(-2px);
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
.main {
|
||
background: #fff;
|
||
flex-grow: 1;
|
||
padding: 20px 40px;
|
||
width: 100%;
|
||
border: 1px solid rgba($rouge, 0.7);
|
||
|
||
.last-publication a {
|
||
display: block;
|
||
max-width: 350px;
|
||
margin: 15px auto;
|
||
margin-bottom: 30px;
|
||
padding: 30px;
|
||
border: 1px solid #fff;
|
||
text-align: center;
|
||
font-size: 1.5em;
|
||
background: $rouge;
|
||
color: $cadreclair;
|
||
font-family: $hfont;
|
||
box-shadow: 0 0 0 rgba($rouge, 0);
|
||
transition: box-shadow 1s ease-out;
|
||
|
||
&:hover {
|
||
box-shadow: 0 0 5px $rouge;
|
||
}
|
||
}
|
||
|
||
.intro-text {
|
||
margin-bottom: 40px;
|
||
}
|
||
|
||
p {
|
||
margin: 0.5em 0;
|
||
}
|
||
|
||
.md-text {
|
||
text-align: justify;
|
||
font-size: 1.1em;
|
||
}
|
||
|
||
ol, ul {
|
||
list-style-position: outside;
|
||
margin-left: 20px;
|
||
margin-bottom: 1em;
|
||
}
|
||
ol {
|
||
list-style-type: decimal;
|
||
}
|
||
ul {
|
||
list-style-type: disc;
|
||
}
|
||
li {
|
||
margin: 0.35em 0;
|
||
}
|
||
}
|
||
|
||
.publication-list {
|
||
margin: 10px 5px;
|
||
margin-left: 30px;
|
||
padding: 0 30px;
|
||
max-width: 700px;
|
||
|
||
.publication-entry {
|
||
display: flex;
|
||
align-items: center;
|
||
position: relative;
|
||
border-bottom: 1px solid lighten($bleu, 20%);
|
||
|
||
&:first-child {
|
||
border-top: 1px solid lighten($bleu, 20%);
|
||
}
|
||
|
||
& > span {
|
||
padding: 7px 5px;
|
||
display: inline-block;
|
||
}
|
||
.publication-date {
|
||
text-align: right;
|
||
font-weight: light;
|
||
font-size: 0.8em;
|
||
font-style: italic;
|
||
width: 100px;
|
||
}
|
||
.publication-descr {
|
||
font-size: 0.9em;
|
||
opacity: 0.9;
|
||
&:before {
|
||
content: "– ";
|
||
}
|
||
}
|
||
a.overlay {
|
||
position: absolute;
|
||
z-index: 1;
|
||
width: 100%;
|
||
height: 100%;
|
||
top: 0;
|
||
left: 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
@media screen and (max-width:$switchwidth - 1px) {
|
||
body {
|
||
padding-top: 75px;
|
||
}
|
||
header, .sidebar {
|
||
position:fixed;
|
||
top: 0;
|
||
min-height: 60px;
|
||
width: 100%;
|
||
}
|
||
header {
|
||
z-index: 15;
|
||
right: 60px;
|
||
left: 0;
|
||
width: unset;
|
||
height: 60px;
|
||
line-height: 60px;
|
||
img {
|
||
max-height: 55px;
|
||
vertical-align: middle;
|
||
}
|
||
}
|
||
.sidebar {
|
||
z-index: 14;
|
||
background: desaturate(darken($cadreclair, 10%), 10%);
|
||
border-bottom: 3px solid $rouge;
|
||
padding: 4px;
|
||
padding-top: 55px;
|
||
max-height: 100vh;
|
||
overflow-y: auto;
|
||
|
||
.minimenu {
|
||
position: absolute;
|
||
right: 5px;
|
||
top: 5px;
|
||
display: block;
|
||
img {
|
||
height: 50px;
|
||
}
|
||
}
|
||
ul.nav {
|
||
display: flex;
|
||
width: 100%;
|
||
flex-wrap: wrap;
|
||
justify-content: space-around;
|
||
font-size: 0.95em;
|
||
margin-bottom: 10px;
|
||
|
||
li {
|
||
display: inline-block;
|
||
min-width: 150px;
|
||
margin: 5px;
|
||
a {
|
||
padding: 10px;
|
||
}
|
||
}
|
||
}
|
||
|
||
&.collapse {
|
||
ul {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
}
|