Commit 05373ff7 authored by liujiangnan's avatar liujiangnan

feat: css布局

parent a337d733
......@@ -28,7 +28,7 @@ body {
right: 0px;
bottom: 0px;
background: #f1e4c2;
min-width: 960px;
/* min-width: 960px; */
}
#tea {
......@@ -82,30 +82,30 @@ body {
top: 14%;
overflow: hidden;
background: #f1e4c2;
padding: 10px;
padding: 0.1rem;
}
.play-speed-content {
position: absolute;
width: 70px;
width: 1.5rem;
top: 20%;
right: 8%;
padding-bottom: 15px;
right: 6%;
padding-bottom: 0.3rem;
background: #f7f2e4;
border-radius: 40px;
border-radius: 0.80rem;
}
.speed {
object-fit: contain;
font-family: Arial;
font-size: 15px;
font-size: 0.3rem;
font-weight: normal;
font-stretch: normal;
font-style: normal;
line-height: normal;
letter-spacing: normal;
text-align: center;
margin-top: 15px;
margin-top: 0.3rem;
color: #b17d5a;
}
......@@ -120,15 +120,15 @@ body {
.progress-div{
position: absolute;
width: 80%;
width: 90%;
bottom: 28%;
left: 10%;
left: 5%;
display: flex;
align-items: center;
}
.progress-label{
font-size: 16px;
font-size: 0.16rem;
font-weight: normal;
font-stretch: normal;
font-style: normal;
......@@ -153,11 +153,11 @@ body {
.my-progress{
margin-bottom: 0px !important;
float: left;
height: 10px;
width: 90%;
height: 0.15rem;
width: 100%;
overflow: hidden;
background-color: #ebe0c0;
border-radius: 4px;
border-radius: 0.15rem;
}
.my-progress-bar{
......@@ -171,11 +171,11 @@ body {
}
.back{
width: 300px;
height: 140px;
width: 2.4rem;
height: 1.4rem;
position: absolute;
bottom: 7%;
left:8%
bottom: 1.1rem;
left: 5%;
}
.video {
......@@ -184,17 +184,17 @@ body {
}
.video-play-bg{
width: 140px;
height: 140px;
width: 2.8rem;
height: 2.8rem;
position: absolute;
bottom: 10px;
bottom: 0.4rem;
left: 50%;
transform: translateX(-70px);
transform: translateX(-1.4rem);
}
.video-play-ani{
width: 140px;
height: 140px;
width: 2.8rem;
height: 2.8rem;
display: none;
animation: talking 3s infinite;
}
......@@ -252,45 +252,46 @@ body {
.recorder-tips {
position: absolute;
width: 310%;
height: 100px;
width: 7rem;
height: 1.5rem;
background: #3e9e33;
border-radius: 15px;
border-radius: 0.15rem;
text-align: center;
color: #fff;
line-height: 100px;
font-size: 25px;
top: -100px;
left: -105%;
line-height: 1.5rem;
font-size: 0.4rem;
top: -1.45rem;
left: -50%;
transform: translate(-0.7rem);
}
.triangle-down {
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 40px solid #3e9e33;
border-left: 0.2rem solid transparent;
border-right: 0.2rem solid transparent;
border-top: 0.4rem solid #3e9e33;
position: absolute;
left: 50%;
transform: translate(-50%);
bottom: -18px;
bottom: -0.35rem;
}
.recorder-play-icon{
width: 100px;
height: 100px;
border: solid 8px #b17d5a;
width: 2rem;
height: 2rem;
border: solid 0.16rem #b17d5a;
background: #e7cc97;
border-radius: 100%;
position: absolute;
bottom: 20px;
left: 20px;
bottom: 0.4rem;
left: 0.4rem;
cursor: pointer;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0px 33px 33px -25px #ffa060;
box-shadow: 0rem 0.33rem 0.33rem -0.25rem #ffa060;
}
.recorder-btn {
......@@ -313,18 +314,15 @@ body {
}
.recorder-play {
width: 40px;
height: 40px;
border: solid 8px #fff;
width: 0.80rem;
height: 0.80rem;
border-radius: 100%;
background: #fff;
margin-top: 30px solid transparent;
margin-bottom: 30px solid transparent;
}
.recorder-pause {
width: 40px;
height: 40px;
width: 0.8rem;
height: 0.8rem;
display: none;
}
......@@ -356,9 +354,9 @@ body {
}
.my-btn{
border: solid 6px #b17d5a;
border: solid 0.12rem #b17d5a;
background: #e7cc97;
border-radius: 21px;
border-radius: 0.4rem;
color: #fff;
cursor: pointer;
}
......@@ -378,44 +376,42 @@ body {
.back-btn {
text-align: center;
height: 65px;
line-height: 55px;
width: 120px;
font-size: 30px;
height: 1.3rem;
width: 2.4rem;
font-size: 0.6rem;
font-weight: bold;
position: absolute;
left: 9%;
bottom: 7%;
box-shadow: 0px 34px 17px -25px #e7cc97;
box-shadow: 0rem 0.34rem 0.17rem -0.25rem #e7cc97;
display: none;
}
.submit-btn {
text-align: center;
height: 65px;
line-height: 55px;
width: 240px;
font-size: 30px;
height: 1.3rem;
line-height: 1.1rem;
width: 4.8rem;
font-size: 0.6rem;
font-weight: bold;
position: absolute;
right: 10%;
bottom: 7%;
box-shadow: 0px 34px 17px -25px #e7cc97;
right: 5%;
bottom: 1.1rem;
box-shadow: 0rem 0.34rem 0.17rem -0.25rem #e7cc97;
display: none;
}
.back-tips {
position: absolute;
width: 130%;
height: 100px;
width: 7rem;
height: 1.5rem;
background: #3e9e33;
border-radius: 15px;
border-radius: 0.15rem;
text-align: center;
color: #fff;
line-height: 100px;
font-size: 25px;
bottom: 68%;
left: -10%;
line-height: 1.5rem;
font-size: 0.4rem;
top: -1.85rem;
left: -50%;
transform: translate(0.4rem);
}
......
......@@ -21,7 +21,7 @@
<body>
<div class="content">
<input type="hidden" id='keyWord'>
<div style="position: absolute; top: 25px; left: 10%; z-index: 99;">
<div style="position: absolute; top: 0.25rem; left: 10%; z-index: 99;">
<span class="title">请同学们根据视频复述课文</span>
</div>
<div role="tea" id="tea">
......@@ -30,7 +30,7 @@
<video class="video" src=""></video>
</div>
<div class="play-speed-content">
<p class="speed" style="font-size: 20px; line-height: 40px;">倍数</p>
<p class="speed" style="font-size: 0.4rem; line-height: 0.7rem;">倍数</p>
<p class="speed speed-choice" data-speed="0.75">0.75x</p>
<p class="speed speed-choice" data-speed="1">1x</p>
<p class="speed speed-choice" data-speed="1.25">1.25x</p>
......@@ -51,7 +51,7 @@
</div>
</div>
<div class="video-play-bg">
<img src="../lib/images/play-circle.png" id='ani' class="video-play-ani">
<img src="../lib/images/play-circle.png" class="video-play-ani">
<div class="recorder-play-icon">
<div class="control recorder-play">
......@@ -64,14 +64,14 @@
</div>
</div>
<div role="stu" id="stu">
<div role="stu" id="stu">
<div id="exercise" style="display: none;">
<div class="video-container">
<video id="video" class="video" src="" muted></video>
</div>
<div class="play-speed-content">
<p class="speed" style="font-size: 20px; line-height: 40px;">倍数</p>
<p class="speed" style="font-size: 0.4rem; line-height: 0.7rem;">倍数</p>
<p class="speed speed-choice" data-speed="0.75">0.75x</p>
<p class="speed speed-choice" data-speed="1">1x</p>
<p class="speed speed-choice" data-speed="1.25">1.25x</p>
......
......@@ -476,8 +476,8 @@ function bindRecorderBtn() {
//隐藏按钮
$("#backBtn").hide();
$(".back-tips").hide();
$("#ani").show();
//获取临时进度条的进度
let tempProgressValue = $("#tempProgressbar").attr("data-value");
......@@ -514,6 +514,7 @@ function bindRecorderBtn() {
cw.startRecord(keyWord);
} else {
$("#ani").hide();
$(".recorder-play-icon .recorder-pause").hide();
control.addClass("recorder-play");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment