From b629ec3be1b95362ca23605ae5504d03065f629a Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 7 May 2021 11:02:38 +0000 Subject: [PATCH] update assets --- assets/app.css | 4 +- assets/fet.css | 65 +++++++++++++++++++++++++++ assets/js/auto_slug.js | 4 +- assets/rest_framework/css/default.css | 2 +- 4 files changed, 71 insertions(+), 4 deletions(-) diff --git a/assets/app.css b/assets/app.css index f877b12f..407ef6e8 100644 --- a/assets/app.css +++ b/assets/app.css @@ -7793,7 +7793,7 @@ div.article-row-content > h6, .h6 { bottom: 15%; left: 5%; color: #fefefe; - text-shadow: 1px 1px 2px #0a0a0a; } + text-shadow: 1px 1px 2px #000, 0px 0px 5px #000, 0px 0px 25px #000; } @media print, screen and (min-width: 40em) { .news-hero .news-hero-text, .news-hero-large .news-hero-text { left: 10%; } } @@ -8344,7 +8344,7 @@ div.footer div.grid-x { bottom: 3.125rem; left: 0; right: 0; - text-shadow: 1px 1px 2px #0a0a0a; } + text-shadow: 1px 1px 2px #000, 0px 0px 5px #000, 0px 0px 25px #000; } @media print, screen and (max-width: 39.99875em) { .large-article-header-content { bottom: 1.25rem; } } diff --git a/assets/fet.css b/assets/fet.css index b200e7bd..7d4ddb8a 100644 --- a/assets/fet.css +++ b/assets/fet.css @@ -150,3 +150,68 @@ a.thumbnail img { height: 40px; } .social-media-footer .social-media-footer-symbol { font-size:30px; } + +.news-hero-compact { + border-radius: 5px; + margin-top: 1rem !important; + margin-bottom: 1rem !important; + font-size: 18px; + height: 10vh; } + @media print, screen and (min-width: 40em) { + .news-hero-compact { + height: 10vh; } } + @media print, screen and (min-width: 64em) { + .news-hero-compact { + height: 10vh; } } + +.news-hero-compact-large { + height: 100%; + min-height: 10vh; } + @media print, screen and (min-width: 40em) { + .news-hero-compact-large { + min-height: 10vh 0.7; } } + @media print, screen and (min-width: 64em) { + .news-hero-compact-large { + min-height: 10vh; } } + +.news-hero-compact, .news-hero-compact-large { + background-color: #444; + position: relative; + background-size: cover; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + vertical-align: middle; + text-align: left; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + width: 100%; } + .news-hero-compact .news-hero-compact-text, .news-hero-compact-large .news-hero-compact-text { + position: absolute; + left: 5%; + color: #fefefe; + text-shadow: 1px 1px 2px #000, 0px 0px 5px #000, 0px 0px 25px #000; } + @media print, screen and (min-width: 40em) { + .news-hero-compact .news-hero-compact-text, .news-hero-compact-large .news-hero-compact-text { + left: 5%; } } + @media print, screen and (min-width: 64em) { + .news-hero-compact .news-hero-compact-text, .news-hero-compact-large .news-hero-compact-text { + left: 5%; } } + .news-hero-compact .news-hero-compact-right, .news-hero-compact-large .news-hero-compact-right { + position: absolute; + right: 5%; + color: #fefefe; + text-shadow: 1px 1px 2px #000, 0px 0px 5px #000, 0px 0px 25px #000; } + @media print, screen and (min-width: 40em) { + .news-hero-compact .news-hero-compact-right, .news-hero-compact-large .news-hero-compact-right { + right: 5%; } } + @media print, screen and (min-width: 64em) { + .news-hero-compact .news-hero-compact-right, .news-hero-compact-large .news-hero-compact-right { + right: 5%; } } diff --git a/assets/js/auto_slug.js b/assets/js/auto_slug.js index 7b799749..a2187feb 100644 --- a/assets/js/auto_slug.js +++ b/assets/js/auto_slug.js @@ -1,5 +1,7 @@ window.addEventListener("load", function() { (function($) { + var slug = $("input#id_slug").val(); + $("input#id_title").on('input', function() { var title = $("input#id_title").val(); @@ -10,7 +12,7 @@ window.addEventListener("load", function() { getUrl = window.location baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[0]; - $.ajax({type:'GET', url: baseUrl + 'posts/func/slug_calc', data:{'title': title }, complete:complete}); + $.ajax({type:'GET', url: baseUrl + 'posts/func/slug_calc', data:{'title': title, 'slug': slug }, complete:complete}); }); })(django.jQuery); }); diff --git a/assets/rest_framework/css/default.css b/assets/rest_framework/css/default.css index 86fef177..51ca3ba1 100644 --- a/assets/rest_framework/css/default.css +++ b/assets/rest_framework/css/default.css @@ -40,7 +40,7 @@ td.nested > table { margin: 0; } -form select, form input, form textarea { +form select, form input:not([type=checkbox]), form textarea { width: 90%; }