anasazhar

styles.css

Sep 7th, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;700&display=swap');
  2.  
  3. body{
  4. max-width: 1200px;
  5. margin: 20px auto;
  6. padding: 0 20px;
  7. font-family: 'Noto Serif', serif;
  8. max-width: 1200px;
  9. }
  10. p, h1, h2, h3, a, ul{
  11. margin: 0;
  12. padding: 0;
  13. text-decoration: none;
  14. color: #222;
  15. }
  16.  
  17. /* nav & footer styles */
  18. nav{
  19. display: flex;
  20. justify-content: space-between;
  21. margin-bottom: 60px;
  22. padding-bottom: 10px;
  23. border-bottom: 1px solid #ddd;
  24. text-transform: uppercase;
  25. }
  26. nav ul{
  27. display: flex;
  28. justify-content: space-between;
  29. align-items: flex-end;
  30. }
  31. nav li{
  32. list-style-type: none;
  33. margin-left: 20px;
  34. }
  35. nav h1{
  36. font-size: 3em;
  37. }
  38. nav p, nav a{
  39. color: #777;
  40. font-weight: 300;
  41. }
  42. footer{
  43. color: #777;
  44. text-align: center;
  45. margin: 80px auto 20px;
  46. }
  47. h2{
  48. margin-bottom: 40px;
  49. }
  50. h3{
  51. text-transform: capitalize;
  52. margin-bottom: 8px;
  53. }
  54. .content{
  55. margin-left: 20px;
  56. }
  57.  
  58. /* index styles */
  59. .blogs a{
  60. display: block;
  61. margin: 40px 0;
  62. padding-left: 30px;
  63. border-left: 6px solid crimson;
  64. }
  65. .blogs a:hover h3{
  66. color: crimson;
  67. }
  68.  
  69. /* details styles */
  70. .details{
  71. position: relative;
  72. }
  73. .delete{
  74. position: absolute;
  75. top: 0;
  76. right: 0;
  77. border-radius: 50%;
  78. padding: 8px;
  79. }
  80. .delete:hover{
  81. cursor: pointer;
  82. box-shadow: 1px 2px 3px rgba(0,0,0,0.2);
  83. }
  84.  
  85. /* create styles */
  86. .create-blog form{
  87. max-width: 400px;
  88. margin: 0 auto;
  89. }
  90. .create-blog input,
  91. .create-blog textarea{
  92. display: block;
  93. width: 100%;
  94. margin: 10px 0;
  95. padding: 8px;
  96. }
  97. .create-blog label{
  98. display: block;
  99. margin-top: 24px;
  100. }
  101. textarea{
  102. height: 120px;
  103. }
  104. .create-blog button{
  105. margin-top: 20px;
  106. background: crimson;
  107. color: white;
  108. padding: 6px;
  109. border: 0;
  110. font-size: 1.2em;
  111. cursor: pointer;
  112. }
Add Comment
Please, Sign In to add comment