html, body {
width: 100%;
height: 100%;
}
body {
margin: 0;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px;
color: $text;
}
/*滚动条*/
::-webkit-scrollbar {
$w: 6px;
$mw: 3px;
width: $w;
height: $w;
@include screen-mob {
width: $mw;
height: $mw;
}
&-thumb {
background: rgba(0, 0, 0, .1);
border-radius: 20px;
&:hover {
background: rgba($color, .5);
}
&:active {
background: rgba($color, .8);
}
}
&-corner {
display: none;
}
}
// 图标
[class^="rt-icon-"],
[class*=" rt-icon-"] {
font-family: "rtfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a:link {
transition: color .3s ease-in-out;
}
// 路由页面
.app-page {
padding: 15px;
font-size: 14px;
line-height: 1.5;
}
// 强提示
.text-strong {
font-weight: 600;
font-size: 1.2em;
color: #f50;
}
// 按钮
.demo-btn {
display: inline-block;
margin: 0 1em .5em 0;
padding: 3px 8px;
font-size: 14px;
color: #333;
text-decoration: none;
cursor: pointer;
border-radius: 3px;
border: 1px solid #ccc;
transition: all .3s ease;
&:hover {
color: $color;
border-color: $color;
}
&:active {
$activeColor: mix(#000, $color, 20%);
color: $activeColor;
border-color: $activeColor;
}
}
// 表格
.demo-table {
min-width: 300px;
border-collapse: collapse;
th, td {
padding: 5px 8px;
border: 1px solid #ddd;
}
th {
text-align: left;
font-weight: 400;
background-color: #f7f7f7;
}
}