peruna/static/css/style.css

957 lines
14 KiB
CSS

@import url("normalize.css");
/* Changes */
#main{
border-radius: 0.15%;
padding: 15px 20px;
background: #f2f0ec;
}
@media(min-width:640px) {
#main {
padding: 50px 55px;
}
}
ul.p-menu__lists::before {
content: ">";
color: #d100b1;
font-size: 20px;
font-weight: bold;
font-family: monospace, sans-serif;
}
.p-title__link {
color: #ccc;
}
.p-subtitle{
color: #999;
}
/* Base style */
* {
transition-duration: 0.5s;
box-sizing: border-box
}
html {
font-size: 62.5%
}
body {
color: #747369d4;
background: #111114;
line-height: 1.57
font-size: 1.0rem;
font-family: -apple-system, BlinkMacSystemFont, YakuHanJP, Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 300;
font-family: Open Sans, sans-serif
}
h1 {
font-size: 3.2rem
}
h2 {
font-size: 2.8rem
}
h3 {
font-size: 2.4rem
}
h4 {
font-size: 2.0rem
}
h5 {
font-size: 1.8rem
}
h6 {
font-size: 1.6rem
}
p {
font-size: 1.6rem
}
a {
color: #337ab7;
text-decoration: none
}
a:hover {
color: #175081
}
ul li {
list-style: disc
}
ol li {
list-style: decimal
}
li {
font-size: 1.6rem
}
dt {
margin-top: 16px;
font-size: 1.6rem
}
dd {
margin: 8px 0 0 20px;
font-size: 1.6rem
}
pre {
display: block;
padding: 12px;
border-radius: 3px;
background-color: #f8f8f8;
font-size: 1.2rem;
word-wrap: break-word;
overflow: auto
}
code {
line-height: 1.8;
font-size: 1.4rem
}
table {
border-collapse: collapse;
border-spacing: 0;
font-size: 1.6rem
}
th,
td {
padding: 8px;
border: 1px solid #eee
}
th {
background-color: #fafafa;
font-weight: 400
}
del {
color: #999
}
blockquote {
margin: 0;
padding: 8px 12px;
border-left: 3px solid #ccc
}
blockquote * {
margin: 0
}
img {
max-width: 100%;
height: auto
}
.l-header {
display: block;
padding: 0px 0 36px 0;
text-align: center
}
.l-nav {
width: 96%;
margin: 0 auto;
}
.l-main {
width: 96%;
max-width: 720px;
margin: 10px auto 0
}
.l-footer {
padding: 24px 0
}
.c-title {
font-weight: 300;
font-family: Open Sans, sans-serif
}
.c-links {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin: 8px 0 0;
padding: 0
}
.c-links a {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 30px;
height: 30px;
border: 1px solid;
border-color: #555;
border-radius: 50%;
color: #555;
transition: .2s
}
.c-links a:hover {
background: #555;
color: #fff
}
.c-links__item {
margin: 8px 8px 0;
list-style: none
}
.c-links__icon {
width: 16px;
height: 16px;
fill: #ccc;
}
.c-article__title {
font-size: 2.4rem
}
.c-article__title a {
color: #111
}
.c-article__title a:hover {
color: #175081
}
.c-article__meta {
font-size: 1.6rem;
line-height: 1
}
.c-article__summary {
font-size: 1.4rem;
color: #999;
line-height: 1.57
}
.c-article__summary p {
margin: 0
}
.c-article__btn {
display: inline-block;
padding-bottom: 4px;
font-size: 1.6rem
}
.c-article__btn:after {
content: "";
display: inline-block;
margin-left: 3px;
width: 5px;
height: 5px;
border: solid currentColor;
border-width: 1px 1px 0 0;
-webkit-transform: rotate(45deg);
transform: rotate(45deg)
}
.c-avatar {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100px;
height: 100px;
border-radius: 50%;
overflow: hidden
}
.c-avatar img {
max-width: 100%;
height: auto
}
.c-time {
display: block;
font-size: 1.6rem
}
.c-tag {
display: inline-block;
margin: 8px 6px 0 0;
padding: 4px;
font-size: 1.6rem;
color: #555
}
.c-tag:before {
content: "#";
display: inline-block;
margin-right: 2px;
color: currentColor
}
.c-tag:hover {
background: #fafafa
}
.c-pagination {
font-size: 1.6rem
}
.c-pagination a {
display: inline-block;
padding: 8px 16px;
transition: .2s
}
.c-pagination a:hover {
background: #fafafa
}
.c-pagination__ctrl {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between
}
.c-pagination__newer,
.c-pagination__older {
-webkit-box-flex: 1;
-ms-flex: 1 1 0%;
flex: 1 1 0%
}
.c-pagination__newer a:before {
content: "";
display: inline-block;
position: relative;
top: -1px;
width: 4px;
height: 4px;
margin-right: 4px;
border: solid currentColor;
border-width: 2px 0 0 2px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg)
}
.c-pagination__older {
text-align: right
}
.c-pagination__older a:after {
content: "";
display: inline-block;
position: relative;
top: -1px;
width: 4px;
height: 4px;
margin-left: 4px;
border: solid currentColor;
border-width: 2px 2px 0 0;
-webkit-transform: rotate(45deg);
transform: rotate(45deg)
}
.c-pagination__count {
display: block;
text-align: center
}
.p-title {
margin: 0 0 20px 0;
font-size: 4.4rem
}
.p-subtitle {
margin: 12px 0 0;
font-size: 1.4rem;
font-weight: 300;
font-family: Open Sans, sans-serif
}
.p-tag-title {
display: inline-block;
margin: 0;
padding-bottom: 8px;
border-bottom: 1px solid currentColor;
color: #555;
font-size: 2.4rem
}
.p-tag-title:before {
content: "#";
display: inline-block;
margin-right: 4px
}
.p-copyright {
margin: 24px 0 0;
text-align: center;
font-size: 1.2rem
}
.p-list-article {
margin-top: 40px
}
.p-list-article:first-child {
margin-top: 0
}
.p-list-article__btn {
margin-top: 16px
}
.p-menu {
width: 100%;
background: #000;
padding-top: 10px;
padding-bottom: 13px;
margin-bottom: 40px;
display: inline-block;
border-top: 3px solid #d100b1;
}
.p-menu__lists {
margin: 0;
padding: 0;
max-width: 865px;
display: inline-block;
}
@media(min-width:640px) {
.p-menu__lists {
display: block;
}
}
.p-menu__listitem {
display: inline-block;
padding: 0 6px 0px 6px;
list-style: none
}
@media(min-width:640px) {
.p-menu__listitem {
margin: 0px 24px 0 0
}
}
.p-menu__listitem a {
padding-bottom: 4px
}
.p-menu__listitem a:hover {
border-bottom: 1px solid currentColor
}
.p-menu__listitem ul {
padding-left: 12px
}
.p-menu__listitem ul li {
margin: 4px 0 0
}
.p-menu__listitem ul li:before {
content: "-";
margin-right: 4px
}
.p-menu__parent span {
color: #337ab7
}
.p-author {
display: block;
position: relative;
width: 100%;
margin: 20px auto 0
}
@media(min-width:640px) {
.p-author {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 80px auto 0
}
}
.p-author:before {
content: "* * *";
position: absolute;
top: -30px;
left: 0;
right: 0;
margin: auto;
text-align: center;
font-size: 1.4rem;
color: #999
}
@media(min-width:640px) {
.p-author:before {
top: -50px
}
}
.p-author__name {
font-size: 2.8rem
}
.p-author__body {
-webkit-box-flex: 1;
-ms-flex: 1 1 0%;
flex: 1 1 0%
}
@media(min-width:640px) {
.p-author__body {
padding-left: 16px
}
}
.p-author__body p {
margin: 0
}
.p-pagination {
margin: 30px 0
}
@media(min-width:640px) {
.p-pagination {
margin: 60px 0
}
}
.p-pagination__count {
margin-top: 24px
}
.p-article__thumbnail {
margin-top: 24px
}
.p-article__body {
margin: 40px 0 30px;
word-wrap: break-word
}
@media(min-width:640px) {
.p-article__body {
margin: 40px 0 60px
}
}
.p-article__body img[data-action^=zoom]:hover {
cursor: zoom-in
}
.p-article__body .zoom-img-wrap img:hover {
cursor: zoom-out
}
.p-notfound {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
height: 300px
}
.p-notfound h1 {
font-size: 10rem;
font-weight: 700
}
.p-screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute!important;
height: 1px;
width: 1px;
overflow: hidden
}
.p-screen-reader-text:hover,
.p-screen-reader-text:active,
.p-screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
clip: auto!important;
color: #337ab7;
display: block;
font-size: 14px;
font-size: .875rem;
font-weight: 700;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000
}
.p-related {
margin-bottom: 100px
}
.p-related__list {
padding: 0;
font-size: 0
}
.p-related__item {
display: inline-block;
width: 230px;
height: 150px;
margin-right: 15px;
list-style: none
}
.p-related__item:nth-child(3n) {
margin-right: 0
}
.p-related__item:nth-child(n+4) {
margin-top: 15px
}
.p-related__item a {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100%;
padding: 8px;
background-size: cover;
background-color: #92c6f2;
color: #fafafa;
font-weight: 400;
font-family: Open Sans, sans-serif
}
.p-related__item a:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .3);
transition: .1s
}
.p-related__item a:hover:before {
background: rgba(0, 0, 0, .6)
}
.p-related__item span {
position: relative
}
.u-dn {
display: none!important
}
.u-db {
display: block!important
}
.u-di {
display: inline!important
}
.u-dib {
display: inline-block!important
}
.u-align-left {
display: block!important;
margin-left: 0!important;
margin-right: auto!important
}
.u-align-center {
display: block!important;
margin-right: auto!important;
margin-left: auto!important
}
.u-align-right {
display: block!important;
margin-left: auto!important;
margin-right: 0!important
}
/* zoom.css */
img[data-action=zoom] {
cursor: pointer;
cursor: -moz-zoom-in
}
.zoom-img,
.zoom-img-wrap {
position: relative;
z-index: 666;
transition: all .3s
}
img.zoom-img {
cursor: pointer;
cursor: -moz-zoom-out
}
.zoom-overlay {
z-index: 420;
background: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
filter: "alpha(opacity=0)";
opacity: 0;
transition: opacity .3s
}
.zoom-overlay-open .zoom-overlay {
filter: "alpha(opacity=100)";
opacity: 1
}
.zoom-overlay-open,
.zoom-overlay-transitioning {
cursor: default
}
/* Slick css */
.slick-slider {
position: relative;
display: block;
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
-khtml-user-select: none;
-ms-touch-action: pan-y;
touch-action: pan-y;
-webkit-tap-highlight-color: transparent
}
.slick-list {
position: relative;
display: block;
overflow: hidden;
margin: 0;
padding: 0
}
.slick-list:focus {
outline: none
}
.slick-list.dragging {
cursor: pointer;
cursor: hand
}
.slick-slider .slick-track,
.slick-slider .slick-list {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0)
}
.slick-track {
position: relative;
top: 0;
left: 0;
display: block;
margin-left: auto;
margin-right: auto
}
.slick-track:before,
.slick-track:after {
display: table;
content: ''
}
.slick-track:after {
clear: both
}
.slick-loading .slick-track {
visibility: hidden
}
.slick-slide {
display: none;
float: left;
height: 100%;
min-height: 1px
}
[dir=rtl] .slick-slide {
float: right
}
.slick-slide img {
display: block
}
.slick-slide.slick-loading img {
display: none
}
.slick-slide.dragging img {
pointer-events: none
}
.slick-initialized .slick-slide {
display: block
}
.slick-loading .slick-slide {
visibility: hidden
}
.slick-vertical .slick-slide {
display: block;
height: auto;
border: 1px solid transparent
}
.slick-arrow.slick-hidden {
display: none
}
.slick-slider {
position: relative
}
.slick-slide {
margin: 0 8px
}
.slick-arrow {
position: absolute;
top: 0;
bottom: 0;
margin: auto;
width: 28px;
height: 28px;
border: none;
border-radius: 50%;
background: #555
}
.slick-arrow:hover {
cursor: pointer
}
.slick-arrow:after {
content: "";
display: inline-block;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
margin: auto;
width: 5px;
height: 5px;
border: solid #fafafa
}
@media(max-width:767px) {
.slick-arrow {
display: none!important
}
}
.slick-prev {
left: -32px
}
.slick-prev:after {
left: 1px;
border-width: 2px 0 0 2px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg)
}
.slick-next {
right: -32px
}
.slick-next:after {
right: 1px;
border-width: 2px 2px 0 0;
-webkit-transform: rotate(45deg);
transform: rotate(45deg)
}