style.css 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. h1, h2, h3, h4, h5, h6, p {
  2. margin: 0;
  3. }
  4. a {
  5. text-decoration: none;
  6. }
  7. button, input {
  8. box-shadow: none;
  9. outline: none;
  10. border: 1px solid #aaa;
  11. border-radius: 4px;
  12. color: #555;
  13. background-color: white;
  14. }
  15. button {
  16. cursor: pointer;
  17. padding: 1px 4px;
  18. }
  19. input {
  20. padding: 4px 8px;
  21. }
  22. button:hover, button:active {
  23. background-color: #fafafa;
  24. }
  25. * {
  26. font-family: Sans-Serif;
  27. font-weight: 400;
  28. }
  29. body {
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. flex-direction: column;
  34. margin: 0;
  35. }
  36. header {
  37. background: linear-gradient(90deg, green, lightblue, blue);
  38. width:100%;
  39. color: white;
  40. text-align: center;
  41. height: 100px;
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. flex-direction: column;
  46. }
  47. main {
  48. display: flex;
  49. padding: 16px;
  50. row-gap: 16px;
  51. column-gap: 16px;
  52. flex-direction: column;
  53. min-width: 300px;
  54. max-width: 500px;
  55. width: 50%;
  56. }
  57. main .block {
  58. background-color: #fafafa;
  59. color: #555;
  60. padding: 12px;
  61. border: 1px solid #aaa;
  62. display: flex;
  63. flex-direction: column;
  64. row-gap: 12px;
  65. }
  66. .block h2 {
  67. text-align: center;
  68. }
  69. .contact-section, .links-section, .portfolio-section {
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. flex-direction: column;
  74. row-gap: 8px;
  75. }
  76. .portfolio-section {
  77. row-gap: 4px;
  78. }