card.css 3.73 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
/*** VARS ***/
/*** GENERAL STYLES ***/
* {
    box-sizing: border-box;
}

body {
    font-family: "Dosis", sans-serif;
    background: #c5cae9;
    /* text-align: center; */
}

.clear {
    clear: both;
}

/*** CARD STLES ***/
.cards-container {
    display: flex;
    width: 793px;
    max-width: 100%;
    margin: 3rem auto;
}

.card {
    padding: auto;
    align-content: center;
    margin: 3rem;
}

.card-one {
    position: relative;
    width: 320px;
    background: #fff;
    box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.4);
}

.card-two {
    position: relative;
    width: 320px;
    background: #00008B;
    box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.4);
}

.card-one header {
    position: relative;
    width: 100%;
    height: 120px;
    background-color: #00008B;
}

.card-two header {
    position: relative;
    width: 100%;
    height: 120px;
    background-color: #00008B;
}

.card-one header::before,

.card-two header::before,

.card-one header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: inherit;
}

.card-two header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: inherit;
}

.card-one header::before {
    transform: skewY(-8deg);
    transform-origin: 100% 100%;
}
.card-one header::after {
    transform: skewY(8deg);
    transform-origin: 0 100%;
}
.card-one header .avatar {
    position: absolute;
    left: 50%;
    top: 55px;
    margin-left: -50px;
    margin-top: 40px;
    z-index: 5;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #ccc;
    border: 3px solid #fff;
}
.card-one header .avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: auto;
}
.card-one h3 {
    position: relative;
    margin: 80px 0 30px;
    text-align: center;
}
.card-one h3::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    margin-left: -15px;
    width: 30px;
    height: 1px;
    background: #000;
}
.card-one .desc {
    padding: 0 1rem 2rem;
    text-align: center;
    line-height: 1.5;
    color: #777;
}
.card-one .contacts {
    width: 200px;
    max-width: 100%;
    margin: 0 auto 3rem;
}
.card-one .contacts a {
    display: block;
    width: 33.333333%;
    float: left;
    text-align: center;
    color: #c8c;
}
.card-one .contacts a:hover {
    color: #333;
}
.card-one .contacts a:hover .fa::before {
    color: #fff;
}
.card-one .contacts a:hover .fa::after {
    width: 100%;
    height: 100%;
}
.card-one .contacts a .fa {
    position: relative;
    width: 40px;
    height: 40px;
    line-height: 39px;
    overflow: hidden;
    text-align: center;
    font-size: 1.3em;
}
.card-one .contacts a .fa:before {
    position: relative;
    z-index: 1;
}
.card-one .contacts a .fa::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: #c8c;
    transition: width 0.3s, height 0.3s;
}
.card-one .contacts a:last-of-type .fa {
    line-height: 36px;
}
.card-one footer {
    position: relative;
    padding: 1rem;
    background-color: #00008B;
    text-align: center;
}
.card-one footer a {
    padding: 0 1rem;
    color: #e2e2e2;
    transition: color 0.4s;
}
.card-one footer a:hover {
    color: #c8c;
}
.card-one footer::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -15px;
    border: 15px solid transparent;
    border-bottom-color: #00008B;
}

/*** RESPONSIVE ***/
@media only screen and (max-width: 810px) {
    .card {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}