@tailwind base;
|
@tailwind components;
|
@tailwind utilities;
|
|
|
|
/* overwite default */
|
:root {
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
font-size: 16px;
|
line-height: 24px;
|
font-weight: 400;
|
width: 100vw;
|
height: 100vh;
|
color-scheme: light dark;
|
/* color: rgba(0, 0, 0, 0.87); */
|
background-color: $mainBgColor;
|
font-synthesis: none;
|
text-rendering: optimizeLegibility;
|
-webkit-font-smoothing: antialiased;
|
-moz-osx-font-smoothing: grayscale;
|
-webkit-text-size-adjust: 100%;
|
--van-sidebar-selected-border-height: 44px !important;
|
--van-sidebar-selected-border-width: 2px !important;
|
--van-nav-bar-background: $mainBgColor !important;
|
--van-nav-bar-title-text-color: $text-color !important;
|
--van-uploader-upload-background: var(--upload_bg) !important;
|
--van-index-anchor-text-color: #fff !important;
|
}
|
|
html,
|
body {
|
// width: 8.28rem;
|
max-width: 828px;
|
margin: 0 auto;
|
height: 100%;
|
box-sizing: border-box;
|
}
|
|
body {
|
width: 100vw;
|
height: 100vh;
|
color: $mainTextColor;
|
background-color: $mainBgColor;
|
padding-bottom: constant(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
}
|
|
@supports (bottom: constant(safe-area-inset-bottom)) {
|
body {
|
padding-bottom: constant(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
}
|
}
|
|
.safe-area-pb {
|
padding-bottom: constant(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
}
|
|
.pb-fix {
|
padding-bottom: calc(60px + constant(safe-area-inset-bottom)) !important;
|
padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
|
}
|
|
input {
|
outline: none;
|
}
|
|
input::-webkit-input-placeholder {
|
color: #c0c4cc;
|
}
|
|
ul,
|
li {
|
list-style: none;
|
}
|
|
p {
|
padding: 0;
|
margin: 0;
|
}
|
|
/* component css */
|
.divider {
|
height: 6px;
|
width: 100%;
|
background: $second-bg;
|
}
|
|
.no-data-img {
|
width: 90px !important;
|
height: 90px !important;
|
opacity: 0.6;
|
}
|
|
.van-swipe__indicators {
|
|
.van-swipe__indicator {
|
background-color: $dot-alp;
|
}
|
|
.van-swipe__indicator--active {
|
background-color: $active_line !important;
|
}
|
}
|
|
|
.inputBackground {
|
background: $input_background;
|
border-radius: 12px;
|
border: 1px solid rgba(118, 128, 143, 0.1);
|
transition: all 0.2s ease;
|
|
&:focus {
|
border-color: rgba(146, 209, 255, 0.3);
|
box-shadow: 0 0 0 3px rgba(146, 209, 255, 0.1);
|
}
|
}
|
|
.colorMain {
|
color: #92D1FF;
|
}
|
|
.btnMain {
|
background: linear-gradient(135deg, #92D1FF 0%, #7BB8FF 100%);
|
border: none;
|
border-radius: 12px;
|
box-shadow: 0 4px 12px rgba(146, 209, 255, 0.3);
|
transition: all 0.3s ease;
|
|
&:hover {
|
background: linear-gradient(135deg, #7BB8FF 0%, #6BA8FF 100%);
|
box-shadow: 0 6px 16px rgba(146, 209, 255, 0.4);
|
transform: translateY(-1px);
|
}
|
|
&:active {
|
transform: translateY(0);
|
box-shadow: 0 2px 8px rgba(146, 209, 255, 0.3);
|
}
|
}
|
|
#cryptos .btnMain {
|
background: linear-gradient(135deg, #92D1FF 0%, #7BB8FF 100%);
|
box-shadow: 0 4px 12px rgba(146, 209, 255, 0.3);
|
}
|
|
.leftReturn {
|
width: 7px;
|
height: 14px;
|
}
|
|
|
|
.text-grey {
|
color: #818181;
|
}
|
|
.text-blue {
|
color: $blue;
|
}
|
|
/* Crypto.com 风格辅助类 */
|
.shadow-card {
|
box-shadow: 0 2px 12px rgba(146, 209, 255, 0.08);
|
}
|
|
.shadow-card-hover {
|
box-shadow: 0 4px 20px rgba(146, 209, 255, 0.12);
|
transition: all 0.3s ease;
|
|
&:hover {
|
box-shadow: 0 6px 24px rgba(146, 209, 255, 0.16);
|
transform: translateY(-2px);
|
}
|
}
|
|
.gradient-primary {
|
background: linear-gradient(135deg, #92D1FF 0%, #7BB8FF 100%);
|
}
|
|
.gradient-text {
|
background: linear-gradient(135deg, #92D1FF 0%, #7BB8FF 100%);
|
-webkit-background-clip: text;
|
-webkit-text-fill-color: transparent;
|
background-clip: text;
|
}
|
|
.border-crypto {
|
border: 1px solid rgba(118, 128, 143, 0.1);
|
border-radius: 12px;
|
}
|
|
/***************** global use framework *****************/
|
|
/* flex */
|
.flex {
|
display: flex;
|
}
|
|
.flex-row {
|
flex-direction: row;
|
}
|
|
.flex-col {
|
flex-direction: column;
|
}
|
|
.justify-between {
|
justify-content: space-between;
|
}
|
|
.justify-around {
|
justify-content: space-around;
|
}
|
|
.justify-evenly {
|
justify-content: space-evenly;
|
}
|
|
.justify-start {
|
justify-content: flex-start;
|
}
|
|
.justify-end {
|
justify-content: flex-end;
|
}
|
|
.justify-center {
|
justify-content: center;
|
}
|
|
.items-start {
|
align-items: flex-start;
|
}
|
|
.items-end {
|
align-items: flex-end;
|
}
|
|
.items-center {
|
align-items: center;
|
}
|
|
.items-stretch {
|
align-items: stretch;
|
}
|
|
.flex-1 {
|
flex: 1
|
}
|
|
.flex-wrap {
|
flex-wrap: wrap;
|
}
|
|
.flex-nowrap {
|
flex-wrap: nowrap;
|
}
|
|
.align-center {
|
align-content: center;
|
}
|
|
/* display */
|
.block {
|
display: block;
|
}
|
|
/* position */
|
.absolute {
|
position: absolute;
|
}
|
|
.relative {
|
position: relative;
|
}
|
|
.fixed {
|
position: fixed;
|
}
|
|
.z-10 {
|
z-index: 10;
|
}
|
|
/* font */
|
.font-bold {
|
font-weight: bold;
|
}
|
|
.font-normal {
|
font-weight: normal;
|
}
|
|
/* text */
|
.text-center {
|
text-align: center;
|
}
|
|
.text-left {
|
text-align: left;
|
}
|
|
.text-right {
|
text-align: right;
|
}
|
|
.border-none {
|
border: none;
|
outline: none;
|
}
|
|
/* border radius - Crypto.com 风格 */
|
.rounded-sm {
|
border-radius: 6px;
|
}
|
|
.rounded {
|
border-radius: 8px;
|
}
|
|
.rounded-md {
|
border-radius: 10px;
|
}
|
|
.rounded-lg {
|
border-radius: 12px;
|
}
|
|
.rounded-xl {
|
border-radius: 16px;
|
}
|
|
.rounded-2xl {
|
border-radius: 20px;
|
}
|
|
.rounded-full {
|
border-radius: 9999px;
|
}
|
|
/* 卡片样式 - Crypto.com 风格 */
|
.card {
|
background: $main_background;
|
border-radius: 16px;
|
padding: 20px;
|
box-shadow: 0 2px 12px rgba(146, 209, 255, 0.08);
|
border: 1px solid rgba(118, 128, 143, 0.1);
|
transition: all 0.3s ease;
|
|
&:hover {
|
box-shadow: 0 4px 20px rgba(146, 209, 255, 0.12);
|
transform: translateY(-2px);
|
}
|
}
|
|
/* 渐变按钮 */
|
.btn-gradient {
|
background: linear-gradient(135deg, #92D1FF 0%, #7BB8FF 100%);
|
color: #ffffff;
|
border: none;
|
border-radius: 12px;
|
padding: 12px 24px;
|
font-weight: 600;
|
font-size: 15px;
|
cursor: pointer;
|
box-shadow: 0 4px 12px rgba(146, 209, 255, 0.3);
|
transition: all 0.3s ease;
|
|
&:hover {
|
background: linear-gradient(135deg, #7BB8FF 0%, #6BA8FF 100%);
|
box-shadow: 0 6px 16px rgba(146, 209, 255, 0.4);
|
transform: translateY(-1px);
|
}
|
|
&:active {
|
transform: translateY(0);
|
box-shadow: 0 2px 8px rgba(146, 209, 255, 0.3);
|
}
|
}
|
|
/** box-sizing */
|
.box-border {
|
box-sizing: border-box;
|
}
|
|
/* border */
|
.border {
|
border-width: 1px;
|
}
|
|
/* 解决重复点击报错的问题 */
|
//* { touch-action: pan-y; }
|
//left
|
.left-0 {
|
left: 0;
|
}
|
|
.left-22 {
|
left: 22px;
|
}
|
|
.left-24 {
|
left: 24px;
|
}
|
|
.left-25 {
|
left: 25px;
|
}
|
|
.left-28 {
|
left: 28px;
|
}
|
|
//right
|
.right-0 {
|
right: 0;
|
}
|
|
.right-10 {
|
right: 10px;
|
}
|
|
.right-19 {
|
right: 19px;
|
}
|
|
.right-20 {
|
right: 20px;
|
}
|
|
.right-22 {
|
right: 22px;
|
}
|
|
.right-34 {
|
right: 34px;
|
}
|
|
//top
|
.top-0 {
|
top: 0;
|
}
|
|
.top-97 {
|
top: 97px;
|
}
|
|
.top-20 {
|
top: 20px;
|
}
|
|
.top-10 {
|
top: 10px;
|
}
|
|
.top-46 {
|
top: 46px;
|
}
|
|
.top-122 {
|
top: 122px;
|
}
|
|
//bottom
|
.bottom-0 {
|
bottom: 0;
|
}
|
|
.bottom-28 {
|
bottom: 28px;
|
}
|
|
.bottom-30 {
|
bottom: 30px;
|
}
|
|
.bottom-90 {
|
bottom: 30px;
|
}
|
|
.bottom-108 {
|
bottom: 108px;
|
}
|
|
//line-height
|
.lh-152 {
|
line-height: 152px;
|
}
|
|
.border-none {
|
border: none !important;
|
outline: none !important;
|
}
|