Files
gokarna/themes/gokarna/static/css/main.css
2021-07-05 10:03:16 +05:30

270 lines
4.3 KiB
CSS

html {
background: white;
color: black;
font-family: "Quicksand", sans-serif;
font-weight: 300;
letter-spacing: 0.5px;
min-height: 100%;
position: relative;
}
body {
margin-bottom: 170px;
}
main#content {
width: 810px;
margin: 120px auto 0;
}
/* HEADER */
.header {
background-color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 2px 0px;
color: black;
font-size: 1.04rem;
height: 70px;
left: 0;
opacity: 0.95;
position: fixed;
top: 0;
-ms-transition: height 0.5s ease-out;
-moz-transition: height 0.5s ease-out;
-webkit-transition: height 0.5s ease-out;
-o-transition: height 0.5s ease-out;
transition: height 0.5s ease-out;
width: 100%;
}
.header.small {
height: 50px;
}
.header a {
color: inherit;
text-decoration: none;
}
.header .header-nav {
height: 50px;
margin-top: 10px;
-ms-transition: margin 0.5s ease-out;
-moz-transition: margin 0.5s ease-out;
-webkit-transition: margin 0.5s ease-out;
-o-transition: margin 0.5s ease-out;
transition: margin 0.5s ease-out;
}
.header .header-nav.small {
margin-top: 0;
}
.header-nav a {
transition: color 0.15s ease-in-out;
}
.header-nav a:hover {
color: teal;
}
.header-nav .avatar {
border-radius: 18px;
float: left;
height: 100%;
margin-left: 15px;
}
.header-nav .avatar img {
border-radius: 100%;
display: block;
height: 50px;
overflow: hidden;
width: 50px;
}
.header-nav .nav-title {
display: inline-block;
height: 100%;
line-height: 50px;
padding-left: 10px;
}
.nav-title a {
font-size: 20px;
height: 50px;
}
.header-nav .nav-links {
float: right;
line-height: 50px;
margin-right: 15px;
}
.nav-links .nav-link {
display: inline-block;
}
.nav-links .nav-link a {
display: block;
padding: 0 10px;
}
.nav-links .nav-link.icon a {
padding: 0 8px;
}
.nav-links .nav-icons-divider {
border-color: inherit;
border-left: 1px solid;
margin: 0 10px;
}
.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 **/
.header,
.footer {
font-family: "Ubuntu", sans-serif;
}
/* ICONS */
.feather {
height: 20px;
margin: -3px auto;
stroke-width: 1.75;
width: 20px;
}
/* TAGS */
.post-tags {
list-style-type: none;
padding: 0;
}
.post-tags .post-tag {
background-color: #0058b5;
border: 1px solid #0058b5;
border-radius: 4px;
box-sizing: border-box;
color: white;
display: inline-block;
font-size: 14px;
padding: 4px 12px;
}
.post-tags .post-tag:hover {
background-color: #3d86d2;
border: 1px solid #3d86d2;
}
.post-tag a {
color: inherit;
text-decoration: none;
}
/* CODE BLOCKS */
code,
pre {
background-color: #eee !important;
box-sizing: border-box;
}
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;
}
/* 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 {
width: 7rem;
}
.home-about .avatar img.size-s {
width: 9rem;
}
.home-about .avatar img {
width: 11rem;
}
.home-about .avatar img.size-l {
width: 13rem;
}
.home-about .avatar img.size-xl {
width: 15rem;
}
/* SINGLE */
.post .post-date {
color: gray;
}
.post .post-content {
font-size: 1.04rem;
line-height: 1.7;
margin-top: 50px;
}
/* LIST */
.list-posts .list-title {
text-align: center;
}
.list-posts .posts-year {
margin-top: 40px;
}
.list-posts .post-title {
margin: 10px 0;
}
.post-title .post-date {
float: right;
}
.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 div {
display: inline-block;
padding: 5px 8px;
}
.tags-list .post-tags .post-tag a .tag-posts-count {
background: rgba(0, 0, 0, 0.1);
opacity: 0.8;
}