Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coy theme shadows #865

Merged
merged 1 commit into from
Jan 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix coy theme shadows
This patch removes max-height from the pre tag in the coy theme,
because this height limitation is inconsistent with the other
themes.

The above change causes a bug in the shadows of the coy theme.
Adding max-height: 13em to the ::before and ::after selector fixes
the shadow bug.
zeitgeist87 committed Jan 24, 2016

Verified

This commit was signed with the committer’s verified signature. The key has expired.
s3krit s3krit
commit 58d2337d1e73ae3452fb51ae395dec74b453691b
7 changes: 1 addition & 6 deletions themes/prism-coy.css
Original file line number Diff line number Diff line change
@@ -47,12 +47,6 @@ pre[class*="language-"] {
padding: 0;
}

@media screen {
pre[class*="language-"] {
max-height: 30em;
}
}

code[class*="language"] {
max-height: inherit;
height: 100%;
@@ -96,6 +90,7 @@ pre[class*="language-"]:after {
left: 0.18em;
width: 40%;
height: 20%;
max-height: 13em;
-webkit-box-shadow: 0px 13px 8px #979797;
-moz-box-shadow: 0px 13px 8px #979797;
box-shadow: 0px 13px 8px #979797;