mdk.fr/theme/static/css/main.css

392 lines
7.9 KiB
CSS

/***** Global *****/
/* Paragraphs */
div.line-block,
p { margin-top: 1em;
margin-bottom: 1em;}
em, i {font-style: italic;}
div.highlight pre {
background-color: #333;
}
footer {
clear: both;
display: flex;
flex-direction: row;
}
.post-info p{
margin-top: 1px;
margin-bottom: 1px;
}
.readmore { float: right }
dl {margin: 0 0 1.5em 0;}
dt {font-weight: bold;}
dd {margin-left: 1.5em;}
pre{color: #f8f8f2; padding: 10px; margin: 10px; overflow: auto;}
/* Quotes */
blockquote {
margin: 20px;
font-style: italic;
}
cite {}
q {}
div.note {
float: right;
margin: 5px;
font-size: 85%;
max-width: 300px;
}
/* Tables */
table {margin: .5em auto 1.5em auto; width: 98%;}
/* Thead */
thead th {padding: .5em .4em; text-align: left;}
thead td {}
/* Tbody */
tbody td {padding: .5em .4em;}
tbody th {}
tbody .alt td {}
tbody .alt th {}
/* Tfoot */
tfoot th {}
tfoot td {}
/* HTML5 tags */
header, section, aside, nav, article, figure {
display: block;
}
/***** Layout *****/
.body {clear: both; margin: 0 auto;}
img.right, figure.right {float: right; margin: 0 0 2em 2em;}
img.left, figure.left {float: left; margin: 0 2em 2em 0;}
/*
Header
*****************/
.container {
padding-right: 15px;
padding-left: 15px;
}
.container nav {
display: flex;
flex-direction: row;
}
.sitename {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 42px;
}
.markdown-body h1.title {
margin-top: .5em;
}
#banner {
margin-bottom: 30px;
margin: 0 auto;
background-color: #3A3A3A;
color: #DCDCDC;
}
/* Banner */
#banner h1 {font-size: 3.571em; line-height: 0;}
#banner h1 a:link, #banner h1 a:visited {
color: #000305;
display: block;
font-weight: bold;
margin: 0 0 .6em .2em;
text-decoration: none;
}
#banner h1 a:hover, #banner h1 a:active {
background: none;
text-decoration: underline;
text-shadow: none;
}
#banner h1 strong {font-size: 0.36em; font-weight: normal;}
/* Main Nav */
#banner nav {
font-size: 1.143em;
align-items: center;
}
#banner nav ul {list-style: none; }
#banner nav li {float: left; display: inline; margin: 0;}
#banner nav a:link, #banner nav a:visited {
color: #DCDCCC;
display: inline-block;
padding-right: 1.5em;
text-decoration: none;
}
#banner nav a:hover, #banner nav a:active,
#banner nav .active a:link, #banner nav .active a:visited {
text-decoration: none;
color: #DCDCCC;
text-shadow: none !important;
}
#banner nav li:first-child a {
border-top-left-radius: 5px;
-moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
}
/*
Featured
*****************/
#featured {
background: #fff;
margin-bottom: 2em;
overflow: hidden;
padding: 20px;
width: 760px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
#featured figure {
border: 2px solid #eee;
float: right;
margin: 0.786em 2em 0 5em;
width: 248px;
}
#featured figure img {display: block; float: right;}
#featured h2 {color: #C74451; font-size: 1.714em; margin-bottom: 0.333em;}
#featured h3 {font-size: 1.429em; margin-bottom: .5em;}
#featured h3 a:link, #featured h3 a:visited {color: #000305; text-decoration: none;}
#featured h3 a:hover, #featured h3 a:active {color: #fff;}
/*
Body
*****************/
#content {
min-width: 200px;
width: 1020px;
margin: 0 auto;
background: #fff;
margin-bottom: 2em;
overflow: hidden;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
#content article .entry-content {
float: left;
width: 700px;
}
#content article .entry-metadata {
float: right;
padding-left: 30px;
width: 320px;
}
/*
Extras
*****************/
#extras {margin: 0 auto 3em auto; overflow: hidden;}
#extras ul {list-style: none; margin: 0;}
#extras li {border-bottom: 1px solid #fff;}
#extras h2 {
color: #C74350;
font-size: 1.429em;
margin-bottom: .25em;
padding: 0 3px;
}
#extras a:link, #extras a:visited {
color: #444;
display: block;
border-bottom: 1px solid #F4E3E3;
text-decoration: none;
padding: .3em .25em;
}
#extras a:hover, #extras a:active {color: #fff;}
/* Blogroll */
#extras .blogroll {
float: left;
width: 615px;
}
#extras .blogroll li {float: left; margin: 0 20px 0 0; width: 185px;}
#banner a.social {
background-repeat: no-repeat;
background-position: center;
padding-left: 25px;
}
/* Icons */
a[href*='github.com'].social { background-image: url('/theme/images/icons/github.png'); background-size: 16px 16px;}
a[type$='atom+xml'].social, a[type$='rss+xml'].social {background-image: url('/theme/images/icons/rss.png');}
a[href*='stackoverflow.com'].social {background-image: url('/theme/images/icons/stackoverflow.png');}
a[href*='twitter.com'].social {background-image: url('/theme/images/icons/twitter.png');}
/*
About
*****************/
#about {
background: #fff;
font-style: normal;
margin-bottom: 2em;
overflow: hidden;
padding: 20px;
text-align: left;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
#about .primary {float: left; width: 165px;}
#about .primary strong {color: #C64350; display: block; font-size: 1.286em;}
#about .photo {float: left; margin: 5px 20px;}
#about .url:link, #about .url:visited {text-decoration: none;}
#about .bio {float: right; width: 500px;}
/*
Footer
*****************/
#contentinfo {
padding-bottom: 2em;
text-align: right;
display: flex;
flex-direction: column;
}
/***** Sections *****/
/* Blog */
.hentry {
display: block;
clear: both;
padding: 1.5em 0;
}
li:last-child .hentry, #content > .hentry {border: 0; margin: 0;}
#content > .hentry {padding: 1em 0;}
.hentry img{display : none ;}
.entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;}
.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;}
.entry-title a:visited {background-color: #fff;}
.hentry .post-info * {font-style: normal;}
/* Content */
.hentry footer {margin-bottom: 2em;}
.hentry footer address {display: inline;}
#posts-list footer address {display: block;}
/* Blog Index */
#posts-list {list-style: none; margin: 0;}
#posts-list .hentry {padding-left: 10px; position: relative;}
#posts-list footer {
left: 10px;
position: relative;
float: left;
top: 0.5em;
width: 190px;
}
/* About the Author */
#about-author {
background: #f9f9f9;
clear: both;
font-style: normal;
margin: 2em 0;
padding: 10px 20px 15px 20px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#about-author strong {
color: #C64350;
clear: both;
display: block;
font-size: 1.429em;
}
#about-author .photo {border: 1px solid #ddd; float: left; margin: 5px 1em 0 0;}
div.codehilite {
background-color: #002B36;
}
footer a[href="https://psfmember.org/"] {
display: block;
margin: auto;
width: 100px;
}
footer a[href="https://psfmember.org/"] img {
width: 100px;
height: 100px;
}
.clear {
clear: both
}
.post-title {
margin: 0 0 0.5em;
font-size: 2em;
line-height: 1em;
font-weight: 700;
text-indent: -1px;
color: #000
}
.post-title a {
text-decoration: none;
color: inherit;
font-weight: inherit
}
.post-meta {
display: block;
margin-bottom: 1.333em;
font-family: 'Fira Sans', sans-serif;
font-size: 0.75em;
font-weight: 400;
line-height: 1.333em;
opacity: 0.5
}
.post-title a:hover {
text-decoration: none;
}