-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aef1840
commit 1dd7c80
Showing
7 changed files
with
375 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
/* Post Styles */ | ||
.post-content { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.post-content p { | ||
hyphens: auto; | ||
} | ||
|
||
.post-content h1 { | ||
font-size: 2em; | ||
} | ||
|
||
.post-content h2 { | ||
font-size: 1.75em; | ||
} | ||
|
||
.post-content h3 { | ||
font-size: 1.5em; | ||
} | ||
|
||
.post-content h4 { | ||
font-size: 1.375em; | ||
} | ||
|
||
.post-content h5 { | ||
font-size: 1.25em; | ||
} | ||
|
||
.post-content h6 { | ||
font-size: 1.125em; | ||
} | ||
|
||
.post-content img { | ||
max-width: 100%; | ||
margin: 2.5% auto; | ||
} | ||
|
||
.post-content blockquote { | ||
padding: 0.5em 0.25em 0.5em 0.75em; | ||
background: #DBDEE1; | ||
} | ||
|
||
.post-content blockquote > p::before { | ||
content: open-quote; | ||
font-size: 3.5em; | ||
font-style: italic; | ||
line-height: 0; | ||
vertical-align: -0.4em; | ||
margin-right: 0.25em; | ||
} | ||
|
||
figure.kg-embed-card { | ||
margin: 0.5rem auto; | ||
|
||
iframe { | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
} | ||
|
||
figure.kg-image-card, | ||
figure.kg-gallery-card { | ||
margin: 0.25rem 0; | ||
text-align: left; | ||
|
||
img { | ||
display: block; | ||
} | ||
|
||
&.kg-width-wide { | ||
max-width: none; | ||
|
||
img.kg-image { | ||
/* | ||
* max-width: 107.5%; | ||
* margin-left: -3.75%; | ||
* Rounding up from these values ensures that | ||
* the image fully spans content div on narrow viewports. | ||
*/ | ||
margin-left: -4.1%; | ||
max-width: 108.2%; | ||
} | ||
} | ||
|
||
&.kg-width-full, | ||
&.kg-gallery-card { | ||
align-self: center; | ||
max-width: none; | ||
|
||
img.kg-image { | ||
width: 100vw; | ||
max-width: 100vw; | ||
} | ||
} | ||
|
||
figcaption { | ||
color: var(--secondary-text-color); | ||
text-align: center; | ||
font-size: 0.85em; | ||
font-style: italic; | ||
padding: 0 0 0.5rem; | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
.kg-gallery-container { | ||
display: flex; | ||
flex-direction: column; | ||
margin: 1rem auto; | ||
max-width: 65rem; | ||
width: 100vw; | ||
} | ||
|
||
.kg-gallery-row { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
|
||
.kg-gallery-image img { | ||
display: block; | ||
margin: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.kg-gallery-row:not(:first-of-type) { | ||
margin: 0.75rem 0 0 0; | ||
} | ||
|
||
.kg-gallery-image:not(:first-of-type) { | ||
margin: 0 0 0 0.75rem; | ||
} | ||
|
||
.kg-bookmark-card .kg-bookmark-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
color: black; | ||
text-decoration: none; | ||
border: 2px solid var(--secondary-text-color); | ||
} | ||
|
||
.kg-bookmark-content { | ||
flex-basis: 0; | ||
flex-grow: 999; | ||
min-width: 50%; | ||
padding: 20px; | ||
} | ||
|
||
.kg-bookmark-title { | ||
font-weight: 600; | ||
} | ||
|
||
.kg-bookmark-description, | ||
.kg-bookmark-metadata { | ||
margin-top: 0.75rem; | ||
} | ||
|
||
.kg-bookmark-author, | ||
.kg-bookmark-publisher { | ||
color: var(--secondary-text-color); | ||
} | ||
|
||
.kg-bookmark-thumbnail { | ||
flex-basis: 15rem; | ||
flex-grow: 1; | ||
} | ||
|
||
|
||
.kg-bookmark-thumbnail img { | ||
vertical-align: bottom; | ||
object-fit: cover; | ||
width: 100%; | ||
} | ||
|
||
.kg-bookmark-icon { | ||
width: 22px; | ||
height: 22px; | ||
margin-right: 0.5rem; | ||
vertical-align: bottom; | ||
} | ||
|
||
.kg-bookmark-author:after { | ||
content: "•"; | ||
margin: 0 0.5rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.