| html { |
| /* This is needed because of chrome://theme/css/new_tab.css */ |
| height: 100%; |
| } |
| |
| body { |
| margin: 0; |
| height: 100%; |
| overflow: auto; |
| -webkit-user-select: none; |
| cursor: default; |
| } |
| |
| html[mode=app-launcher] { |
| height: auto; |
| } |
| |
| #main { |
| -webkit-box-sizing: border-box; |
| -webkit-transition: width .15s; |
| background: url(chrome://theme/IDR_PRODUCT_LOGO) no-repeat 0 6px; |
| margin: 0 auto; |
| min-height: 100%; |
| padding-bottom: 25px; /* Make room for the bottom positioned footer. */ |
| position: relative; |
| width: 920px; |
| } |
| |
| html[dir=rtl] #main { |
| background-position-x: 100%; |
| } |
| |
| html[mode=app-launcher] #main { |
| min-height: 50px; |
| } |
| |
| html[anim=false] *, |
| .no-anim, .no-anim *, |
| .loading * { |
| -webkit-transition: none !important; |
| -webkit-animation: none !important; |
| } |
| |
| :link, |
| :visited, |
| .link { |
| cursor: pointer; |
| text-decoration: underline; |
| color: hsla(213, 90%, 24%, 0.33333); |
| -webkit-appearance: none; |
| border: 0; |
| background: none; |
| } |
| |
| .link-color { |
| color: hsl(213, 90%, 24%); |
| text-decoration: none; |
| } |
| |
| .hide { |
| opacity: 0 !important; |
| visibility: hidden !important; |
| pointer-events: none; |
| } |
| |
| /* Notification */ |
| |
| #notification { |
| position: relative; |
| background-color: hsl(52, 100%, 80%); |
| border: 1px solid rgb(211, 211, 211); |
| border-radius: 6px; |
| padding: 7px 15px; |
| white-space: nowrap; |
| display: table; |
| /* Set the height and margin so that the element does not use any vertical |
| space */ |
| height: 16px; |
| margin: -44px auto 12px auto; |
| font-weight: bold; |
| opacity: 0; |
| pointer-events: none; |
| -webkit-transition: opacity .15s; |
| z-index: 1; |
| color: black; |
| } |
| |
| #notification.first-run { |
| padding: 5px 13px; /* subtract the border witdh */ |
| border: 2px solid hsl(213, 55%, 75%); |
| background-color: hsl(213, 63%, 93%); |
| -webkit-box-shadow: 2px 2px 3px hsla(0, 0%, 0%, .3); |
| font-weight: normal; |
| } |
| |
| #notification > * { |
| display: table-cell; |
| max-width: 500px; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| } |
| |
| #notification.show { |
| opacity: 1; |
| pointer-events: all; |
| -webkit-transition: opacity 1s; |
| } |
| |
| #notification .link { |
| color: rgba(0, 102, 204, 0.3); |
| -webkit-padding-start: 20px; |
| } |
| |
| #notification .link-color { |
| color: rgb(0, 102, 204); |
| } |
| |
| #notification > span > .blacklist-title { |
| display: inline-block; |
| max-width: 30ex; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
| |
| .item { |
| background: no-repeat 0% 50%; |
| padding: 2px; |
| padding-left: 18px; |
| background-size: 16px; |
| background-color: hsla(213, 63%, 93%, 0); |
| display: block; |
| line-height: 20px; |
| -webkit-box-sizing: border-box; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| text-decoration: none; |
| font-size: 100%; |
| } |
| |
| .item:visited, |
| .item:link { |
| color: hsl(213, 90%, 24%); |
| } |
| |
| html[dir=rtl] .item { |
| background-position-x: 100%; |
| padding-right: 18px; |
| padding-left: 2px; |
| text-align: right; |
| } |
| |
| .window { |
| overflow: visible; /* We use visible so that the menu can be a child and shown |
| on :hover. To get this to work we have to set visibility |
| to visible which unfortunately breaks the ellipsis for t |
| he window items */ |
| background-image: url('ntp/closed_window.png'); |
| } |
| |
| .window-menu { |
| position: absolute; |
| display: none; |
| border: 1px solid #999; |
| -webkit-box-shadow: 2px 2px 3px hsla(0, 0%, 0%, .3); |
| color: black; |
| background-color: white; |
| left: 0; |
| white-space: nowrap; |
| z-index: 2; |
| padding: 2px; |
| cursor: default; |
| border-radius: 4px; |
| } |
| |
| /* Made to look like a tooltip using vista/win7 look and feel. |
| TODO(arv): Replace with -webkit-appearance once issue 17371 is fixed |
| */ |
| #window-tooltip { |
| color: #555; |
| pointer-events: none; |
| border: 1px solid rgb(118, 118, 118); |
| border-radius: 3px; |
| padding: 0px 3px; |
| background: -webkit-gradient(linear, left top, left bottom, |
| from(white), |
| to(rgb(228, 229, 240))); |
| width: auto; |
| max-width: 300px; |
| } |
| |
| .hbox { |
| display: -webkit-box; |
| -webkit-box-orient: horizontal; |
| } |
| |
| #recently-closed { |
| white-space: nowrap; |
| overflow-x: hidden; |
| } |
| |
| #recently-closed > span > span { |
| display: inline-block; |
| max-width: 114px; /* Selected so that we can fit 5 items in EN-US */ |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| font-size: 100%; |
| margin: 0 10px; |
| } |
| |
| #recently-closed > span, |
| #recently-closed .nav { |
| max-width: none !important; |
| } |
| |
| .nav > a { |
| /* no icon */ |
| padding: 0; |
| } |
| |
| .nav > a:after { |
| content: '\00bb'; /* raque gets flipped automatically in rtl */ |
| font-size: 115%; |
| -webkit-padding-start: 2px; |
| } |
| |
| #sync-status { |
| display: none; |
| border-radius: 6px; |
| padding: 5px 0; |
| margin: 10px 0; |
| white-space: nowrap; |
| overflow-x: hidden; |
| } |
| |
| #sync-status > * { |
| display: inline-block; |
| max-width: none; |
| white-space: nowrap; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| font-size: 100%; |
| margin: 0 10px; |
| } |
| |
| #set-as-home-page { |
| display: none; |
| margin: 10px 0; |
| text-align: center; |
| } |
| |
| #top-bar { |
| display: -webkit-box; |
| -webkit-box-align: center; |
| min-height: 56px; |
| } |
| |
| #tip-line { |
| -webkit-box-flex: 1; |
| -webkit-transition: opacity .15s; |
| -webkit-user-select: text; |
| border: 0; |
| cursor: text; |
| display: block; /* Since we are reusing the section display logic we need |
| to override the display for hidden tips. */ |
| margin: 10px; |
| -webkit-margin-start: 50%; |
| text-align: end; |
| } |
| |
| .notification.hidden, |
| #tip-line.hidden, |
| .notification-shown #tip-line { |
| opacity: 0; |
| pointer-events: none; |
| } |
| |
| #tip-line a, |
| #tip-line button { |
| /* We do not want a trailing single word from a link on the last line */ |
| white-space: nowrap; |
| } |
| |
| #option-button { |
| -webkit-appearance: none; |
| background-color: transparent; |
| width: 19px; |
| height: 17px; |
| margin: 0; |
| border: 0; |
| padding: 0; |
| vertical-align: top; |
| -webkit-margin-start: 10px; |
| /* Do not show focus outline */ |
| outline: none; |
| background-image: url(chrome://theme/IDR_NEWTAB_OPTION); |
| } |
| |
| #option-button:hover, |
| #option-button:focus { |
| background-image: url(chrome://theme/IDR_NEWTAB_OPTION_H); |
| } |
| |
| #option-button:active, |
| #option-button.open { |
| background-image: url(chrome://theme/IDR_NEWTAB_OPTION_P); |
| } |
| |
| #option-menu { |
| right: 0; |
| left: auto; |
| min-width: 175px; |
| } |
| |
| html[dir=rtl] #option-menu { |
| right: auto; |
| left: 0; |
| } |
| |
| #option-menu > * { |
| /* Work around rendering bug. */ |
| outline: 1px solid transparent; |
| } |
| |
| #option-menu > [command=show]:before, |
| #option-menu > [command=hide]:before { |
| -webkit-margin-start: -14px; |
| content: '\00a0'; /* non breaking space */ |
| display: inline-block; |
| background-position: 0 50%; |
| background-repeat: no-repeat; |
| width: 14px; |
| } |
| |
| html[dir=rtl] #option-menu > [command=show]:before, |
| html[dir=rtl] #option-menu > [command=hide]:before { |
| background-position-x: 100%; |
| } |
| |
| #option-menu > [command=hide]:before { |
| background-image: url('ntp/checkbox_black.png'); |
| } |
| |
| #option-menu > [selected][command=hide]:active:before { |
| background-image: url('ntp/checkbox_white.png'); |
| } |
| |
| #attribution { |
| margin: 10px 0; |
| } |
| |
| .sync-button { |
| font-size: inherit; |
| padding: 0; |
| margin: 0; |
| -webkit-appearance: none; |
| border: 0; |
| background: none; |
| cursor: pointer; |
| text-decoration: underline; |
| font-family: inherit; |
| } |
| |
| #apps-section { |
| padding: 10px 0px; |
| border-top: 0; |
| } |
| |
| #apps-launch-control { |
| margin-top: 10px; |
| } |
| |
| #apps-launch-control input { |
| position: relative; |
| top: 1px; |
| margin-right: 0.2em; |
| margin-left: 1em; |
| } |
| |
| #debug > h2 { |
| color: red; |
| } |
| |
| #debug > div { |
| margin: 0; |
| } |
| |
| .section.disabled { |
| display: none !important; |
| } |
| |
| .section + :not(.hidden) { |
| border-top: 0; |
| } |
| |
| .section > div { |
| margin-bottom: 10px; |
| } |
| |
| .section > h2 { |
| display: inline-block; |
| margin: 0; |
| font-size: 100%; |
| cursor: pointer; |
| margin-top: 10px; |
| margin-bottom: 10px; |
| } |
| |
| .section > h2:hover { |
| text-decoration: underline; |
| } |
| |
| .section.hidden { |
| display: inline; |
| border: 0; |
| } |
| |
| .section.hidden > :not(h2) { |
| display: none !important; |
| } |
| |
| .section > h2 { |
| margin-right: 5px; |
| } |
| |
| .section.hidden > h2 { |
| margin-right: 0px; |
| } |
| |
| .section.hidden:last-child { |
| border-right: 0; |
| } |
| |
| .section.hidden + .hidden > h2 { |
| padding-left: 5px; |
| } |
| |
| .section:last-child { |
| border-bottom: 0; |
| } |
| |
| .section .nav { |
| display: inline-block; |
| } |
| |
| #apps { |
| margin-top: 10px; |
| } |
| |
| .section > * { |
| font-size: 12px; |
| } |
| |
| /* small */ |
| |
| @media (max-width: 940px) { |
| |
| #main { |
| width: 692px; |
| } |
| |
| #notification > * { |
| max-width: 300px; |
| } |
| |
| #notification > span > .blacklist-title { |
| max-width: 15ex; |
| } |
| } |
| |
| /* Ensure we have at least 10px horizontal marging. */ |
| @media (max-width: 712px) { |
| #main { |
| margin-left: 10px; |
| margin-right: 10px; |
| } |
| } |
| |
| #footer { |
| bottom: 0; |
| padding-bottom: 5px; |
| position: absolute; |
| text-align: end; |
| width: 100%; |
| } |
| |
| #footer hr { |
| border: 0; |
| display: inline; |
| margin: 0; |
| padding: 0; |
| } |
| |
| #footer hr:after { |
| content: "|"; |
| } |