Skip to content

Commit 35c8940

Browse files
committed
数据分析页面代码太长,把css拆成独立文件
1 parent 5102e3a commit 35c8940

File tree

2 files changed

+216
-215
lines changed

2 files changed

+216
-215
lines changed

src/components/MainPage/analytics.vue

Lines changed: 1 addition & 215 deletions
Original file line numberDiff line numberDiff line change
@@ -770,219 +770,5 @@ export default {
770770
</script>
771771

772772
<style scoped lang="less">
773-
@import "../../static/css/base";
774-
@import "../../static/css/AboutMe";
775-
776-
/*pc*/
777-
@media only screen and (min-device-width : 768px) {
778-
.content {
779-
width: 1088px;
780-
margin: 74px auto 0;
781-
}
782-
783-
.pie-content {
784-
display: flex;
785-
align-items: center;
786-
}
787-
788-
.pie-item {
789-
790-
height: 250px;
791-
}
792-
.scal-left{
793-
flex: 40%;
794-
}
795-
.scal-center{
796-
flex: 25%;
797-
}
798-
.scal-right{
799-
flex: 35%;
800-
}
801-
}
802-
803-
/*mobile*/
804-
@media only screen and (max-device-width : 768px) {
805-
.content {
806-
margin: 88px auto 0;
807-
}
808-
809-
.give-up {
810-
display: none !important;
811-
}
812-
813-
.pie-content {
814-
text-align: center;
815-
}
816-
817-
.pie-item {
818-
flex: 1;
819-
height: 250px;
820-
}
821-
822-
.action-padding {
823-
padding-right: 1rem;
824-
}
825-
}
826-
827-
.quota-content {
828-
.myflex(center);
829-
color: rgba(0, 0, 0, 0.65);
830-
}
831-
832-
.quota-item {
833-
flex: 1;
834-
text-align: center;
835-
}
836-
837-
.quota-item .num {
838-
font-size: 1.2rem;
839-
margin-bottom: 0;
840-
}
841-
842-
.block {
843-
background-color: #FFFFFF;
844-
margin-top: 1rem;
845-
padding: 1.5rem;
846-
border-radius: 2px;
847-
}
848-
849-
.block-name {
850-
padding: 0.5rem;
851-
border-bottom: 1px solid #f0f0f0;
852-
}
853-
854-
.block-nopadding{
855-
padding: 0 !important
856-
}
857-
858-
.padding-left-right{
859-
padding: 1.5rem;
860-
}
861-
862-
.title-part {
863-
display: flex;
864-
align-items: end;
865-
}
866-
867-
.module-title {
868-
font-size: 18px;
869-
font-weight: 500;
870-
height: 18px;
871-
line-height: 18px;
872-
}
873-
874-
.list {
875-
border: 1px solid #e9e9e9;
876-
margin-top: 1.5rem;
877-
}
878-
879-
.day-switch {
880-
color: #999;
881-
font-size: 12px;
882-
line-height: 12px;
883-
display: flex;
884-
vertical-align: middle;
885-
margin-left: 1rem;
886-
cursor: pointer;
887-
}
888-
889-
.total-number {
890-
color: @DefaultFontColor;
891-
flex: 1;
892-
text-align: right;
893-
cursor: auto;
894-
display: block;
895-
}
896-
897-
.item {
898-
padding: 0 0.5rem;
899-
border-right: 1px solid #999;
900-
}
901-
902-
.item:first-child {
903-
padding-left: 0;
904-
}
905-
906-
.item:last-child {
907-
border-right: none;
908-
}
909-
910-
.item:hover {
911-
color: rgba(1, 189, 255, 0.75);
912-
}
913-
914-
.active {
915-
color: #01aaed;
916-
}
917-
918-
.line-chart {
919-
height: 300px;
920-
margin-top: 1.5rem;
921-
}
922-
923-
.map-chart {
924-
height: 400px;
925-
}
926-
927-
.list-head {
928-
color: #8590a6;
929-
.myflex(center);
930-
border-bottom: 1px solid #f0f0f0;
931-
padding: 8px 0;
932-
}
933-
934-
.list-tr {
935-
.myflex(center);
936-
//border-bottom: 1px solid #f0f0f0;
937-
padding: 8px 0;
938-
border-bottom: 1px solid #e9e9e9;
939-
}
940-
941-
.list-td {
942-
flex: 1;
943-
padding-left: 1rem;
944-
overflow: hidden;
945-
}
946-
947-
.line-heigh {
948-
line-height: 1.1rem;
949-
}
950-
951-
.list-td:nth-child(1) {
952-
flex: 18%;
953-
}
954-
955-
.list-td:nth-child(2) {
956-
flex: 37%;
957-
}
958-
959-
.list-td:nth-child(3) {
960-
flex: 13%;
961-
}
962-
963-
.list-td:nth-child(4) {
964-
flex: 10%;
965-
border-right: none;
966-
text-align: center !important;
967-
}
968-
969-
.list-td:nth-child(5) {
970-
flex: 22%;
971-
border-right: none;
972-
}
973-
974-
.list-td ul {
975-
margin-block-start: 0em;
976-
margin-block-end: 0em;
977-
padding-inline-start: 16px;
978-
}
979-
980-
.list .single {
981-
background: #f6f6f6;
982-
}
983-
984-
.list .align {
985-
text-align: right;
986-
padding-right: 1rem;
987-
}
773+
@import "../../static/css/analytic";
988774
</style>

0 commit comments

Comments
 (0)