зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1374555 - update HTMLTooltip stylesheets to use more specific selectors;r=gl
Scoped stylesheets will stop being supported for chrome content per Bug 1345702. Update the selectors in the stylesheets so that they can easily be loaded without the scope attribute. MozReview-Commit-ID: FV4tWD4SlYA --HG-- extra : rebase_source : 63f2fce76cb6f1e7052e6e421a256c0ea8f77852
This commit is contained in:
Родитель
9dd142d73f
Коммит
310427becc
|
@ -15,7 +15,7 @@
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.display-wrap {
|
||||
.cubic-bezier-container .display-wrap {
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
|
@ -24,14 +24,14 @@
|
|||
|
||||
/* Coordinate Plane */
|
||||
|
||||
.coordinate-plane {
|
||||
.cubic-bezier-container .coordinate-plane {
|
||||
width: 150px;
|
||||
height: 370px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.control-point {
|
||||
.cubic-bezier-container .control-point {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
height: 10px;
|
||||
|
@ -46,7 +46,7 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.display-wrap {
|
||||
.cubic-bezier-container .display-wrap {
|
||||
background:
|
||||
repeating-linear-gradient(0deg,
|
||||
transparent,
|
||||
|
@ -66,7 +66,7 @@
|
|||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
canvas.curve {
|
||||
.cubic-bezier-container canvas.curve {
|
||||
background:
|
||||
linear-gradient(-45deg,
|
||||
transparent 49.7%,
|
||||
|
@ -79,14 +79,14 @@ canvas.curve {
|
|||
|
||||
/* Timing Function Preview Widget */
|
||||
|
||||
.timing-function-preview {
|
||||
.cubic-bezier-container .timing-function-preview {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
right: 45px;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.timing-function-preview .scale {
|
||||
.cubic-bezier-container .timing-function-preview .scale {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
left: 0;
|
||||
|
@ -98,7 +98,7 @@ canvas.curve {
|
|||
background: #ccc;
|
||||
}
|
||||
|
||||
.timing-function-preview .dot {
|
||||
.cubic-bezier-container .timing-function-preview .dot {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -7px;
|
||||
|
@ -114,7 +114,7 @@ canvas.curve {
|
|||
|
||||
/* Preset Widget */
|
||||
|
||||
.preset-pane {
|
||||
.cubic-bezier-container .preset-pane {
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
border-right: 1px solid var(--theme-splitter-color);
|
||||
|
@ -134,7 +134,7 @@ canvas.curve {
|
|||
border-right: none;
|
||||
}
|
||||
|
||||
.category {
|
||||
.cubic-bezier-container .category {
|
||||
padding: 5px 0px;
|
||||
width: 33.33%;
|
||||
text-align: center;
|
||||
|
@ -146,16 +146,16 @@ canvas.curve {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.category:hover {
|
||||
.cubic-bezier-container .category:hover {
|
||||
background-color: var(--theme-tab-toolbar-background);
|
||||
}
|
||||
|
||||
.active-category {
|
||||
.cubic-bezier-container .active-category {
|
||||
background-color: var(--theme-selection-background);
|
||||
color: var(--theme-selection-color);
|
||||
}
|
||||
|
||||
.active-category:hover {
|
||||
.cubic-bezier-container .active-category:hover {
|
||||
background-color: var(--theme-selection-background);
|
||||
}
|
||||
|
||||
|
@ -166,25 +166,25 @@ canvas.curve {
|
|||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.preset-list {
|
||||
.cubic-bezier-container .preset-list {
|
||||
display: none;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.active-preset-list {
|
||||
.cubic-bezier-container .active-preset-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.preset {
|
||||
.cubic-bezier-container .preset {
|
||||
cursor: pointer;
|
||||
width: 33.33%;
|
||||
margin: 5px 0px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.preset canvas {
|
||||
.cubic-bezier-container .preset canvas {
|
||||
display: block;
|
||||
border: 1px solid var(--theme-splitter-color);
|
||||
border-radius: 3px;
|
||||
|
@ -192,7 +192,7 @@ canvas.curve {
|
|||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.preset p {
|
||||
.cubic-bezier-container .preset p {
|
||||
font-size: 80%;
|
||||
margin: 2px auto 0px auto;
|
||||
color: var(--theme-body-color-alt);
|
||||
|
@ -201,16 +201,17 @@ canvas.curve {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.active-preset p, .active-preset:hover p {
|
||||
.cubic-bezier-container .active-preset p,
|
||||
.cubic-bezier-container .active-preset:hover p {
|
||||
color: var(--theme-body-color);
|
||||
}
|
||||
|
||||
.preset:hover canvas {
|
||||
.cubic-bezier-container .preset:hover canvas {
|
||||
border-color: var(--theme-selection-background);
|
||||
}
|
||||
|
||||
.active-preset canvas,
|
||||
.active-preset:hover canvas {
|
||||
.cubic-bezier-container .active-preset canvas,
|
||||
.cubic-bezier-container .active-preset:hover canvas {
|
||||
background-color: var(--theme-selection-background-semitransparent);
|
||||
border-color: var(--theme-selection-background);
|
||||
}
|
||||
|
|
|
@ -19,21 +19,21 @@
|
|||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
.filters-list,
|
||||
.presets-list {
|
||||
#filter-container .filters-list,
|
||||
#filter-container .presets-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.filters-list {
|
||||
#filter-container .filters-list {
|
||||
/* Allow the filters list to take the full width when the presets list is
|
||||
hidden */
|
||||
flex-grow: 1;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.presets-list {
|
||||
#filter-container .presets-list {
|
||||
/* Make sure that when the presets list is shown, it has a fixed width */
|
||||
width: 200px;
|
||||
padding-left: 6px;
|
||||
|
@ -55,8 +55,8 @@
|
|||
/* The list of filters and list of presets should push their footers to the
|
||||
bottom, so they can take as much space as there is */
|
||||
|
||||
#filters,
|
||||
#presets {
|
||||
#filter-container #filters,
|
||||
#filter-container #presets {
|
||||
flex-grow: 1;
|
||||
/* Avoid pushing below the tooltip's area */
|
||||
overflow-y: auto;
|
||||
|
@ -66,47 +66,47 @@
|
|||
These footers have some input (taking up as much space as possible) and an
|
||||
add button next */
|
||||
|
||||
.footer {
|
||||
#filter-container .footer {
|
||||
display: flex;
|
||||
margin: 10px 3px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer :not(button) {
|
||||
#filter-container .footer :not(button) {
|
||||
flex-grow: 1;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
/* Styles for 1 filter function item */
|
||||
|
||||
.filter,
|
||||
.filter-name,
|
||||
.filter-value {
|
||||
#filter-container .filter,
|
||||
#filter-container .filter-name,
|
||||
#filter-container .filter-value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.filter {
|
||||
#filter-container .filter {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.filter-name {
|
||||
#filter-container .filter-name {
|
||||
width: 120px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.filter-name label {
|
||||
#filter-container .filter-name label {
|
||||
-moz-user-select: none;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.filter-name label.devtools-draglabel {
|
||||
#filter-container .filter-name label.devtools-draglabel {
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
/* drag/drop handle */
|
||||
|
||||
.filter-name i {
|
||||
#filter-container .filter-name i {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 10px;
|
||||
|
@ -121,23 +121,23 @@
|
|||
background-position: 0 1px;
|
||||
}
|
||||
|
||||
.filter-value {
|
||||
#filter-container .filter-value {
|
||||
min-width: 150px;
|
||||
margin-right: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.filter-value input {
|
||||
#filter-container .filter-value input {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
/* Fix the size of inputs */
|
||||
/* Especially needed on Linux where input are bigger */
|
||||
input {
|
||||
#filter-container input {
|
||||
width: 8em;
|
||||
}
|
||||
|
||||
.preset {
|
||||
#filter-container .preset {
|
||||
display: flex;
|
||||
margin-bottom: 10px;
|
||||
cursor: pointer;
|
||||
|
@ -147,31 +147,32 @@ input {
|
|||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.preset label,
|
||||
.preset span {
|
||||
#filter-container .preset label,
|
||||
#filter-container .preset span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.preset label {
|
||||
#filter-container .preset label {
|
||||
flex: 1 0;
|
||||
cursor: pointer;
|
||||
color: var(--theme-body-color);
|
||||
}
|
||||
|
||||
.preset:hover {
|
||||
#filter-container .preset:hover {
|
||||
background: var(--theme-selection-background);
|
||||
}
|
||||
|
||||
.preset:hover label, .preset:hover span {
|
||||
#filter-container .preset:hover label,
|
||||
#filter-container .preset:hover span {
|
||||
color: var(--theme-selection-color);
|
||||
}
|
||||
|
||||
.preset .remove-button {
|
||||
#filter-container .preset .remove-button {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.preset span {
|
||||
#filter-container .preset span {
|
||||
flex: 2 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
@ -181,7 +182,7 @@ input {
|
|||
color: var(--theme-body-color-alt);
|
||||
}
|
||||
|
||||
.remove-button {
|
||||
#filter-container .remove-button {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: url(chrome://devtools/skin/images/close.svg);
|
||||
|
@ -191,7 +192,7 @@ input {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
#filter-container .hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
@ -207,7 +208,7 @@ input {
|
|||
line-height: 20px;
|
||||
}
|
||||
|
||||
.add,
|
||||
#filter-container .add,
|
||||
#toggle-presets {
|
||||
background-size: cover;
|
||||
border: none;
|
||||
|
@ -219,7 +220,7 @@ input {
|
|||
margin: 0 5px;
|
||||
}
|
||||
|
||||
.add {
|
||||
#filter-container .add {
|
||||
background: url(chrome://devtools/skin/images/add.svg);
|
||||
}
|
||||
|
||||
|
@ -227,8 +228,8 @@ input {
|
|||
background: url(chrome://devtools/skin/images/pseudo-class.svg);
|
||||
}
|
||||
|
||||
.add,
|
||||
.remove-button,
|
||||
#filter-container .add,
|
||||
#filter-container .remove-button,
|
||||
#toggle-presets {
|
||||
filter: var(--icon-filter);
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.devtools-throbber {
|
||||
.mdn-container .devtools-throbber {
|
||||
align-self: center;
|
||||
opacity: 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче