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

bootstrap classes integration #7789

Merged
merged 3 commits into from
Apr 21, 2020
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
65 changes: 65 additions & 0 deletions app/assets/stylesheets/editor.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,68 @@
/*
PublicLab.Editor(https://github.com/publiclab/PublicLab.Editor/) uses bootstrap version 3.4
and plots2 uses bootstrap version 4. Due to class inconsistency between both of the version of
bootstrap, css customization of some classes have been introduced to make editor compatible with
both the versions of bootstrap. This include blockquote, code, pre, .btn-default, .btn-xs.
*/

blockquote {
padding: 10px 20px;
margin: 0 0 20px;
font-size: 17.5px;
border-left: 5px solid #eee;
}

code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f5f5f5;
border-radius: 4px;
}

pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;

// Account for some code outputs that place code tags in pre tags
code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
}

.btn-default {
color: #333;
background-color: #fff;
border-color: #ccc;
}

.btn-default:hover {
color: #333;
background-color: #e6e6e6;
border-color: #adadad;
}

.btn-xs {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}

.moderation-notice {
font-style: italic;
color: #888;
Expand Down