fune/browser/themes/shared/urlbarSearchSuggestionsNotification.inc.css
Marco Bonardo 844afcbfa5 Bug 1367790 - Remove code for the opt-in Search Suggestions notification. r=Paolo
MozReview-Commit-ID: 4uz6xZ8jQWr

--HG--
extra : rebase_source : d016277788581f88b0099d31824991bd0c506583
2017-10-12 15:04:23 +02:00

133 lines
4.4 KiB
CSS

#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] {
border-bottom: 1px solid var(--panel-separator-color);
padding-inline-start: 0;
padding-inline-end: 6px;
min-height: 3em;
}
/* Limit the size of the hidden description, since a deck takes the size of the biggest child */
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][selectedIndex="0"] #search-suggestions-hint,
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][selectedIndex="1"] #search-suggestions-question {
max-height: 5em;
}
/* Opt-out hint */
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] > hbox[anonid="search-suggestions-opt-out"] {
font: message-box;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] hbox[anonid="search-suggestions-hint-box"] {
flex-basis: 100%;
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] hbox[anonid="search-suggestions-hint-box"] > description {
margin: auto;
padding: 4px 8px;
background-color: #ffeebe;
border: 1px solid #ffdf81;
border-radius: 4px;
color: #7d3500;
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] hbox[anonid="search-suggestions-hint-box"] > description > html|span {
unicode-bidi: embed;
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] hbox[anonid="search-suggestions-hint-box"] > description > html|span.prefix {
font-weight: bold;
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][animate] > hbox[anonid="search-suggestions-opt-out"] > .ac-site-icon {
transform: scale(0);
animation-name: search-suggestions-hint-grow;
animation-duration: 500ms;
animation-delay: 500ms;
animation-iteration-count: 1;
animation-timing-function: ease-in-out;
animation-fill-mode: forwards;
min-width: 16px;
}
@keyframes search-suggestions-hint-grow {
0% { transform: scale(0); }
40% { transform: scale(1.5); }
60% { transform: scale(1); }
80% { transform: scale(1.25); }
100% { transform: scale(1); }
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][animate] hbox[anonid="search-suggestions-hint-typing"] > .ac-title-text {
text-overflow: clip;
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][animate] hbox[anonid="search-suggestions-hint-typing"] {
overflow: hidden;
max-width: 12ch;
width: 0;
animation-name: search-suggestions-hint-typing;
animation-duration: 500ms;
animation-delay: 750ms;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}
@media all and (max-width: 800px) {
/* Hide the typing animation block */
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"] hbox[anonid="search-suggestions-hint-typing"] {
display: none;
}
}
@keyframes search-suggestions-hint-typing {
from { width: 0; }
to { width: 12ch; }
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][animate] hbox[anonid="search-suggestions-hint-box"] {
opacity: 0;
animation-duration: 250ms;
animation-delay: 1500ms;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}
/* Margin-inline-start can't be animated yet */
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][animate] hbox[anonid="search-suggestions-hint-box"]:-moz-locale-dir(ltr) {
margin-left: 160px;
animation-name: search-suggestions-hint-buildin-ltr;
}
@keyframes search-suggestions-hint-buildin-ltr {
from { margin-left: 160px; opacity: 0; }
to { margin-left: 0; opacity: 1; }
}
#PopupAutoCompleteRichResult > deck[anonid="search-suggestions-notification"][animate] hbox[anonid="search-suggestions-hint-box"]:-moz-locale-dir(rtl) {
/* Should be margin-inline-start but that can't be animated yet */
margin-right: 160px;
animation-name: search-suggestions-hint-buildin-rtl;
}
@keyframes search-suggestions-hint-buildin-rtl {
from { margin-right: 160px; opacity: 0; }
to { margin-right: 0; opacity: 1; }
}
#search-suggestions-change-settings {
opacity: 0;
animation-name: search-suggestions-hint-fadein;
animation-duration: 500ms;
animation-delay: 1800ms;
animation-iteration-count: 1;
animation-fill-mode: forwards;
}
@keyframes search-suggestions-hint-fadein {
from { opacity: 0 }
to { opacity: 1 }
}