}
input[type=text]::-ms-clear {
display: none;
width : 0;
height: 0;
}
input[type=text]::-ms-reveal {
display: none;
width : 0;
height: 0;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
button.darkMode {
position:relative;
float: right;
background: #ececec;
display: inline-block;
max-width: 160px;
height: 34px;
margin-right: 40px;
padding: 0 15px;
background: rgb(244,244,244);
background: -moz-linear-gradient(top, rgba(244,244,244,1) 0%,
rgba(232,232,232,1) 100%);
background: -webkit-linear-gradient(top, rgba(244,244,244,1)
0%,rgba(232,232,232,1) 100%);
background: linear-gradient(to bottom, rgba(244,244,244,1)
0%,rgba(232,232,232,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr= '#f4f4f4',
endColorstr='#e8e8e8',GradientType=0 );
border-radius: 4px;
text-shadow: 0 1px 1px #fff;
border: 1px solid #c0c0c0;
text-align: center;
line-height: 2.4em;
color: #111;
text-decoration: none;
font-family: Arial,sans-serif;
font-size: 14px;
}
button.darkMode:hover {
background: green;
border: 1px solid green;
color: #fff;
text-shadow: none;
}
ul.searchResults {
float: left;
display: block;
width: 100%;
height: calc(100vh – 100px);
margin: 20px 0 0 0;
padding: 0;
list-style: none;
vertical-align: top;
}
ul.searchResults li {
display: inline-block;
width: calc(25% – 6px);
max-width: 180px;
min-height: fit-content;
margin: 0 0 5px 0;
background-color: #f2f2f2;
border-radius: 4px;
vertical-align: top;
}
ul.searchResults li b {
display: none;
}
ul.searchResults li img.previewImg {
display: block;
width: 100px;
height: 100px;
margin: 20px;
padding: 20px;
border: 1px solid #ddd;
background-color: #fff;
}
ul.searchResults li div.details {
display: block;
height: 32px;
margin: 0 20px 20px 20px;
}
ul.searchResults li div.details a.btn {
display: inline-block;
width: calc(50% – 5px);
min-height: 24px;
margin: 0;
background: #ccc;
border-radius: 4px;
border: none;
font-family: Arial,sans-serif;
font-size: 14px;
line-height: 2em;
text-align: center;
color: #fff;
text-decoration: none;
}
ul.searchResults li div.details a.btn:first-child {
float: left;
background: #1eb05c;
}
ul.searchResults li div.details a.btn:first-child:hover,
ul.searchResults li div.details a.btn:first-child:target {
background: #27ae60;
}
ul.searchResults li div.details a.btn:last-child {
float: right;
background: #3498db;
}
ul.searchResults li div.details a.btn:last-child:hover,
ul.searchResults li div.details a.btn:last-child:target {
background: #2980b9;
}
body.darkUI {
background: #333;
}
ul.searchResults.darkUI li {
background-color: rgba(255,255,255,0.1);
}
ul.searchResults.darkUI li img.previewImg {
background-color: transparent;
border: 1px solid rgba(255,255,255,0.15);
}
Рассмотрим детально типовую конструкцию элемента списка UL > LI.
Abstract flower and bud

…
Пояснения1. Ключевые фразы для сравнения с запросом пользователя скрыты в теге
– это означает, что наличие скрытого контента стилями CSS не противоречит исполнению скрипта JavaScript для обработки поисковых запросов.Речь идет о записи стиля для тега
в коде CSS:
ul.searchResults li b {
display: none;
}
Практически он скрыт в визуализации страницы стилем, чтобы не портить вывод данных сервисной информацией, необходимой для осуществления поиска по списку UL > LI.
2. Отдельно следует уделить внимание конструкции ссылок (в форме кнопок для скачивания графических файлов):