From 6ef1a9a01dd71ad49c97da03d9f592a99c250129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 19 Aug 2021 11:21:46 +0300 Subject: [PATCH] Remove obsolete CSS --- static/css/bootstrap.css | 11 ----------- static/css/selectize.hc.css | 8 -------- stuff/bootstrap/dropdowns.less | 1 - stuff/bootstrap/mixins.less | 1 - stuff/bootstrap/mixins/opacity.less | 3 --- stuff/bootstrap/mixins/reset-filter.less | 8 -------- stuff/bootstrap/responsive-utilities.less | 21 --------------------- stuff/selectize/selectize.less | 1 - 8 files changed, 54 deletions(-) delete mode 100755 stuff/bootstrap/mixins/reset-filter.less diff --git a/static/css/bootstrap.css b/static/css/bootstrap.css index 2feab6f5..0b06dfef 100644 --- a/static/css/bootstrap.css +++ b/static/css/bootstrap.css @@ -2318,7 +2318,6 @@ select[multiple].input-lg { fieldset[disabled] .btn { cursor: not-allowed; opacity: 0.65; - filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } @@ -2848,7 +2847,6 @@ tbody.collapse.in { text-decoration: none; background-color: transparent; background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { @@ -4756,7 +4754,6 @@ button.list-group-item-danger.active:focus { color: var(--close-color); text-shadow: 0 1px 0 #fff; opacity: 0.2; - filter: alpha(opacity=20); } .close:hover, .close:focus { @@ -4764,7 +4761,6 @@ button.list-group-item-danger.active:focus { text-decoration: none; cursor: pointer; opacity: 0.5; - filter: alpha(opacity=50); } button.close { padding: 0; @@ -4835,11 +4831,9 @@ button.close { } .modal-backdrop.fade { opacity: 0; - filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; - filter: alpha(opacity=50); } .modal-header { padding: 15px; @@ -4917,11 +4911,9 @@ button.close { word-wrap: normal; font-size: 12px; opacity: 0; - filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; - filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; @@ -5093,9 +5085,6 @@ button.close { .affix { position: fixed; } -@-ms-viewport { - width: device-width; -} .visible-xs, .visible-sm, .visible-md, diff --git a/static/css/selectize.hc.css b/static/css/selectize.hc.css index b3c688a8..5696d578 100644 --- a/static/css/selectize.hc.css +++ b/static/css/selectize.hc.css @@ -45,7 +45,6 @@ -webkit-box-shadow: none; box-shadow: none; -webkit-border-radius: 2px; - -moz-border-radius: 2px; border-radius: 2px; } .selectize-control.multi .selectize-input.has-items { @@ -64,7 +63,6 @@ } .selectize-input.dropdown-active { -webkit-border-radius: 2px 2px 0 0; - -moz-border-radius: 2px 2px 0 0; border-radius: 2px 2px 0 0; } .selectize-input > * { @@ -135,7 +133,6 @@ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); -webkit-border-radius: 0 0 2px 2px; - -moz-border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px; } .selectize-dropdown [data-selectable] { @@ -145,7 +142,6 @@ .selectize-dropdown [data-selectable] .highlight { background: rgba(255, 237, 40, 0.4); -webkit-border-radius: 1px; - -moz-border-radius: 1px; border-radius: 1px; } .selectize-dropdown .option, @@ -232,7 +228,6 @@ border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 2px; - -moz-border-radius: 2px; border-radius: 2px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); @@ -265,7 +260,6 @@ } .selectize-input.dropdown-active { -webkit-border-radius: 2px; - -moz-border-radius: 2px; border-radius: 2px; } .selectize-input.dropdown-active::before { @@ -293,7 +287,6 @@ } .selectize-control.multi .selectize-input > div { -webkit-border-radius: 1px; - -moz-border-radius: 1px; border-radius: 1px; } .form-control.selectize-control { @@ -304,6 +297,5 @@ -webkit-box-shadow: none; box-shadow: none; -webkit-border-radius: 0; - -moz-border-radius: 0; border-radius: 0; } diff --git a/stuff/bootstrap/dropdowns.less b/stuff/bootstrap/dropdowns.less index f6876c1a..08ba78f7 100755 --- a/stuff/bootstrap/dropdowns.less +++ b/stuff/bootstrap/dropdowns.less @@ -112,7 +112,6 @@ text-decoration: none; background-color: transparent; background-image: none; // Remove CSS gradient - .reset-filter(); cursor: @cursor-disabled; } } diff --git a/stuff/bootstrap/mixins.less b/stuff/bootstrap/mixins.less index e6f9fe68..a04aa47c 100755 --- a/stuff/bootstrap/mixins.less +++ b/stuff/bootstrap/mixins.less @@ -6,7 +6,6 @@ @import "mixins/opacity.less"; @import "mixins/image.less"; @import "mixins/labels.less"; -@import "mixins/reset-filter.less"; @import "mixins/resize.less"; @import "mixins/responsive-visibility.less"; @import "mixins/size.less"; diff --git a/stuff/bootstrap/mixins/opacity.less b/stuff/bootstrap/mixins/opacity.less index 33ed25ce..1f714809 100755 --- a/stuff/bootstrap/mixins/opacity.less +++ b/stuff/bootstrap/mixins/opacity.less @@ -2,7 +2,4 @@ .opacity(@opacity) { opacity: @opacity; - // IE8 filter - @opacity-ie: (@opacity * 100); - filter: ~"alpha(opacity=@{opacity-ie})"; } diff --git a/stuff/bootstrap/mixins/reset-filter.less b/stuff/bootstrap/mixins/reset-filter.less deleted file mode 100755 index 68cdb5e1..00000000 --- a/stuff/bootstrap/mixins/reset-filter.less +++ /dev/null @@ -1,8 +0,0 @@ -// Reset filters for IE -// -// When you need to remove a gradient background, do not forget to use this to reset -// the IE filter for IE9 and below. - -.reset-filter() { - filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); -} diff --git a/stuff/bootstrap/responsive-utilities.less b/stuff/bootstrap/responsive-utilities.less index b1db31d7..aa192b62 100755 --- a/stuff/bootstrap/responsive-utilities.less +++ b/stuff/bootstrap/responsive-utilities.less @@ -2,27 +2,6 @@ // Responsive: Utility classes // -------------------------------------------------- - -// IE10 in Windows (Phone) 8 -// -// Support for responsive views via media queries is kind of borked in IE10, for -// Surface/desktop in split view and for Windows Phone 8. This particular fix -// must be accompanied by a snippet of JavaScript to sniff the user agent and -// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at -// our Getting Started page for more information on this bug. -// -// For more information, see the following: -// -// Issue: https://github.com/twbs/bootstrap/issues/10497 -// Docs: http://getbootstrap.com/getting-started/#support-ie10-width -// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/ -// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/ - -@-ms-viewport { - width: device-width; -} - - // Visibility utilities // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0 .visible-xs, diff --git a/stuff/selectize/selectize.less b/stuff/selectize/selectize.less index b9b32e0c..90cf935f 100644 --- a/stuff/selectize/selectize.less +++ b/stuff/selectize/selectize.less @@ -58,7 +58,6 @@ .selectize-border-radius (@radii) { -webkit-border-radius: @radii; - -moz-border-radius: @radii; border-radius: @radii; } .selectize-unselectable () {