all repos — website @ f9a6119a33c3d7a680a733566b218daaaae13f34

personal website hosted at prithu.xyz, built using hugo

hugo-site/static/css/blog.css

.bcontainer{
    margin-top: 2rem;
    display: flex;
    flex-flow: row;
    width: 100%;
    justify-content: center;
}

.blog-menu{
    /* background-color: pink; */
    border-right: 1px solid #BCBCBC; 
    margin-left: 30px;
    min-width: 170px;
    max-width: 220px;
}

.blog-menu ul{
    list-style: none;
}

.blog-menu > ul > li{
    font-weight: 700;
    line-height: 2.5;
} 
.blog-menu > ul > ul > li{
    text-indent: 1.5rem;
    line-height: 1.4;
    font-weight: 200;
}

.bcontent{
    /* background-color: lightgreen; */
    width: 55%;
}

.bcontent h1{
    font-size: 2.3rem;
    line-height: 1.2;
}

.bcontent > .post-date{
    margin: 0.8rem 0;
    font-family: Sans-Serif;
}

.post-labels{
    display:flex;
    flex-wrap: wrap;
    margin-left: -0.2rem;
    margin-bottom: 2rem;
}

.post-label{
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 0.3rem;
    padding: 0.2rem 0.8rem;
    font-size: 0.85rem;
    margin: 0.2rem 0.2rem;
}

.posts{
    list-style: none;
    margin-top: 1.5rem;
}

.posts > div:nth-child(odd){
    background-color: #E5E5E5;
}

.post-item{
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.5rem;
}

.post-item > a {
    max-width: 70%;
    margin-right: 1rem;
    overflow: hidden;
}

.post-item > .post-date{
    font-size: 1rem;
    line-height: 1.4;
    white-space: nowrap;
    text-align: right;
}

.post-text{
    /* font-family: Roboto, Sans-serif; */
    font-family: "Noto Serif";
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
}

.post-text figure h4{
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.post-text figure{
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.post-text a {
    color:#B554E3;
}

.post-text a:hover {
    color: #8a3ead;
    text-decoration: underline;
}

.post-text figure img{
    margin: 0 auto;
}

.post-text p{
    line-height: 1.5;
    margin: 1rem 0;
}

.post-text h1{
    font-size:1.7rem;
    font-weight: 700;
    margin-top: 1rem;
}

.post-text h2{
    font-size:1.5rem;
    font-weight: 700;
    margin-top: 1rem;
}

.post-text h3{
    font-size:1.3rem;
    font-weight: 700;
    margin-top: 1rem;
}

.post-text ul{
    list-style-position: outside;
    padding: 0 1.2rem;
}

.post-text pre {
    max-width: 100%;
    background: #ddd;
    padding: 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    overflow-y: hidden;
    overflow-x: scroll;
}

.post-text > p > code{
    font-family: 'Roboto Mono';
    font-size: 90%;
    background: rgba(0, 0, 0, 0.15);
    padding: 0 0.4rem;
    border-radius: 0.2rem;
}

.post-text blockquote {
    margin: 2rem;
    margin-right: 0;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(0,0,0,0.5);
    font-size: 16px;
    color: rgba(0,0,0,0.7);
    text-transform: italic;
}

@media only screen and (max-width: 768px){
    .bcontent {
        width: 90%;
    }

    #blist {
        width:100%;
    }

    #blist h1{
        margin-left: 1rem;
    }

    .bcontainer {
        margin-top: 1rem;
    }

}