fork-reap-design
Version:
A high quality UI components Library with Vue.js
294 lines (289 loc) • 4.54 kB
text/less
/**
* @author jonasli
* @module 常用原子类
*/
/*排版*/
.m-auto {
margin: auto;
}
.mtb10 {
margin-top: 10px;
margin-bottom: 10px;
}
.p-all-10 {
padding: 10px;
}
/*字体颜色*/
.c-333 {
color: @text-color-heavy;
}
.c-999 {
color: @gray-color-light;
}
.h100p {
height: 100%;
}
.w100p {
width: 100%;
}
/*快捷方式*/
.a-c {
display: flex;
align-items: center;
}
.a-center {
align-items: center;
}
.line-wrap {
white-space: normal;
}
.f-l {
float: left;
}
.f-r {
float: right;
}
.pr {
position: relative;
}
.pz {
position: relative;
z-index: 1;
}
.wwbw {
word-wrap: break-word;
word-break: break-all;
}
.ofh {
overflow: hidden;
}
.ofa {
overflow: auto;
}
.hide {
display: none;
}
.hidden {
visibility: hidden;
}
.visible {
visibility: visible;
}
.c-hide {
display: none ;
}
.show {
display: block;
}
.d-ib {
display: inline-block;
}
.d-b {
display: block;
}
.d-flex {
display: flex;
}
.flex1 {
flex: 1;
}
.flex-row {
flex-direction: row;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.justify-around {
justify-content: space-around;
}
.align-center {
align-items: center;
}
.align-between {
align-items: space-between;
}
.align-around {
align-items: space-around;
}
.red-req:before {
content: '*';
display: inline-block;
margin-right: 4px;
line-height: 1;
font-family: SimSun;
font-size: 12px;
color: @error-color;
}
.red-bef:before {
content: '*';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
margin-right: 4px;
line-height: 1;
font-family: SimSun;
font-size: 12px;
color: @error-color;
}
.req-act:before {
content: '*';
display: inline-block;
margin-right: 4px;
line-height: 1;
font-family: SimSun;
font-size: 12px;
color: @error-color;
position: absolute;
left: 10px;
top: 15px;
}
.b-shadow {
box-shadow: 0 0 10px #ccc;
}
.b-none {
border: none;
}
.cursor {
cursor: pointer;
}
.table-btn {
padding: 3px 20px
}
// ==========================================================
// 页面颜色-预定义class
.sc-green {
color: @primary-color;
}
.sc-red {
color: @error-color;
}
.sc-orange {
color: @warning-color;
}
.sc-blue {
color: @link-color;
}
.sc-title {
color: @title-color;
}
.sc-text {
color: @text-color;
}
.sc-border {
color: @border-color;
}
.sc-border-split {
color: @border-color-split;
}
.sc-border-green {
border-color: @primary-color;
}
.sc-bg {
background-color: @bg-color;
}
.sc-bg-hover {
background-color: @bg-color-hover;
}
.sc-gray {
color: @gray-color;
}
.sc-gray-light {
color: @gray-color-light;
}
.sc-white {
color: @white;
}
// 文档关键字高亮
.docs-keyword {
font-size: 14px;
padding: 0 3px;
margin: 0 5px;
color: @primary-color;
background-color: @bg-color;
border: 1px solid @border-color;
border-radius: 3px;
}
// 文档重点语句高亮
.dosc-warning {
margin: 0 5px;
color: @link-color;
}
// ==========================================================
// 预定义form表单的宽度 input date select
// 150 普通下拉框(默认)
// 200 普通下拉框(大), 输入框(小), 日期框(默认)
// 300 列表页搜索框,级联下拉框,输入框(默认),日期框(仅一种情况:区间并且显示年月日-时分秒)
// 430 输入框(大)
.size-xs {
// smaller
width: 120px;
}
.size-sm {
// small
width: 180px;
}
.size-md {
// middle
width: 330px;
}
.size-lg {
// large
width: 430px;
}
// ==========================================================
// iview table 暂无数据表格显示bugfix
.ivu-table-tip {
height: 100%;
table {
table-layout: auto;
}
}
.dc-title {
margin: 0 0 20px 0;
position: relative;
color: #333;
font-size: 16px;
font-weight: bold;
&:before {
content: '';
position: absolute;
left: -15px;
top: 50%;
width: 5px;
height: 80%;
background-color: @primary-color;
transform: translatey(-50%);
}
.dc-title-edit {
padding: 0 10px;
font-weight: bold;
vertical-align: text-top;
cursor: pointer;
&:hover {
color: @primary-color;
}
}
}
.json-wrap {
overflow-wrap: break-word;
white-space: pre-wrap;
word-break: break-all;
font-size: 14px;
.string {
color: @json-color;
}
}
// use position center center
.pos-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.transform-none {
transform: none;
}