index.scss 6.3 KB
Newer Older
DCloud_JSON's avatar
DCloud_JSON 已提交
1 2 3 4
 // .tip{
 //   flex: 1;
 // }
page {
DCloud_JSON's avatar
DCloud_JSON 已提交
5
  width: 100%;
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
6 7
  height: 100%;
  flex: 1;
DCloud_JSON's avatar
DCloud_JSON 已提交
8 9 10
  background-color: #2e2e3e;
  /* #ifdef H5 */
  @media screen and (min-device-width:960px){
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
11
    height: 100vh;
DCloud_JSON's avatar
DCloud_JSON 已提交
12 13 14 15 16 17 18 19 20 21 22
    padding: 20px;
    .pointer {
      cursor: pointer;
    }
  }
  /* #endif */
  .uni-im-index {
    // border: 1px solid #FFF;
    background-color: #ececec;
    flex: 1;
    height: 100%;
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
23 24
    overflow: hidden;
    flex-direction: row;
DCloud_JSON's avatar
DCloud_JSON 已提交
25 26 27 28 29
    /* #ifdef H5 */
    @media screen and (min-device-width:960px){
      border-radius: 20px;
    }
    #left-view {
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
30
      .item{
DCloud_JSON's avatar
DCloud_JSON 已提交
31 32 33
       cursor: pointer;
       margin-top: 36px;
      }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
34
      .item:hover{
DCloud_JSON's avatar
DCloud_JSON 已提交
35 36 37 38 39 40 41 42
       box-shadow: 0 0 20px 2px #fefefe;
       border-radius: 10px;
      }
      width:60px;
      align-items: center;
      padding-top: 100px;
      background-color: #ececec;
      border-radius: 20px 0 0 20px;
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
43 44 45
      
      .uni-link:hover{
        color: #00aa55 !important;
DCloud_JSON's avatar
DCloud_JSON 已提交
46
      }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
47 48 49 50 51 52 53 54 55 56 57
      .download {
        box-shadow: unset;
        margin-top: auto;
        margin-bottom: 60px;
        .item {
          box-shadow: unset;
          margin-top: 25px;
          padding: 5px;
          width: 45px;
          &:hover {
            box-shadow: 0 0 20px 2px #fefefe;
DCloud_JSON's avatar
DCloud_JSON 已提交
58
          }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
          ::v-deep span {
            display: flex;
            align-items: center;
            flex-direction: column;
            .icon {
              font-size: 12px;
               width: 26px;
               height: 26px;
               margin-bottom: 3px;
            }
            .title {
              width: 50px;
              text-align: center;
              font-size: 12px;
              transform: scale(0.8);
              color: #666;
            }
DCloud_JSON's avatar
DCloud_JSON 已提交
76
          }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
77 78 79
          &.uni-link--withline {
            // 去掉下划线
            text-decoration: unset !important;
DCloud_JSON's avatar
DCloud_JSON 已提交
80 81 82
          }
        }
      }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
83
    }
DCloud_JSON's avatar
DCloud_JSON 已提交
84
    #right-view {
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
85
      position: relative;
DCloud_JSON's avatar
DCloud_JSON 已提交
86 87 88 89 90 91
      width: 0;
      flex-grow: 1;
      background-color: #FFFFFF;
      #chat-view-box {
        flex-grow: 1;
        .header {
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
92 93
          height: 50px;
          background-color: #FAFAFA;
DCloud_JSON's avatar
DCloud_JSON 已提交
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
          padding:0 20px;
          flex-direction: row;
          justify-content: end;
          align-items: center;
          .more{
            cursor: pointer;
          }
        }
        .content {
          flex: 1;
          ::v-deep {
            #web-pc-chat-title
            {
              position: absolute;
              z-index: 99;
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
109
              top: -35px;
DCloud_JSON's avatar
DCloud_JSON 已提交
110
              left: 15px;
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
111
              flex-direction: row;
DCloud_JSON's avatar
DCloud_JSON 已提交
112 113 114 115 116 117
            }
            .unread_count {
              display: none;
            }
            .msg-list {
              .uni-im-list {
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
118 119
                height: 0;
                flex: 1;
DCloud_JSON's avatar
DCloud_JSON 已提交
120 121 122 123 124 125
                .uni-im-msg {
                  padding: 0 10px;
                }
              }
            }
          }
DCloud_JSON's avatar
DCloud_JSON 已提交
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
          .chatInfoBox {
            z-index: 9;
            position: absolute;
            right:0;
            background-color: rgba(0,0,0,0.2);
            height: 100%;
            width: 100%;
            align-items: flex-end;
            .group-info-parent{
              height: 100%;
              overflow-y: auto;
            }
            .group-info-text {
              max-width: 250px !important;
              text-align: left;
              word-break: break-all;
            }
DCloud_JSON's avatar
DCloud_JSON 已提交
143 144 145 146
          }
        }
      }
      #ccid-is-null-tip {
DCloud_JSON's avatar
DCloud_JSON 已提交
147
        flex: 1;
DCloud_JSON's avatar
DCloud_JSON 已提交
148 149 150 151 152 153 154 155 156 157 158 159 160 161
        padding-top: 30vh;
        align-items: center;
        background-color: #efefef;
        .img {
          width: 130px;
          margin-bottom: 15px;
        }
        .text {
          color: #999;
        }
      }
      #dynamic-component-box {
       z-index: 9;
       width: 100%;
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
162
       height: 100%;
DCloud_JSON's avatar
DCloud_JSON 已提交
163 164 165 166 167
       background-color: #fff;
       position: absolute;
       right: 0;
       .dynamic-component-title{
         padding-left: 15px;
168
         height: 70px;
DCloud_JSON's avatar
DCloud_JSON 已提交
169 170
         justify-content: center;
         border: 1px solid #efefef;
171
       }
DCloud_JSON's avatar
DCloud_JSON 已提交
172
       .system-notice-box{
173 174
         width: 100%;
       }
DCloud_JSON's avatar
DCloud_JSON 已提交
175
       .create-group-box .header-box{
176
         width: 100%;
DCloud_JSON's avatar
DCloud_JSON 已提交
177
         .uni-searchbar {
178 179 180
           width: 100%;
         }
       }
DCloud_JSON's avatar
DCloud_JSON 已提交
181 182
      }
    }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
    /* #endif */
    #center-view{
      position: relative;
      background-color: #FFF;
      width: 100%;
      /* #ifdef H5 */
      @media screen and (min-device-width:960px){
        width:300px;
        background-color: #F9F9F9;
      }
      /* #endif */
      overflow: hidden;
      #search-bar-box {
        flex-direction: row;
        align-items: center;
        height: 50px;
        padding:0 10px;
        background-color: #FCFCFC;
        #search-bar {
          flex: 1;
          padding: 0;
          ::v-deep .uni-searchbar__box {
            height: 26px;
            justify-content: flex-start;
            .uni-input-placeholder,
            .uni-searchbar__text-placeholder {
              color: #CCC;
              font-size: 12px;
              padding-left: 0;
            }
            .uni-searchbar__box-icon-search {
              padding: 0 2px 0 8px;
              top: -1px;
              .uniui-search:before {
                font-size: 14px;
                color: #CCC;
              }
            }
          }
        }
        .add-icon {
          margin-left: 10px;
          width: 25px;
          height: 25px;
          display: flex;
          background-color: #f3f3f3;
          justify-content: center;
          align-items: center;
          border-radius: 5px;
        }
      }
      #conversation-list-box {
        height: 0;
        flex: 1;
        /* #ifdef H5 */
        @media screen and (min-device-width:960px){
          ::v-deep {
            .conversation-list-item {
              margin: 5px;
            }
          }
        }
        /* #endif */
      }
      #uni-im-contacts-box {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 9;
        width: 100%;
        height: 100%;
        .contacts-pages ::v-deep {
          .user-list-box {
            overflow: auto;
          }
          .activeMenu {
            background-color: #f5f5f5 !important;
          }
        }
      }
    }  
DCloud_JSON's avatar
DCloud_JSON 已提交
264 265
  }
}
DCloud_JSON's avatar
DCloud_JSON 已提交
266

267
.windows {
DCloud_JSON's avatar
DCloud_JSON 已提交
268 269 270
  #center-view #conversation-list-box  .conversation-list-item .uni-list-chat__container {
    padding-right: 10px;
  }
DCloud_JSON's avatar
3.4.31  
DCloud_JSON 已提交
271 272 273 274 275 276 277 278 279 280
} 

.isPWA {
  uni-page-body {
    padding: 0;
    .uni-im-index {
      border-radius: 0;
    }
  }
}