| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- .dashboard-viewcontent {
- height: 100%;
- .default-chartview {
- background: transparent;
- display: flex;
- justify-content: center;
- .tip {
- display: flex;
- align-items: center;
- font-size: 24px;
- .anticon {
- margin-top: 3px;
- margin-right: 4px;
- }
- }
- }
- .chartview {
- display: flex;
- flex-direction: column;
- padding-top: 40px;
- z-index: 1;
- // border: 1px solid #CCCCCC;
- background: white;
- &:hover {
- .chartview-toolbar {
- .chart-tools {
- display: block;
- }
- }
- }
- .chartview-toolbar {
- height: 40px;
- margin-top: -40px;
- display: flex;
- padding: 0 10px;
- justify-content: space-between;
- .chart-title {
- font-size: 16px;
- line-height: 40px;
- display: flex;
- flex-wrap: nowrap;
- }
- .chart-tools {
- display: none;
- font-size: 20px;
- line-height: 40px;
- white-space: nowrap;
- .anticon {
- color: @icon-color-default;
- display: none;
- margin-left: 10px;
- cursor: pointer;
- }
- .visible-icon {
- display: inline-block;
- }
- }
- }
- .chartview-content {
- flex: 1;
- overflow: hidden;
- .dashboard-table { // 表格
- height: 100%;
- .ant-spin-nested-loading {
- height: 100%;
- .ant-spin-container {
- height: 100%;
- padding-bottom: 10px;
- .ant-table {
- overflow: hidden;
- .ant-table-content {
- height: 100%;
- .ant-table-scroll {
- height: 100%;
- .ant-table-body {
- height: calc(~"100% - 38px");
- margin-top: 0;
- }
- }
- }
- }
- .ant-pagination {
- margin: 8px 0;
- }
- }
- }
- }
- .chart-default { // echart缺省
- background-image: url(../../../static/images/chart-default.png);
- width: 100%;
- height: 100%;
- max-width: 200px;
-
- background-position: center;
- background-size: contain;
- background-repeat: no-repeat;
- }
- .richtexteditor { // 富文本
- height: 100%;
- .w-e-toolbar {
- height: 40px;
- background-color: white !important;
- position: absolute;
- top: 0;
- display: none;
- }
- .w-e-text-container {
- height: 100% !important;
- overflow: auto;
- border: none !important;
- .w-e-text {
- padding: 0 14px;
- overflow-y: auto;
- &>table {
- margin: 0;
- }
- &>p {
- margin: 0;
- }
- }
- .w-e-panel-container {
- z-index:100000;
- }
- }
- }
- }
- &:hover {
- .chart-tools {
- .anticon {
- display: inline-block;
- &:hover {
- color: @icon-color-hover;
- }
- }
- }
- }
- }
- .chartview-edit {
- .chartview-toolbar {
- cursor: move;
- }
- .chartview-content {
- height: calc(~'100% - 20px');
- width: 100%;
- .richtexteditor {
- .w-e-text-container {
- pointer-events: all;
- }
- }
- }
- }
- .react-grid-layout {
- // background: #eee;
- }
- .layoutJSON {
- background: #ddd;
- border: 1px solid black;
- margin-top: 10px;
- padding: 10px;
- }
- .columns {
- -moz-columns: 120px;
- -webkit-columns: 120px;
- columns: 120px;
- }
- .react-grid-item {
- box-sizing: border-box;
- }
- .react-grid-item.resizing {
- opacity: 0.9;
- }
- .react-grid-item .text {
- font-size: 24px;
- text-align: center;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto;
- }
- .react-grid-item .minMax {
- font-size: 12px;
- }
- .react-grid-item .add {
- cursor: pointer;
- }
- .react-grid-dragHandleExample {
- cursor: move; /* fallback if grab cursor is unsupported */
- cursor: grab;
- cursor: -moz-grab;
- cursor: -webkit-grab;
- }
- li b {
- font-size: 19px;
- line-height: 14px;
- }
-
- .toolbox {
- background-color: #dfd;
- width: 100%;
- height: 120px;
- overflow: scroll;
- }
-
- .hide-button {
- cursor: pointer;
- position: absolute;
- font-size: 20px;
- top: 0px;
- right: 5px;
- }
-
- .toolbox__title {
- font-size: 24px;
- margin-bottom: 5px;
- }
- .toolbox__items {
- display: block;
- }
- .toolbox__items__item {
- display: inline-block;
- text-align: center;
- line-height: 40px;
- cursor: pointer;
- width: 40px;
- height: 40px;
- padding: 10px;
- margin: 5px;
- border: 1px solid black;
- background-color: #ddd;
- }
-
- .react-grid-layout {
- position: relative;
- transition: height 200ms ease;
- }
- .react-grid-item {
- transition: all 200ms ease;
- transition-property: left, top;
- }
- .react-grid-item.cssTransforms {
- transition-property: transform;
- }
- .react-grid-item.resizing {
- z-index: 2;
- opacity: 0.5;
- will-change: width, height;
- }
-
- .react-grid-item.react-draggable-dragging {
- transition: none;
- opacity: 0.8;
- z-index: 3 !important;
- will-change: transform;
- }
-
- .react-grid-item.react-grid-placeholder {
- background: #dddddd;
- border: 5px dashed #cccccc;
- transition-duration: 100ms;
- z-index: 1;
- user-select: none;
- }
-
- .react-grid-item > .react-resizable-handle {
- height: 10px;
- bottom: 0;
- right: 0;
- cursor: s-resize;
- &::after {
- content: "";
- cursor: se-resize;
- position: absolute;
- right: 3px;
- bottom: 3px;
- width: 7px;
- height: 7px;
- border-right: 2px solid rgba(0, 0, 0, 0.4);
- border-bottom: 2px solid rgba(0, 0, 0, 0.4);
- }
- }
- }
- .previewbox {
- top: 10%;
- padding-bottom: 0;
- .ant-modal-content {
- height: 100%;
- .ant-modal-close {
- display: none;
- }
- .ant-modal-body {
- height: 100%;
- padding-top: 0;
- .chartview {
- display: flex;
- flex-direction: column;
- height: 100%;
- padding-top: 40px;
- .chartview-toolbar {
- padding: 0;
- height: 40px;
- margin-top: -40px;
- display: flex;
- justify-content: space-between;
- .chart-title {
- font-size: 20px;
- line-height: 2.5;
- }
- .chart-tools {
- font-size: 20px;
- line-height: 2;
- white-space: nowrap;
- .anticon {
- margin-left: 10px;
- cursor: pointer;
- }
- }
- }
- .chartview-content {
- flex:1;
- overflow: hidden;
- .ant-table-body {
- margin-top: 0;
- }
- }
- }
- }
- }
- }
|