Files
learning-system-portal/src/assets/styles/portal.scss
2022-12-26 17:43:25 +08:00

494 lines
9.9 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 门户页面的一些通用样式定义在这里面
*/
body {margin: 0px;padding: 0px;}
/**滚动条的宽度*/
::-webkit-scrollbar {
width: 8px;
height: 10px;
scrollbar-color: #c1c1c1 #f7f7f9; /* 滑块颜色 滚动条背景颜色 */
scrollbar-width: thin; /* 滚动条宽度有三种thin、auto、none */
}
/*滚动条的滑块*/
::-webkit-scrollbar-thumb {
//background-color: #D8D8D8;
border-radius: 3px;
background-color: #c1c1c1;
}
::-webkit-scrollbar-thumb:hover {
background: #D8D8D8;
height: 12px;
width: 12px;
}
//定义全局的核心区域宽度
.xcontent{
min-width: 1100px;
margin: 0px auto;
}
//[文章,案例,问答]详细页面内容部分
.xpage-detail-content{
padding: 50px;
background-color: #fff;
}
//[文章,案例,问答]详细页面的面包屑
.xpage-detail-crumbs{
.crumbs-first{
color:#cccccc;
}
.crumbs-item{
color:#999999;
}
.crumbs-line{
margin: 0px 5px;
color:#999999;
}
.crumbs-last{
color:#3d3d3d;
}
}
//课程详细页面banner部分
.xpage-coures-banner{
width: 100%;
height: 200px;
background-image: url('../../../public/images/couresdetail.png');
background-size: cover;
.bcourse-title{
color: #fff;
margin-top: 20px;
font-size: 20px;
}
.bcourse-score{
margin-left: 30px;
font-size: 16px;
}
.banner-crumbs{
color: #fff;
margin-top:40px;
.crumbs-first{
font-size: 16px;
}
.crumbs-line{
margin: 0px 10px;
}
.crumbs-last{
font-size: 18px;
}
}
}
//原样式,未修改
.portal-model-btn{// 写文章,发课程等按钮
width: 100%;
height: 67px;
background: #DDEDFF;
border-radius: 8px;
font-size: 18px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #387DF7;
line-height: 67px;
text-align: center;
margin-bottom: 22px;
}
//页面中的排行内容块
.portal-ranking{
border-radius: 8px;
padding: 30px;
// height: 544px;
// overflow-y: auto;
.ranking-title{
font-size: 24px;
font-family: FZLTCHJW--GB1-0, FZLTCHJW--GB1;
font-weight: 600;
color: #000000;
line-height: 28px;
padding-bottom:12px
}
.ranking-data{
min-height: 246px;
margin: 0px;
overflow-y: auto;
}
}
.portal-ranking-list{
border-radius: 8px;
padding: 30px;
// height: 544px;
// overflow-y: auto;
.ranking-title{
font-size: 24px;
font-family: FZLTCHJW--GB1-0, FZLTCHJW--GB1;
font-weight: 600;
color: #000000;
line-height: 28px;
padding-bottom:12px
}
.ranking-data{
min-height: 246px;
margin: 0px;
// overflow-y: auto;
}
}
//排行块的背景
.ranking-bg{
background: url('../../../public/images/qa-box.png') no-repeat top left;
// background: linear-gradient(180deg, #C3DEF8 0%, #FFFFFF 37%);
//background-size:100% 100%;
background-size:cover;
}
.ranking-bg1{
background: url('../../../public/images/list-or.png') no-repeat top left;
//background-size:100% 100%;
background-size:cover;
}
.ranking-bg2{
background: url('../../../public/images/list-pink.png') no-repeat top left;
//background-size:100% 100%;
background-size:cover;
}
//左右内容栏
.xcontent2{
display: flex;
justify-content: space-between;
margin: 0px auto;
}
.xcontent2-main{
flex: 1;
}
.xcontent2-minor{
width: auto;
}
//课程卡片
.xcourse-card{
width: 33%;
margin-bottom: 36px;
display: inline-block;
vertical-align: top;
}
.course-card {
// padding: 30px;
// padding-bottom: 18px;
// margin-bottom: 36px;
background: #fff;
border-radius: 8px;
position: relative;
.course-card-favorite{
position: absolute;
right:25px;
bottom: 84px;
}
// margin-right: 35px;
// .cor-icon {
// position: absolute;
// left: 100px;
// top: 54px;
// border-radius: 50%;
// background: rgba(88, 138, 252, 0.37);
// .el-icon-caret-right {
// font-size: 36px;
// color: #588afc;
// }
// }
.course-image-box {
position: relative;
width: 100%;
height: 100%;
::v-deep .el-image{
border-radius: 4px !important;
}
.course-image {
width: 100%;
height: 100%;
}
.course-type {
position: absolute;
top: 5px;
right: 0px;
width: 90px;
height: 30px;
line-height: 30px;
text-align: center;
background-color: #292828;
opacity: 0.4;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
color: #ffffff;
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
}
.course-type-title {
position: absolute;
top: 5px;
right: 0px;
width: 90px;
height: 30px;
line-height: 30px;
text-align: center;
color: #ffffff;
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
}
}
.course-title {
height: 44px;
// margin: 10px 0;
margin: 10px 0 0px 0px;
line-height: 24px;
font-size: 16px;
font-weight: 600;
color: #333333;
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
}
.course-info { //图片下面的一行信息
display: flex;
justify-content: space-between;
line-height: 30px;
.course-info-user{
font-size: 14px;
color: #6E7B84;
flex: 1;
.course-info-studys {
// margin-left: 12px;
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
}
.course-info-author{
margin-right: 12px;
}
}
.course-info-score{
display:flex;
margin-left: auto;
::v-deep .cor-praises {
// position: absolute;
-moz-user-select: none; /*火狐*/
-webkit-user-select: none; /*webkit浏览器*/
-ms-user-select: none; /*IE10*/
-khtml-user-select: none; /*早期浏览器*/
user-select: none;
.interact-bar-btn {
margin-top: -2px;
min-width: 26px !important;
width: 32px;
height: 20px;
background:rgba(237, 239, 240,0.5);
border-radius: 20px;
margin-top: 4px;
margin-right: 12px;
.interact-bar-value {
display: none;
}
.svg-icon{
font-size: 12px !important;
margin-left: 10px;
margin-bottom: 6px;
}
}
}
.course-score-value {
font-size: 14px;
color: #FA6400;
text-align: right;
margin-left: 10px;
font-family: "Arial";
// font-size: 30px;
}
.course-score-no {
text-align: right;
font-size: 14px;
color: #6B7C85;
}
}
}
}
//课程播放页的样式控制
.xcstudy-left{
width: 400px;
}
/**我的笔记*/
.xcstudy-mynode{
width: 400px;
}
//以下是多分辨率的控制,注意,只是一些样式的高度,宽度,大小控制,非大小控制不要在这里写
@media screen and (max-width: 1366px){
.xcontent{width: 1100px;}
.xcontent2{
width: 1100px;
}
.home-page-right{
width: 330px;
}
.rankimg{
width:66px;
height:38px;
float: left;
}
.xcontent2-minor{
width: 260px;
}
.portal-ranking{
padding: 20px 15px;
.ranking-title{
font-size: 18px;
line-height: 25px;
padding-bottom:10px
}
}
.title-myqalist{
margin-right: 5px !important;
}
.btn-right{
.btn{
width: 120px !important;
height: 40px !important;
}
}
.course-card {
padding:20px;
margin-right: 20px;
position: relative;
.course-card-favorite{
position: absolute;
right:20px;
bottom: 78px;
}
.course-image-box {
width:218;
height: 122px;
}
}
.course-tit{
float: none !important;
}
.sysType-box{
margin-top: 10px;
float: none !important;
}
.tit-float{
height: 45px !important;
}
}
@media screen and (max-width: 1680px) and (min-width:1367px){
.xcontent{width: 1366px;}
.xcontent2{
width: 1366px;
}
.rankimg{
width:76px;
height:42px;
float: left;
}
.home-page-right{
width: 355px;
}
.xcontent2-minor{
width: 300px;
}
.portal-ranking{
padding: 30px 20px;
}
.course-card {
padding:25px;
margin-right: 25px;
.course-image-box {
width: 278px;
height: 156px;
}
}
}
@media screen and (max-width: 1920px) and (min-width: 1681px){
.xcontent{width: 1690px;}
.xcontent2{
width: 1690px;
}
.rankimg{
width:86px;
height:42px;
float: left;
}
.home-page-right{
width: 395px;
}
.xcontent2-minor{
width: 400px;
}
.portal-ranking{
padding: 30px 30px;
}
.course-card {
padding:25px;
margin-right: 25px;
.course-image-box {
width: 346px;
height: 192px;
}
}
}
@media screen and (min-width: 1921px){
.xcontent{width: 1880px;}
.xcontent2{
width: 1846px;
}
.home-page-right{
width: 395px;
}
.rankimg{
width:96px;
height:52px;
float: left;
}
.xcontent2-minor{
width: 400px;
}
.portal-ranking{
padding: 30px 30px;
}
.course-card {
padding:25px;
margin-right: 25px;
.course-image-box {
width: 340px;
height: 191px;
}
}
}