sábado, 27 de agosto de 2011

Caixa de Busca Estilo Apple com Efeito de Mudar de Cor

Demonstração


1º - Acesse o painel do seu blog e clique na guia Modelo.
2º - Em seguida clique em Editar Modelo.
3º - Depois Segure as teclas CTRL+F e procure por:

]]></b:skin>

4º - E ACIMA dele cole o seguinte código:

#search {
}
#search input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsfbV41lahwjWBx6uaAsqmojWGDDgSgtFDCTgcsqaJbKbhBQm6igmxuufGpdhH04kOsxu22EMUAY0cYsc9TR9UU045p86GmJIYGGPuKUIfxhtgklsXfzzmUaGp2qmKEYBh-OLS50VxXxs/s1600/search-white.png) no-repeat 10px 6px #444;
border: 0 none;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #d7d7d7;
height: 20px;
width: 238px;
padding: 6px 15px 6px 35px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}
#search input[type="text"]:focus {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGKujVAm4GPY0sCTTdzndr1KlsjPfLKV5mnhexmlBQ1jgI5WFZAL5KOCA0x2OHzE17r7rZI0xx7-bQggm0it60VBzwpKues9dkZkRIWfdxcXz9i6RI-phQoqo4QnMlOdCDhyphenhyphensPcy9cndU/s1600/search-dark.png) no-repeat 10px 6px #fcfcfc;
color: #6a6f75;
width: 238px;
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(0, 0, 0, 0.9) inset;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

5º - Em Seguida clique em Salvar Modelo.
6º - Agora clique na Guia Layout.
7º - Depois clique em Adicionar Gadget e selecione o tipo "HTML/Javascript".
8º - Em conteúdo cole o seguinte código:



<form method="get" action="/search" id="search">
<input name="q" type="text" size="40" placeholder="Digite algo e tecle enter" />
</form>

Fonte: http://www.blogandocomfacilidade.com/2011/07/caixa-de-busca-estilo-apple-com-efeito.html

0 comentários:

Postar um comentário