Title: [249506] trunk/Tools
Revision
249506
Author
[email protected]
Date
2019-09-04 17:47:32 -0700 (Wed, 04 Sep 2019)

Log Message

results.webkit.org: Fix mobile vs desktop mode
https://bugs.webkit.org/show_bug.cgi?id=201441

Rubber-stamped by Aakash Jain.

We should unconditionally use desktop mode if the device screen-width
is large enough.

* resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (249505 => 249506)


--- trunk/Tools/ChangeLog	2019-09-05 00:45:06 UTC (rev 249505)
+++ trunk/Tools/ChangeLog	2019-09-05 00:47:32 UTC (rev 249506)
@@ -1,5 +1,17 @@
 2019-09-04  Jonathan Bedard  <[email protected]>
 
+        results.webkit.org: Fix mobile vs desktop mode
+        https://bugs.webkit.org/show_bug.cgi?id=201441
+
+        Rubber-stamped by Aakash Jain.
+
+        We should unconditionally use desktop mode if the device screen-width
+        is large enough.
+
+        * resultsdbpy/resultsdbpy/view/static/library/css/webkit.css:
+
+2019-09-04  Jonathan Bedard  <[email protected]>
+
         run-api-tests: Add support for specifying additional environment variables
         https://bugs.webkit.org/show_bug.cgi?id=201311
         <rdar://problem/54852698>

Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css (249505 => 249506)


--- trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css	2019-09-05 00:45:06 UTC (rev 249505)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/css/webkit.css	2019-09-05 00:47:32 UTC (rev 249506)
@@ -95,7 +95,7 @@
   --boldInverseColor: var(--black);
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   :root {
     --tinySize: 11px;
     --fontWeight: 200;
@@ -105,7 +105,7 @@
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
+@media screen and (min-width: 768px) {
   :root {
     --tinySize: 12px;
     --fontWeight: 100;
@@ -304,7 +304,7 @@
   }
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .header, .topbar {
     flex-direction: row;
   }
@@ -322,24 +322,6 @@
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
-  .header, .topbar {
-    flex-direction: row;
-  }
-
-  .header>.actions, .topbar>.actions {
-    border-top: none;
-  }
-
-  .header.fixed+.content, .topbar.fixed+.content {
-    margin-top: 80px;
-  }
-
-  .header.fixed>.actions, .topbar.fixed>.actions {
-    background: none;
-  }
-}
-
 .content {
   padding: 0 var(--contentPaddingSize);
 }
@@ -354,7 +336,7 @@
   padding: var(--colPaddingSize) 0;
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .row {
     display: flex;
     flex-direction: row;
@@ -409,62 +391,6 @@
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
-  /* For desktop: */
-  .row {
-    display: flex;
-    flex-direction: row;
-  }
-
-  .col-1 {
-    width: 8.33%;
-  }
-
-  .col-2 {
-    width: 16.66%;
-  }
-
-  .col-3 {
-    width: 25%;
-  }
-
-  .col-4 {
-    width: 33.33%;
-  }
-
-  .col-5 {
-    width: 41.66%;
-  }
-
-  .col-6 {
-    width: 50%;
-  }
-
-  .col-7 {
-    width: 58.33%;
-  }
-
-  .col-8 {
-    width: 66.66%;
-  }
-
-  .col-9 {
-    width: 75%;
-  }
-
-  .col-10 {
-    width: 83.33%;
-  }
-
-  .col-11 {
-    width: 91.66%;
-  }
-
-  .col-12 {
-    width: 100%;
-  }
-}
-
 .hide-for-xs {
   display: none;
 }
@@ -473,7 +399,7 @@
   display: none;
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .hide-for-xs {
     display: block;
   }
@@ -483,16 +409,6 @@
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
-  .hide-for-s {
-    display: block;
-  }
-
-  .hide-for-xs {
-    display: block;
-  }
-}
-
 /* text */
 .text, body, div, p, span, li, a, h4 {
   font-family: -apple-system, system, HelveticaNeue, LucidaGrande;
@@ -878,18 +794,12 @@
   width: 100%;
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .section>.header {
     flex-direction: row;
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
-  .section>.header {
-    flex-direction: row;
-  }
-}
-
 /* list */
 .list {
   /*border-top: 1px solid var(--borderColorSection);*/;
@@ -978,7 +888,7 @@
   margin-top: calc(12px * 2  + var(--largeSize) * 1.3 + var(--smallSize) * 1.3 + 12px * 2);
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .sidebar {
     display: block;
     width: 299px;
@@ -1027,7 +937,7 @@
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
+@media screen and (min-width: 768px) {
   .sidebar {
     display: block;
     width: 310px;
@@ -1048,6 +958,10 @@
     bottom: 0;
   }
 
+  .mobile-sidebar-control.display {
+    display: none;
+  }
+
   .main {
     margin-left: 310px;
     width: calc(100% - 310px);
@@ -1057,10 +971,6 @@
     margin-left: 0px;
     margin-right: 310px;
   }
-
-  .main.under-topbar-with-actions {
-    margin-top: calc(12px * 2  + var(--largeSize) * 1.3);
-  }
 }
 
 .sidebar.right {
@@ -1658,7 +1568,7 @@
   height: calc(100% - 12px * 2  - var(--largeSize) * 1.3 - var(--smallSize) * 1.3 - 12px * 2 );
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .drawer.left.display, .drawer.right.display {
     width: 20%;
   }
@@ -1668,16 +1578,6 @@
   }
 }
 
-@media screen and (min-width: 768px) and (orientation: landscape) {
-  .drawer.left.display, .drawer.right.display {
-    width: 20%;
-  }
-
-  .drawer.left.under-topbar-with-actions, .drawer.right.under-topbar-with-actions {
-    height: calc(100% - 12px * 2  - var(--largeSize) * 1.3);
-  }
-}
-
 .drawer .header {
   border: none;
   margin-bottom: 5px;
@@ -2663,8 +2563,9 @@
   display: none;
 }
 
-@media screen and (min-width: 600px) and (orientation: landscape) {
+@media screen and (min-width: 600px) {
   .desktop-control {
     display: block;
   }
 }
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to