mirror of
https://codeberg.org/aiquiral/blog.git
synced 2024-10-23 10:30:47 +00:00
365 lines
5.7 KiB
CSS
365 lines
5.7 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "DejaVu Sans", sans-serif;
|
|
display: flex;
|
|
min-height: 100vh;
|
|
flex-flow: column;
|
|
color: #25252D;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
h1, h2 {line-height: 1.25;}
|
|
|
|
.line-top{
|
|
height: 22px;
|
|
background-image: linear-gradient(145deg, #4c4dfb , #706efb);
|
|
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 30px;
|
|
}
|
|
|
|
.line-bottom {
|
|
height: 22px;
|
|
background-image: linear-gradient(145deg, #706efb, #4c4dfb);
|
|
bottom: 0px;
|
|
width: 100%;
|
|
box-shadow: rgba(0, 0, 0, 0.35) 5px 0px 30px;
|
|
}
|
|
|
|
.foot {
|
|
position:relative;
|
|
bottom: 22px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.foot a{text-decoration: none !important;color: #25252D;}
|
|
|
|
*{
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
--color1: #FFF ;
|
|
--color2: #000 ;
|
|
}
|
|
.nav-bar {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
list-style: none;
|
|
position: fixed;
|
|
padding: 25px 30px;
|
|
}
|
|
.logo img {width: 100px;}
|
|
.menu {display: flex;}
|
|
.menu li {padding-left: 30px;}
|
|
.menu li a {
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
color: #b4b4bb;
|
|
text-align: center;
|
|
transition: 0.15s ease-in-out;
|
|
position: relative;
|
|
text-transform: uppercase;
|
|
}
|
|
.menu li a::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 0;
|
|
height: 1px;
|
|
background-color: #25252d;
|
|
transition: 0.15s ease-in-out;
|
|
}
|
|
.menu li a:hover:after {width: 100%;}
|
|
.open-menu , .close-menu {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
font-size: 50px;
|
|
display: none;
|
|
}
|
|
.open-menu {
|
|
top: 50%;
|
|
right: 20px;
|
|
padding: 15px 20px;
|
|
transform: translateY(-50%);
|
|
background-color: #25252d;
|
|
color: #fff;
|
|
}
|
|
.close-menu {
|
|
top: 75px;
|
|
right: 75px;
|
|
color: #b4b4bb;
|
|
}
|
|
#check {display: none;}
|
|
|
|
.menu {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30%;
|
|
height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
right: -100%;
|
|
z-index: 100;
|
|
background-color: #000;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
.menu li {margin-top: 40px;}
|
|
.menu li a {padding: 10px;}
|
|
.open-menu , .close-menu {display: block;}
|
|
#check:checked ~ .menu {right: 0;}
|
|
|
|
@media (max-width: 1080px) {
|
|
.menu {
|
|
width: 60%;
|
|
}
|
|
}
|
|
|
|
.main, .blog-post {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
|
|
.blog-post{
|
|
padding: 5vw 25%;
|
|
}
|
|
|
|
|
|
|
|
.featured {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.inline-img{
|
|
max-width: max-content;
|
|
width: 100%;
|
|
}
|
|
.latest {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
code, pre {
|
|
background-color: #eee;
|
|
}
|
|
|
|
pre {
|
|
padding: 10px;
|
|
margin: 10px 10px 10px 0px;
|
|
color: #555;
|
|
border-left: 2px solid !important;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.hero {
|
|
display: flex;
|
|
padding: 5vw 20%;
|
|
gap: 50px;
|
|
}
|
|
|
|
.latest-post{flex:67%;}
|
|
.search-and-categories{flex:33%}
|
|
|
|
@media (max-width: 1203px) {
|
|
.hero {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1080px) {
|
|
.latest-post {
|
|
margin-top: 80px;
|
|
}
|
|
.blog-post{
|
|
padding: 5vw 10%;
|
|
margin-top: 80px;
|
|
}
|
|
}
|
|
|
|
|
|
h1 {
|
|
margin: 30px 0px 30px 0px;
|
|
}
|
|
|
|
h2{
|
|
margin: 30px 0px 20px 0px;
|
|
}
|
|
|
|
h3{
|
|
margin: 20px 0px 10px 0px;
|
|
}
|
|
|
|
h4 {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
|
|
input#search-bar {
|
|
margin-top: 100px;
|
|
width: 100%;
|
|
height: 45px;
|
|
padding: 0 20px;
|
|
font-size: 1rem;
|
|
border: 1px solid #b4b4bb;
|
|
outline: none;
|
|
&:focus {
|
|
border: 1px solid #4C4DFB;
|
|
transition: 0.35s ease;
|
|
}
|
|
}
|
|
|
|
.categories {display: flex; flex-wrap: wrap;}
|
|
|
|
.category-button-div {
|
|
background-color: #4C4DFB;
|
|
padding: 15px 20px;
|
|
border-radius: 10px;
|
|
margin: 0px 10px 10px 0px;
|
|
border: solid 3px #4C4DFB;
|
|
transition: 0.2s ease-in-out;
|
|
&:hover{
|
|
background-color: #333;
|
|
transition: 0.2s ease-in-out;
|
|
}
|
|
}
|
|
|
|
.category-button {
|
|
text-decoration: none;
|
|
color:#FFF;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #2ea3f2;
|
|
}
|
|
|
|
.author {
|
|
display: flex;
|
|
background-color: #eee;
|
|
padding: 5vw 20%;
|
|
}
|
|
|
|
|
|
.meri-photo-div{
|
|
width: 50%;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.meri-photo {
|
|
width: 100%;
|
|
}
|
|
|
|
.meri-bio{
|
|
width: 50%;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
text-align: justify;
|
|
}
|
|
|
|
@media (max-width: 1203px) {
|
|
.author {
|
|
flex-direction: column;
|
|
}
|
|
.meri-photo-div{width: auto;}
|
|
.meri-bio{width: auto;}
|
|
}
|
|
|
|
p{
|
|
color: #555;
|
|
margin: 10px 0px 10px 0px;
|
|
text-align: justify;
|
|
}
|
|
|
|
.post-date{
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.post-heading {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
|
|
.all-posts{
|
|
padding: 1vw 20% 2vw 20%;
|
|
}
|
|
|
|
.all-posts-table{
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.allposts-post{
|
|
min-width: auto;
|
|
max-width: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 15px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.comments{
|
|
padding: 1vw 25%;
|
|
}
|
|
/*
|
|
@media (max-width: 1080px) {
|
|
.all-posts-table {
|
|
flex-direction: column;
|
|
}
|
|
.comments{
|
|
padding: 1vw 10%;
|
|
}
|
|
} */
|
|
|
|
li {
|
|
margin: 5px 20px;
|
|
color: #555;
|
|
}
|
|
|
|
.important-note{
|
|
border-left: 5px solid rgb(250, 200, 110) !important;
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
margin: 20px 10px 20px 0px;
|
|
background-color: rgb(250, 250, 210);
|
|
}
|
|
|
|
#search-results a {
|
|
display: block;
|
|
padding: 10px 0px;
|
|
}
|
|
|
|
thead {
|
|
text-align: left;
|
|
background-color: #eee;
|
|
}
|
|
|
|
table {
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
border: 1px solid #eee;
|
|
margin: 10px 0px;
|
|
}
|
|
|
|
td, th {
|
|
border-bottom: 1px solid #eee;
|
|
padding: 12px;
|
|
} |