#key_data { .key_data-body { padding: 0; } .x-container { height: 100%; display: flex; flex-wrap: wrap; background: $panel-body-background; .x-box { width: calc(50% - 9px); background: #fff; cursor: pointer; transition: all 0.3s ease; outline: none !important; background: transparent; // &:hover { // box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); // transform: translate3d(0, -2px, 0); // } &:nth-child(1) { margin: 0 8px 8px 0; &:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transform: translate3d(2px, 2px, 0); } } &:nth-child(2) { margin: 0 0 8px 8px; &:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transform: translate3d(-2px, 2px, 0); } } &:nth-child(3) { margin: 8px 8px 0 0; &:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transform: translate3d(2px, -2px, 0); } } &:nth-child(4) { margin: 8px 0 0 8px; &:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transform: translate3d(-2px, -2px, 0); } } .x-box-content { display: flex; flex-direction: column; height: 100%; .x-title { flex: 1; height: 30px; line-height: 30px; font-size: 14px; padding: 0 20px; color: #fff; border-radius: 4px 4px 0 0; } .x-contain { background: #fff; border-style: solid; border-width: 0 1px 1px 1px; border-radius: 0 0 4px 4px; height: 100%; .x-icon { background-repeat: no-repeat; background-size: contain; background-position: center; width: 100%; height: 40px; margin: 14px 0 7px 0; &-storageTotal { background-image: url(get-resource-path('images/home/storageTotal.png')); } &-receiveTotal { background-image: url(get-resource-path('images/home/receiveTotal.png')); } &-payTotal { background-image: url(get-resource-path('images/home/payTotal.png')); } &-balanceTotal { background-image: url(get-resource-path('images/home/balanceTotal.png')); } } .x-value { text-align: center; font-size: 16px; color: #1E2429; letter-spacing: 0.19px; padding: 0 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } } } .x-box-yellow { .x-box-content { .x-title { background-image: linear-gradient(270deg, #FFE300 0%, #FBAC27 100%); } .x-contain { border-color: #FDC200; } } } .x-box-purple { .x-box-content { .x-title { background-image: linear-gradient(270deg, #A58FFF 0%, #7477FE 100%); } .x-contain { border-color: #7477FE; } } } .x-box-red { .x-box-content { .x-title { background-image: linear-gradient(270deg, #FDA3B9 0%, #F2668C 100%); } .x-contain { border-color: #FB6A83; } } } .x-box-blue { .x-box-content { .x-title { background-image: linear-gradient(270deg, #87DBFF 0%, #27A7FF 100%); } .x-contain { border-color: #33AEFF; } } } } }