зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388997 - Add hover effects for menu list to match Photon visual spec. r=jaws
MozReview-Commit-ID: 5EmyvOM09fV --HG-- extra : rebase_source : c635adfacbf2dc8432e5289e7a95dc28c520c906
This commit is contained in:
Родитель
1e70c180b1
Коммит
c5b36455dc
|
@ -631,25 +631,25 @@ separator.thin:not([orient="vertical"]) {
|
|||
background-image: url("chrome://global/skin/icons/help.svg");
|
||||
-moz-context-properties: fill, fill-opacity;
|
||||
fill: currentColor;
|
||||
fill-opacity: 0.8;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
height: 16px;
|
||||
background-position: 8px;
|
||||
line-height: 36px;
|
||||
height: 36px;
|
||||
width: 168px;
|
||||
background-position: left 10px top 10px;
|
||||
background-size: 16px;
|
||||
padding-inline-start: 38px;
|
||||
margin-inline-start: 44px;
|
||||
margin-inline-start: 34px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.help-button:-moz-locale-dir(rtl) {
|
||||
background-position: right 8px top 0;
|
||||
background-position: right 10px top 10px;
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.help-button:hover {
|
||||
fill: currentColor;
|
||||
fill-opacity: 0.9;
|
||||
}
|
||||
|
||||
.help-button:link,
|
||||
|
|
|
@ -152,10 +152,6 @@ button.warning {
|
|||
padding-top: 0;
|
||||
}
|
||||
|
||||
.category[selected="true"]:hover {
|
||||
color: #0060df;
|
||||
}
|
||||
|
||||
.category[disabled] {
|
||||
overflow: hidden;
|
||||
height: 0;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
--in-content-category-border-focus: 1px dotted #0a84ff;
|
||||
--in-content-category-text: #0c0c0d;
|
||||
--in-content-category-text-selected: #0a84ff;
|
||||
--in-content-category-hover: rgba(12,12,13,0.1);
|
||||
--in-content-tab-color: #424f5a;
|
||||
--in-content-link-color: #0a84ff;
|
||||
--in-content-link-color-hover: #0060df;
|
||||
|
@ -339,6 +340,7 @@ html|*.help-button:hover {
|
|||
fill: white;
|
||||
stroke: #808080;
|
||||
stroke-opacity: 1;
|
||||
background-color: var(--in-content-category-hover);
|
||||
}
|
||||
|
||||
html|*.help-button:hover:active {
|
||||
|
@ -640,18 +642,23 @@ xul|*.radio-label-box {
|
|||
padding-top: 70px;
|
||||
margin: 0;
|
||||
border-width: 0;
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
*|*.category {
|
||||
width: 240px;
|
||||
min-height: 48px;
|
||||
-moz-appearance: none;
|
||||
color: var(--in-content-category-text);
|
||||
padding-inline-start: 44px;
|
||||
margin-inline-start: 34px;
|
||||
padding-inline-end: 10px;
|
||||
padding-inline-start: 10px;
|
||||
transition: background-color 150ms;
|
||||
}
|
||||
|
||||
*|*.category:hover {
|
||||
background-color: var(--in-content-category-hover);
|
||||
}
|
||||
|
||||
*|*.category[selected],
|
||||
*|*.category.selected {
|
||||
color: var(--in-content-category-text-selected);
|
||||
|
@ -694,14 +701,16 @@ xul|*.radio-label-box {
|
|||
}
|
||||
|
||||
.category {
|
||||
padding-inline-start: 47px; /* make category icons align center */
|
||||
padding-inline-start: 13px; /* make category icons align center */
|
||||
margin-inline-end: 40px;
|
||||
}
|
||||
|
||||
.help-button {
|
||||
font-size: 0 !important;
|
||||
margin-inline-start: 51px !important; /* make the question mark icon align center */
|
||||
background-position: 0px !important;
|
||||
margin-inline-start: 41px !important; /* make the question mark icon align center */
|
||||
background-position: 10px !important;
|
||||
padding-inline-start: 0px !important;
|
||||
width: 36px !important;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
|
|
Загрузка…
Ссылка в новой задаче