Skip to content

Instantly share code, notes, and snippets.

@ppworks
Last active August 9, 2019 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ppworks/f0b51dccf84f2756d033037dbe3f0362 to your computer and use it in GitHub Desktop.
Save ppworks/f0b51dccf84f2756d033037dbe3f0362 to your computer and use it in GitHub Desktop.
CSS for my blog
@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);
@import url(https://fonts.googleapis.com/css?family=Lato:400);
@import url(https://fonts.googleapis.com/css?family=Varela+Round);
/* <system section="theme" selected="alpha2"> */
@import url(https://ppworks.hatenablog.jp/css/theme/alpha2/alpha2.css);
@keyframes flash {
0% {
opacity: .4;
}
100% {
opacity: 1;
}
}
/* </system> */
/* <system section="background" selected="fff"> */
body {
font-family: 'Noto Sans JP', sans-serif;
background:#fff;
border-top: 3px solid #004a6b;
}
/* </system> */
body {
color: #424248;
background-color: #f6f4f5;
}
strong {
font-weight: 500;
}
mark {
padding: 0 2px;
background: linear-gradient(transparent 60%, #ffec66 60%);
}
a {
color: #0077ac;
text-decoration: none;
}
a:visited {
color: #0077ac;
}
a:hover {
opacity: 1;
animation: flash .4s;
text-decoration: none;
}
aside a {
color: #86a1a8;
font-size: 12px;
}
aside a:visited {
color: #6197aa;
}
.hatena-module-title {
font-family: "Varela Round", "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif;
font-style: normal;
font-weight: 800;
color: #cec8c8;
}
#blog-title {
font-family: "Varela Round", "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif;
font-style: normal;
font-weight: 900;
text-align: left;
margin-bottom: 60px;
}
#blog-title h1 {
font-size: 32px;
font-weight: 800;
letter-spacing: 0.03em;
margin: 0 0 10px 0;
padding: 0 0 0 10px;
}
#blog-title h1 a {
color: #cec8c8;
}
.archive-header-category {
margin-bottom: 1em;
}
.archive-heading {
padding: 0;
text-shadow: none;
}
header h2 {
color: #cec8c8;
letter-spacing: 0.04em;
padding: 0 0 0 11px;
}
#container {
width: 1030px;
background-color: #f6f4f5;
}
#main {
width: 700px;
padding: 0 50px 0 30px;
}
#wrapper {
width: 730px;
}
#box2 {
width: 240px;
}
#top-box {
display: none;
}
.categories a {
border-radius: 16px;
background-color: #efef01;
}
.categories a:before {
content: "#";
}
.entry {
margin: 0 0 100px;
}
.entry-title {
font-size: 160%;
font-weight: 300;
line-height: 1.5;
letter-spacing: 0.05em;
margin-bottom: 8px;
}
.entry-title:before {
content: " ";
display: inline-block;
width: 20px;
height: 20px;
background: url(https://s3-ap-northeast-1.amazonaws.com/ppworks.jp/images/footprint.png);
background-size: contain;
vertical-align: middle;
}
.entry-title .date {
color: #cec8c8;
font-size: 12px;
margin-top: 10px;
height: inherit;
}
.entry-categories {
margin-bottom: 22px;
}
.entry-content {
font-size: 18px;
font-weight: 300;
line-height: 2;
letter-spacing: 0.01em;
text-align: justify;
font-feature-settings: 'palt' 1;
word-wrap: break-word;
}
.hatena-asin-detail {
background-color: #fff;
}
.entry-content p {
margin: 1.6em 0;
}
.entry-content h1 {
font-size: 151%;
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
font-weight: 300;
letter-spacing: 0.07em;
font-feature-settings: 'palt' 1;
}
.entry-content h2 {
border-bottom: none;
}
.entry-content h2:after {
display: block;
height: 2px;
content: '';
background: -webkit-gradient(linear, left top, right bottom, from(#ffd3ca), to(#c7f4ff));
background:-moz-linear-gradient(left, #ffd3ca, #c7f4ff);
background:linear-gradient(left, #ffd3ca, #c7f4ff);
}
.entry-content img {
max-width: 100%;
}
.entry-footer-section {
display: none;
}
.date {
/*font-family: "Varela Round", "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif;*/
font-family: 'Lato';
font-size: 16px; /* 38px; */
font-style: normal;
font-weight: 300;
letter-spacing: 0.05em;
border-right-style: none;
position: static;
width: 300px;
line-height: inherit;
/*margin-bottom: 10px;*/
}
.date a {
color: #cec8c8;
}
.entry-date {
font-family: 'Noto Sans JP', sans-serif;
font-size: 13px;
text-align: center;
vertical-align: middle;
position: absolute;
top: 2px;
left: -100px;
padding: 10px 10px;
background-color: #fff;
border-radius: 2px;
box-sizing: border-box;
width: 80px;
height: 40px;
}
.entry-date time {
display: none;
}
.entry-date time.loaded {
display: inline;
}
.entry-date:before {
content: "";
position: absolute;
top: 13px;
left: 100%;
border: solid transparent 7px;
border-left: #fff solid 10px;
}
pre {
font-size: 11px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
background-color: #f8f8f8;
padding: 12px;
}
.twitter-share-button {
/*margin-top: 40px; */
}
.fb-share-button {
margin-top: -1px;
}
.entry blockquote {
border: none;
color: rgba(60,74,96,0.7);
border-left: 5px solid rgba(0,0,0,0.1);
margin-bottom: 30px;
padding: 0 20px;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
}
.profile-icon {
visibility:hidden;
}
.profile-icon-link {
position: relative;
display: block;
height: 140px;
}
.profile-icon-link::after {
content: "";
display: inline-block;
width: 120px;
height: 120px;
border-radius: 120px;
background-image: url("https://ja.gravatar.com/userimage/7248120/ef2a67c2039c9731550b7b6c5962e89e.png?size=260");
background-size: contain;
vertical-align: middle;
position: absolute;
top: 0;
right: 60px;
}
.search-form .search-module-input {
width: 199px;
}
.leave-comment-title {
background-color: #fff;
}
.pager a {
color: #0077ac;
background: inherit;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 50%;
}
.pager a:hover {
background: inherit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment