Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Commit

Permalink
figcaption restyling
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori committed Apr 16, 2020
1 parent 1da900d commit 64c307e
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,11 @@ section.page-template {
width: 110%;
position: relative;
right: 5%;
@include lighter-shadow();

@media (prefers-color-scheme: dark) {
@include darker-shadow();
}

@media #{$small-device} {
right: 0;
Expand Down Expand Up @@ -797,25 +802,32 @@ section.page-template {
img.kg-image {
width: 100%;
border-radius: 10px;
@include lighter-shadow();

@media (prefers-color-scheme: dark) {
@include darker-shadow();
}
}

&.kg-card-hascaption {
background-color: #f5f5f5;
border-radius: 12px 12px 10px 10px;

@media (prefers-color-scheme: dark) {
background-color: #212121;
}

figcaption {
text-align: center;
width: 70%;
position: relative;
left: 15%;
margin-top: 1em;
padding: 1em;
color: #5a5a5a;
font-size: 12px;
text-transform: uppercase;
font-weight: 600;
letter-spacing: .05em;

@media (prefers-color-scheme: dark) {
color: #999;
}
}

img.kg-image {
border-radius: 10px 10px 0 0;
}
}
}
Expand Down

0 comments on commit 64c307e

Please sign in to comment.