less styles

This commit is contained in:
zuiidea
2017-01-09 21:57:01 +08:00
parent d0974b22bd
commit bf9e720500
16 changed files with 149 additions and 111 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
.percent{
.percent {
text-align: right!important;
}
.name{
.name {
text-align: left!important;
}
+21 -13
View File
@@ -1,41 +1,49 @@
@import "../vars.less";
.sales{
.title{
.sales {
.title {
margin-left: 32px;
font-size: 16px;
}
}
.radiusdot{
width:12px;
height:12px;
.radiusdot {
width: 12px;
height: 12px;
margin-right: 8px;
border-radius:50%;
display:inline-block;
border-radius: 50%;
display: inline-block;
}
.legend{
.legend {
color: @dark-half;
text-align: right;
color: #999;
font-size: 14px;
li{
li {
height: 48px;
line-height: 48px;
display: inline-block;
&+li{
&+li {
margin-left: 24px;
}
}
}
.tooltip{
.tooltip {
background: #fff;
padding: 20px;
font-size: 14px;
.tiptitle{
.tiptitle {
font-weight: 700;
font-size: 16px;
margin-bottom: 8px;
}
.tipitem{
.tipitem {
height: 32px;
line-height: 32px;
}
+11 -6
View File
@@ -4,28 +4,33 @@
height: 64px;
justify-content: space-between;
margin-bottom: 32px;
.item {
text-align: center;
height: 64px;
width: 100%;
position: relative;
&+.item{
&::before{
&+.item {
&::before {
content: '';
display: block;
width: 1px;
height: 40px;
position: absolute;
background: #f5f5f5;
background: #f5f5f5;
top: 12px;
}
}
p{
p {
color: #757575;
&:first-child{
&:first-child {
font-size: 16px;
}
&:last-child{
&:last-child {
font-size: 20px;
font-weight: 700;
}
+10 -5
View File
@@ -1,24 +1,29 @@
@import "../vars.less";
.numberCard{
.numberCard {
padding: 32px;
font-family: monospace;
margin-bottom: 24px;
cursor: pointer;
.iconWarp{
.iconWarp {
font-size: 54px;
float: left;
}
.content{
.content {
width: 100%;
padding-left: 78px;
.title{
.title {
line-height: 16px;
font-size: 16px;
margin-bottom: 8px;
height: 16px;
.text-overflow();
}
.number{
.number {
line-height: 32px;
font-size: 24px;
height: 32px;
+4 -2
View File
@@ -24,13 +24,15 @@
.description {
width: 100%;
p{
p {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 64px;
text-align: right;
&:last-child{
&:last-child {
font-weight: 100;
}
}
+3 -2
View File
@@ -1,6 +1,7 @@
@import "../vars.less";
.recentsales{
:global .ant-table-thead > tr > th{
.recentsales {
:global .ant-table-thead > tr > th {
background: #fff;
border-bottom: solid 1px @border-color-base;
}
+21 -13
View File
@@ -1,41 +1,49 @@
@import "../vars.less";
.sales{
.title{
.sales {
.title {
margin-left: 32px;
font-size: 16px;
}
}
.radiusdot{
width:12px;
height:12px;
.radiusdot {
width: 12px;
height: 12px;
margin-right: 8px;
border-radius:50%;
display:inline-block;
border-radius: 50%;
display: inline-block;
}
.legend{
.legend {
color: @dark-half;
text-align: right;
color: #999;
font-size: 14px;
li{
li {
height: 48px;
line-height: 48px;
display: inline-block;
&+li{
&+li {
margin-left: 24px;
}
}
}
.tooltip{
.tooltip {
background: #fff;
padding: 20px;
font-size: 14px;
.tiptitle{
.tiptitle {
font-weight: 700;
font-size: 16px;
margin-bottom: 8px;
}
.tipitem{
.tipitem {
height: 32px;
line-height: 32px;
}
+37 -24
View File
@@ -1,30 +1,34 @@
@import "../vars.less";
.user{
.header{
.user {
.header {
display: flex;
justify-content: center;
text-align: center;
color: #fff;
height: 200px;
background-image: url(http://hbfile.b0.upaiyun.com/img/home/banner/ae28b900fda7f5f4975dd9e13f628150ed627e7c1036e2);
background-image: url("http://hbfile.b0.upaiyun.com/img/home/banner/ae28b900fda7f5f4975dd9e13f628150ed627e7c1036e2");
background-repeat: no-repeat;
background-size: cover;
align-items: center;
.headerinner{
.headerinner {
z-index: 2;
}
&::after{
content: '';
background: @purple;
position: absolute;
width: 100%;
height: 200px;
left: 0;
top:0;
opacity: .4;
z-index: 1;
}
.avatar{
&::after {
content: '';
background: @purple;
position: absolute;
width: 100%;
height: 200px;
left: 0;
top: 0;
opacity: 0.4;
z-index: 1;
}
.avatar {
width: 64px;
height: 64px;
background-position: center;
@@ -32,23 +36,27 @@
border-radius: 50%;
display: inline-block;
}
.name{
.name {
font-size: 16px;
}
}
.number {
display: flex;
height: 116px;
justify-content: space-between;
border-bottom: solid 1px #f5f5f5;
.item {
text-align: center;
height: 116px;
width: 100%;
position: relative;
padding: 30px 0;
&+.item{
&::before{
&+.item {
&::before {
content: '';
display: block;
width: 1px;
@@ -58,24 +66,29 @@
top: 0;
}
}
p{
p {
color: #757575;
&:first-child{
&:first-child {
font-size: 16px;
}
&:last-child{
&:last-child {
font-size: 20px;
font-weight: 700;
}
}
}
}
.footer{
.footer {
height: 116px;
display: flex;
justify-content: center;
align-items: center;
:global .ant-btn{
:global .ant-btn {
color: @purple;
border-color: @purple;
padding: 6px 16px;
+1 -1
View File
@@ -21,7 +21,7 @@
background-size: cover;
}
p{
p {
margin-top: 16px;
}
}
+3 -3
View File
@@ -95,8 +95,8 @@ body {
}
}
}
:global .ant-form-item-control{
vertical-align:middle;
}
:global .ant-form-item-control {
vertical-align: middle;
}
@import "../skin.less";
+10 -6
View File
@@ -1,17 +1,21 @@
@import "./vars.less";
:global{
.ant-modal-mask{
:global {
.ant-modal-mask {
background-color: rgba(55, 55, 55, 0.2);
}
.ant-modal-content{
.ant-modal-content {
box-shadow: none;
}
.ant-card{
&:hover{
.ant-card {
&:hover {
overflow: auto;
}
}
.ant-pagination-item{
.ant-pagination-item {
margin-bottom: 8px;
}
}
+3 -2
View File
@@ -9,7 +9,7 @@
position: relative;
:global {
.anticon-cross{
.anticon-cross {
position: absolute;
width: 18px;
height: 18px;
@@ -19,9 +19,10 @@
line-height: 18px;
border-radius: 50%!important;
background-color: rgba(0, 0, 0, .16);
top:7px;
top: 7px;
// opacity:
}
.ant-select {
width: 80px;
flex-shrink: 0;
+8 -10
View File
@@ -1,12 +1,10 @@
td.avatar{
line-height: 1;
height: 59px;
img{
border-radius: 50%;
}
}
.table{
td{
height: 38px;
.table {
td.avatar {
line-height: 1;
height: 59px;
img {
border-radius: 50%;
}
}
}
+8 -17
View File
@@ -1,5 +1,4 @@
@import "../../node_modules/antd/lib/style/themes/default.less";
// // Prefix
@import "../../node_modules/antd/lib/style/themes/default.less"; // // Prefix
// @ant-prefix : ant;
//
// // Color
@@ -171,26 +170,18 @@
// @input-disabled-bg : @background-color-base;
//
// @form-item-margin-bottom : 24px;
/*========================*/
/*=======Antd Admin=======*/
/*========================*/
//Color
@dark-half: #494949;
@purple: #d897eb; // Shadow
@shadow-1: 4px 4px 20px 0 rgba(0,0,0,0.01);
@shadow-2: 4px 4px 40px 0 rgba(0,0,0,0.05); //transition
@transition-ease-in: all 0.3s @ease-in;
@transition-ease-out: all 0.3s @ease-out; //mix
@dark-half:#494949;
@purple:#d897eb;
// Shadow
@shadow-1 : 4px 4px 20px 0 rgba(0,0,0,0.01);
@shadow-2 : 4px 4px 40px 0 rgba(0,0,0,0.05);
//transition
@transition-ease-in : all .3s @ease-in;
@transition-ease-out : all .3s @ease-out;
//mix
.text-overflow(){
.text-overflow() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+4 -4
View File
@@ -5,14 +5,14 @@
}
}
.weather{
&:hover{
.weather {
&:hover {
box-shadow: 4px 4px 40px rgba(143,201,251,.6);
}
}
.quote{
&:hover{
.quote {
&:hover {
box-shadow: 4px 4px 40px rgba(246,152,153,.6);
}
}
+3 -1
View File
@@ -7,10 +7,12 @@
left: 50%;
margin-left: -100px;
width: 200px;
:global .anticon{
:global .anticon {
font-size: 48px;
margin-bottom: 16px;
}
h1 {
font-family: cursive;
}