Files
gokarna/themes/gokarna/static/css/main.css
Avijit 🚀 d5de17d87a Fixes
2021-07-10 05:36:39 +02:00

287 lines
4.2 KiB
CSS

:root {
--accent-color: #ff4d4d;
--content-width: 810px;
}
html {
background: white;
color: black;
font-family: "Jost", sans-serif;
font-weight: 400;
letter-spacing: 0.5px;
min-height: 100%;
position: relative;
}
body {
margin-bottom: 170px;
}
a {
color: black;
}
a:hover {
color: var(--accent-color);
}
main#content {
width: var(--content-width);
margin: 90px auto 0;
}
img {
width: var(--content-width);
height: auto;
}
/* HEADER */
.header {
background-color: rgb(240, 240, 240);
box-shadow: rgba(170, 170, 170, 0.5) 0px 1px 2px 0px;
color: black;
font-size: 1.05rem;
height: 50px;
left: 0;
opacity: 0.95;
position: fixed;
top: 0;
width: 100%;
}
.header a {
text-decoration: none;
}
.header .header-nav {
height: 50px;
margin-top: 0;
}
.header-nav .avatar {
border-radius: 18px;
float: left;
height: 100%;
margin-left: 15px;
}
.header-nav .avatar img {
border-radius: 100%;
display: block;
height: 38px;
margin-top: 5px;
overflow: hidden;
width: 38px;
}
.header-nav .nav-title {
display: inline-block;
height: 100%;
line-height: 50px;
padding-left: 15px;
}
.nav-title a {
font-size: 20px;
height: 50px;
}
.header-nav .nav-links {
float: right;
line-height: 50px;
margin-right: 10px;
}
.nav-links .nav-link {
display: inline-block;
padding: 0 4px;
}
.nav-links .nav-link a {
display: block;
padding: 0 6px;
}
.nav-links .nav-link.icon a {
padding: 0 8px;
}
.nav-links .nav-icons-divider {
border-color: inherit;
border-left: 1.5px solid;
margin: 0 10px;
color: #dfdfdf;
}
.nav-links #dark-theme-toggle:hover {
cursor: pointer;
}
#dark-theme-toggle .feather {
height: 24px;
stroke-linecap: round;
stroke-linejoin: round;
width: 24px;
}
/* FOOTER */
.footer {
bottom: 0;
border-top: 1px solid #eee;
color: inherit;
left: 0;
overflow: hidden;
padding: 40px 0;
position: absolute;
text-align: center;
width: 100%;
}
.footer span {
display: block;
font-size: 0.9rem;
padding: 1px 0;
}
.footer span a {
color: inherit;
}
/** COMMON **/
/* ICONS */
.feather {
height: 20px;
margin: -3px auto;
stroke-width: 1.25;
width: 20px;
}
/* TAGS */
.post-tags {
list-style-type: none;
padding: 0;
}
.post-tags .post-tag {
border: 1px solid black;
border-radius: 4px;
box-sizing: border-box;
color: black;
display: inline-block;
font-size: 14px;
}
.post-tags .post-tag:hover {
background-color: black;
color: white;
}
.post-tag a {
color: inherit;
display: block;
padding: 6px 12px;
text-decoration: none;
}
/* CODE BLOCKS */
code,
pre {
background-color: #1f1f1f !important;
box-sizing: border-box;
color: white;
}
pre {
font-size: 0.95rem;
padding: 20px;
}
code {
box-decoration-break: clone;
padding: 0 3px;
word-wrap: break-word;
}
blockquote {
border-left: 2px solid #e0e0e0;
padding-left: 1rem;
color: grey;
}
/* HOME PAGE */
.home-about {
text-align: center;
}
.home-about .avatar img {
border-radius: 50%;
height: auto;
}
/* Avatar sizes (default is M) - XS, S, M, L, XL */
.home-about .avatar img.size-xs {
height: 7rem;
width: 7rem;
}
.home-about .avatar img.size-s {
height: 9rem;
width: 9rem;
}
.home-about .avatar img {
height: 11rem;
width: 11rem;
}
.home-about .avatar img.size-l {
height: 13rem;
width: 13rem;
}
.home-about .avatar img.size-xl {
height: 15rem;
width: 15rem;
}
/* SINGLE */
.post .post-date {
color: gray;
}
.post .post-content {
font-size: 1.2rem;
line-height: 1.7;
margin-top: 50px;
}
/* LIST */
.list-posts .list-title {
text-align: center;
}
.list-posts .posts-year {
margin-top: 70px;
}
.list-posts .post-title {
margin: 10px 0 0 15px;
}
.list-posts a {
text-decoration: none;
}
.post-title .post-link,
.post-title .post-date {
display: inline-block;
}
.post-title .post-link {
font-size: 1.2rem;
width: 80%;
}
.tags-list .post-tags {
margin-top: 50px;
}
.tags-list .post-tags .post-tag {
margin: 0 5px;
padding: 0;
}
.tags-list .post-tags .post-tag a {
padding: 0;
}
.tags-list .post-tags .post-tag a div {
display: inline-block;
}
.tags-list .post-tags .post-tag a .tag-name {
padding: 5px 8px;
}
.tags-list .post-tags .post-tag a .tag-posts-count {
background: rgba(0, 0, 0, 0.1);
opacity: 0.8;
padding: 6px;
}