Index: chrome/browser/resources/contextual_search/promo.css |
diff --git a/chrome/browser/resources/contextual_search/promo.css b/chrome/browser/resources/contextual_search/promo.css |
index 309f4761d249b3c159d8f2d2a6657f5edc9971f3..c82d0bc42bd03abd2af0f22f5cda5a3595c4bbb4 100644 |
--- a/chrome/browser/resources/contextual_search/promo.css |
+++ b/chrome/browser/resources/contextual_search/promo.css |
@@ -24,7 +24,7 @@ a.colored-link { |
} |
#button-container { |
- text-align: right; |
+ text-align: end; |
width: 100%; |
} |
@@ -41,18 +41,43 @@ a.colored-link { |
margin: 24px 16px 4px 16px; |
} |
+/* Some properties below can be overridden in landscape orientation. */ |
#heading { |
font-size: 24px; |
letter-spacing: 1px; |
margin-top: 0; |
text-align: center; |
} |
- |
#header-image { |
- display: block; |
height: 100px; |
margin: 0 auto 24px auto; |
} |
+.portrait { |
+ display: block; |
+} |
+.landscape { |
+ display: none; |
+} |
+ |
+/* Landscape */ |
+@media screen and (orientation:landscape) { |
+ #heading { |
+ padding-top: 16px; |
+ } |
+ #header-image { |
+ margin: 0 24px; |
+ } |
+ .portrait { |
+ display: none; |
+ } |
+ .landscape { |
+ display: block; |
+ float: left; |
+ } |
+ html[dir='rtl'] .landscape { |
+ float: right; |
+ } |
+} |
.label { |
display: inline-block; |