Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
199 lines (170 sloc) 2.8 KB
@import "./fonts.scss";
$bg-color: #F5F5F5;
$border-color: #E5E7E9;
$main-text-color: #5F5F5F;
$sub-text-color: lighten($main-text-color, 30%);
html {
font-family: "Noto Sans Japanese";
}
body {
background: $bg-color;
font-family: "Noto Sans", "Noto Sans CJK JP", "AlphaNSCjp", sans-serif
}
a {
color: inherit;
text-decoration: none;
}
header {
display: flex;
align-items: center;
flex-direction: column;
padding-top: 1em;
}
nav {
border-bottom: 1px solid $border-color;
ul {
list-style: none;
display: flex;
justify-content: center;
padding: 0;
li {
color: $main-text-color;
}
}
}
main {
margin-top: 2em;
background: #FAFAFA;
padding: 1em 2em;
border-radius: 0.2em;
border: 1px solid $border-color;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
}
h2 {
margin: 0.5em 0;
margin-top: 1em;
}
h3 {
margin-top: .8em;
}
.site-title {
font-weight: 100;
}
.container {
max-width: 960px;
width: 90%;
margin: 0 auto;
}
.page-title {
margin: 2em 0;
font-weight: 200;
}
.post-list {
list-style: none;
padding: 0;
li {
font-size: 14px;
margin: 1em 0;
display: flex;
&:hover {
opacity: 0.5;
}
a {
width: 100%;
line-height: 2;
display: flex;
}
}
&-item-title {
width: calc(100% - 7em);
display: inline-block;
padding-right: 1em;
text-overflow: ellipsis;
overflow: hidden;
}
&-item-time {
display: inline-flex;
justify-content: flex-end;
color: $sub-text-color;
width: 7em;
}
}
/* Markdown styles */
.markdown-body {
line-height: 1.5;
color: $main-text-color;
h2 {
color: darken($main-text-color, 20%);
font-weight: 400
}
a {
text-decoration: none;
color: #357edd;
}
ul {
overflow-wrap: break-word;
}
pre {
margin: 0;
overflow: auto;
padding: 0.5em;
}
& > blockquote {
color: lighten($main-text-color, 10%);
padding: 0.2em 2em;
margin: 1em 0;
}
& > hr {
margin: 2em -4rem;
border: 0;
border-bottom: 1px dotted #CCC;
}
blockquote {
background: #f9f9f9;
border-left: 0.2rem solid #ccc;
padding-left: 3.8rem;
}
img {
max-width: 100%;
max-height: 20em;
display: block;
margin: 0 auto;
&.full-size-image {
width: 100%;
max-height: none;
}
&.emoji {
margin: 0;
display: inline;
}
}
img + em {
display: block;
margin: 0;
font-size: 12px;
color: $sub-text-color;
width: 100%;
text-align: center;
}
.filename {
display: inline-block;
padding: 0.2em 1em;
margin: 0;
background: $border-color;
}
code.highlighter-rouge {
padding: 0 0.4em;
overflow-wrap: break-word;
}
.highlighter-rouge {
background: lighten($main-text-color, 57%)
}
}
/* end Markdown styles */
You can’t perform that action at this time.