|
| 1 | +/* A set of default style */ |
| 2 | +:root { |
| 3 | + /* Generic sizing for the page */ |
| 4 | + --wrapper-height: 80vh; |
| 5 | + --avatar-max-width: 15rem; |
| 6 | + |
| 7 | + /* Fonts for different elements */ |
| 8 | + --font-family: sans-serif; |
| 9 | + --font-family-header: sans-serif; |
| 10 | + --font-family-list: monospace; |
| 11 | + |
| 12 | + /* Colors you'll see cascade through the elements */ |
| 13 | + --color-bg: #ffe5f3; /* Used for the page body background */ |
| 14 | + --color-bg-alt: #ffffff; /* Used for social icons on hover */ |
| 15 | + --color-text-main: #000000; /* List text ann social icons on hover */ |
| 16 | + --color-primary: #80144e; /* Headers and borders */ |
| 17 | + --color-header: #f4bedb; |
| 18 | +} |
| 19 | + |
| 20 | +/* Basic page style resets */ |
| 21 | +* { |
| 22 | + box-sizing: border-box; |
| 23 | +} |
| 24 | +[hidden] { |
| 25 | + display: none !important; |
| 26 | +} |
| 27 | + |
| 28 | +/* Page structure */ |
| 29 | +body { |
| 30 | + font-family: var(--font-family); |
| 31 | + background-color: var(--color-bg); |
| 32 | +} |
| 33 | +.wrapper { |
| 34 | + min-height: var(--wrapper-height); |
| 35 | + place-items: center; |
| 36 | + margin: 1rem 1rem 0; |
| 37 | +} |
| 38 | +.content { |
| 39 | + display: flex; |
| 40 | + flex-direction: column; |
| 41 | + max-width: 550px; |
| 42 | + margin: 0 auto; |
| 43 | +} |
| 44 | + |
| 45 | +/* Typography */ |
| 46 | +p { |
| 47 | + margin: 0 0 1rem 0; |
| 48 | + line-height: 1.5 !important; |
| 49 | +} |
| 50 | +h1, |
| 51 | +h2, |
| 52 | +h3, |
| 53 | +h4, |
| 54 | +h5 { |
| 55 | + color: var(--color-text-main); |
| 56 | +} |
| 57 | +h1 { |
| 58 | + display: inline-flex; |
| 59 | + color: var(--color-primary); |
| 60 | + justify-content: center; |
| 61 | +} |
| 62 | +header { |
| 63 | + border-bottom: 1px dashed var(--color-gray-20); |
| 64 | + display: flex; |
| 65 | + gap: 1em; |
| 66 | + flex-wrap: wrap; |
| 67 | + justify-content: space-between; |
| 68 | + align-items: center; |
| 69 | + padding: 1rem 2rem; |
| 70 | + background-color: var(--color-header); |
| 71 | +} |
| 72 | + |
| 73 | +/* Link styles */ |
| 74 | +a:link, |
| 75 | +a:visited { |
| 76 | + text-decoration: none; |
| 77 | + border-bottom: 2px solid var(--color-primary); |
| 78 | + color: var(--color-primary); |
| 79 | + transition: background 0.2s linear; |
| 80 | + font-weight: 500; |
| 81 | +} |
| 82 | +a:hover, |
| 83 | +a:active, |
| 84 | +a:focus { |
| 85 | + background: var(--color-primary); |
| 86 | + color:var(--color-bg); |
| 87 | +} |
| 88 | +a.remix:hover { |
| 89 | + background: var(--color-primary); |
| 90 | + color:var(--color-bg-alt); |
| 91 | + border-color: var(--color-primary); |
| 92 | +} |
| 93 | +header { |
| 94 | + text-align: left; |
| 95 | + margin-bottom: 1rem; |
| 96 | +} |
| 97 | +.img-container { |
| 98 | + display: flex; |
| 99 | + justify-content: flex-end; |
| 100 | +} |
| 101 | +.illustration { |
| 102 | + max-height: var(--avatar-max-width); |
| 103 | + margin: 1rem 2rem 0 0; |
| 104 | + transform: rotate(10deg); |
| 105 | +} |
| 106 | +/* Navigation grid */ |
| 107 | +.footer { |
| 108 | + display: flex; |
| 109 | + justify-content: space-between; |
| 110 | + margin: 1rem auto 0; |
| 111 | + padding: 2rem 0 2rem 0; |
| 112 | + width: 100%; |
| 113 | + flex-wrap: wrap; |
| 114 | + background-color: var(--color-header); |
| 115 | + justify-content: flex-end; |
| 116 | +} |
| 117 | +a.remix { |
| 118 | + background-color: var(--color-bg-alt); |
| 119 | + border: 2px solid var(--color-text-main); |
| 120 | + border-radius: 5px; |
| 121 | + padding: 0.5rem; |
| 122 | + font-weight: bold; |
| 123 | + margin-right:1rem; |
| 124 | +} |
| 125 | +.instructions { |
| 126 | + padding:2rem; |
| 127 | +} |
0 commit comments