Przeglądaj źródła

try fix blind mode

alexlcdee 5 lat temu
rodzic
commit
b4a48385a8

+ 0 - 18
src/files/css/main.css

@@ -10115,24 +10115,6 @@ img {
 .imgoff {
   display: none !important; }
 
-.font100 {
-  font-size: 100% !important; }
-
-.font102 {
-  font-size: 102% !important; }
-
-.font104 {
-  font-size: 104% !important; }
-
-.font106 {
-  font-size: 106% !important; }
-
-.font108 {
-  font-size: 108% !important; }
-
-.font110 {
-  font-size: 110% !important; }
-
 .whiteblack,
 .whiteblack:hover {
   background-image: none;

Plik diff jest za duży
+ 0 - 0
src/files/css/main.css.map


+ 8 - 0
src/files/js/blind.js

@@ -4,6 +4,8 @@ $(document).ready(function () {
         $('.container').eq(0).css('padding-top', $('header').outerHeight());
     };
 
+    var $html = $('html');
+
     var blind = $.cookie('blind');
     if (blind == 'on') {
         $(".blind").show(0);
@@ -22,26 +24,32 @@ $(document).ready(function () {
     var blindFont = $.cookie('blind_font');
     if (blindFont == '100') {
         $("*:not(.sp_ignored)").removeClass('font100').removeClass('font102').removeClass('font104').removeClass('font106').removeClass('font108').removeClass('font110');
+        $html.css('zoom', '100%');
     }
 
     if (blindFont == '102') {
         $("*:not(.sp_ignored)").removeClass('font100').removeClass('font104').removeClass('font106').removeClass('font108').removeClass('font110').addClass('font102');
+        $html.css('zoom', '105%');
     }
 
     if (blindFont == '104') {
         $("*:not(.sp_ignored)").removeClass('font100').removeClass('font102').removeClass('font106').removeClass('font108').removeClass('font110').addClass('font104');
+        $html.css('zoom', '110%');
     }
 
     if (blindFont == '106') {
         $("*:not(.sp_ignored)").removeClass('font100').removeClass('font102').removeClass('font104').removeClass('font108').removeClass('font110').addClass('font106');
+        $html.css('zoom', '115%');
     }
 
     if (blindFont == '108') {
         $("*:not(.sp_ignored)").removeClass('font100').removeClass('font102').removeClass('font104').removeClass('font106').removeClass('font110').addClass('font108');
+        $html.css('zoom', '120%');
     }
 
     if (blindFont == '110') {
         $("*:not(.sp_ignored)").removeClass('font100').removeClass('font102').removeClass('font104').removeClass('font106').removeClass('font108').addClass('font110');
+        $html.css('zoom', '125%');
     }
 
     var blindColor = $.cookie('blind_color');

+ 6 - 6
src/files/scss/_blind.scss

@@ -87,27 +87,27 @@
 }
 
 .font100 {
-    font-size: 100% !important;
+    //font-size: 100% !important;
 }
 
 .font102 {
-    font-size: 102% !important;
+    //font-size: 102% !important;
 }
 
 .font104 {
-    font-size: 104% !important;
+    //font-size: 104% !important;
 }
 
 .font106 {
-    font-size: 106% !important;
+    //font-size: 106% !important;
 }
 
 .font108 {
-    font-size: 108% !important;
+    //font-size: 108% !important;
 }
 
 .font110 {
-    font-size: 110% !important;
+    //font-size: 110% !important;
 }
 
 .default {

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików