quality_frontend/packages/common/style/index.less

186 lines
3.1 KiB
Plaintext

@import "./variables";
@import './size.less';
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-thumb {
border-radius: 1em;
background-color: rgba(50, 50, 50, 0.1);
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(50, 50, 50, 0.5);
}
::-webkit-scrollbar-track {
background-color: rgba(50, 50, 50, 0.1);
}
body {
color: @text-color-primary;
font-family: -apple-system, BlinkMacSystemFont, @font-family;
font-size: @font-size-s;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
padding: 0;
}
pre {
font-family: @font-family;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
word-break: break-all;
// overflow:hidden;
}
ul,
dl,
li,
dd,
dt {
margin: 0;
padding: 0;
list-style: none;
}
figure,
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
}
* {
box-sizing: border-box;
}
.pagination-wrap {
margin-top: 20px;
width: 100%;
}
.flex-space-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.flex-space-around {
display: flex;
justify-content: space-around;
align-items: center;
}
.flex-right {
display: flex;
justify-content: flex-end;
align-items: center;
}
.flex-left {
display: flex;
justify-content: flex-start;
align-items: center;
}
.inline-flex-left {
display: inline-flex;
justify-content: flex-start;
align-items: center;
}
.flex-align-center {
align-items: center;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.flex-1 {
flex: 1;
}
.flex-row-center {
justify-content: center;
}
.flex-row-left {
justify-content: flex-start;
}
.flex-row-around {
justify-content: space-around;
}
.flex-row-between {
justify-content: space-between;
}
.flex-row-right {
justify-content: flex-end;
}
.flex-col-center {
align-items: center;
}
.flex-col-top {
align-items: flex-start;
}
.text-align-center {
text-align: center;
}
.text-align-left {
text-align: left;
}
.text-align-right {
text-align: right;
}
.relative {
position: relative;
}
.red {
color: red;
}
.green {
color: green;
}
.orange {
color: orange;
}
.border-radius-s {
border-radius: 3px;
}
.border-radius-m {
border-radius: 5px;
}
.border-radius-l {
border-radius: 8px;
}
.textNoWarp-1 {
overflow: hidden;
text-overflow: ellipsis;
box-orient: vertical;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
white-space: nowrap;
}
.value-textNoWarp-3 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box; /**对象作为伸缩盒子模型展示**/
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
white-space: nowrap;
// white-space: pre-wrap;
// max-height: 65px;
}
.value-textNoWarp-1 {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
text-align: left;
}
.value-textNoWarp-2 {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}