leilukin-site/Leilukins-Hub-public/blog/css/style-blog.css

274 lines
4.5 KiB
CSS
Raw Normal View History

2023-10-03 12:32:15 +00:00
@import url('https://fonts.googleapis.com/css?family=Noto+Sans&display=swap');
2023-06-15 09:18:46 +00:00
2023-09-12 07:59:37 +00:00
/* CSS RESET */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
margin: 0;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
list-style: none;
}
/* Set core root defaults */
html:focus-within {
scroll-behavior: smooth;
}
/* Set core body defaults */
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img,
picture {
max-width: 100%;
display: block;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* STYLING BEGINS */
/* General styles */
2023-06-15 09:18:46 +00:00
body {
background-color: black;
2024-04-05 09:34:07 +00:00
background: url('../img/bg_space.png') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
2023-09-12 07:59:37 +00:00
background-size: cover;
2023-07-03 04:27:18 +00:00
font-size: 1.3rem;
2023-10-03 12:32:15 +00:00
font-family: 'Noto Sans', Arial, sans-serif;
2023-09-12 07:59:37 +00:00
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
h1 {
margin-bottom: 1.2rem;
}
h1, h2, h3, h4, h5 {
color: #5fc7cd;
2023-06-15 09:18:46 +00:00
}
p {
line-height: 1.6em;
2023-09-12 07:59:37 +00:00
padding: 0.5rem 0;
2023-06-15 09:18:46 +00:00
}
strong {
color: #5fc7cd;
}
img {
max-width: 100%;
height: auto;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
2023-10-13 14:05:52 +00:00
blockquote {
margin: 1.5rem 0;
padding: 0.5rem 1rem;
border-inline-start: 0.1rem solid #5fc7cd;
background-color: #34220b;
}
2023-06-15 09:18:46 +00:00
.right {
float: right;
margin-left: 1em;
}
.left {
float: left;
margin-right: 1em;
}
.center {
display: block;
margin-right: auto;
margin-left: auto;
text-align: center;
}
2023-07-03 04:27:18 +00:00
@media only screen and (min-width: 37.5rem) {
2023-06-15 09:18:46 +00:00
.small {
max-width: 60%;
height: auto;
}
}
.caption {
margin-top: 0;
font-size: 0.9em;
font-style: italic;
}
a {
color: #ffc000;
}
a:hover {
2023-06-15 09:18:46 +00:00
background-color: #34220b;
}
hr {
border-width: 0.1rem 0 0 0;
2023-09-11 14:03:41 +00:00
border-style: dotted;
border-color: #a3bdc4;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
/* The rectangle that has contains everything but the background */
.blog-container {
2023-09-12 07:59:37 +00:00
width: 95%;
2023-07-03 04:27:18 +00:00
max-width: 68.75rem;
background-color: #101010;
2023-06-15 09:18:46 +00:00
color: #dddddd;
2023-09-11 14:03:41 +00:00
border-radius: 2rem;
overflow: hidden;
box-shadow: 0 -2px 10px 0 #c7d8f4 inset;
2023-09-12 07:59:37 +00:00
margin: 1em 0;
padding: 1em 2em;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
/* HEADER STYLE */
.blog-header {
2023-09-12 07:59:37 +00:00
margin-bottom: 0.5em;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
.blog-header ul {
2023-06-15 09:18:46 +00:00
display: inline-block;
list-style-type: none;
padding: 0;
margin-bottom: 1em;
margin-top: 1em;
}
2023-08-14 03:55:43 +00:00
.blog-header li {
2023-09-12 07:59:37 +00:00
font-size: 1.1em;
2023-06-15 09:18:46 +00:00
display: inline-block;
2023-09-11 14:03:41 +00:00
margin-right: 0.5em;
2023-09-12 07:59:37 +00:00
margin-bottom: 0.5em;
margin-top: 0.5em;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
.blog-header li a {
2023-09-11 14:03:41 +00:00
color: white;
background-color: #1b548e;
2023-09-12 07:59:37 +00:00
border-radius: 25px;
2023-09-11 14:03:41 +00:00
border: 3px solid #7cd8ff;
2023-09-12 07:59:37 +00:00
padding: 6px 30px;
2023-09-11 14:03:41 +00:00
box-shadow: 0 -2px 12px 0 #23a4f8 inset;
text-transform: uppercase;
2023-06-15 09:18:46 +00:00
text-decoration: none;
}
2023-08-14 03:55:43 +00:00
.blog-header li a:hover {
2023-09-11 14:03:41 +00:00
background-color: #1f64aa;
text-decoration: none;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
/* POST TITLE STYLE */
2023-09-11 14:03:41 +00:00
.blog__title,
2023-08-14 03:55:43 +00:00
.blog-post__title {
font-size: 1.75em;
}
/* POST STYLE */
.blog-post__figure--img {
padding: 1rem 0;
}
2023-08-14 03:55:43 +00:00
/* POST DATE STYLE */
.blog-post__date {
font-size: 1.1em;
2023-09-12 07:59:37 +00:00
margin-bottom: 1.1em;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
/* POST LIST STYLE */
2023-09-12 07:59:37 +00:00
.blog-recent-post-list {
margin-top: 1em;
}
2023-08-14 03:55:43 +00:00
.blog-post-list ul,
.blog-recent-post-list ul {
2023-07-03 04:27:18 +00:00
font-size: 1.1em;
2023-06-15 09:18:46 +00:00
padding: 0;
list-style-type: none;
}
2023-08-14 03:55:43 +00:00
.blog-post-list ul li,
.blog-recent-post-list ul li {
margin-bottom: 0.5em;
}
2023-06-15 09:18:46 +00:00
.moreposts {
font-size: 0.8em;
margin-top: 0.2em;
}
/*NEXT AND PREVIOUS LINKS STYLE*/
2023-08-14 03:55:43 +00:00
.blog-nextprev {
2023-06-15 09:18:46 +00:00
text-align: center;
2023-09-12 07:59:37 +00:00
margin: 1.4em 0;
2023-06-15 09:18:46 +00:00
}
2023-08-14 03:55:43 +00:00
/* DISQUS STYLE */
2023-06-15 09:18:46 +00:00
#disqus_thread {
margin-top: 1.6em;
}
2023-08-14 03:55:43 +00:00
/* FOOTER STYLE */
.blog-footer {
2023-06-15 09:18:46 +00:00
font-size: 0.8em;
}