|
| 1 | +/* |
| 2 | +=============== |
| 3 | +Fonts |
| 4 | +=============== |
| 5 | +*/ |
| 6 | + |
| 7 | +/* |
| 8 | +=============== |
| 9 | +Variables |
| 10 | +=============== |
| 11 | +*/ |
| 12 | + |
| 13 | +:root { |
| 14 | + /* dark shades of primary color*/ |
| 15 | + --clr-primary-1: hsl(205, 86%, 17%); |
| 16 | + --clr-primary-2: hsl(205, 77%, 27%); |
| 17 | + --clr-primary-3: hsl(205, 72%, 37%); |
| 18 | + --clr-primary-4: hsl(205, 63%, 48%); |
| 19 | + /* primary/main color */ |
| 20 | + --clr-primary-5: #49a6e9; |
| 21 | + /* lighter shades of primary color */ |
| 22 | + --clr-primary-6: hsl(205, 89%, 70%); |
| 23 | + --clr-primary-7: hsl(205, 90%, 76%); |
| 24 | + --clr-primary-8: hsl(205, 86%, 81%); |
| 25 | + --clr-primary-9: hsl(205, 90%, 88%); |
| 26 | + --clr-primary-10: hsl(205, 100%, 96%); |
| 27 | + /* darkest grey - used for headings */ |
| 28 | + --clr-grey-1: hsl(209, 61%, 16%); |
| 29 | + --clr-grey-2: hsl(211, 39%, 23%); |
| 30 | + --clr-grey-3: hsl(209, 34%, 30%); |
| 31 | + --clr-grey-4: hsl(209, 28%, 39%); |
| 32 | + /* grey used for paragraphs */ |
| 33 | + --clr-grey-5: hsl(210, 22%, 49%); |
| 34 | + --clr-grey-6: hsl(209, 23%, 60%); |
| 35 | + --clr-grey-7: hsl(211, 27%, 70%); |
| 36 | + --clr-grey-8: hsl(210, 31%, 80%); |
| 37 | + --clr-grey-9: hsl(212, 33%, 89%); |
| 38 | + --clr-grey-10: hsl(210, 36%, 96%); |
| 39 | + --clr-white: #fff; |
| 40 | + --clr-red-dark: hsl(360, 67%, 44%); |
| 41 | + --clr-red-light: hsl(360, 71%, 66%); |
| 42 | + --clr-green-dark: hsl(125, 67%, 44%); |
| 43 | + --clr-green-light: hsl(125, 71%, 66%); |
| 44 | + --clr-gold: #c59d5f; |
| 45 | + --clr-black: #222; |
| 46 | + --ff-primary: "Roboto", sans-serif; |
| 47 | + --ff-secondary: "Open Sans", sans-serif; |
| 48 | + --transition: all 0.3s linear; |
| 49 | + --spacing: 0.25rem; |
| 50 | + --radius: 0.5rem; |
| 51 | + --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); |
| 52 | + --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); |
| 53 | + --max-width: 1170px; |
| 54 | + --fixed-width: 620px; |
| 55 | +} |
| 56 | +/* |
| 57 | +=============== |
| 58 | +Global Styles |
| 59 | +=============== |
| 60 | +*/ |
| 61 | + |
| 62 | +body { |
| 63 | + margin: 0; |
| 64 | + padding: 0; |
| 65 | + font-family: sans-serif; |
| 66 | + background: #ebebeb; |
| 67 | +} |
| 68 | + |
| 69 | +p { |
| 70 | + margin-bottom: 1.25rem; |
| 71 | + color: grey; |
| 72 | +} |
| 73 | + |
| 74 | +.section-center { |
| 75 | + width: 90vw; |
| 76 | + margin: 50px auto 0; |
| 77 | + max-width: 620px; |
| 78 | +} |
| 79 | +.question { |
| 80 | + background: white; |
| 81 | + border-radius: 0.5rem; |
| 82 | + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); |
| 83 | + padding: 1.5rem 1.5rem 0 1.5rem; |
| 84 | + margin-bottom: 2rem; |
| 85 | +} |
| 86 | +.question-title { |
| 87 | + display: flex; |
| 88 | + justify-content: space-between; |
| 89 | + align-items: center; |
| 90 | + text-transform: capitalize; |
| 91 | + padding-bottom: 1rem; |
| 92 | +} |
| 93 | + |
| 94 | +.question-title p { |
| 95 | + letter-spacing: 0.1rem; |
| 96 | + color: yellowgreen; |
| 97 | + font-weight: bolder; |
| 98 | +} |
| 99 | +.question-btn { |
| 100 | + font-size: 1.5rem; |
| 101 | + background: transparent; |
| 102 | + border-color: transparent; |
| 103 | + cursor: pointer; |
| 104 | + color: yellowgreen; |
| 105 | +} |
| 106 | + |
| 107 | +.question-text { |
| 108 | + padding: 1rem 0 1.5rem 0; |
| 109 | + border-top: 1px solid grey; |
| 110 | +} |
| 111 | + |
| 112 | +/* hide text */ |
| 113 | +.question-text { |
| 114 | + display: none; |
| 115 | +} |
| 116 | +.show-text .question-text { |
| 117 | + display: block; |
| 118 | +} |
| 119 | +.minus-icon { |
| 120 | + display: none; |
| 121 | +} |
| 122 | +.show-text .minus-icon { |
| 123 | + display: inline; |
| 124 | +} |
| 125 | +.show-text .plus-icon { |
| 126 | + display: none; |
| 127 | +} |
0 commit comments