Browse Source

Заги в мобилке

vadimcesnokov 11 months ago
parent
commit
1be5306a40
4 changed files with 11 additions and 11 deletions
  1. 6 5
      assets/css/styles.css
  2. 4 0
      assets/less/components/main_page.less
  3. 1 6
      assets/less/style.less
  4. 0 0
      web/css/site.min.css

+ 6 - 5
assets/css/styles.css

@@ -1040,6 +1040,12 @@ body > main {
     line-height: 16px;
     line-height: 16px;
   }
   }
 }
 }
+@media (max-width: 500px) and (resolution: 150dpi) {
+  .news-item .meta .title {
+    font-size: 10px;
+    line-height: 12px;
+  }
+}
 .news-item .meta .lead {
 .news-item .meta .lead {
   margin-bottom: 15px;
   margin-bottom: 15px;
   font: 18px/25px "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Ubuntu, Arial, sans-serif;
   font: 18px/25px "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Ubuntu, Arial, sans-serif;
@@ -3375,11 +3381,6 @@ div.picture-cont-16x9 picture img {
     background: black;
     background: black;
   }
   }
 }
 }
-@media (max-width: 500px) and (resolution: 150dpi) {
-  .post h1 {
-    font-size: 18px;
-  }
-}
 .desktop-search {
 .desktop-search {
   display: flex;
   display: flex;
 }
 }

+ 4 - 0
assets/less/components/main_page.less

@@ -71,6 +71,10 @@
       @media(max-width: @size-mobile){
       @media(max-width: @size-mobile){
         font-size: 14px;
         font-size: 14px;
         line-height: 16px;
         line-height: 16px;
+        @media (resolution: 150dpi) {
+          font-size: 10px;
+          line-height: 12px;
+        }
       }
       }
     }
     }
     .lead{
     .lead{

+ 1 - 6
assets/less/style.less

@@ -129,12 +129,7 @@ div.picture-cont-16x9{
 }
 }
 @media(max-width: @size-mobile){
 @media(max-width: @size-mobile){
   //.post h1{ font-size: 25px; hyphens: auto;} Убрал по просьбе редакции, см. телеграм чат от 2023-12-13
   //.post h1{ font-size: 25px; hyphens: auto;} Убрал по просьбе редакции, см. телеграм чат от 2023-12-13
-  .post h1{
-    font-size: 25px;
-    @media (resolution: 150dpi) {
-      font-size: 18px;
-    }
-  }
+  .post h1{ font-size: 25px}
   .post h2{ font-size: 23px}
   .post h2{ font-size: 23px}
   .post h3{ font-size: 16px}
   .post h3{ font-size: 16px}
   .post h4{ font-size: 14px}
   .post h4{ font-size: 14px}

File diff suppressed because it is too large
+ 0 - 0
web/css/site.min.css


Some files were not shown because too many files changed in this diff