diff --git a/CTFd/themes/core/assets/css/core.scss b/CTFd/themes/core/assets/css/core.scss index 37778876..b51f5559 100644 --- a/CTFd/themes/core/assets/css/core.scss +++ b/CTFd/themes/core/assets/css/core.scss @@ -58,3 +58,11 @@ select.form-control { /* Behavior changed in Bootstrap v4.1.3. See https://github.com/twbs/bootstrap/issues/27629 */ height: auto !important; } + +.challenge-desc { + overflow-wrap: anywhere; + + img { + max-width: 100%; + } +} diff --git a/CTFd/themes/core/static/css/core.dev.css b/CTFd/themes/core/static/css/core.dev.css index a30014e5..a419f8e8 100644 --- a/CTFd/themes/core/static/css/core.dev.css +++ b/CTFd/themes/core/static/css/core.dev.css @@ -1 +1 @@ -.jumbotron{background-color:#343a40;color:#fff}.form-control{padding:.8em !important;background:#f0f0f0;color:#aaa;height:auto !important}select.form-control{height:auto !important}.custom-select{background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px !important}.card{border-radius:0 !important}#score-graph{min-height:400px;display:block;clear:both}#solves-graph{display:block;height:350px}#keys-pie-graph{min-height:400px;display:block}#categories-pie-graph{min-height:400px;display:block}.form-control{position:relative;display:block;padding:.8em !important;border-radius:0;background:#f0f0f0;color:#aaa;font-weight:400;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-appearance:none;height:auto !important} +.jumbotron{background-color:#343a40;color:#fff}.form-control{padding:.8em !important;background:#f0f0f0;color:#aaa;height:auto !important}select.form-control{height:auto !important}.custom-select{background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right .75rem center/8px 10px !important}.card{border-radius:0 !important}#score-graph{min-height:400px;display:block;clear:both}#solves-graph{display:block;height:350px}#keys-pie-graph{min-height:400px;display:block}#categories-pie-graph{min-height:400px;display:block}.form-control{position:relative;display:block;padding:.8em !important;border-radius:0;background:#f0f0f0;color:#aaa;font-weight:400;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;-webkit-appearance:none;height:auto !important}.challenge-desc{overflow-wrap:anywhere}.challenge-desc img{max-width:100%} diff --git a/CTFd/themes/core/static/css/core.min.css b/CTFd/themes/core/static/css/core.min.css index 17af4a82..c68d8e61 100644 --- a/CTFd/themes/core/static/css/core.min.css +++ b/CTFd/themes/core/static/css/core.min.css @@ -1 +1 @@ -.jumbotron{background-color:#343a40;color:#fff}select.form-control{height:auto!important}.custom-select{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px!important}.card{border-radius:0!important}#score-graph{min-height:400px;display:block;clear:both}#solves-graph{display:block;height:350px}#categories-pie-graph,#keys-pie-graph{min-height:400px;display:block}.form-control{position:relative;display:block;padding:.8em!important;border-radius:0;background:#f0f0f0;color:#aaa;font-weight:400;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-appearance:none;height:auto!important} \ No newline at end of file +.jumbotron{background-color:#343a40;color:#fff}select.form-control{height:auto!important}.custom-select{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px!important}.card{border-radius:0!important}#score-graph{min-height:400px;display:block;clear:both}#solves-graph{display:block;height:350px}#categories-pie-graph,#keys-pie-graph{min-height:400px;display:block}.form-control{position:relative;display:block;padding:.8em!important;border-radius:0;background:#f0f0f0;color:#aaa;font-weight:400;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-appearance:none;height:auto!important}.challenge-desc{overflow-wrap:anywhere}.challenge-desc img{max-width:100%} \ No newline at end of file