1 Star 0 Fork 0

yymao/spotify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
style.css 3.71 KB
一键复制 编辑 原始数据 按行查看 历史
yymao 提交于 2023-11-19 15:40 . no message
@charset "UTF-8";
@font-face {
font-family: CircularSpotifyTxTBook;
font-weight: 700;
src: url(./asset/font/CircularSpotifyTxT-Book.woff2) format("truetype");
text-rendering: optimizeLegibility;
}
@font-face {
font-family: CircularSpotifyTxTBold;
font-weight: 700;
src: url(./asset/font/CircularSpotifyTxT-Bold.woff2) format("truetype");
text-rendering: optimizeLegibility;
}
@font-face {
font-family: PlastoTrial_ExtraBold;
font-weight: 700;
src: url(./asset/font/PlastoTrial-ExtraBold.otf) format("truetype");
text-rendering: optimizeLegibility;
}
* {
padding: 0;
margin: 0;
}
body {
overflow: hidden;
transition: 1s;
}
.logo {
position: fixed;
font-family: PlastoTrial_ExtraBold;
font-size: 50px;
margin: 1% 2%;
}
.wrapper {
width: 100vw;
height: 100vh;
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 3.75rem;
box-sizing: border-box;
}
.wrapper .controls-btn {
display: flex;
flex-direction: column-reverse;
}
.wrapper .controls-btn svg {
margin: 40% 0;
cursor: pointer;
}
.wrapper .controls-btn .last-wrapper svg {
fill: rgba(255, 255, 255, 0.6);
}
.card-slide {
width: calc(20rem + 30vmin);
height: calc(20rem + 30vmin);
right: 10%;
transform: translateX(-10%);
}
.card-slide .card-stack-wrapper {
width: calc(20rem + 30vmin);
height: calc(20rem + 30vmin);
position: absolute;
left: 0;
top: 0;
cursor: grab;
transform-origin: center center;
background-color: aqua;
background-size: cover;
background-repeat: no-repeat; /* 不平铺图像 */
}
.card-slide .card-stack-wrapper:last-child {
transform: rotateX(0) rotateY(0) rotateZ(0) scale(1) !important;
}
.card-slide .card-stack-wrapper .card-stack-inner {
width: 100%;
height: 100%;
}
.card-slide .card-stack-wrapper .card-stack-inner img {
width: 100%;
height: 100%;
}
.card-slide .card-stack-wrapper:last-child {
background-color: #000;
transform: rotateX(0) rotateY(0) rotateZ(0) scale(1);
}
.card-slide .card-stack-wrapper:last-child .card-stack-inner {
box-shadow: rgba(0, 0, 0, 0) 2px 5px 27px;
}
.describe {
width: 50%;
display: flex;
flex-wrap: wrap;
margin: 0 5%;
}
.describe .tips {
font-size: 1rem;
font-family: CircularSpotifyTxTBold;
margin-bottom: 10px;
}
.describe .contnet-text {
font-size: 3rem;
font-family: CircularSpotifyTxTBold;
cursor: pointer;
}
.describe .contnet-text:hover {
text-decoration: underline;
}
.card-stack-wrapper-animating-DMD {
animation: dragMouseDown 0.2s ease-in-out forwards;
}
@keyframes dragMouseDown {
0% {
transform: scale(1);
}
to {
transform: scale(1.1);
}
}
.card-stack-wrapper-animating-DMU {
animation: dragMouseUp 0.2s ease-in-out forwards;
}
@keyframes dragMouseUp {
0% {
transform: scale(1.1);
}
to {
transform: scale(1);
}
}
.describe-disappear-animation {
animation: opacityDisappear 0.5s ease-in-out forwards;
}
@keyframes opacityDisappear {
0% {
opacity: 1;
}
to {
opacity: 0;
}
}
.describe-appear-animation {
animation: opacityAppear 0.5s ease-in-out forwards;
}
@keyframes opacityAppear {
0% {
opacity: 0;
}
to {
opacity: 1;
}
}
@media screen and (max-width: 1024px) {
.wrapper {
flex-direction: column;
}
.wrapper .controls-btn {
position: absolute;
left: 10%;
top: 50%;
transform: translate(-10%, -50%);
}
.wrapper .card-slide {
width: calc(20rem + 10vw);
height: calc(20rem + 10vw);
transform: translateX(0%);
}
.wrapper .card-slide .card-stack-wrapper {
width: calc(20rem + 10vw);
height: calc(20rem + 10vw);
}
.wrapper .describe {
margin-bottom: 10%;
}
.wrapper .describe .contnet-text {
font-size: 2rem;
}
}/*# sourceMappingURL=style.css.map */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mao-yongyao/spotify.git
git@gitee.com:mao-yongyao/spotify.git
mao-yongyao
spotify
spotify
master

搜索帮助