ChengDa_English/SGGL/FineUIPro.Web/res/indexv1/assets/scss/_variable.scss

103 lines
2.2 KiB
SCSS

$theme-color: #1ab1ff;
$theme-title-color: #00ffff;
$base_width: 1920;
$base_fontSize: 192;
@function rem($px) {
@return $px / $base_fontSize * 1rem;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
li,
ol {
list-style: none;
}
a {
text-decoration: none;
}
@font-face {
font-family: "方正大黑_GBK";
src: url("../font/方正大黑_GBK.eot?") format("eot"); //IE
src: url("../font/方正大黑_GBK.woff") format("woff"),
url("../font/方正大黑_GBK.ttf") format("truetype"); //non-IE
}
@font-face {
font-family: "液晶数字";
src: url("../font/液晶数字.eot?") format("eot"); //IE
src: url("../font/液晶数字.woff") format("woff"),
url("../font/液晶数字.ttf") format("truetype"); //non-IE
}
/*谷歌、safari、qq浏览器、360浏览器滚动条样式*/
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
width: 5px;
height: 5px;
background-color: transparent;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
background-color: #010a2c;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #071857;
}
/*滑块效果*/
::-webkit-scrollbar-thumb:hover {
border-radius: 5px;
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background: rgba(0, 0, 0, 0.4);
}
/*IE滚动条颜色*/
html {
scrollbar-face-color: #071857; /*滚动条颜色*/
scrollbar-highlight-color: #010a2c;
scrollbar-3dlight-color: #010a2c;
scrollbar-darkshadow-color: #010a2c;
scrollbar-shadow-color: #071857; /*滑块边色*/
scrollbar-arrow-color: rgba(#010a2c, 0.4); /*箭头颜色*/
scrollbar-track-color: #071857; /*背景颜色*/
}
html {
font-size: ($base_width / $base_fontSize) * 1vw;
@media screen and (max-width: 1200px) {
font-size: 120px;
}
width: 100%;
height: 100%;
min-width: 1200px;
min-height: 768px;
font-family: Microsoft YaHei;
line-height: 1;
}
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dis-flex{
display: flex;
}
.flex-1{
flex: 1;
}