mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
* Add basic markdown support site wide
* Improved MD support.
Add some styling for images in MD
Add support for the bastardisation of the MD html for RML.
* Add processing for <ul> in RML
* Add OL processing to RML
* Fix a bug with squares appearing around the last page number
* Remove rml formatting in event_detail
* Improve handling of code blocks in RML
* Add MD to rigboard
Reduce MD title sizes as they were offensively large
* Add parsing of markdown when editing event items
* Improved list handling in RML
* Add tests for markdown support.
Focuses mainly on RML as that's where it will break
* Add indications of where MD support is enabled as per comment by @samozzy in #178.
Isn't quite a full description, but for the most part this should be enough for the people who know how to use it see where they can use it.
* Add failing test for markdown processing none
* Fix for failing test in e0d56e
* Add failing test for using single line breaks as per comment on #214
* Enable line break extension for single breaks in paragraphs by new lines.
Pass tests in ef3de607c3
* Enable GH flavour linebreaks in JS rendered markdown
* Made RML bullets pretty :)
* Added WYSIWYG editor. Works for notes & description, fails miserably for items :(
* Fixed for event items. Will probably fail tests because selenium can't type in simpleMDE :(
* FIX: Re-enable markdown on paperwork
Strikethrough is broken in all sorts of places for whatever reason
* FEAT: Markdown support on asset comments
* FIX: Prevent js injection through markdown fields
* Initial fixes
* Basic dark theme for simplemde
* Swap to locally delivered SimpleMDE
* Region for selenium testing of SimpleMDE
Bleh, Javascript all around
* Tests passing!
Fixed not using region for item modal, and overflow error on paperwork with really long description. Looks junk but I'm not really bothered
* Pep8 fixes
* Fallback for null HCapatcha sitekey
I.e. when we're on a branch
* Fix item description print being broken
* Actually fix sitekey problem
* Fixes for using markdown in asset comments
* Properly initialise markdown on asset comments
Co-authored-by: David Taylor <david@taylorhq.com>
Co-authored-by: FreneticScribbler <aj@aronajones.com>
259 lines
4.6 KiB
SCSS
259 lines
4.6 KiB
SCSS
@import "custom-variables";
|
|
//Required
|
|
@import "node_modules/bootstrap/scss/bootstrap-reboot";
|
|
@import "node_modules/bootstrap/scss/bootstrap-grid";
|
|
//Optional
|
|
@import "node_modules/bootstrap/scss/root";
|
|
@import "node_modules/bootstrap/scss/type";
|
|
@import "node_modules/bootstrap/scss/images";
|
|
@import "node_modules/bootstrap/scss/tables";
|
|
@import "node_modules/bootstrap/scss/forms";
|
|
@import "node_modules/bootstrap/scss/buttons";
|
|
@import "node_modules/bootstrap/scss/transitions";
|
|
@import "node_modules/bootstrap/scss/dropdown";
|
|
@import "node_modules/bootstrap/scss/button-group";
|
|
@import "node_modules/bootstrap/scss/input-group";
|
|
@import "node_modules/bootstrap/scss/custom-forms";
|
|
@import "node_modules/bootstrap/scss/nav";
|
|
@import "node_modules/bootstrap/scss/navbar";
|
|
@import "node_modules/bootstrap/scss/card";
|
|
@import "node_modules/bootstrap/scss/pagination";
|
|
@import "node_modules/bootstrap/scss/badge";
|
|
@import "node_modules/bootstrap/scss/alert";
|
|
@import "node_modules/bootstrap/scss/media";
|
|
@import "node_modules/bootstrap/scss/list-group";
|
|
@import "node_modules/bootstrap/scss/close";
|
|
@import "node_modules/bootstrap/scss/modal";
|
|
@import "node_modules/bootstrap/scss/tooltip";
|
|
@import "node_modules/bootstrap/scss/popover";
|
|
@import "node_modules/bootstrap/scss/spinners";
|
|
@import "node_modules/bootstrap/scss/utilities";
|
|
//FontAwesome
|
|
$fa-font-path: '/static/fonts';
|
|
@import "node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
|
|
@import "node_modules/@fortawesome/fontawesome-free/scss/solid";
|
|
|
|
@media screen and
|
|
(prefers-reduced-motion: reduce),
|
|
(update: slow) {
|
|
* {
|
|
animation-duration: 0.001ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.001ms !important;
|
|
}
|
|
}
|
|
|
|
.fc-event-main {
|
|
color: black !important;
|
|
}
|
|
|
|
.fc-daygrid-dot-event {
|
|
color: black !important;
|
|
}
|
|
|
|
.fc-timeGridDay-view {
|
|
.fc-event-main {
|
|
font-size: large !important;
|
|
}
|
|
}
|
|
|
|
.fc-timeGridWeek-view {
|
|
.fc-event-main {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
#content {
|
|
padding: 40px 15px;
|
|
}
|
|
|
|
#userdropdown > li {
|
|
padding: 0 0.3em;
|
|
}
|
|
|
|
#userdropdown > li, #activity {
|
|
.media-object {
|
|
max-width: 3em;
|
|
}
|
|
}
|
|
|
|
.table tbody > tr > td.vert-align {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.align-right {
|
|
text-align: right;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
}
|
|
|
|
.custom-combobox {
|
|
display: block;
|
|
}
|
|
|
|
.event-mic-photo {
|
|
max-width: 2em;
|
|
border-radius: 0.25em;
|
|
}
|
|
|
|
.item-description {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
.overflow-ellipsis {
|
|
text-overflow: ellipsis;
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dont-break-out {
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
hyphens: auto;
|
|
}
|
|
|
|
.modal-dialog {
|
|
z-index: inherit; // bug fix introduced in 52682ce
|
|
}
|
|
|
|
del {
|
|
background-color: #f2dede;
|
|
border-radius: 3px;
|
|
padding: 0.1em;
|
|
}
|
|
|
|
ins {
|
|
background-color: #dff0d8;
|
|
border-radius: 3px;
|
|
padding: 0.1em;
|
|
}
|
|
|
|
.nav-link {
|
|
color: $gray-400 !important;
|
|
}
|
|
|
|
.btn-light {
|
|
background-color: $gray-200 !important;
|
|
}
|
|
|
|
.skip-link {
|
|
background: $dark;
|
|
outline: unset;
|
|
height: 30px;
|
|
left: 50%;
|
|
padding: 8px;
|
|
position: absolute;
|
|
transform: translateY(-100%);
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
transform: translateY(45px); /* TODO Remove absolute positioning */
|
|
}
|
|
|
|
.errorlist > li {
|
|
list-style-type: none;
|
|
}
|
|
|
|
pre {
|
|
page-break-inside: avoid;
|
|
font-family: monospace;
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
margin-bottom: 1.6em;
|
|
max-width: 100%;
|
|
overflow: auto;
|
|
padding: 1em 1.5em;
|
|
display: block;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
svg {
|
|
display: inline;
|
|
white-space: no-wrap;
|
|
}
|
|
|
|
span.fas {
|
|
padding-left: 0.1em !important;
|
|
padding-right: 0.1em !important;
|
|
}
|
|
|
|
html.embedded {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-height: 100%;
|
|
overflow: hidden;
|
|
justify-content: center;
|
|
|
|
body{
|
|
padding:0;
|
|
width:100%;
|
|
background:none;
|
|
overflow: auto;
|
|
}
|
|
|
|
.embed_container{
|
|
border:5px solid #e9e9e9;
|
|
padding:12px 0px;
|
|
min-height:100%;
|
|
width:100%;
|
|
}
|
|
|
|
.source{
|
|
background: url('/static/imgs/pyrigs-avatar.png') no-repeat;
|
|
background-size: 16px 16px;
|
|
padding-left: 20px;
|
|
color: #000;
|
|
}
|
|
|
|
h3{
|
|
margin-top:10px;
|
|
margin-bottom:5px;
|
|
}
|
|
|
|
p{
|
|
margin-bottom:2px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.event-mic-photo{
|
|
max-width: 3em;
|
|
}
|
|
}
|
|
|
|
.markdown {
|
|
h1 {
|
|
font-size: $h1-font-size * 0.75;
|
|
}
|
|
h2 {
|
|
font-size: $h2-font-size * 0.8;
|
|
}
|
|
h3 {
|
|
font-size: $h3-font-size * 0.85;
|
|
}
|
|
h4 {
|
|
font-size: $h4-font-size * 0.9;
|
|
}
|
|
h5 {
|
|
font-size: $h5-font-size * 0.95;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
#rigboard {
|
|
.markdown {
|
|
img {
|
|
max-width: 30rem;
|
|
}
|
|
}
|
|
}
|