| Index: chrome/browser/resources/ntp_search/new_tab.css
|
| diff --git a/chrome/browser/resources/ntp_search/new_tab.css b/chrome/browser/resources/ntp_search/new_tab.css
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6dc9fcf95b19dcbe231771252416f5e9150d42de
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/ntp_search/new_tab.css
|
| @@ -0,0 +1,392 @@
|
| +/* =========================================================================
|
| + TODO(pedrosimonetti): Work around
|
| + ========================================================================= */
|
| +
|
| +body > center {
|
| + position: relative;
|
| + height: 100%;
|
| + min-height: 540px;
|
| +}
|
| +
|
| +#google_logo {
|
| + /* TODO(pedrosimonetti): Previous Google logo position (we might revert
|
| + to this value again after hidding/moving the bookmark bar) */
|
| + /*padding-top: 27px !important;*/
|
| + padding-top: 0 !important;
|
| + margin-top: -28px;
|
| +}
|
| +
|
| +#card-slider-frame {
|
| + bottom: 0 !important;
|
| + top: inherit !important;
|
| + position: absolute;
|
| +}
|
| +
|
| +#page-switcher-start, #page-switcher-end {
|
| + display: none;
|
| +}
|
| +
|
| +#footer, #footer-border, #footer-content {
|
| + display: none;
|
| +}
|
| +
|
| +.tile-page {
|
| + display: block;
|
| +}
|
| +
|
| +.tile-page-content {
|
| + padding: 57px 13% 0 13% !important;
|
| +}
|
| +
|
| +#logo-img {
|
| + display: none;
|
| +}
|
| +
|
| +#dot-list {
|
| + display: inline-block;
|
| + margin: 0 auto;
|
| +}
|
| +
|
| +.dot {
|
| + display: inline-block;
|
| + max-width: 119px !important;
|
| +}
|
| +
|
| +/* TODO(pedrosimonetti): Hack to make the alignment of the bottom section
|
| + tab titles less ugly. The problem is that the items have a fixed position
|
| + so "Apps" will have lots of padding compared to "Recently visited". Need
|
| + to find a better way to solve this problem. */
|
| +.dot[title=Apps] input {
|
| + text-align: left;
|
| +}
|
| +
|
| +.dot .selection-bar {
|
| + border: none !important;
|
| +}
|
| +
|
| +.dot input {
|
| + color: #666 !important;
|
| + font-size: 14px;
|
| + font-weight: normal;
|
| + font-family: Arial;
|
| + text-align: center;
|
| +}
|
| +
|
| +.dot.selected input {
|
| + color: #DD4B39 !important;
|
| +}
|
| +
|
| +.tile-page-scrollbar {
|
| + display: none;
|
| +}
|
| +
|
| +#footer .menu-container, #footer #chrome-web-store-link, #trash {
|
| + display: none;
|
| +}
|
| +
|
| +#page-list {
|
| + margin-top: 0;
|
| +}
|
| +
|
| +.most-visited .color-stripe {
|
| + display: none;
|
| +}
|
| +
|
| +.thumbnail,
|
| +.thumbnail-shield,
|
| +.thumbnail-wrapper {
|
| + border-radius: 2px !important;
|
| + opacity: 1 !important;
|
| +}
|
| +
|
| +.thumbnail-shield {
|
| + display: none !important;
|
| +}
|
| +
|
| +.most-visited .favicon {
|
| + display: none !important;
|
| +}
|
| +
|
| +.tile-page-content {
|
| + padding: 0 !important;
|
| +}
|
| +
|
| +.top-margin {
|
| + display: none;
|
| +}
|
| +
|
| +/* =========================================================================
|
| + END OF Work around
|
| + ========================================================================= */
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + General Styles
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +body {
|
| + margin: 0;
|
| + padding: 0;
|
| + background: whiteSmoke;
|
| + overflow: hidden;
|
| +}
|
| +
|
| +
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + TODO(pedrosimonetti): refactor
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +#page-list {
|
| + display: -webkit-box;
|
| + position: static;
|
| +}
|
| +
|
| +#card-slider-frame {
|
| + overflow: hidden;
|
| +}
|
| +
|
| +#page-list-menu {
|
| + text-align: center;
|
| +
|
| + margin: 8px auto 30px;
|
| +}
|
| +
|
| +#dot-list {
|
| + margin: 0;
|
| + padding: 0;
|
| + height: 35px;
|
| + overflow: hidden;
|
| + list-style: none;
|
| + font-family: Arial;
|
| + font-size: 13px;
|
| +
|
| + color: #666;
|
| + text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
|
| +}
|
| +
|
| +/* TODO: selected class */
|
| +#dot-list li:first-child {
|
| + color: #dd4b39;
|
| +}
|
| +
|
| +#dot-list li {
|
| + margin-left: 13px;
|
| + margin-right: 13px;
|
| + display: inline-block;
|
| + white-space: nowrap;
|
| + min-width: 55px; /* TODO: Confirm value with Marcin */
|
| +}
|
| +
|
| +
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + TODO(pedrosimonetti): refactor
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +#card-slider-frame {
|
| + position: absolute;
|
| + text-align: center;
|
| + bottom: 0;
|
| + width: 100%;
|
| +}
|
| +
|
| +.tile-page {
|
| + position: relative;
|
| + overflow: hidden;
|
| +}
|
| +
|
| +.tile-page-content {
|
| + margin: 0 auto;
|
| + width: 748px; /* TODO move */
|
| +}
|
| +
|
| +.tile-grid {
|
| + display: block;
|
| + margin: 0 auto;
|
| + overflow: hidden;
|
| +}
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + New tile grid
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +.tile-row {
|
| + text-align: left;
|
| + white-space: nowrap;
|
| +}
|
| +
|
| +.tile-cell {
|
| + position: relative;
|
| + display: inline-block;
|
| +}
|
| +
|
| +.tile-cell:first-child {
|
| + margin-left: 0 !important;
|
| +}
|
| +
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + Size / Animation
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +#page-list {
|
| + padding-bottom: 10px;
|
| + -webkit-transition: all 201ms ease-in-out !important;
|
| +}
|
| +
|
| +#card-slider-frame .tile-page-content {
|
| + width: 748px; /* TODO move */
|
| +}
|
| +
|
| +#card-slider-frame .tile-grid {
|
| + width: 732px; /* TODO move */
|
| +
|
| + -webkit-transform: translate3d(0,0,0);
|
| + -webkit-transition: all 201ms ease-in-out;
|
| +}
|
| +
|
| +#card-slider-frame .tile-grid-content {
|
| + -webkit-transform: translate3d(0,0,0);
|
| + -webkit-transition: all 201ms ease-in-out;
|
| +}
|
| +
|
| +#card-slider-frame .tile-row {
|
| + -webkit-transform: translate3d(0,0,0);
|
| + -webkit-transition: all 201ms ease-in-out; /* change to opacity only? */
|
| +}
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + Size / Animation
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +.tile-cell {
|
| + margin-left: 18px;
|
| + margin-bottom: 22px;
|
| + width: 132px;
|
| + height: 80px;
|
| +
|
| + -webkit-transform: translate3d(0,0,0);
|
| +}
|
| +
|
| +/* TODO(pedrosimonetti): we need to resize the filler child too if we want
|
| + its animation to be the same as a normal tile */
|
| +.tile-cell.filler {
|
| + position: relative;
|
| + display: inline-block;
|
| + width: 132px;
|
| + border-color: rgb(224, 224, 224);
|
| + background: -webkit-linear-gradient(rgb(242, 242, 242), rgb(232, 232, 232));
|
| + box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09);
|
| + border-radius: 3px;
|
| +}
|
| +
|
| +.tile-cell .tile-content {
|
| + text-align: center;
|
| + font: 16px Arial;
|
| +
|
| + /* TODO move */
|
| + background: #fff;
|
| + width: 130px;
|
| + height: 78px;
|
| + border: 1px solid rgb(192, 192, 192);
|
| + border-radius: 2px;
|
| + box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
|
| +}
|
| +
|
| +.tile-content:hover {
|
| + border-color: rgb(127, 127, 127); /* TODO: confirm value with Marcin */
|
| +}
|
| +
|
| +.tile-cell > div > span {
|
| + position: absolute;
|
| + display: inline-block;
|
| + top: 27px;
|
| +}
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + Tile Animation
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +.animate-tile .tile-cell {
|
| + -webkit-transition: all 201ms ease-in-out, opacity 101ms ease-out;
|
| +}
|
| +
|
| +.hide-col-0 .tile-col-0,
|
| +.hide-col-1 .tile-col-1,
|
| +.hide-col-2 .tile-col-2,
|
| +.hide-col-3 .tile-col-3,
|
| +.hide-col-4 .tile-col-4,
|
| +.hide-col-5 .tile-col-5,
|
| +.hide-col-6 .tile-col-6,
|
| +.hide-col-7 .tile-col-7,
|
| +.hide-col-8 .tile-col-8,
|
| +.hide-col-9 .tile-col-9 {
|
| + opacity: 0 !important;
|
| + margin-right: -10px;
|
| + width: 10px !important;
|
| +}
|
| +
|
| +.hide-row {
|
| + opacity: 0 !important;
|
| +}
|
| +.hide-row .tile-cell {
|
| + opacity: 1 !important;
|
| +}
|
| +
|
| +
|
| +/* -----------------------------------------------------------------------------
|
| + Debug
|
| +----------------------------------------------------------------------------- */
|
| +
|
| +.debug #card-slider-frame {
|
| + position: absolute;
|
| + text-align: center;
|
| + bottom: 0%;
|
| + height: 95%;
|
| + width: 100%;
|
| +}
|
| +
|
| +
|
| +.debug .tile-grid {
|
| + height: 100% !important;
|
| +}
|
| +
|
| +.debug .animate-tile .tile-cell {
|
| + -webkit-transition: all 201ms ease-in-out;
|
| +}
|
| +
|
| +.debug #page-list-menu {
|
| + background: #faf;
|
| +}
|
| +
|
| +.debug .tile-page-content {
|
| + background: #7ff;
|
| +}
|
| +
|
| +.debug .tile-row {
|
| + background: #ff7;
|
| +}
|
| +
|
| +.debug .hide-row {
|
| + opacity: 0.35 !important;
|
| +}
|
| +
|
| +.debug .hide-row .tile-cell > div {
|
| + background-color: lightgray !important;
|
| + border: 1px solid gray;
|
| + color: gray;
|
| +}
|
| +
|
| +.debug .hide-col-0 .tile-col-0,
|
| +.debug .hide-col-1 .tile-col-1,
|
| +.debug .hide-col-2 .tile-col-2,
|
| +.debug .hide-col-3 .tile-col-3,
|
| +.debug .hide-col-4 .tile-col-4 {
|
| + background-color: lightgray;
|
| +}
|
|
|