Advertisement
csfeijo

contato.css

Aug 13th, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.45 KB | None | 0 0
  1. iframe {
  2.   width: 350px;
  3.   height: 300px;
  4.   border: none;
  5.   border-radius: 8px;
  6. }
  7.  
  8. form {
  9.   /* border: 1px solid red; */
  10.   width: 400px;
  11.   margin-left: 5px;
  12. }
  13. /* para os elementos ficarem lado a lado, transformamos eles em elementos */
  14. /* em linha (para ficarem lado a lado) & em bloco (para suportarem dimensoes) */
  15. iframe,
  16. form {
  17.   display: inline-block;
  18.   /* alinha os elementos pelo TOPO */
  19.   vertical-align: top;
  20. }
  21. /* definicoes de padronização dos elementos do formulario */
  22. input,
  23. textarea,
  24. button {
  25.   border: 2px solid #bcb78f;
  26.   width: 100%;
  27.   padding: 5px;
  28.   font-family: Arial;
  29.   font-size: 14px;
  30.   margin-bottom: 10px;
  31.   border-radius: 4px;
  32. }
  33.  
  34. textarea {
  35.   height: 150px;
  36.   /* resize : redimensionamento */
  37.   resize: none;
  38. }
  39.  
  40. /* customizacao do botao usando atributos (coloca-se entre colchetes) */
  41. button[type=submit] {
  42.   width: auto;
  43.   padding: 8px;
  44.   background: #bcb78f;
  45.   display: block;
  46.   margin: 0 auto;
  47. }
  48. button[type=submit]:hover {
  49.   background: #ede1b7;
  50. }
  51.  
  52. /* removemos a prop. outline para evitar as bordas pretas nos elementos em foco */
  53. /* que ocorre no Google Chrome & Safari */
  54. input:focus,
  55. textarea:focus,
  56. button:focus {
  57.   outline: none;
  58. }
  59.  
  60. @media screen and (max-width: 600px) {
  61.   /* regras para o contato */
  62.   iframe {
  63.     width: 90%;
  64.     display: block;
  65.     margin: 0 auto 30px auto;
  66.   }
  67.   form {
  68.     width: 90%;
  69.     display: block;
  70.     margin: 0 auto;
  71.   }
  72. }
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement