Initial style fixes + Semicolon galore

Whoever wrote this team really hates ending their CSS blocks with semicolons for some reason.
This commit is contained in:
Dominik V. Salonen 2018-09-03 10:25:14 +00:00
parent 7120a6eb37
commit 2edd1fcfa7
1 changed files with 152 additions and 167 deletions

View File

@ -13,14 +13,6 @@
} }
} }
/*ul.p-menu__lists::before {
content: "‣";
color: #ED5276;
font-size: 1.5rem;
font-weight: bold;
font-family: monospace, sans-serif;
}
*/
.p-title__link { .p-title__link {
color: #ccc; color: #ccc;
} }
@ -32,17 +24,17 @@
/* Base style */ /* Base style */
* { * {
transition-duration: 0.5s; transition-duration: 0.25s;
box-sizing: border-box box-sizing: border-box;
} }
html { html {
font-size: 62.5% font-size: 62.5%;
} }
body { body {
color: #747369d4; color: #747369d4;
background: #111114; background: #1e1919;
line-height: 1.57 line-height: 1.57
font-size: 1.0rem; font-size: 1.0rem;
font-family: -apple-system, BlinkMacSystemFont, YakuHanJP, Hiragino Kaku Gothic ProN, Meiryo, sans-serif; font-family: -apple-system, BlinkMacSystemFont, YakuHanJP, Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
@ -55,66 +47,66 @@ h4,
h5, h5,
h6 { h6 {
font-weight: 300; font-weight: 300;
font-family: Open Sans, sans-serif font-family: Open Sans, sans-serif;
} }
h1 { h1 {
font-size: 3.2rem font-size: 3.2rem;
} }
h2 { h2 {
font-size: 2.8rem font-size: 2.8rem;
} }
h3 { h3 {
font-size: 2.4rem font-size: 2.4rem;
} }
h4 { h4 {
font-size: 2.0rem font-size: 2.0rem;
} }
h5 { h5 {
font-size: 1.8rem font-size: 1.8rem;
} }
h6 { h6 {
font-size: 1.6rem font-size: 1.6rem;
} }
p { p {
font-size: 1.6rem font-size: 1.6rem;
} }
a { a {
color: #337ab7; color: #FF5555;
text-decoration: none text-decoration: none;
} }
a:hover { a:hover {
color: #175081 color: #FF9999;
} }
ul li { ul li {
list-style: disc list-style: disc;
} }
ol li { ol li {
list-style: decimal list-style: decimal;
} }
li { li {
font-size: 1.6rem font-size: 1.6rem;
} }
dt { dt {
margin-top: 16px; margin-top: 16px;
font-size: 1.6rem font-size: 1.6rem;
} }
dd { dd {
margin: 8px 0 0 20px; margin: 8px 0 0 20px;
font-size: 1.6rem font-size: 1.6rem;
} }
pre { pre {
@ -124,54 +116,54 @@ pre {
background-color: #f8f8f8; background-color: #f8f8f8;
font-size: 1.2rem; font-size: 1.2rem;
word-wrap: break-word; word-wrap: break-word;
overflow: auto overflow: auto;
} }
code { code {
line-height: 1.8; line-height: 1.8;
font-size: 1.4rem font-size: 1.4rem;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
font-size: 1.6rem font-size: 1.6rem;
} }
th, th,
td { td {
padding: 8px; padding: 8px;
border: 1px solid #eee border: 1px solid #eee;
} }
th { th {
background-color: #fafafa; background-color: #fafafa;
font-weight: 400 font-weight: 400;
} }
del { del {
color: #999 color: #999;
} }
blockquote { blockquote {
margin: 0; margin: 0;
padding: 8px 12px; padding: 8px 12px;
border-left: 3px solid #ccc border-left: 3px solid #ccc;
} }
blockquote * { blockquote * {
margin: 0 margin: 0;
} }
img { img {
max-width: 100%; max-width: 100%;
height: auto height: auto;
} }
.l-header { .l-header {
display: block; display: block;
padding: 0px 0 36px 0; padding: 0px 0 36px 0;
text-align: center text-align: center;
} }
.l-nav { .l-nav {
@ -182,16 +174,16 @@ img {
.l-main { .l-main {
width: 96%; width: 96%;
max-width: 720px; max-width: 720px;
margin: 10px auto 0 margin: 10px auto 0;
} }
.l-footer { .l-footer {
padding: 24px 0 padding: 24px 0;
} }
.c-title { .c-title {
font-weight: 300; font-weight: 300;
font-family: Open Sans, sans-serif font-family: Open Sans, sans-serif;
} }
.c-links { .c-links {
@ -204,7 +196,7 @@ img {
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
margin: 8px 0 0; margin: 8px 0 0;
padding: 0 padding: 0;
} }
.c-links a { .c-links a {
@ -223,17 +215,17 @@ img {
border-color: #555; border-color: #555;
border-radius: 50%; border-radius: 50%;
color: #555; color: #555;
transition: .2s transition: .2s;
} }
.c-links a:hover { .c-links a:hover {
background: #555; background: #555;
color: #fff color: #fff;
} }
.c-links__item { .c-links__item {
margin: 8px 8px 0; margin: 8px 8px 0;
list-style: none list-style: none;
} }
.c-links__icon { .c-links__icon {
@ -243,36 +235,36 @@ img {
} }
.c-article__title { .c-article__title {
font-size: 2.4rem font-size: 2.4rem;
} }
.c-article__title a { .c-article__title a {
color: #111 color: #111;
} }
.c-article__title a:hover { .c-article__title a:hover {
color: #175081 color: #175081;
} }
.c-article__meta { .c-article__meta {
font-size: 1.6rem; font-size: 1.6rem;
line-height: 1 line-height: 1;
} }
.c-article__summary { .c-article__summary {
font-size: 1.4rem; font-size: 1.4rem;
color: #999; color: #999;
line-height: 1.57 line-height: 1.57;
} }
.c-article__summary p { .c-article__summary p {
margin: 0 margin: 0;
} }
.c-article__btn { .c-article__btn {
display: inline-block; display: inline-block;
padding-bottom: 4px; padding-bottom: 4px;
font-size: 1.6rem font-size: 1.6rem;
} }
.c-article__btn:after { .c-article__btn:after {
@ -284,7 +276,7 @@ img {
border: solid currentColor; border: solid currentColor;
border-width: 1px 1px 0 0; border-width: 1px 1px 0 0;
-webkit-transform: rotate(45deg); -webkit-transform: rotate(45deg);
transform: rotate(45deg) transform: rotate(45deg);
} }
.c-avatar { .c-avatar {
@ -300,17 +292,17 @@ img {
width: 100px; width: 100px;
height: 100px; height: 100px;
border-radius: 50%; border-radius: 50%;
overflow: hidden overflow: hidden;
} }
.c-avatar img { .c-avatar img {
max-width: 100%; max-width: 100%;
height: auto height: auto;
} }
.c-time { .c-time {
display: block; display: block;
font-size: 1.6rem font-size: 1.6rem;
} }
.c-tag { .c-tag {
@ -318,32 +310,32 @@ img {
margin: 8px 6px 0 0; margin: 8px 6px 0 0;
padding: 4px; padding: 4px;
font-size: 1.6rem; font-size: 1.6rem;
color: #555 color: #555;
} }
.c-tag:before { .c-tag:before {
content: "#"; content: "#";
display: inline-block; display: inline-block;
margin-right: 2px; margin-right: 2px;
color: currentColor color: currentColor;
} }
.c-tag:hover { .c-tag:hover {
background: #fafafa background: #fafafa;
} }
.c-pagination { .c-pagination {
font-size: 1.6rem font-size: 1.6rem;
} }
.c-pagination a { .c-pagination a {
display: inline-block; display: inline-block;
padding: 8px 16px; padding: 8px 16px;
transition: .2s transition: .2s;
} }
.c-pagination a:hover { .c-pagination a:hover {
background: #fafafa background: #fafafa;
} }
.c-pagination__ctrl { .c-pagination__ctrl {
@ -352,14 +344,14 @@ img {
display: flex; display: flex;
-webkit-box-pack: justify; -webkit-box-pack: justify;
-ms-flex-pack: justify; -ms-flex-pack: justify;
justify-content: space-between justify-content: space-between;
} }
.c-pagination__newer, .c-pagination__newer,
.c-pagination__older { .c-pagination__older {
-webkit-box-flex: 1; -webkit-box-flex: 1;
-ms-flex: 1 1 0%; -ms-flex: 1 1 0%;
flex: 1 1 0% flex: 1 1 0%;
} }
.c-pagination__newer a:before { .c-pagination__newer a:before {
@ -373,11 +365,11 @@ img {
border: solid currentColor; border: solid currentColor;
border-width: 2px 0 0 2px; border-width: 2px 0 0 2px;
-webkit-transform: rotate(-45deg); -webkit-transform: rotate(-45deg);
transform: rotate(-45deg) transform: rotate(-45deg);
} }
.c-pagination__older { .c-pagination__older {
text-align: right text-align: right;
} }
.c-pagination__older a:after { .c-pagination__older a:after {
@ -391,24 +383,24 @@ img {
border: solid currentColor; border: solid currentColor;
border-width: 2px 2px 0 0; border-width: 2px 2px 0 0;
-webkit-transform: rotate(45deg); -webkit-transform: rotate(45deg);
transform: rotate(45deg) transform: rotate(45deg);
} }
.c-pagination__count { .c-pagination__count {
display: block; display: block;
text-align: center text-align: center;
} }
.p-title { .p-title {
margin: 0 0 20px 0; margin: 0 0 20px 0;
font-size: 4.4rem font-size: 4.4rem;
} }
.p-subtitle { .p-subtitle {
margin: 12px 0 0; margin: 12px 0 0;
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 300; font-weight: 300;
font-family: Open Sans, sans-serif font-family: Open Sans, sans-serif;
} }
.p-tag-title { .p-tag-title {
@ -417,31 +409,31 @@ img {
padding-bottom: 8px; padding-bottom: 8px;
border-bottom: 1px solid currentColor; border-bottom: 1px solid currentColor;
color: #555; color: #555;
font-size: 2.4rem font-size: 2.4rem;
} }
.p-tag-title:before { .p-tag-title:before {
content: "#"; content: "#";
display: inline-block; display: inline-block;
margin-right: 4px margin-right: 4px;
} }
.p-copyright { .p-copyright {
margin: 24px 0 0; margin: 24px 0 0;
text-align: center; text-align: center;
font-size: 1.2rem font-size: 1.2rem;
} }
.p-list-article { .p-list-article {
margin-top: 40px margin-top: 40px;
} }
.p-list-article:first-child { .p-list-article:first-child {
margin-top: 0 margin-top: 0;
} }
.p-list-article__btn { .p-list-article__btn {
margin-top: 16px margin-top: 16px;
} }
@ -449,18 +441,19 @@ img {
.p-menu { .p-menu {
width: 100%; width: 100%;
background: #000; background: #f2f0ec;
padding-top: 12px; padding: 12px 0;
padding-bottom: 14px;
margin-bottom: 4rem; margin-bottom: 4rem;
display: inline-block; display: inline-block;
border-left: 1rem solid #ED5276cc; border-bottom: 0.25rem solid #FF5555;
} }
/* change */ .p-menu a {
.p-menu:hover{ color: #000;
/*border-left: 4px solid #ED5276cc;*/ }
opacity: 0.65
.p-menu a:hover {
color: #FF5555;
} }
.p-menu__lists { .p-menu__lists {
@ -483,45 +476,37 @@ img {
.p-menu__listitem { .p-menu__listitem {
display: inline-block; display: inline-block;
padding: 0 6px 0px 6px; padding: 0 6px 0px 6px;
list-style: none list-style: none;
} }
@media(min-width:640px) { @media(min-width:640px) {
.p-menu__listitem { .p-menu__listitem {
margin: 0px 24px 0 0 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 { .p-menu__listitem ul {
padding-left: 12px padding-left: 12px;
} }
.p-menu__listitem ul li { .p-menu__listitem ul li {
margin: 4px 0 0 margin: 4px 0 0;
} }
.p-menu__listitem ul li:before { .p-menu__listitem ul li:before {
content: "-"; content: "-";
margin-right: 4px margin-right: 4px;
} }
.p-menu__parent span { .p-menu__parent span {
color: #337ab7 color: #337ab7;
} }
.p-author { .p-author {
display: block; display: block;
position: relative; position: relative;
width: 100%; width: 100%;
margin: 20px auto 0 margin: 20px auto 0;
} }
@media(min-width:640px) { @media(min-width:640px) {
@ -529,7 +514,7 @@ img {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
margin: 80px auto 0 margin: 80px auto 0;
} }
} }
@ -542,12 +527,12 @@ img {
margin: auto; margin: auto;
text-align: center; text-align: center;
font-size: 1.4rem; font-size: 1.4rem;
color: #999 color: #999;
} }
@media(min-width:640px) { @media(min-width:640px) {
.p-author:before { .p-author:before {
top: -50px top: -50px;
} }
} }
@ -558,54 +543,54 @@ img {
.p-author__body { .p-author__body {
-webkit-box-flex: 1; -webkit-box-flex: 1;
-ms-flex: 1 1 0%; -ms-flex: 1 1 0%;
flex: 1 1 0% flex: 1 1 0%;
} }
@media(min-width:640px) { @media(min-width:640px) {
.p-author__body { .p-author__body {
padding-left: 16px padding-left: 16px;
} }
} }
.p-author__body p { .p-author__body p {
margin: 0 margin: 0;
} }
.p-pagination { .p-pagination {
margin: 30px 0 margin: 30px 0;
} }
@media(min-width:640px) { @media(min-width:640px) {
.p-pagination { .p-pagination {
margin: 60px 0 margin: 60px 0;
} }
} }
.p-pagination__count { .p-pagination__count {
margin-top: 24px margin-top: 24px;
} }
.p-article__thumbnail { .p-article__thumbnail {
margin-top: 24px margin-top: 24px;
} }
.p-article__body { .p-article__body {
margin: 40px 0 30px; margin: 40px 0 30px;
word-wrap: break-word word-wrap: break-word;
} }
@media(min-width:640px) { @media(min-width:640px) {
.p-article__body { .p-article__body {
margin: 40px 0 60px margin: 40px 0 60px;
} }
} }
.p-article__body img[data-action^=zoom]:hover { .p-article__body img[data-action^=zoom]:hover {
cursor: zoom-in cursor: zoom-in;
} }
.p-article__body .zoom-img-wrap img:hover { .p-article__body .zoom-img-wrap img:hover {
cursor: zoom-out cursor: zoom-out;
} }
.p-notfound { .p-notfound {
@ -618,12 +603,12 @@ img {
-webkit-box-pack: center; -webkit-box-pack: center;
-ms-flex-pack: center; -ms-flex-pack: center;
justify-content: center; justify-content: center;
height: 300px height: 300px;
} }
.p-notfound h1 { .p-notfound h1 {
font-size: 10rem; font-size: 10rem;
font-weight: 700 font-weight: 700;
} }
.p-screen-reader-text { .p-screen-reader-text {
@ -631,7 +616,7 @@ img {
position: absolute!important; position: absolute!important;
height: 1px; height: 1px;
width: 1px; width: 1px;
overflow: hidden overflow: hidden;
} }
.p-screen-reader-text:hover, .p-screen-reader-text:hover,
@ -653,16 +638,16 @@ img {
text-decoration: none; text-decoration: none;
top: 5px; top: 5px;
width: auto; width: auto;
z-index: 100000 z-index: 100000;
} }
.p-related { .p-related {
margin-bottom: 100px margin-bottom: 100px;
} }
.p-related__list { .p-related__list {
padding: 0; padding: 0;
font-size: 0 font-size: 0;
} }
.p-related__item { .p-related__item {
@ -670,15 +655,15 @@ img {
width: 230px; width: 230px;
height: 150px; height: 150px;
margin-right: 15px; margin-right: 15px;
list-style: none list-style: none;
} }
.p-related__item:nth-child(3n) { .p-related__item:nth-child(3n) {
margin-right: 0 margin-right: 0;
} }
.p-related__item:nth-child(n+4) { .p-related__item:nth-child(n+4) {
margin-top: 15px margin-top: 15px;
} }
.p-related__item a { .p-related__item a {
@ -699,7 +684,7 @@ img {
background-color: #92c6f2; background-color: #92c6f2;
color: #fafafa; color: #fafafa;
font-weight: 400; font-weight: 400;
font-family: Open Sans, sans-serif font-family: Open Sans, sans-serif;
} }
.p-related__item a:before { .p-related__item a:before {
@ -710,67 +695,67 @@ img {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0, 0, 0, .3); background: rgba(0, 0, 0, .3);
transition: .1s transition: .1s;
} }
.p-related__item a:hover:before { .p-related__item a:hover:before {
background: rgba(0, 0, 0, .6) background: rgba(0, 0, 0, .6);
} }
.p-related__item span { .p-related__item span {
position: relative position: relative;
} }
.u-dn { .u-dn {
display: none!important display: none!important;
} }
.u-db { .u-db {
display: block!important display: block!important;
} }
.u-di { .u-di {
display: inline!important display: inline!important;
} }
.u-dib { .u-dib {
display: inline-block!important display: inline-block!important;
} }
.u-align-left { .u-align-left {
display: block!important; display: block!important;
margin-left: 0!important; margin-left: 0!important;
margin-right: auto!important margin-right: auto!important;
} }
.u-align-center { .u-align-center {
display: block!important; display: block!important;
margin-right: auto!important; margin-right: auto!important;
margin-left: auto!important margin-left: auto!important;
} }
.u-align-right { .u-align-right {
display: block!important; display: block!important;
margin-left: auto!important; margin-left: auto!important;
margin-right: 0!important margin-right: 0!important;
} }
/* zoom.css */ /* zoom.css */
img[data-action=zoom] { img[data-action=zoom] {
cursor: pointer; cursor: pointer;
cursor: -moz-zoom-in cursor: -moz-zoom-in;
} }
.zoom-img, .zoom-img,
.zoom-img-wrap { .zoom-img-wrap {
position: relative; position: relative;
z-index: 666; z-index: 666;
transition: all .3s transition: all .3s;
} }
img.zoom-img { img.zoom-img {
cursor: pointer; cursor: pointer;
cursor: -moz-zoom-out cursor: -moz-zoom-out;
} }
.zoom-overlay { .zoom-overlay {
@ -784,17 +769,17 @@ img.zoom-img {
pointer-events: none; pointer-events: none;
filter: "alpha(opacity=0)"; filter: "alpha(opacity=0)";
opacity: 0; opacity: 0;
transition: opacity .3s transition: opacity .3s;
} }
.zoom-overlay-open .zoom-overlay { .zoom-overlay-open .zoom-overlay {
filter: "alpha(opacity=100)"; filter: "alpha(opacity=100)";
opacity: 1 opacity: 1;
} }
.zoom-overlay-open, .zoom-overlay-open,
.zoom-overlay-transitioning { .zoom-overlay-transitioning {
cursor: default cursor: default;
} }
/* Slick css */ /* Slick css */
@ -812,7 +797,7 @@ img.zoom-img {
-khtml-user-select: none; -khtml-user-select: none;
-ms-touch-action: pan-y; -ms-touch-action: pan-y;
touch-action: pan-y; touch-action: pan-y;
-webkit-tap-highlight-color: transparent -webkit-tap-highlight-color: transparent;
} }
.slick-list { .slick-list {
@ -820,22 +805,22 @@ img.zoom-img {
display: block; display: block;
overflow: hidden; overflow: hidden;
margin: 0; margin: 0;
padding: 0 padding: 0;
} }
.slick-list:focus { .slick-list:focus {
outline: none outline: none;
} }
.slick-list.dragging { .slick-list.dragging {
cursor: pointer; cursor: pointer;
cursor: hand cursor: hand;
} }
.slick-slider .slick-track, .slick-slider .slick-track,
.slick-slider .slick-list { .slick-slider .slick-list {
-webkit-transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0) transform: translate3d(0, 0, 0);
} }
.slick-track { .slick-track {
@ -844,70 +829,70 @@ img.zoom-img {
left: 0; left: 0;
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto margin-right: auto;
} }
.slick-track:before, .slick-track:before,
.slick-track:after { .slick-track:after {
display: table; display: table;
content: '' content: '';
} }
.slick-track:after { .slick-track:after {
clear: both clear: both;
} }
.slick-loading .slick-track { .slick-loading .slick-track {
visibility: hidden visibility: hidden;
} }
.slick-slide { .slick-slide {
display: none; display: none;
float: left; float: left;
height: 100%; height: 100%;
min-height: 1px min-height: 1px;
} }
[dir=rtl] .slick-slide { [dir=rtl] .slick-slide {
float: right float: right;
} }
.slick-slide img { .slick-slide img {
display: block display: block;
} }
.slick-slide.slick-loading img { .slick-slide.slick-loading img {
display: none display: none;
} }
.slick-slide.dragging img { .slick-slide.dragging img {
pointer-events: none pointer-events: none;
} }
.slick-initialized .slick-slide { .slick-initialized .slick-slide {
display: block display: block;
} }
.slick-loading .slick-slide { .slick-loading .slick-slide {
visibility: hidden visibility: hidden;
} }
.slick-vertical .slick-slide { .slick-vertical .slick-slide {
display: block; display: block;
height: auto; height: auto;
border: 1px solid transparent border: 1px solid transparent;
} }
.slick-arrow.slick-hidden { .slick-arrow.slick-hidden {
display: none display: none;
} }
.slick-slider { .slick-slider {
position: relative position: relative;
} }
.slick-slide { .slick-slide {
margin: 0 8px margin: 0 8px;
} }
.slick-arrow { .slick-arrow {
@ -919,11 +904,11 @@ img.zoom-img {
height: 28px; height: 28px;
border: none; border: none;
border-radius: 50%; border-radius: 50%;
background: #555 background: #555;
} }
.slick-arrow:hover { .slick-arrow:hover {
cursor: pointer cursor: pointer;
} }
.slick-arrow:after { .slick-arrow:after {
@ -937,33 +922,33 @@ img.zoom-img {
margin: auto; margin: auto;
width: 5px; width: 5px;
height: 5px; height: 5px;
border: solid #fafafa border: solid #fafafa;
} }
@media(max-width:767px) { @media(max-width:767px) {
.slick-arrow { .slick-arrow {
display: none!important display: none!important;
} }
} }
.slick-prev { .slick-prev {
left: -32px left: -32px;
} }
.slick-prev:after { .slick-prev:after {
left: 1px; left: 1px;
border-width: 2px 0 0 2px; border-width: 2px 0 0 2px;
-webkit-transform: rotate(-45deg); -webkit-transform: rotate(-45deg);
transform: rotate(-45deg) transform: rotate(-45deg);
} }
.slick-next { .slick-next {
right: -32px right: -32px;
} }
.slick-next:after { .slick-next:after {
right: 1px; right: 1px;
border-width: 2px 2px 0 0; border-width: 2px 2px 0 0;
-webkit-transform: rotate(45deg); -webkit-transform: rotate(45deg);
transform: rotate(45deg) transform: rotate(45deg);
} }