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

Reintroduce center-column CSS rule for tutorials. #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
20 changes: 20 additions & 0 deletions source/stylesheets/screen.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -694,3 +694,23 @@ html, body {
.copy-clipboard:hover {
opacity: 0.8;
}


/*
See Slate Issue 855 for a suggestions about how to get code blocks in the center column rather than always in the right column.
https://github.com/slatedocs/slate/issues/855#issuecomment-337706179
*/
.content {
.center-column + pre {
position: static;
float: none;
clear: none;
margin: 0 28px;
left: 0;
margin-right: $examples-width !important;
width: 45% !important; // May need to adjust this

}
}