lesson-title-config.component.scss 5.34 KB
Newer Older
李维's avatar
李维 committed
1
@import '../../style/common_mixin'; 
liujiangnan's avatar
liujiangnan committed
2 3 4 5 6 7 8 9 10 11 12 13

.title-config {
  .letter-wrap{
    width: 3rem;
    flex: 0 0 3rem;
  }
  .str-wrap{
    margin-left: 1rem;flex: 1 1;
  }
  .type-row{
    margin: 0;padding-top: 1rem;
  }
李维's avatar
李维 committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
  .icon-item{
    margin-right: 16px;
    float: left;
    width: 45px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    .icon-badge{
      position: absolute;
      top: 0;
      right: 0;
    }
    .img-box{
      top: 0;
      position: absolute;
      width: 45px;
      height:   50px;
      display: flex;
      justify-content: center;
      align-items: center;
      img{
        max-width: 100%;
      }
    }
    label{
      position: absolute;
      bottom: 0;
    }
  }
} 
liujiangnan's avatar
liujiangnan committed
46 47 48 49 50 51 52 53 54 55 56 57

@mixin tool-btn {
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  outline: none;
  border-radius: 6px;
  color: #555;
}

李维's avatar
李维 committed
58 59
.p-title-box {
  .p-title {
liujiangnan's avatar
liujiangnan committed
60 61
    font-size: 20px;
  }
李维's avatar
李维 committed
62
  input {
liujiangnan's avatar
liujiangnan committed
63 64 65
    width: 300px;
    margin-left: 10px;
  }
李维's avatar
李维 committed
66
}
liujiangnan's avatar
liujiangnan committed
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

.p-content {
  border: 1px solid #ddd;
  box-shadow: 0 0 8px #eee;
  margin-top: 10px;
}

.p-divider {
  border-left: 1px solid #ccc;
  margin: 5px 8px;
  height: 85%;
}

.p-tool-box {
  background-color: #efefef;
  padding: 2px;
  height: 37px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;

李维's avatar
李维 committed
88 89 90 91 92 93 94 95
  // save
  .i-tool-save {
    @include tool-btn();
    color: white;
  }
  .i-tool-save:disabled {
    color: #555;
  }
liujiangnan's avatar
liujiangnan committed
96

李维's avatar
李维 committed
97 98 99 100
  // font-size
  .i-tool-font-size {
    @include tool-btn();
    width: 37px;
liujiangnan's avatar
liujiangnan committed
101

李维's avatar
李维 committed
102
    & > span {
liujiangnan's avatar
liujiangnan committed
103
      position: absolute;
李维's avatar
李维 committed
104 105
      top: -5px;
      right: 5px;
liujiangnan's avatar
liujiangnan committed
106
    }
李维's avatar
李维 committed
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
  }
  .i-tool-font-size:hover {
    color: black;
    border-color: #bbb;
  }

  // font-color
  .i-tool-font-color, .i-tool-font-btn {
    border: 1px solid #ddd;
    //padding: 3px 7px;
    border-radius: 6px;
    width: 45px;
    height: 31px;
    background-color: white;
    color: #555;
    ::ng-deep > span {
      display: flex;
liujiaxin's avatar
liujiaxin committed
124
      position: absolute;
李维's avatar
李维 committed
125 126 127 128 129
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      padding: 3px 7px;
liujiangnan's avatar
liujiangnan committed
130
    }
李维's avatar
李维 committed
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
    .i-left {
      .fa-font,.fa-bold,.fa-italic,.fa-strikethrough, .fa-underline {
        font-size: 10px;
        position: absolute;
        color: #555;
        left: 8px;
        top: 7px;
      }
      .i-color {
        width: 68%;
        height: 5px;
        background-color: black;
        position: absolute;
        top: 21px;
        left: 5px;
      }
    }
    .i-dropdown-menu {
      width: 15px;
      font-size: 10px;
      border-left: 1px solid #ddd;
      display: flex;
      align-items: center;
      .anticon-down {
        transform: scale(0.6);
      }
liujiangnan's avatar
liujiangnan committed
157 158
    }
  }
李维's avatar
李维 committed
159 160 161 162 163 164
  .i-tool-font-btn{
    width: 31px;
  }
  .fa-icon{
    width: 100%;
    height: 100%;
liujiaxin's avatar
liujiaxin committed
165
    display: flex;
李维's avatar
李维 committed
166
    justify-content: center;
liujiaxin's avatar
liujiaxin committed
167
    align-items: center;
李维's avatar
李维 committed
168
    cursor: pointer;
liujiaxin's avatar
liujiaxin committed
169
  }
李维's avatar
李维 committed
170 171 172 173 174 175 176 177
  // bg-color
  .i-tool-bg-color {
    @include tool-btn();
    padding: 0 9px;
    ::ng-deep > span {
      display: flex;
      align-items: center;
    }
liujiangnan's avatar
liujiangnan committed
178

李维's avatar
李维 committed
179 180 181 182 183 184 185
    .i-color {
      display: block;
      width: 16px;
      height: 16px;
      background-color: white;
      margin-left: 10px;
    }
liujiangnan's avatar
liujiangnan committed
186
  }
李维's avatar
李维 committed
187
 
liujiaxin's avatar
liujiaxin committed
188

李维's avatar
李维 committed
189 190 191 192 193 194
  // horizontal-center
  .i-tool-horizontal-center {
    @include tool-btn();
    width: 37px;
  }
 
liujiaxin's avatar
liujiaxin committed
195
}
李维's avatar
李维 committed
196

liujiangnan's avatar
liujiangnan committed
197 198 199 200 201 202 203 204 205
.p-box {
  width: 1280px;
  height: 720px;
  left: 0;
  top: 0;
  transform-origin: top left;
  overflow: hidden;
}

李维's avatar
李维 committed
206 207 208
.p-sentence {
  @include k-no-select();
}
liujiangnan's avatar
liujiangnan committed
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 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280

.p-animation-index-box {
  .i-animation-index {
    position: absolute;
    font-size: 34px;
    font-family: Arial;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: darkorange;
    color: white;
  }
}

.p-edit {
  background-color: white;
  border: 1px solid black;
  padding: 2px 15px;
}

.p-selected {
  border: 1px solid darkorange;
  box-shadow: 0 0 8px #ddd;
}

.p-tool-item-disable {
  color: rgba(0, 0, 0, .25) !important;
  background-color: transparent !important;
  pointer-events: none;
}

// -----------
.p-color-pane {
  width: 80px;
  .p-color-item {
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin: 4px;
    border: 1px solid #bbb;
  }
  .p-color-item-active {
    border: 1px solid white;
    transform: scale(1.1);
  }
}

.p-user-guide {
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-animation-box {
  width: 400px;
  background-color: #efefef;
  border-left: 1px solid #ddd;
  padding: 10px;
  text-align: center;

  .p-animation-label {
    z-index: 1;
    position: relative;
  }

  ::ng-deep .ant-radio-button-wrapper {
    padding: 0 10px;
李维's avatar
李维 committed
281
    @include k-no-select();
liujiangnan's avatar
liujiangnan committed
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
  }

  .i-toolbox {
    & > div {
      font-size: 20px;
      cursor: pointer;
      color: #555;
      padding: 0 3px;
      margin: 0 5px;
    }
    & > div:hover {
      color: #1585ff;
      transform: scale(1.1);
    }
  }

  .p-animation-list {
    background-color: white;
    border-radius: 10px;
    height: calc(100% - 86px);
    overflow-y: auto;
    .p-animation-item {
      padding: 0 20px;
      background-color: aliceblue;
      margin-top: 6px;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
      cursor: pointer;
      text-align: left;
      display: flex;
李维's avatar
李维 committed
312
      @include k-no-select();
liujiangnan's avatar
liujiangnan committed
313 314 315 316 317 318 319
    }
    .i-active {
      background-color: antiquewhite;
    }
  }
}