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 horizontal scrollbar due "Fork me on GitHub" Banner #1570

Merged
merged 1 commit into from
Oct 11, 2022
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
63 changes: 44 additions & 19 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,50 @@ h2 .item-name { font-weight:bold; font-family: Menlo,Monaco,Consolas,"Courier Ne
#syntax { font-weight:bold; }
#syntax > code { white-space: pre; padding: 0; }
#forkme {
background-color: #e3e3e3;
height: 30px;
display: inline-block;
position: absolute;
top: 35px;
right: -35px;
border: 0;
z-index: 9999;
width: 200px;
color: #484848;
font-weight: bold;
transform: rotate(45deg);
transform-origin: initial;
text-align: center;
border-top: 1.5px dashed #c2c2c2;
border-bottom: 1.5px dashed #c2c2c2;
line-height: 25px;
letter-spacing: -0.6px;
word-spacing: 1px;
width: 12em;
height: 12em;
position: absolute;
overflow: hidden;
top: 0;
right: 0;
z-index: 9999;
pointer-events: none;
text-decoration: none;
text-indent: -999999px;
}
#forkme::before {
content: "";
background-color: #e3e3e3;
border-top: 1.5px dashed #c2c2c2;
border-bottom: 1.5px dashed #c2c2c2;
pointer-events: auto;
display: block;
position: absolute;
width: 15em;
height: 1.7em;
top: 3em;
right: -3.5em;
box-sizing: content-box;
transform: rotate(45deg);
}
#forkme::after {
content: "Fork me on GitHub";
color: #484848;
text-decoration: none;
text-align: center;
text-indent: 0;
line-height: 25px;
letter-spacing: -0.6px;
word-spacing: 1px;
font-weight: 700;
position: absolute;
display: block;
width: 15em;
height: 1.7em;
top: 3em;
right: -3.5em;
box-sizing: content-box;
transform: rotate(45deg);
}
.twitter-typeahead {
width:100%
Expand Down