Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. * {
  2. box-sizing: border-box;
  3. }
  4.  
  5. body {
  6. margin: 0;
  7. }
  8.  
  9. header {
  10. padding: 30px;
  11. text-align: center;
  12. background-color: steelblue;
  13. color: white;
  14. }
  15.  
  16. nav {
  17. display: flex;
  18. justify-content: space-between;
  19. align-items: center;
  20. background-color: #333;
  21. }
  22.  
  23. ul {
  24. list-style-type: none;
  25. padding: 0;
  26. }
  27.  
  28. li {
  29. display: inline;
  30. }
  31.  
  32. li a {
  33. text-decoration: none;
  34. color: white;
  35. padding: 15px 20px;
  36. text-align: center;
  37. }
  38.  
  39. li a:hover,
  40. li button:hover {
  41. background-color: #ddd;
  42. color: black;
  43. }
  44.  
  45. li button {
  46. background-color: gold;
  47. margin-right: 10px;
  48. padding: 5px;
  49. border-radius: 0 8px 8px 0;
  50. border: none;
  51. cursor: pointer;
  52. margin-left: -4px;
  53. }
  54.  
  55. li input {
  56. border-radius: 8px 0 0 8px;
  57. border: none;
  58. padding: 5px;
  59. width: 200px;
  60. }
  61.  
  62. ::selection {
  63. background-color: tomato;
  64. }
  65.  
  66. .right-nav {
  67. display: flex;
  68. }
  69.  
  70. .row {
  71. display: flex;
  72. flex-wrap: wrap;
  73. }
  74.  
  75. aside {
  76. flex: 1;
  77. background-color: #f1f1f1;
  78. padding: 20px;
  79. }
  80.  
  81. main {
  82. flex: 3;
  83. background-color: #ddd;
  84. padding: 20px;
  85. }
  86.  
  87. footer {
  88. text-align: center;
  89. padding: 20px;
  90. background-color: #333;
  91. color: white;
  92. }
  93.  
  94. .fakeimg {
  95. width: 100%;
  96. background-color: gray;
  97. padding: 10px;
  98. height: 60px;
  99. }
  100.  
  101. .fakeimg2 {
  102. width: 100%;
  103. background-color: gray;
  104. padding: 10px;
  105. height: 200px;
  106. }
  107.  
  108. @media screen and (max-width: 550px) {
  109. .row {
  110. flex-direction: column;
  111. }
  112. nav {
  113. align-items: center;
  114. flex-direction: column;
  115. }
  116. }
  117.  
  118. @media screen and (min-width: 1000px) {
  119. nav {
  120. background: rgb(165, 156, 156);
  121. }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement