Moar CSS! Now handling code tags.

This commit is contained in:
Théophile Bastian 2017-11-02 15:49:42 +01:00
parent 9c78ecb895
commit 3b922ec7ca
3 changed files with 115 additions and 45 deletions

View file

@ -122,30 +122,65 @@ h2 {
} }
/* line 62, ../sass/screen.scss */ /* line 62, ../sass/screen.scss */
h3 {
font-size: 1.5em;
text-align: left;
padding: 15px;
margin-bottom: 0.4em;
}
/* line 69, ../sass/screen.scss */
strong, b { strong, b {
font-weight: bold; font-weight: bold;
} }
/* line 66, ../sass/screen.scss */ /* line 73, ../sass/screen.scss */
i, em { i, em {
font-style: italic; font-style: italic;
} }
/* line 70, ../sass/screen.scss */ /* line 77, ../sass/screen.scss */
a { a {
color: #8c0e00; color: #8c0e00;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
} }
/* line 76, ../sass/screen.scss */ /* From http://adis.ca/entry/2011/pretty-code-block-in-css/ */
/* line 84, ../sass/screen.scss */
pre {
font-family: "Courier 10 Pitch", Courier, monospace;
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: #f0f0f0;
padding: 10px;
}
/* From http://adis.ca/entry/2011/pretty-code-block-in-css/ */
/* line 97, ../sass/screen.scss */
code {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
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: #f0f0f0;
}
/* line 108, ../sass/screen.scss */
header { header {
max-width: 700px; max-width: 700px;
margin: 0 auto; margin: 0 auto;
text-align: center; text-align: center;
} }
@media screen and (min-width: 600px) { @media screen and (min-width: 600px) {
/* line 76, ../sass/screen.scss */ /* line 108, ../sass/screen.scss */
header { header {
border-bottom: 3px solid #000; border-bottom: 3px solid #000;
position: relative; position: relative;
@ -153,7 +188,7 @@ header {
margin: 30px auto; margin: 30px auto;
margin-bottom: 55px; margin-bottom: 55px;
} }
/* line 87, ../sass/screen.scss */ /* line 119, ../sass/screen.scss */
header:after { header:after {
content: " "; content: " ";
position: absolute; position: absolute;
@ -165,14 +200,14 @@ header {
} }
} }
/* line 99, ../sass/screen.scss */ /* line 131, ../sass/screen.scss */
.container { .container {
margin: 0 auto; margin: 0 auto;
max-width: 1200px; max-width: 1200px;
width: 100%; width: 100%;
} }
@media screen and (min-width: 600px) { @media screen and (min-width: 600px) {
/* line 99, ../sass/screen.scss */ /* line 131, ../sass/screen.scss */
.container { .container {
display: table; display: table;
display: flex; display: flex;
@ -180,26 +215,26 @@ header {
} }
} }
/* line 110, ../sass/screen.scss */ /* line 142, ../sass/screen.scss */
.sidebar { .sidebar {
width: 400px; width: 400px;
padding-right: 40px; padding-right: 40px;
} }
/* line 114, ../sass/screen.scss */ /* line 146, ../sass/screen.scss */
.sidebar .minimenu { .sidebar .minimenu {
display: none; display: none;
} }
/* line 118, ../sass/screen.scss */ /* line 150, ../sass/screen.scss */
.sidebar ul.nav { .sidebar ul.nav {
margin-bottom: 30px; margin-bottom: 30px;
} }
/* line 121, ../sass/screen.scss */ /* line 153, ../sass/screen.scss */
.sidebar ul.nav li { .sidebar ul.nav li {
display: block; display: block;
font-weight: normal; font-weight: normal;
margin: 7px 0; margin: 7px 0;
} }
/* line 126, ../sass/screen.scss */ /* line 158, ../sass/screen.scss */
.sidebar ul.nav li a { .sidebar ul.nav li a {
border: 1px solid rgba(140, 14, 0, 0.5); border: 1px solid rgba(140, 14, 0, 0.5);
background: #fff; background: #fff;
@ -209,19 +244,19 @@ header {
text-align: center; text-align: center;
} }
@media screen and (min-width: 600px) { @media screen and (min-width: 600px) {
/* line 126, ../sass/screen.scss */ /* line 158, ../sass/screen.scss */
.sidebar ul.nav li a { .sidebar ul.nav li a {
box-shadow: -2px 2px 0 #f06e00; box-shadow: -2px 2px 0 #f06e00;
transition: box-shadow 0.4s ease-out, transform 0.4s ease-out; transition: box-shadow 0.4s ease-out, transform 0.4s ease-out;
} }
/* line 138, ../sass/screen.scss */ /* line 170, ../sass/screen.scss */
.sidebar ul.nav li a:hover { .sidebar ul.nav li a:hover {
box-shadow: -6px 6px 0 #f06e00; box-shadow: -6px 6px 0 #f06e00;
transform: translateX(2px) translateY(-2px); transform: translateX(2px) translateY(-2px);
} }
} }
/* line 149, ../sass/screen.scss */ /* line 181, ../sass/screen.scss */
.main { .main {
background: #fff; background: #fff;
flex-grow: 1; flex-grow: 1;
@ -229,7 +264,7 @@ header {
width: 100%; width: 100%;
border: 1px solid rgba(140, 14, 0, 0.7); border: 1px solid rgba(140, 14, 0, 0.7);
} }
/* line 156, ../sass/screen.scss */ /* line 188, ../sass/screen.scss */
.main .last-publication a { .main .last-publication a {
display: block; display: block;
max-width: 350px; max-width: 350px;
@ -245,66 +280,66 @@ header {
box-shadow: 0 0 0 rgba(140, 14, 0, 0); box-shadow: 0 0 0 rgba(140, 14, 0, 0);
transition: box-shadow 1s ease-out; transition: box-shadow 1s ease-out;
} }
/* line 171, ../sass/screen.scss */ /* line 203, ../sass/screen.scss */
.main .last-publication a:hover { .main .last-publication a:hover {
box-shadow: 0 0 5px #8c0e00; box-shadow: 0 0 5px #8c0e00;
} }
/* line 176, ../sass/screen.scss */ /* line 208, ../sass/screen.scss */
.main .intro-text { .main .intro-text {
margin-bottom: 40px; margin-bottom: 40px;
} }
/* line 180, ../sass/screen.scss */ /* line 212, ../sass/screen.scss */
.main p { .main p {
margin-bottom: 1em; margin: 0.5em 0;
} }
/* line 184, ../sass/screen.scss */ /* line 216, ../sass/screen.scss */
.main .md-text { .main .md-text {
text-align: justify; text-align: justify;
font-size: 1.1em; font-size: 1.1em;
} }
/* line 189, ../sass/screen.scss */ /* line 221, ../sass/screen.scss */
.main ol, .main ul { .main ol, .main ul {
list-style-position: outside; list-style-position: outside;
margin-left: 20px; margin-left: 20px;
margin-bottom: 1em; margin-bottom: 1em;
} }
/* line 194, ../sass/screen.scss */ /* line 226, ../sass/screen.scss */
.main ol { .main ol {
list-style-type: decimal; list-style-type: decimal;
} }
/* line 197, ../sass/screen.scss */ /* line 229, ../sass/screen.scss */
.main ul { .main ul {
list-style-type: disc; list-style-type: disc;
} }
/* line 200, ../sass/screen.scss */ /* line 232, ../sass/screen.scss */
.main li { .main li {
margin: 0.35em 0; margin: 0.35em 0;
} }
/* line 205, ../sass/screen.scss */ /* line 237, ../sass/screen.scss */
.publication-list { .publication-list {
margin: 10px 5px; margin: 10px 5px;
margin-left: 30px; margin-left: 30px;
padding: 0 30px; padding: 0 30px;
max-width: 700px; max-width: 700px;
} }
/* line 211, ../sass/screen.scss */ /* line 243, ../sass/screen.scss */
.publication-list .publication-entry { .publication-list .publication-entry {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
border-bottom: 1px solid #86abcb; border-bottom: 1px solid #86abcb;
} }
/* line 217, ../sass/screen.scss */ /* line 249, ../sass/screen.scss */
.publication-list .publication-entry:first-child { .publication-list .publication-entry:first-child {
border-top: 1px solid #86abcb; border-top: 1px solid #86abcb;
} }
/* line 221, ../sass/screen.scss */ /* line 253, ../sass/screen.scss */
.publication-list .publication-entry > span { .publication-list .publication-entry > span {
padding: 7px 5px; padding: 7px 5px;
display: inline-block; display: inline-block;
} }
/* line 225, ../sass/screen.scss */ /* line 257, ../sass/screen.scss */
.publication-list .publication-entry .publication-date { .publication-list .publication-entry .publication-date {
text-align: right; text-align: right;
font-weight: light; font-weight: light;
@ -312,16 +347,16 @@ header {
font-style: italic; font-style: italic;
width: 100px; width: 100px;
} }
/* line 232, ../sass/screen.scss */ /* line 264, ../sass/screen.scss */
.publication-list .publication-entry .publication-descr { .publication-list .publication-entry .publication-descr {
font-size: 0.9em; font-size: 0.9em;
opacity: 0.9; opacity: 0.9;
} }
/* line 235, ../sass/screen.scss */ /* line 267, ../sass/screen.scss */
.publication-list .publication-entry .publication-descr:before { .publication-list .publication-entry .publication-descr:before {
content: " "; content: " ";
} }
/* line 239, ../sass/screen.scss */ /* line 271, ../sass/screen.scss */
.publication-list .publication-entry a.overlay { .publication-list .publication-entry a.overlay {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
@ -332,12 +367,12 @@ header {
} }
@media screen and (max-width: 599px) { @media screen and (max-width: 599px) {
/* line 251, ../sass/screen.scss */ /* line 283, ../sass/screen.scss */
body { body {
padding-top: 75px; padding-top: 75px;
} }
/* line 254, ../sass/screen.scss */ /* line 286, ../sass/screen.scss */
header, .sidebar { header, .sidebar {
position: fixed; position: fixed;
top: 0; top: 0;
@ -345,7 +380,7 @@ header {
width: 100%; width: 100%;
} }
/* line 260, ../sass/screen.scss */ /* line 292, ../sass/screen.scss */
header { header {
z-index: 15; z-index: 15;
right: 60px; right: 60px;
@ -354,13 +389,13 @@ header {
height: 60px; height: 60px;
line-height: 60px; line-height: 60px;
} }
/* line 267, ../sass/screen.scss */ /* line 299, ../sass/screen.scss */
header img { header img {
max-height: 55px; max-height: 55px;
vertical-align: middle; vertical-align: middle;
} }
/* line 272, ../sass/screen.scss */ /* line 304, ../sass/screen.scss */
.sidebar { .sidebar {
z-index: 14; z-index: 14;
background: #f8ef78; background: #f8ef78;
@ -370,18 +405,18 @@ header {
max-height: 100vh; max-height: 100vh;
overflow-y: auto; overflow-y: auto;
} }
/* line 281, ../sass/screen.scss */ /* line 313, ../sass/screen.scss */
.sidebar .minimenu { .sidebar .minimenu {
position: absolute; position: absolute;
right: 5px; right: 5px;
top: 5px; top: 5px;
display: block; display: block;
} }
/* line 286, ../sass/screen.scss */ /* line 318, ../sass/screen.scss */
.sidebar .minimenu img { .sidebar .minimenu img {
height: 50px; height: 50px;
} }
/* line 290, ../sass/screen.scss */ /* line 322, ../sass/screen.scss */
.sidebar ul.nav { .sidebar ul.nav {
display: flex; display: flex;
width: 100%; width: 100%;
@ -390,17 +425,17 @@ header {
font-size: 0.95em; font-size: 0.95em;
margin-bottom: 10px; margin-bottom: 10px;
} }
/* line 298, ../sass/screen.scss */ /* line 330, ../sass/screen.scss */
.sidebar ul.nav li { .sidebar ul.nav li {
display: inline-block; display: inline-block;
min-width: 150px; min-width: 150px;
margin: 5px; margin: 5px;
} }
/* line 302, ../sass/screen.scss */ /* line 334, ../sass/screen.scss */
.sidebar ul.nav li a { .sidebar ul.nav li a {
padding: 10px; padding: 10px;
} }
/* line 309, ../sass/screen.scss */ /* line 341, ../sass/screen.scss */
.sidebar.collapse ul { .sidebar.collapse ul {
display: none; display: none;
} }

View file

@ -8,3 +8,6 @@ $orange: #f06e00;
$blanc: #fff; $blanc: #fff;
$pfont: "Source Sans Pro", sans-serif; $pfont: "Source Sans Pro", sans-serif;
$hfont: "Bitter", serif; $hfont: "Bitter", serif;
$codeGray: #f0f0f0;
$codeFont: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
$preFont: "Courier 10 Pitch", Courier, monospace;

View file

@ -59,6 +59,13 @@ h2 {
margin-bottom: 0.7em; margin-bottom: 0.7em;
} }
h3 {
font-size: 1.5em;
text-align: left;
padding: 15px;
margin-bottom: 0.4em;
}
strong, b { strong, b {
font-weight: bold; font-weight: bold;
} }
@ -73,6 +80,31 @@ a {
font-weight: bold; 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 { header {
max-width: 700px; max-width: 700px;
margin: 0 auto; margin: 0 auto;
@ -178,7 +210,7 @@ header {
} }
p { p {
margin-bottom: 1em; margin: 0.5em 0;
} }
.md-text { .md-text {