sankethbk7777

index.css

Jun 21st, 2021
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.31 KB | None | 0 0
  1. /*
  2. ===============
  3. Variables
  4. ===============
  5. */
  6.  
  7. :root {
  8.   /* dark shades of primary color*/
  9.   --clr-primary-1: hsl(162, 61%, 89%);
  10.   --clr-primary-2: hsl(162, 60%, 78%);
  11.   --clr-primary-3: hsl(162, 61%, 67%);
  12.   --clr-primary-4: hsl(162, 61%, 57%);
  13.   /* primary/main color */
  14.   --clr-primary-5: hsl(162, 73%, 46%);
  15.   /* lighter shades of primary color */
  16.   --clr-primary-6: #1aa179;
  17.   --clr-primary-7: #13795b;
  18.   --clr-primary-8: #0d503c;
  19.   --clr-primary-9: #06281e;
  20.   /* darkest grey - used for headings */
  21.   --clr-grey-1: hsl(212, 33%, 89%);
  22.   --clr-grey-2: hsl(210, 31%, 80%);
  23.   --clr-grey-3: hsl(211, 27%, 70%);
  24.   --clr-grey-4: hsl(209, 23%, 60%);
  25.   /* grey used for paragraphs */
  26.   --clr-grey-5: hsl(210, 22%, 49%);
  27.   --clr-grey-6: hsl(209, 28%, 39%);
  28.   --clr-grey-7: hsl(209, 34%, 30%);
  29.   --clr-grey-8: hsl(211, 39%, 23%);
  30.   --clr-grey-9: hsl(209, 61%, 16%);
  31.   --clr-white: #fff;
  32.   --clr-red-dark: hsl(360, 67%, 44%);
  33.   --clr-red-light: hsl(360, 71%, 66%);
  34.   --clr-green-dark: hsl(125, 67%, 44%);
  35.   --clr-green-light: hsl(125, 71%, 66%);
  36.   --clr-black: #222;
  37.   --transition: all 0.3s linear;
  38.   --spacing: 0.1rem;
  39.   --radius: 0.25rem;
  40.   --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  41.   --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  42.   --max-width: 1170px;
  43.   --fixed-width: 450px;
  44.   --clr-pink: #f28ab2;
  45. }
  46. /*
  47. ===============
  48. Global Styles
  49. ===============
  50. */
  51.  
  52. *,
  53. ::after,
  54. ::before {
  55.   margin: 0;
  56.   padding: 0;
  57.   box-sizing: border-box;
  58. }
  59. body {
  60.   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
  61.     Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  62.   color: var(--clr-grey-9);
  63.   line-height: 1.5;
  64.   font-size: 0.875rem;
  65. }
  66. ul {
  67.   list-style-type: none;
  68. }
  69. a {
  70.   text-decoration: none;
  71. }
  72.  
  73. h1,
  74. h2,
  75. h3,
  76. h4 {
  77.   letter-spacing: var(--spacing);
  78.   line-height: 1.25;
  79. }
  80.  
  81. h1 {
  82.   font-size: 3rem;
  83. }
  84. h2 {
  85.   font-size: 2rem;
  86. }
  87. h3 {
  88.   font-size: 1.5rem;
  89. }
  90. h4 {
  91.   font-size: 1rem;
  92. }
  93.  
  94. @media screen and (min-width: 800px) {
  95.   h1 {
  96.     font-size: 4rem;
  97.   }
  98.   h2 {
  99.     font-size: 2.5rem;
  100.   }
  101.   h3 {
  102.     font-size: 1.75rem;
  103.   }
  104.   h4 {
  105.     font-size: 1.3rem;
  106.   }
  107.   body {
  108.     font-size: 1rem;
  109.   }
  110.   h1,
  111.   h2,
  112.   h3,
  113.   h4 {
  114.     line-height: 1;
  115.   }
  116. }
  117.  
  118. /* to style Link tags */
  119.  
  120. .link-text {
  121.   color: var(--clr-primary-7);
  122. }
  123.  
Advertisement
Add Comment
Please, Sign In to add comment