mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
223 lines
3.8 KiB
CSS
223 lines
3.8 KiB
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
input[type=button] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* SCROLLBOX */
|
|
#newtab-scrollbox {
|
|
display: -moz-box;
|
|
position: relative;
|
|
-moz-box-flex: 1;
|
|
-moz-user-focus: normal;
|
|
}
|
|
|
|
#newtab-scrollbox:not([page-disabled]) {
|
|
overflow: auto;
|
|
}
|
|
|
|
/* UNDO */
|
|
#newtab-undo-container {
|
|
transition: opacity 100ms ease-out;
|
|
display: -moz-box;
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
}
|
|
|
|
#newtab-undo-container[undo-disabled] {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* TOGGLE */
|
|
#newtab-toggle {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
}
|
|
|
|
#newtab-toggle:-moz-locale-dir(rtl) {
|
|
left: 12px;
|
|
right: auto;
|
|
}
|
|
|
|
/* MARGINS */
|
|
#newtab-vertical-margin {
|
|
display: -moz-box;
|
|
position: relative;
|
|
-moz-box-flex: 1;
|
|
-moz-box-orient: vertical;
|
|
}
|
|
|
|
#newtab-margin-top {
|
|
display: -moz-box;
|
|
height: 40px;
|
|
-moz-box-align: center;
|
|
-moz-box-pack: center;
|
|
}
|
|
|
|
#newtab-horizontal-margin {
|
|
display: -moz-box;
|
|
-moz-box-flex: 5;
|
|
}
|
|
|
|
.newtab-side-margin {
|
|
min-width: 16px;
|
|
-moz-box-flex: 1;
|
|
}
|
|
|
|
/* GRID */
|
|
#newtab-grid {
|
|
-moz-box-flex: 5;
|
|
overflow: hidden;
|
|
text-align: center;
|
|
transition: 100ms ease-out;
|
|
transition-property: opacity;
|
|
}
|
|
|
|
#newtab-grid[page-disabled] {
|
|
opacity: 0;
|
|
}
|
|
|
|
#newtab-grid[locked],
|
|
#newtab-grid[page-disabled] {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* CELLS */
|
|
.newtab-cell {
|
|
display: -moz-box;
|
|
height: 150px;
|
|
margin: 16px;
|
|
width: 243px;
|
|
}
|
|
|
|
/* SITES */
|
|
.newtab-site {
|
|
position: relative;
|
|
-moz-box-flex: 1;
|
|
transition: 100ms ease-out;
|
|
transition-property: top, left, opacity;
|
|
}
|
|
|
|
.newtab-site[frozen] {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.newtab-site[dragged] {
|
|
transition-property: none;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* LINK + THUMBNAILS */
|
|
.newtab-link,
|
|
.newtab-thumbnail {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.newtab-thumbnail {
|
|
opacity: .8;
|
|
transition: opacity 100ms ease-out;
|
|
}
|
|
|
|
.newtab-thumbnail[dragged],
|
|
.newtab-link:-moz-focusring > .newtab-thumbnail,
|
|
.newtab-cell:not([ignorehover]) > .newtab-site:hover > .newtab-link > .newtab-thumbnail {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* TITLES */
|
|
.newtab-title {
|
|
bottom: -21px;
|
|
position: absolute;
|
|
left: 0;
|
|
line-height: 21px;
|
|
right: 0;
|
|
text-align: start;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* CONTROLS */
|
|
.newtab-control {
|
|
position: absolute;
|
|
top: 4px;
|
|
opacity: 0;
|
|
transition: opacity 100ms ease-out;
|
|
}
|
|
|
|
.newtab-control:-moz-focusring,
|
|
.newtab-cell:not([ignorehover]) > .newtab-site:hover > .newtab-control {
|
|
opacity: 1;
|
|
}
|
|
|
|
.newtab-control[dragged] {
|
|
opacity: 0 !important;
|
|
}
|
|
|
|
@media (-moz-touch-enabled) {
|
|
.newtab-control {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.newtab-control-sponsored:-moz-locale-dir(rtl),
|
|
.newtab-control-pin:-moz-locale-dir(ltr),
|
|
.newtab-control-block:-moz-locale-dir(rtl) {
|
|
left: 4px;
|
|
}
|
|
|
|
.newtab-control-sponsored:-moz-locale-dir(ltr),
|
|
.newtab-control-block:-moz-locale-dir(ltr),
|
|
.newtab-control-pin:-moz-locale-dir(rtl) {
|
|
right: 4px;
|
|
}
|
|
|
|
.newtab-control.newtab-control-sponsored {
|
|
bottom: -20px;
|
|
height: 14px;
|
|
-moz-margin-end: -5px;
|
|
opacity: 1;
|
|
top: auto;
|
|
width: 14px;
|
|
}
|
|
|
|
.newtab-site:not([type=sponsored]) .newtab-control-sponsored {
|
|
display: none;
|
|
}
|
|
|
|
/* DRAG & DROP */
|
|
|
|
/*
|
|
* This is just a temporary drag element used for dataTransfer.setDragImage()
|
|
* so that we can use custom drag images and elements. It needs an opacity of
|
|
* 0.01 so that the core code detects that it's in fact a visible element.
|
|
*/
|
|
.newtab-drag {
|
|
width: 1px;
|
|
height: 1px;
|
|
background-color: #fff;
|
|
opacity: 0.01;
|
|
}
|
|
|
|
/* PANEL */
|
|
#sponsored-panel {
|
|
width: 330px;
|
|
}
|
|
|
|
#sponsored-panel description {
|
|
margin: 0;
|
|
}
|
|
|
|
#sponsored-panel .text-link {
|
|
margin: 12px 0 0;
|
|
}
|