Vue3 + Pinia + Vite5 仿抖音,完全度90% . Vue3 + Pinia + Vite5 imitate TikTok with 90% completeness
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

157 lines
2.1 KiB

@import "color";
@import "variables";
.op0 {
opacity: 0;
}
.global-notice {
position: fixed;
z-index: 999;
color: white;
background: black;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
padding: 1rem 1.8rem;
border-radius: .3rem;
font-size: 1.4rem;
}
.row {
padding: 0 @padding-page;
display: flex;
justify-content: space-between;
align-items: center;
min-height: 5rem;
font-size: 1.4rem;
&.no-active {
&:active {
background: @main-bg;
}
}
&.active {
&:active {
background: @active-main-bg;
}
}
&.no-padding {
padding: 0;
}
&.border {
border-bottom: 1px solid @line-color;
}
.left {
display: flex;
justify-content: space-between;
align-items: center;
color: white;
img {
margin-right: 1rem;
width: 1.5rem;
}
}
.right {
display: flex;
justify-content: space-between;
align-items: center;
color: @second-text-color;
img {
margin-left: .5rem;
width: 2rem;
}
}
}
.button {
color: white;
height: 4rem;
line-height: 4rem;
text-align: center;
border-radius: .3rem;
//width: 100%;
font-size: 1.4rem;
&.primary {
background: @primary-btn-color;
&:active {
background: @disable-primary-btn-color;
}
}
&.no-active {
&:active {
&.primary {
background: @primary-btn-color;
}
&.dark {
background: @second-btn-color;
}
&.white {
background: white;
}
}
}
&.disabled {
&.primary {
background: gainsboro;
color: white;
}
&:active {
&.primary {
background: gainsboro;
}
}
}
&.dark {
background: @second-btn-color;
&:active {
background: @second-btn-color-tran;
}
}
&.white {
background: white;
color: black;
border: 1px solid gainsboro;
}
}
.not-read {
@width: .7rem;
width: @width;
height: @width;
border-radius: 50%;
background: yellow;
}
p {
padding: 0;
margin: 0;
}
.line {
height: 1px;
background: @line-color;
width: 100%;
}
.link {
color: rgb(18, 100, 149);
}