index.scss 1.39 KB
Newer Older
FE committed
1 2 3 4 5 6 7 8 9 10 11
.course-popup__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
xuzhenghua committed
12
  z-index: 11;
FE committed
13 14 15

  .iconfont {
    margin: 16px 0 0;
xuzhenghua committed
16
    font-size: 28px;
FE committed
17 18 19 20 21 22 23
    color: #fff;
    cursor: pointer;
  }
}

.course-popup {
  width: 300px;
xuzhenghua committed
24
  padding: 20px 0;
FE committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #fff;
}

.course-popup__title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 500;
  color: #525C65;
  text-align: center;
  line-height: 1;
}

.course-popup__list {
  height: 190px;
  padding: 0 15px;
  overflow-y: auto;
}

.course-popup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  box-sizing: border-box;
  color: rgba(82, 92, 101, .6);
  background-color: #E7EDF2;

  &:nth-child(n+2) {
    margin-top: 10px;
  }

  &:hover {
    color: #fff;
    background-color: rgba(0, 153, 255, .6);;
  }
}

xuzhenghua committed
67 68 69 70 71 72 73
.course-popup__item--active {

  .course-popup__name {
    color:rgba(82,92,101,.6);
  }
}

FE committed
74 75 76
.course-popup__name {
  width: 200px;
  font-size: 12px;
xuzhenghua committed
77
  color:rgba(82,92,101,1);
FE committed
78 79 80
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
xuzhenghua committed
81 82 83 84 85 86
}

.course-popup-apptip{
  padding: 10px 15px 0 15px;
  color: #FF0000;
  text-align: center;
FE committed
87
}