|
| 1 | +.panel { |
| 2 | + margin: 15px 0; |
| 3 | +} |
| 4 | + |
| 5 | +.panel .container { |
| 6 | + display: flex; |
| 7 | + flex-direction: column; |
| 8 | +} |
| 9 | + |
| 10 | +.panel-box-container { |
| 11 | + display: flex; |
| 12 | + flex-wrap: wrap; |
| 13 | + justify-content: center; |
| 14 | +} |
| 15 | + |
| 16 | +.panel-box-content { |
| 17 | + height: 140px; |
| 18 | + min-width: 275px; |
| 19 | + width: 335px; |
| 20 | + margin: 25px 15px 25px 15px; |
| 21 | + border-radius: 3px; |
| 22 | +} |
| 23 | + |
| 24 | +.panel-box-text > a { |
| 25 | + color: var(--colorPrimary); |
| 26 | +} |
| 27 | + |
| 28 | +.panel-box-text { |
| 29 | + margin: 15px; |
| 30 | + font-size: 14px; |
| 31 | + height: 4em; |
| 32 | + overflow: hidden; |
| 33 | + padding-top: 10px; |
| 34 | +} |
| 35 | + |
| 36 | +.panel-box-text:after { |
| 37 | + content: ""; |
| 38 | + text-align: right; |
| 39 | + position: absolute; |
| 40 | + bottom: 30px; |
| 41 | + right: 0; |
| 42 | + width: 70%; |
| 43 | + height: 1.2em; |
| 44 | +} |
| 45 | + |
| 46 | +.panel-box-action { |
| 47 | + text-align: center; |
| 48 | + font-weight: bold; |
| 49 | + padding-top: 1em; |
| 50 | +} |
| 51 | + |
| 52 | +.panel-box-content:hover > .panel-box-text, |
| 53 | +.panel-box-content:focus > .panel-box-text, |
| 54 | +.panel-box-content:active > .panel-box-text { |
| 55 | + color: var(--colorSecondaryDark); |
| 56 | +} |
| 57 | + |
| 58 | +@media only screen and (max-width: 1280px) { |
| 59 | + .panel .container { |
| 60 | + align-items: center; |
| 61 | + justify-content: center; |
| 62 | + } |
| 63 | + |
| 64 | + .panel-box-container { |
| 65 | + justify-content: center; |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +@media only screen and (max-width: 1090px) { |
| 70 | + .panel .container { |
| 71 | + margin: 0 6vw; |
| 72 | + } |
| 73 | +} |
| 74 | + |
| 75 | +@media only screen and (max-width: 425px) { |
| 76 | + .panel .container { |
| 77 | + align-items: center; |
| 78 | + justify-content: center; |
| 79 | + margin: 0 10%; |
| 80 | + } |
| 81 | +} |
| 82 | + |
| 83 | +.panel-underline { |
| 84 | + display: inline-block; |
| 85 | + vertical-align: middle; |
| 86 | + -webkit-transform: perspective(1px) translateZ(0); |
| 87 | + transform: perspective(1px) translateZ(0); |
| 88 | + /* Black, with 10% opacity */ |
| 89 | + box-shadow: 0px 8px 15px var(--colorShadow); |
| 90 | + position: relative; |
| 91 | + overflow: hidden; |
| 92 | +} |
| 93 | + |
| 94 | +.panel-underline:before { |
| 95 | + content: ""; |
| 96 | + position: absolute; |
| 97 | + z-index: -1; |
| 98 | + left: 0; |
| 99 | + right: 100%; |
| 100 | + bottom: 0; |
| 101 | + background: #013243; |
| 102 | + height: 4px; |
| 103 | + -webkit-transition-property: right; |
| 104 | + transition-property: right; |
| 105 | + -webkit-transition-duration: 0.3s; |
| 106 | + transition-duration: 0.3s; |
| 107 | + -webkit-transition-timing-function: ease-out; |
| 108 | + transition-timing-function: ease-out; |
| 109 | +} |
| 110 | + |
| 111 | +.panel-underline:hover:before, |
| 112 | +.panel-underline:focus:before, |
| 113 | +.panel-underline:active:before { |
| 114 | + right: 0; |
| 115 | +} |
| 116 | + |
| 117 | +.panel-button { |
| 118 | + border: 2px solid var(--colorPrimary); |
| 119 | + background-color: var(--colorLight); |
| 120 | + color: var(--colorPrimary); |
| 121 | + font-size: 16px; |
| 122 | + cursor: pointer; |
| 123 | + padding-bottom: calc(0.5em - 1px); |
| 124 | + padding-left: 1em; |
| 125 | + padding-right: 1em; |
| 126 | + padding-top: calc(0.5em - 1px); |
| 127 | +} |
| 128 | + |
| 129 | +.panel-box-action a:hover { |
| 130 | + outline: none; |
| 131 | + border-color: var(--colorPrimary); |
| 132 | + background-color: var(--colorPrimary); |
| 133 | + color: var(--colorSecondaryLight); |
| 134 | + cursor: pointer; |
| 135 | + padding-bottom: calc(0.5em - 1px); |
| 136 | + padding-left: 1em; |
| 137 | + padding-right: 1em; |
| 138 | + padding-top: calc(0.5em - 1px); |
| 139 | + text-decoration: none; |
| 140 | +} |
0 commit comments