| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490 |
- $heightBase:11.1vh;
- $widthBase:20%;
- $fontSizeNormal:.8vw;
- //所有div基础样式
- @mixin divBase {
- background: rgba(255,255,255,1);
- box-shadow: 0px 2px 12px 0px rgba(83,101,164,0.3);
- border-radius: 10px;
- margin-top: 20px;
- &:first-child {
- margin-top: 0px;
- }
- }
- //保持暗色主题添加border后 div高度一致
- @mixin divBaseHeight ($divSelfHeight){
- [data-theme="dark"] & {
- height: $divSelfHeight * .99;
- }
- }
- @mixin divBase_dark{
- [data-theme="dark"] & {
- background:transparent;
- box-shadow: none;
- border: 1px solid rgba(54, 162, 252, 1);
- }
- }
- @mixin fontColor_dark{
- [data-theme="dark"] & {
- color:#fff;
- }
- }
- //暗色主题浅灰色字体
- @mixin fontColor_dark_gray{
- [data-theme="dark"] & {
- color:rgba(177, 210, 254, 1);
- }
- }
- //左上用户在线情况和bar的暗色无边框
- @mixin border_delete_dark{
- [data-theme="dark"] & {
- border:none;
- }
- }
- //右上问题个数统计暗色无图片加虚线底边框
- @mixin background_deletePic {
- [data-theme="dark"] & {
- background-image: none;
- border-bottom: 1px dashed rgba(255,255,255,0.5);
- }
- }
- //用户情况内部样式
- @mixin systemStatus ($backgroundColor) {
- float: left;
- width: 9.2vw;
- height: $heightBase * .83;
- background: $backgroundColor;
- border-radius: 6px;
- margin-top: 1vh;
- margin-left: .5vw;
- .icon {
- width: 40%;
- height: 100%;
- float: left;
- img {
- float: left;
- padding: 2vh 1vh;
- width: 5vh;
- }
- }
- .text {
- width: 60%;
- height: 100%;
- font-size: medium;
- float: left;
- color: #fff;
- div {
- margin: 2vh 0 .5vh 0;
- &:last-child {
- margin: 0;
- }
- }
- }
- }
- //!左右小div头部样式
- @mixin simpleHeader {
- .simple_header {
- height: $heightBase / 2.5;
- .simple_header_icon {
- background-color: rgba(46, 101, 253, 1);
- width: 4px;
- height: 2vh;
- border-radius: 4px;
- float: left;
- margin: .6vw;
- }
- .simple_header_text {
- float: left;
- color: rgba(49, 63, 102, 1);
- font-size: .9vw;
- padding: .5vw 0;
- font-weight: bold;
- @include fontColor_dark;
- }
- .simple_header_control {
- float: left;
- padding: .5vh 0;
- text-align: right;
- width: 13.6vw;
- }
- }
- }
- @mixin checked($boxShaDowDolor) {
- box-shadow: 0 0 10px $boxShaDowDolor;
- }
- @mixin bar ($image) {
- border-radius: 4px;
- margin-left: .5vw;
- color: #fff;
- cursor: pointer;
- width: 11vw;
- height: 9.7vh;
- padding: 0vw;
- margin-top: .6vh;
- float: left;
- background: {
- image: url($image);
- repeat: no-repeat;
- size: 100% 100%;
- }
- .content {
- width: 80%;
- height: 100%;
- .content_top {
- padding: 1vh .5vw;
- span {
- margin-left: .4vw;
- font-size: .9vw;
- }
- }
- .content_bottom {
- .content_bottom_num {
- margin-left: 1vw;
- font-size: 1vw;
- }
- .content_bottom_dw {
- font-size: $fontSizeNormal;
- }
- }
- }
- }
- //左侧div
- .left {
- width: $widthBase * 1;
- float: left;
- //左侧div中的QuestionLineChart组件样式
- .left_qusLineChart {
- @include divBase;
- @include divBase_dark;
- height: $heightBase * 3.8;
- @include divBaseHeight (($heightBase * 3.6));
- .simple_header{
- height: $heightBase / 2.5 ;
- border-radius: 10px 10px 0px 0px;
- padding: 10px 20px;
- background:linear-gradient(180deg,rgba(255,255,255,1) 0%,rgba(233,240,243,1) 100%);
- box-shadow:0px -1px 0px 0px rgba(0,0,0,0.1);
- .simple_header_text{
- float: left;
- color: #333;
- font-size: 1.1vw;
- padding: .5vw 0;
- font-weight: bold;
- position: relative;
- .redCircle{
- position: absolute;
- width: 16px;
- height: 16px;
- background-color: #E52C10;
- font-size: 12px;
- border-radius: 12px;
- text-align: center;
- color: #ffffff;
- }
- }
- }
- .left_Notices_content {
- font-size: 14px;
- color: #606266;
- max-height: $heightBase * 3.1;
- overflow-y: auto;
- width: 100%;
- ul {
- // padding: 0;
- margin: 0;
- padding: 0 1vw;
- }
- li {
- margin: 0;
- height: 5.6vh;
- line-height: 2.8vh;
- list-style: none;
- border-bottom: 1px dashed rgba(239,240,244,1);
- img.notice_img{
- width: 30px;
- height: 30px;
- vertical-align: middle;
- margin-right: 10px;
- }
- a {
- color: #333333;
- text-decoration: none;
- @include fontColor_dark_gray;
- &:hover {
- color: #3D7EFF;
- }
- }
- }
- span.jc_date{
- float: left;
- color: #999999;
- }
- }
- }
- //左侧div中的Notices组件样式
- .left_notices {
- @include divBase;
- @include divBase_dark;
- height: $heightBase * 3.8;
- @include divBaseHeight (($heightBase * 3.6));
- .simple_header{
- height: $heightBase / 2.5 ;
- border-radius: 10px 10px 0px 0px;
- padding: 10px 20px;
- background:linear-gradient(180deg,rgba(255,255,255,1) 0%,rgba(233,240,243,1) 100%);
- box-shadow:0px -1px 0px 0px rgba(0,0,0,0.1);
- .simple_header_text{
- float: left;
- color: #333;
- font-size: 1.1vw;
- padding: .5vw 0;
- font-weight: bold;
- }
- }
- .left_Notices_content {
- font-size: 14px;
- color: #606266;
- max-height: $heightBase * 3.1;
- overflow-y: auto;
- width: 100%;
- ul {
- // padding: 0;
- margin: 0;
- padding: 0 1vw;
- }
- li {
- margin: 0;
- height: 5.6vh;
- line-height: 2.8vh;
- list-style: none;
- border-bottom: 1px dashed rgba(239,240,244,1);
- a {
- color: #333333;
- text-decoration: none;
- @include fontColor_dark_gray;
- &:hover {
- color: #3D7EFF;
- }
- }
- }
- span.jc_date{
- float: left;
- color: #999999;
- }
- }
- }
- }
- //中部div
- .middle {
- width: $widthBase * 2.88;
- float: left;
- margin-left: 20px;
- .middle_map {
- @include divBase;
- @include divBase_dark;
- height: $heightBase * 5.55;
- text-align: center;
- padding-top: 5px;
- .map_header{
- margin: 0px auto 5px;
- width: 50%;
- height: 46px;
- line-height: 46px;
- font-size: 20px;
- color: #ffffff;
- background-color: #437BEB;
- box-shadow: 10px 10px 5px #C6D7F9;
- border-radius:10px;
- span{
- font-size: 20px;
- }
- }
- }
- .middle_bar {
- @include divBase;
- @include divBase_dark;
- height: $heightBase * 2;
- @include simpleHeader;
- }
- }
- //右侧div
- .right {
- width: $widthBase;
- float: left;
- margin-left: 20px;
- .right_qus {
- @include divBase;
- box-shadow:none;
- background-color: #EFF0F4;
- @include divBase_dark;
- height: $heightBase * 1.3 ;
- @include divBaseHeight (($heightBase * 1.3));
- display: flex;
- flex-wrap: nowrap;
- .firstDiv{
- flex: 1;
- margin-right: 20px;
- border-radius: 10px;
- background-color: #ffffff;
- box-shadow: 0px 2px 12px 0px rgba(83,101,164,0.3);
- p.p_header{
- text-align: center;
- font-size: 18px;
- line-height: $heightBase * .36;
- font-weight:600;
- border-radius: 10px 10px 0px 0px;
- color:rgba(255,255,255,1);
- height:$heightBase * .36;
- background:rgba(67,123,235,1);
- }
- .flexBox{
- display: flex;
- flex-wrap: nowrap;
- .imgBox{
- flex: 1;
- padding: 15px 5px;
- img{
- width: 50px;
- height: 50px;
- }
- }
- .contentBox{
- flex: 3;
- padding: 15px 0px;
- line-height: 4vh;
- .firstP{
- text-align: center;
- font-size: 24px;
- color: #E6A23C;
- }
- .secondP{
- color: #5365A4;
- font-size: 10px;
- }
- }
- }
- }
- .secondDiv{
- flex: 1;
- background-color: #ffffff;
- border-radius: 10px;
- box-shadow: 0px 2px 12px 0px rgba(83,101,164,0.3);
- p.p_header{
- text-align: center;
- font-size: 18px;
- line-height: $heightBase * .36;
- font-weight:600;
- border-radius: 10px 10px 0px 0px;
- color:rgba(255,255,255,1);
- height:$heightBase * .36;
- background:rgba(67,123,235,1);
- }
- .flexBox{
- display: flex;
- flex-wrap: nowrap;
- .imgBox{
- flex: 1;
- padding: 15px 5px;
- img{
- width: 50px;
- height: 50px;
- }
- }
- .contentBox{
- flex: 3;
- padding: 15px 0px;
- line-height: 4vh;
- .firstP{
- text-align: center;
- font-size: 14px;
- color: #957E58;
- span{
- font-size: 24px;
- color: #E6A23C;
- }
- }
- .secondP{
- color: #5365A4;
- font-size: 10px;
- span{
- margin-left: 10px;
- color: #73DEB3;
- }
- }
- }
- }
- }
- }
- //右侧div中的QuestionLineChart组件样式
- .right_pie_dcdx {
- @include divBase;
- @include divBase_dark;
- height: $heightBase * 3.05;
- @include divBaseHeight (($heightBase * 2));
- @include simpleHeader;
- .right_FinishRate_content{
- width: 100%;
- height: ($heightBase * 3.05) - ($heightBase / 3);
- }
- }
- .right_pie_wtfb {
- @include divBase;
- @include divBase_dark;
- height: $heightBase * 3.05;
- @include divBaseHeight (($heightBase * 2.22));
- @include simpleHeader;
- .left_ProblemPieChart_content{
- width: 100%;
- height: ($heightBase * 3.05) - ($heightBase / 3);
- }
- }
- }
- // .myRadio .el-radio-button--mini .el-radio-button__inner {
- // padding: .8vh .5vw;
- // font-size: 12px;
- // }
- // .myRadio .el-radio-button__orig-radio:checked+.el-radio-button__inner {
- // padding:.8vh .5vw;
- // }
|