You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

486 lines
8.0 KiB
Plaintext

2 months ago
@import '~antd/es/style/reset.css';
@screen-xs: 480px;
@screen-sm: 576px;
@screen-md: 768px;
@screen-lg: 992px;
@screen-xl: 1200px;
@screen-xxl: 1600px;
#root {
height: 100%;
}
//自定义分割线
.listDivider {
position: relative;
top: -0.06em;
display: inline-block;
margin: 0 2%;
vertical-align: middle;
border-top: 0;
border-left: 1px solid rgba(0, 0, 0, 0.06);
box-sizing: border-box;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum', "tnum";
}
.ant-btn-primary {
background: rgba(36, 114, 214, 1);
}
// top导航样式开始
.button-link-top {
display:flex;
margin-left: 24px;
margin-bottom: 15px;
}
.button-link-top-item {
padding: 5px;
margin: 0 6px;
color: rgba(36, 114, 214, 1);
font-size: 12px;
border: solid 1px rgba(36, 114, 214, 1);
}
.button-link-top-item:hover {
background: #35ADFD;
color: #fff;
border-radius: 5px;
margin: 0 6px;
font-size: 12px;
border: solid 1px rgba(36, 114, 214, 1);
}
.button-link-top-item-click {
padding: 5px;
margin: 0 6px;
background: rgba(36, 114, 214, 1);
color: #fff;
border-radius: 5px;
font-size: 12px;
border: solid 1px rgba(36, 114, 214, 1);
}
.button-link-top-item-click:hover {
padding: 5px;
margin: 0 6px;
background: rgba(36, 114, 214, 1);
color: #fff;
border-radius: 5px;
font-size: 12px;
border: solid 1px rgba(36, 114, 214, 1);
}
// top导航样式结束
//重写滚动条样式
::-webkit-scrollbar{
height: 10px;
width: 10px;
}
::-webkit-scrollbar-track{
background: rgb(234, 234, 234);
border-radius: 3px;
-webkit-box-shadow: inset 0 0 5px rgba(37, 37, 37, 0.05);
}
::-webkit-scrollbar-thumb {
border-radius: 6px;
border-style: dashed;
background: rgb(187, 187, 187);
-webkit-box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
border-color: transparent;
border-width: 2px;
background-clip: padding-box;
&:hover {
background: rgb(187, 187, 187);
}
}
.spinWrapper {
height: 100%;
}
//搜索
.searchBox, .searchbox, .searchInput, .searchinput {
margin-left: 0 !important;
flex-wrap: nowrap !important;
width: 100% !important;
> div {
padding-left: 0 !important;
&:last-child {
padding-right: 0 !important;
}
}
:global {
.ant-form-item {
margin-right: 0;
}
.ant-form-item-row, .ant-picker {
width: 100%;
}
}
.searchBtn {
display: flex;
justify-content: flex-end;
margin-bottom: 24px;
button+button {
margin-left: 8px;
}
> a {
margin-left: 8px;
line-height: 32px;
}
}
}
.searchInput, .searchinput {
> div {
&:nth-child(2) {
margin-left: 12px !important;
}
&:last-child {
padding-right: 24px !important;
margin-left: 12px !important;
}
}
:global {
.ant-form-item-row {
width: 100%;
}
}
}
// 表单组件公共样式
.createForm, .updateForm, .viewForm {
:global {
.ant-form {
margin-right: 24px;
width: 100%;
}
.ant-picker, .ant-input-number {
width: 100%;
}
}
}
//iconfont样式
.iconstyle {
color: #396AF2;
opacity: 0.85;
.iconright {
margin-right: 4px;
}
}
/*表格开始*/
.formtable {
width: 100%;
border: 1px solid #CCCCCC;
background-color: #fff;
color: #666;
vertical-align: middle;
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
>tbody {
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
height: 55px;
text-align: center;
&:first-child {
height: 55px;
td {
text-align: center;
}
}
td {
border: 1px solid #CCCCCC;
padding: 5px;
max-width: 100px;
font-size: 14px;
line-height: 20px;
.required {
// color: #ff4d4f;
&:before {
display: inline-block;
margin-right: 4px;
color: #ff4d4f;
font-size: 14px;
font-family: SimSun, sans-serif;
line-height: 1;
content: '*';
}
}
}
}
}
:global {
.ant-form-item {
margin-bottom: 0;
}
.ant-input,
.ant-select-selector,
.ant-picker,
.ant-input-affix-wrapper,
.ant-input-number {
border: 0 !important;
}
.ant-form-item-explain {
background-color: transparent;
position: absolute;
right: 30px;
top: 5px;
}
.ant-picker,
.ant-input {
background: transparent !important;
position: absolute;
z-index: 1;
left: 0;
top: 1px;
}
.ant-picker-input {
input {
text-align: center;
}
}
.ant-select-selection-item {
padding-right: 0 !important;
top: 1px;
}
}
}
.formtableNoneBorder {
width: 100%;
border: none;
background-color: #fff;
color: #666;
vertical-align: middle;
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
>tbody {
tr {
display: table-row;
vertical-align: inherit;
border-color: inherit;
height: 55px;
text-align: center;
&:first-child {
height: 55px;
td {
text-align: center;
}
}
td {
border: none;
padding: 15px 5px;
max-width: 100px;
font-size: 14px;
line-height: 20px;
.required {
// color: #ff4d4f;
&:before {
display: inline-block;
margin-right: 4px;
color: #ff4d4f;
font-size: 14px;
font-family: SimSun, sans-serif;
line-height: 1;
content: '*';
}
}
}
.textRight {
text-align: right;
}
}
}
:global {
.ant-form-item {
margin-bottom: 0;
}
.ant-form-item-explain {
background-color: transparent;
position: absolute;
right: 30px;
top: 5px;
}
.ant-picker,
.ant-input {
background: transparent !important;
position: absolute;
z-index: 1;
left: 0;
top: 1px;
}
.ant-picker-input {
input {
text-align: center;
}
}
.ant-select-selection-item {
padding-right: 0 !important;
top: 1px;
}
}
}
.errorIcon {
margin-right: 24px;
color: #f5222d;
cursor: pointer;
span {
margin-right: 4px;
}
}
/*表格结束*/
/*tree-node-title开始*/
.tree-node-title {
display: inline-flex;
.tree-node-action {
visibility: hidden;
a {
margin-right: 4px;
}
.add {
cursor: pointer;
color: #2db7f5
}
.delete {
cursor: pointer;
color: #f50;
}
.view {
cursor: pointer;
}
.edit {
cursor: pointer;
}
}
}
.tree-node-title:hover {
.tree-node-action {
visibility: visible;
}
}
/*tree-node-title结束*/
//溢出文字省略
.nowrapper {
display: inline-block;
vertical-align: middle;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media screen and (max-width: @screen-xl) {
.searchInput, .searchinput {
> div {
&:nth-child(2) {
margin-left: 6px !important;
}
&:last-child {
padding-right: 12px !important;
margin-left: 6px !important;
}
}
}
}
@media screen and (max-width: @screen-lg) {
.searchInput, .searchinput {
> div {
&:nth-child(2) {
margin-left: 2px !important;
}
&:last-child {
padding-right: 4px !important;
margin-left: 2px !important;
}
}
}
}
@media screen and (max-width: @screen-md) {
.searchInput, .searchinput {
> div {
&:nth-child(2) {
margin-left: 0 !important;
}
&:last-child {
padding-right: 0 !important;
margin-left: 0 !important;
}
}
}
.searchBox, .searchbox, .searchInput, .searchinput {
flex-wrap: wrap !important;
> div {
width: 100% !important;
}
}
}