/* Copyright (c) 2012 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* begin: show/hide selected ntp section */ body[device='tablet'] .main-section { display: none; } body[device='tablet'] .main-section.selected { display: block; } /* end: show/hide selected ntp section */ /* begin: rules to make most visited container stay at bottom */ body[device='tablet'] .main-section.selected#most_visited_container { display: -webkit-box; } body[device='tablet'] #most_visited_container { -webkit-box-orient: vertical; } body[device='tablet'] #recently_closed_container { -webkit-box-flex: 0; margin-bottom: 10px; } body[device='tablet'] .box-spacer { -webkit-box-flex: 1.0; } body[device='tablet'] #most_visited_list { -webkit-box-flex: 0; } /* end: rules to make most visited container stay at bottom */ body[device='tablet'] #most_visited_container { overflow: hidden; } body[device='tablet'] #most_visited_list { margin-top: 15px; } body[device='tablet'] .thumbnail-cell { float: left; height: 210px; padding: 20px; text-align: center; width: 230px; } html[dir='rtl'] body[device='tablet'] .thumbnail-cell { float: right; } body[device='tablet'] #most_visited_list .thumbnail-container { border: 1px solid #999; height: 160px; position: relative; width: 100%; } body[device='tablet'] #most_visited_list .thumbnail { background-image: url(images/default_thumbnail.png); background-position: center center; background-repeat: no-repeat; background-size: cover; cursor: pointer; height: 100%; width: 100%; } body[device='tablet'] #most_visited_list .inner-border { background: -webkit-gradient( linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.05))); border: 1px solid rgba(255, 255, 255, 0.8); height: 158px; left: 0; position: absolute; top: 0; width: 228px; } body[device='tablet'] #most_visited_list .title-spacer { height: 35px; width: 0; } body[device='tablet'] #most_visited_list .title { left: -10px; overflow-x: hidden; overflow-y: visible; position: relative; text-overflow: ellipsis; top: -2px; white-space: nowrap; width: 250px; } html[dir='rtl'] body[device='tablet'] #most_visited_list .title { right: -10px; } body[device='tablet'] .recently-closed-title-container { color: rgba(0, 0, 0, 0.5); display: inline-block; margin-top: 25px; padding-bottom: 10px; padding-left: 6px; /* match recently closed border & margin */ position: relative; width: 100%; } html[dir='rtl'] body[device='tablet'] .recently-closed-title-container { padding-right: 6px; } body[device='tablet'] .recently-closed-title-container .title { display: block; font-size: 16px; } body[device='tablet'] #recently_closed_list .cell { border: 1px solid rgba(0, 0, 0, 0.25); border-width: 1px; float: left; height: 16px; margin: 5px; overflow: hidden; padding: 5px; width: 188px; } html[dir='rtl'] body[device='tablet'] #recently_closed_list .cell { float: right; } body[device='tablet'] #recently_closed_list .title { color: blue; font-size: 12pt; overflow: hidden; padding-left: 2px; text-align: left; text-overflow: ellipsis; } html[dir='rtl'] body[device='tablet'] #recently_closed_list .title { padding-right: 2px; text-align: right; } body[device='tablet'] #recently_closed_list .icon { background-position: bottom left; background-repeat: no-repeat; background-size: 16px 16px; float: left; height: 16px; margin: 2px; position: relative; top: -1px; width: 16px; } html[dir='rtl'] body[device='tablet'] #recently_closed_list .icon { float: right; }