index.scss 3.13 KB
Newer Older
zhanghaozhe committed
1 2
.python-container {
  padding: 50px 8px 29px;
zhanghaozhe committed
3
  background-image: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-bg.png");
zhanghaozhe committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  background-size: cover;
}

.python-container--page {
  // padding-top: 50px;
}

.python-header {
  position: relative;
  height: 100px;
  padding-top: 36px;
  box-sizing: border-box;

  .iconfont {
    position: absolute;
    top: 10px;
    right: 40px;
    font-size: 38px;
    color: #fff;
    width: 50px;
    height: 38px;
zhanghaozhe committed
25 26
    background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/share_arrow.png")
      center center no-repeat;
zhanghaozhe committed
27 28 29 30 31 32 33
    background-size: 100% 100%;
  }
}

.python-wechat__title {
  margin: 0;
  font-size: 17px;
zhanghaozhe committed
34
  color: #fff;
zhanghaozhe committed
35 36 37 38 39 40
  text-align: center;
  line-height: 1;
}

.python-content {
  padding-bottom: 37px;
zhanghaozhe committed
41
  background-image: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/pythonCourse/h5/python-content-bg.png");
zhanghaozhe committed
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
  background-size: cover;
}

.python-user {
  position: relative;
  margin: 0 5px;
  padding-top: 45px;
  border-bottom: 1px dashed #000;
}

.python-user__portrait {
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  width: 60px;
  height: 60px;
  margin: auto;
  padding: 5px;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: #fff;
  background-size: cover;

  img {
    display: block;
    width: 100%;
  }
}

.python-user__id {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  text-align: center;
  line-height: 1;
}

.python-user__desc {
  height: 48px;
  margin: 4px 0;
  font-size: 16px;
  color: #333;
  text-align: center;

  span {
zhanghaozhe committed
89
    color: #2d57f0;
zhanghaozhe committed
90 91 92 93 94 95 96 97 98
  }
}

.python-code__title {
  position: relative;
  margin: 32px 16px 21px;
  padding-left: 16px;
  font-size: 17px;
  font-weight: 600;
zhanghaozhe committed
99
  color: #2d56f0;
zhanghaozhe committed
100 101 102
  line-height: 1;

  &:after {
zhanghaozhe committed
103
    content: "";
zhanghaozhe committed
104 105 106 107 108 109 110
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    height: 12px;
    margin: auto 0;
zhanghaozhe committed
111
    background-color: #2d56f0;
zhanghaozhe committed
112 113 114 115 116 117 118 119 120
  }
}

.python-code__content {
  position: relative;
  height: 171px;
  margin: 0 16px;
  padding: 0 10px;
  border-radius: 5px;
zhanghaozhe committed
121
  border: 1px solid #67e4ff;
zhanghaozhe committed
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
  box-sizing: border-box;
  font-size: 14px;
  color: #fff;
  background-color: #272822;
}

.python-button {
  padding: 0;
  border-style: none;
  cursor: pointer;
  outline: none;
}
.python-button__study {
  display: block;
  width: 233px;
  height: 44px;
  margin: 35px auto 0;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 500;
zhanghaozhe committed
142
  color: #2d56f0;
zhanghaozhe committed
143 144
  line-height: 44px;
  text-align: center;
zhanghaozhe committed
145 146
  background-color: #fff95b;
  box-shadow: 0px 5px 0px rgba(255, 210, 0, 1);
zhanghaozhe committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
}

.python-button__tip {
  margin: 35px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 44px;
  text-align: center;
}

.python-button__execute {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 110px;
  height: 32px;
  margin: auto;
  border-radius: 16px;
  font-size: 15px;
  color: #fff;
  line-height: 32px;
zhanghaozhe committed
171
  background-color: #0099ff;
zhanghaozhe committed
172 173 174 175 176 177 178 179
}

.python-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
zhanghaozhe committed
180
  background-color: rgba(0, 0, 0, 0.6);
zhanghaozhe committed
181 182 183 184 185
  z-index: 99;
}

.ace_mobile-menu {
  display: none;
zhanghaozhe committed
186
}