leilukin-site/blog/css/style-blog.css

194 lines
3.2 KiB
CSS

@font-face {
font-family: 'Nunito';
src: url('/assets/fonts/Nunito-VariableFont_wght.ttf') format("truetype");
font-weight: 125 950;
font-stretch: 75% 125%;
font-style: normal;
}
@font-face {
font-family: 'Nunito';
src: url('/assets/fonts/Nunito-Italic-VariableFont_wght.ttf') format("truetype");
font-weight: 125 950;
font-stretch: 75% 125%;
font-style: italic;
}
body {
background-color: black;
background-image: url('../img/bg_space.png');
background-position: center;
background-repeat: repeat-x;
background-size: contain;
background-attachment: fixed;
font-size: 1.3rem;
font-family: 'Nunito', Arial, sans-serif;
margin: 0;
}
p {
line-height: 1.6em;
}
strong {
color: #5fc7cd;
}
img {
max-width: 100%;
height: auto;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.right {
float: right;
margin-left: 1em;
}
.left {
float: left;
margin-right: 1em;
}
.center {
display: block;
margin-right: auto;
margin-left: auto;
text-align: center;
}
@media only screen and (min-width: 37.5rem) {
.small {
max-width: 60%;
height: auto;
}
}
.caption {
margin-top: 0;
font-size: 0.9em;
font-style: italic;
}
a {
color: #ffc000;
}
a:hover {
background-color: #34220b;
}
h1, h2, h3, h4, h5 {
color: #5fc7cd;
}
hr {
border-width: 0.1rem 0 0 0;
border-style: dotted;
border-color: #a3bdc4;
}
/* The rectangle that has contains everything but the background */
.blog-container {
margin: 3em auto;
width: 90%;
max-width: 68.75rem;
background-color: black;
color: #dddddd;
border-radius: 2rem;
overflow: hidden;
box-shadow: 0 -2px 10px 0 #c7d8f4 inset;
}
.blog-content {
padding: 0.5rem 5% 1rem 5%;
}
/* HEADER STYLE */
.blog-header {
padding: 0 5%;
}
.blog-header ul {
display: inline-block;
list-style-type: none;
padding: 0;
margin-bottom: 1em;
margin-top: 1em;
}
.blog-header li {
font-size: 1em;
display: inline-block;
margin-right: 0.5em;
margin-top: 0.7em;
}
.blog-header li a {
color: white;
background-color: #1b548e;
border-radius: 20rem;
border: 3px solid #7cd8ff;
padding: 0.4rem 2rem;
box-shadow: 0 -2px 12px 0 #23a4f8 inset;
text-transform: uppercase;
text-decoration: none;
}
.blog-header li a:hover {
background-color: #1f64aa;
text-decoration: none;
}
.blog-header li a:active {
background-color: #8e8d74;
text-decoration: none;
box-shadow: 0 -2px 12px 0 #fe83ff inset;
}
/* POST TITLE STYLE */
.blog__title,
.blog-post__title {
font-size: 1.75em;
}
/* POST DATE STYLE */
.blog-post__date {
font-size: 1.1em;
}
/* POST LIST STYLE */
.blog-post-list ul,
.blog-recent-post-list ul {
font-size: 1.1em;
padding: 0;
list-style-type: none;
}
.blog-post-list ul li,
.blog-recent-post-list ul li {
margin-bottom: 0.5em;
}
.moreposts {
font-size: 0.8em;
margin-top: 0.2em;
}
/*NEXT AND PREVIOUS LINKS STYLE*/
.blog-nextprev {
text-align: center;
margin-top: 1.4em;
}
/* DISQUS STYLE */
#disqus_thread {
margin-top: 1.6em;
}
/* FOOTER STYLE */
.blog-footer {
font-size: 0.8em;
padding: 0 5% 0.5rem 5%;
}