Serge Bazanski | ed27a8b | 2021-05-12 22:14:02 +0200 | [diff] [blame^] | 1 | //$color1: rgba(31, 42, 38, 1); |
| 2 | $color1: rgba(0, 0, 0, 1); |
| 3 | $color2: rgba(223, 219, 244, 1); |
| 4 | $color3: rgba(232, 227, 33, 1); |
| 5 | $color4: rgba(61, 140, 208, 1); |
| 6 | $color5: rgba(173, 35, 101, 1); |
| 7 | |
| 8 | $break-width: 600px; |
| 9 | $mobile: "screen and (max-width: #{$break-width})"; |
| 10 | $desktop: "screen and (min-width: #{$break-width})"; |
| 11 | |
| 12 | .hero { |
| 13 | //height: 115vh; |
| 14 | color: $color2; |
| 15 | background-color: $color1; |
| 16 | text-align: center; |
| 17 | @media #{$desktop} { padding: 5em; } |
| 18 | @media #{$mobile} { padding: 1em; } |
| 19 | } |
| 20 | |
| 21 | * { |
| 22 | box-sizing: border-box; |
| 23 | // TODO: find what's causing weird top belt |
| 24 | margin: 0; |
| 25 | padding: 0; |
| 26 | } |
| 27 | |
| 28 | body { |
| 29 | width: 100%; |
| 30 | height: 100%; |
| 31 | margin: 0; |
| 32 | background-color: $color1; |
| 33 | } |
| 34 | |
| 35 | main { |
| 36 | @media #{$desktop} { width: 60%; } |
| 37 | @media #{$mobile} { width: 90%; } |
| 38 | margin: 0 auto; |
| 39 | } |
| 40 | |
| 41 | // TODO: Maybe some fun with how text is laid |
| 42 | |
| 43 | section.starter { |
| 44 | border: none !important; |
| 45 | @media #{$desktop} { padding: 1em; } |
| 46 | @media #{$mobile} { padding: 0em; } |
| 47 | } |
| 48 | |
| 49 | section.starter img { |
| 50 | width: 100% |
| 51 | } |
| 52 | |
| 53 | section { |
| 54 | color: $color2; |
| 55 | //background-color: transparent; |
| 56 | // TODO: have some fun with transparency :D |
| 57 | background-color: $color1; |
| 58 | padding-bottom: 5em; |
| 59 | word-wrap: break-word; |
| 60 | |
| 61 | p { |
| 62 | margin: 1em; |
| 63 | } |
| 64 | |
| 65 | h2 { |
| 66 | display: inline-block; |
| 67 | margin: 1em 1em 1em 0em; |
| 68 | padding: .5em; |
| 69 | } |
| 70 | |
| 71 | @media #{$mobile} { |
| 72 | margin-bottom: 1em; |
| 73 | } |
| 74 | |
| 75 | @media #{$desktop} { |
| 76 | padding: 3em; |
| 77 | |
| 78 | // TODO: generate this shit |
| 79 | &:nth-child(2) { |
| 80 | margin: 0em 1em 0em -2em; |
| 81 | } |
| 82 | |
| 83 | &:nth-child(3) { |
| 84 | margin: -3em -1em 3em 1em; |
| 85 | } |
| 86 | |
| 87 | &:nth-child(4) { |
| 88 | margin: -6em -3em 6em 4em; |
| 89 | } |
| 90 | |
| 91 | &:nth-child(5) { |
| 92 | margin: -9em -5em 9em 7em; |
| 93 | } |
| 94 | |
| 95 | &:nth-child(6) { |
| 96 | margin: -12em -7em 12em 10em; |
| 97 | } |
| 98 | |
| 99 | &:nth-child(7) { |
| 100 | margin: -15em -9em 15em 13em; |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | section:nth-child(even) { |
| 106 | h2 { |
| 107 | background-color: $color5; |
| 108 | } |
| 109 | |
| 110 | |
| 111 | a { |
| 112 | color: $color5; |
| 113 | |
| 114 | &:hover { |
| 115 | color: $color4; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | border: 8px solid $color5; |
| 120 | } |
| 121 | |
| 122 | section:nth-child(odd) { |
| 123 | h2 { |
| 124 | background-color: $color4; |
| 125 | } |
| 126 | |
| 127 | a { |
| 128 | color: $color4; |
| 129 | |
| 130 | &:hover { |
| 131 | color: $color5; |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | border: 8px solid $color4; |
| 136 | } |
| 137 | |
| 138 | // testing area |
| 139 | .acc0 { |
| 140 | color: $color4; |
| 141 | } |
| 142 | |
| 143 | .acc1 { |
| 144 | color: $color3; |
| 145 | } |
| 146 | |
| 147 | .acc2 { |
| 148 | color: $color5; |
| 149 | } |
| 150 | |
| 151 | .hotel-pic |
| 152 | { |
| 153 | width: 50%; |
| 154 | display: block; |
| 155 | margin: .5em auto; |
| 156 | @media #{$desktop} { width: 50%; } |
| 157 | @media #{$mobile} { width: 100%; } |
| 158 | } |