|
| 1 | + |
| 2 | +@import '../../stylesheets/constants.scss'; |
| 3 | + |
| 4 | +.card { |
| 5 | + display: flex; |
| 6 | + flex-direction: row; |
| 7 | + justify-content: space-around; |
| 8 | + margin: 20px; |
| 9 | + padding: 0; |
| 10 | + cursor: pointer; |
| 11 | + transition: all 0.5s; |
| 12 | + |
| 13 | + &:after, |
| 14 | + &:before { |
| 15 | + content: ' '; |
| 16 | + width: 10px; |
| 17 | + height: 10px; |
| 18 | + position: absolute; |
| 19 | + transition: all 0.5s; |
| 20 | + } |
| 21 | + |
| 22 | + &:hover { |
| 23 | + position: relative; |
| 24 | + border-top-right-radius: 0px; |
| 25 | + border-bottom-left-radius: 0px; |
| 26 | + |
| 27 | + &:before, |
| 28 | + &:after { |
| 29 | + width: 25%; |
| 30 | + height: 25%; |
| 31 | + } |
| 32 | + } |
| 33 | +} |
| 34 | + |
| 35 | +.card { |
| 36 | + &:hover .databaseIconHeader { |
| 37 | + visibility: hidden; |
| 38 | + // background-color: $gblue; |
| 39 | + // opacity: 0.7; |
| 40 | + // box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4); |
| 41 | + } |
| 42 | + |
| 43 | + &:hover p { |
| 44 | + color: $background; |
| 45 | + font-weight: 400; |
| 46 | + } |
| 47 | + |
| 48 | + &:hover .cardFooter { |
| 49 | + color: $background; |
| 50 | + } |
| 51 | + |
| 52 | + &:hover .cardLine { |
| 53 | + background-color: $background; |
| 54 | + } |
| 55 | + |
| 56 | + &:hover #cardFooterText { |
| 57 | + color: $background; |
| 58 | + } |
| 59 | + |
| 60 | + &:hover .cardFooterIcon { |
| 61 | + color: $background; |
| 62 | + } |
| 63 | + |
| 64 | + &:hover #databaseName { |
| 65 | + color: $background; |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | + |
| 70 | +#card-MongoDB { |
| 71 | + &:hover .databaseIconHeader { |
| 72 | + visibility: hidden; |
| 73 | + // background-color: $gblue; |
| 74 | + // opacity: 0.7; |
| 75 | + // box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4); |
| 76 | + } |
| 77 | + |
| 78 | + .databaseIconContainer { |
| 79 | + display: inline-block; |
| 80 | + overflow: visible; |
| 81 | + } |
| 82 | + |
| 83 | + .databaseIconHeader { |
| 84 | + position: absolute; |
| 85 | + background-color: $ggreen; |
| 86 | + display: flex; |
| 87 | + justify-content: center; |
| 88 | + align-items: center; |
| 89 | + width: 90px; |
| 90 | + height: 90px; |
| 91 | + padding: 15px; |
| 92 | + float: left; |
| 93 | + top: -20px; |
| 94 | + left: 180px; |
| 95 | + border-radius: 3px; |
| 96 | + box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(0, 255, 42, 0.4); |
| 97 | + background-image: url('../../assets/mongo-icon-white.png'); |
| 98 | + background-position: center; |
| 99 | + background-size: 70%; |
| 100 | + background-repeat: no-repeat; |
| 101 | + |
| 102 | + .databaseIcon { |
| 103 | + width: 55px; |
| 104 | + height: 55px; |
| 105 | + visibility: hidden; |
| 106 | + } |
| 107 | + } |
| 108 | +} |
| 109 | + |
| 110 | +#card-SQL { |
| 111 | + &:hover .databaseIconHeader { |
| 112 | + visibility: hidden; |
| 113 | + // background-color: $gblue; |
| 114 | + // opacity: 0.7; |
| 115 | + // box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4); |
| 116 | + } |
| 117 | + |
| 118 | + .databaseIconContainer { |
| 119 | + display: inline-block; |
| 120 | + overflow: visible; |
| 121 | + } |
| 122 | + |
| 123 | + .databaseIconHeader { |
| 124 | + position: absolute; |
| 125 | + background-color: $gyellow; |
| 126 | + display: flex; |
| 127 | + justify-content: center; |
| 128 | + align-items: center; |
| 129 | + width: 90px; |
| 130 | + height: 90px; |
| 131 | + padding: 15px; |
| 132 | + float: left; |
| 133 | + top: -20px; |
| 134 | + left: 180px; |
| 135 | + border-radius: 3px; |
| 136 | + box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 152, 0, 0.4); |
| 137 | + background-image: url('../../assets/postgres-icon-white.png'); |
| 138 | + background-size: cover; |
| 139 | + |
| 140 | + .databaseIcon { |
| 141 | + visibility: hidden; |
| 142 | + } |
| 143 | + } |
| 144 | +} |
| 145 | + |
| 146 | +#card-AWS { |
| 147 | + &:hover .databaseIconHeader { |
| 148 | + visibility: hidden; |
| 149 | + // background-color: $gblue; |
| 150 | + // opacity: 0.7; |
| 151 | + // box-shadow: 0 4px 20px 0 rgba(0, 0, 0,.14), 0 7px 10px -5px rgba(255, 255, 255, 0.4); |
| 152 | + } |
| 153 | + |
| 154 | + .databaseIconContainer { |
| 155 | + display: inline-block; |
| 156 | + overflow: visible; |
| 157 | + } |
| 158 | + |
| 159 | + .databaseIconHeader { |
| 160 | + position: absolute; |
| 161 | + background-color: $gorange; |
| 162 | + display: flex; |
| 163 | + justify-content: center; |
| 164 | + align-items: center; |
| 165 | + width: 90px; |
| 166 | + height: 90px; |
| 167 | + padding: 15px; |
| 168 | + float: left; |
| 169 | + top: -20px; |
| 170 | + left: 180px; |
| 171 | + border-radius: 3px; |
| 172 | + box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 152, 0, 0.4); |
| 173 | + background-image: url('../../assets/aws-icon-white.png'); |
| 174 | + background-size: cover; |
| 175 | + |
| 176 | + .databaseIcon { |
| 177 | + visibility: hidden; |
| 178 | + } |
| 179 | + } |
| 180 | +} |
| 181 | + |
| 182 | +.databaseIconContainer { |
| 183 | + display: inline-block; |
| 184 | + overflow: visible; |
| 185 | +} |
| 186 | + |
| 187 | +.databaseIconHeader { |
| 188 | + position: absolute; |
| 189 | + background-color: $ggreen; |
| 190 | + display: flex; |
| 191 | + justify-content: center; |
| 192 | + align-items: center; |
| 193 | + width: 90px; |
| 194 | + height: 90px; |
| 195 | + padding: 15px; |
| 196 | + float: left; |
| 197 | + top: -20px; |
| 198 | + left: 180px; |
| 199 | + border-radius: 3px; |
| 200 | + box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(0, 255, 42, 0.4); |
| 201 | + |
| 202 | + .databaseIcon { |
| 203 | + width: 55px; |
| 204 | + height: 55px; |
| 205 | + } |
| 206 | +} |
0 commit comments