www.lightcourse.com/public/static/home/new/css/member.less

1262 lines
27 KiB
Plaintext

@c1: #3b52f6;
.item-wrap(@num,@between,@mb) {
display: flex;
flex-wrap: wrap;
.item {
width: calc((100% - (@num - 1) * @between) / @num);
margin-right: @between;
margin-bottom: @mb;
&:nth-of-type(@{num}n) {
margin-right: 0;
}
}
}
.dot {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dots(@num) {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: @num; //行数
-webkit-box-orient: vertical;
}
.setBetween {
display: flex;
justify-content: space-between;
}
.setRowCenter {
display: flex;
align-items: center;
}
.setColumnCenter {
display: flex;
align-items: center;
}
.setCenter {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.ra {
border-radius: 0.2rem;
overflow: hidden;
}
.bs {
box-shadow: 0 0 0.5rem #ebebeb;
}
.box-shadow {
box-shadow: 0rem 0.3rem 0.5rem 0rem rgba(36, 65, 116, 0.1);
}
.tit-line(@fs,@pb,@mb,@width,@height,@color) {
font-size: @fs;
padding-bottom: @pb;
margin-bottom: @mb;
position: relative;
&::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: @width;
border-bottom: @height solid @color;
}
}
.tit-line-center(@fs,@pb,@mb,@width,@height,@color) {
font-size: @fs;
padding-bottom: @pb;
margin-bottom: @mb;
position: relative;
&::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
width: @width;
border-bottom: @height solid @color;
transform: translateX(-50%);
}
}
.btn {
padding: 0.3rem 1rem;
background-color: @c1;
color: #fff;
border-radius: 2rem;
&.s1 {
background-color: transparent;
border: 1px solid @c1;
color: @c1;
}
}
.member-container {
// height: 90vh;
background-image: url("../images/member-bg.jpg");
background-size: cover;
background-repeat: no-repeat;
h1 {
text-align: center;
font-size: 2rem;
color: @c1;
font-weight: bold;
margin-bottom: 1rem;
}
.container {
display: flex;
justify-content: space-between;
.img {
max-width: 26rem;
padding-top: 6rem;
}
.text {
width: 24rem;
h1 {
max-width: 18rem;
}
}
}
.content-title {
border-bottom: 1px solid #ebebeb;
display: flex;
a,
span {
display: inline-block;
font-size: 1rem;
border-bottom: 1px solid transparent;
padding: 0 1.5rem 1rem;
margin: 0 0.5rem;
&:hover,
&.active {
border-color: @c1;
}
}
}
.register-title {
display: flex;
justify-content: space-between;
margin-bottom: 1rem;
p {
font-size: 0.9rem;
}
div {
position: relative;
span {
position: absolute;
top: 50%;
right: calc(100% + 0.5rem);
padding: 0.3rem;
background-color: #f5f7fa;
font-size: 0.6rem;
white-space: nowrap;
transform: translateY(-50%);
display: none;
&::after {
content: "";
position: absolute;
top: 50%;
left: 100%;
border-left: 0.3rem solid #f5f7fa;
border-top: 0.3rem solid transparent;
border-bottom: 0.3rem solid transparent;
transform: translateY(-50%);
}
}
&:hover {
span {
display: block;
}
}
}
}
.content {
padding-top: 1rem;
&>.con{
display: none;
&.active{
display: block;
}
}
}
.con-title {
display: flex;
margin-bottom: 1rem;
a {
display: flex;
align-items: center;
background-color: #f5f7fa;
border-radius: 0.4rem;
margin-right: 0.5rem;
padding: 0.5rem;
flex: 1;
&:last-of-type {
margin-right: 0;
}
&:nth-of-type(1) {
.i {
background-color: #feebe0;
i {
color: #ff9128;
}
}
}
&:nth-of-type(2) {
.i {
background-color: #f8ebe9;
i {
color: #f44f39;
}
}
}
&:nth-of-type(3) {
.i {
background-color: #e8ecf9;
i {
color: #4285ff;
}
}
}
.i {
width: 2.2rem;
height: 2.2rem;
padding: 0.8rem;
border-radius: 50%;
margin-right: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
i {
font-size: 1rem;
}
}
&:hover,
&.active {
background-color: @c1;
span {
color: #fff;
}
}
}
}
.form {
& > div {
margin-bottom: 1rem;
position: relative;
&.to {
display: flex;
justify-content: space-between;
input {
width: 49%;
}
}
}
.field {
flex: 1;
margin-bottom: 0;
position: relative;
}
.error{
position: absolute;
top: 100%;
left: 0;
font-size: .7rem;
color: #ff204f;
}
.bt {
display: flex;
justify-content: space-between;
align-items: center;
input {
width: 8rem;
}
a {
color: @c1;
font-size: 0.7rem;
&:hover {
text-decoration: underline;
}
}
}
input {
padding: 0 4%;
}
input,
.select-value,
button {
display: block;
width: 100%;
height: 2.5rem;
border-radius: 0.3rem;
border: 1px solid #ebebeb;
box-sizing: border-box;
p {
border: none !important;
}
}
.select-container {
flex: 1;
// .select-container(100%,2.5rem,#ebebeb);
}
.code-wrap {
display: flex;
justify-content: space-between;
.code {
display: flex;
align-items: center;
height: 100%;
margin-left: 2rem;
position: relative;
flex-shrink: 0;
border-radius: 0.3rem;
overflow: hidden;
img {
height: 2.5rem;
width: auto;
}
a {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
font-style: 0.7rem;
cursor: pointer;
opacity: 0;
.setCenter;
}
&:hover {
a {
opacity: 1;
}
}
}
}
.err-msg {
position: absolute;
top: 100%;
left: 0;
width: 100%;
display: none;
margin-left: auto;
font-size: 0.7rem;
color: @c1;
text-align: right;
padding-right: 1rem;
margin-top: 0.2rem;
}
.nodrop {
cursor: no-drop !important;
background: #ebebeb !important;
color: #343434 !important;
}
input[type="submit"] {
background-color: @c1;
color: #fff;
cursor: pointer;
}
}
.wechat {
.img {
width: 8rem;
height: 8rem;
background-color: #ccc;
margin: 2rem auto;
border: 1px solid #ebebeb;
border-radius: 0.5rem;
overflow: hidden;
}
}
.o {
.line-tit {
text-align: center;
span {
position: relative;
color: #999;
font-size: 0.7rem;
&::before,
&::after {
content: "";
position: absolute;
top: 50%;
width: 4rem;
border-bottom: 1px solid #ebebeb;
}
&::before {
right: calc(100% + 1rem);
}
&::after {
left: calc(100% + 1rem);
}
}
}
.other {
display: flex;
justify-content: center;
margin: 1rem 0;
.i {
.setCenter;
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
margin: 0 1.5rem;
box-shadow: 0rem 0.3rem 0.5rem 0rem rgba(234, 234, 234, 100);
.iconf {
font-size: 1.3rem;
}
}
}
& > span {
display: block;
text-align: center;
color: #999;
font-size: 0.7rem;
a {
font-size: inherit;
color: @c1;
&:hover {
text-decoration: underline;
}
}
}
}
}
.user-container {
background-color: #f5f7fa;
padding-bottom: 3rem;
.container {
display: flex;
align-items: flex-start;
padding-bottom: 1rem;
& > div {
border-radius: 0.5rem;
overflow: hidden;
background-color: #fff;
}
.left {
width: 9rem;
margin-right: 1rem;
padding: 1rem 0;
a {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem 0;
position: relative;
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
border-left: 4px solid transparent;
transition: all ease 0.3s;
}
i {
font-size: 1rem;
margin-right: 1rem;
}
&:hover,
&.active {
background-color: #f5f7fa;
&::before {
border-color: @c1;
}
i {
color: @c1;
}
}
}
}
.right {
flex: 1;
padding: 1rem;
& > div {
&.active {
display: block;
}
}
.label-btn {
padding-bottom: 1rem;
border-bottom: 1px solid #ebebeb;
a {
margin-right: 2rem;
}
}
& > h1 {
font-size: 2.3rem;
}
.cart-tit {
font-size: 2rem;
color: #999;
font-weight: 300;
margin-bottom: 1rem;
}
.c-tit {
font-size: 1.2rem;
border-left: 4px solid @c1;
line-height: 1;
padding-left: 0.5rem;
margin-bottom: 2rem;
}
.content {
}
.data-content {
display: flex;
.via {
flex-shrink: 0;
text-align: center;
margin-right: 6%;
.img {
width: 5rem;
height: 5rem;
border-radius: 50%;
margin-bottom: 1rem;
background-color: #ccc;
}
a {
font-size: 0.7rem;
}
}
.con {
.setBetween;
flex-wrap: wrap;
.inp {
.setColumnCenter;
width: 48%;
margin-bottom: 1rem;
label {
width: 4rem;
font-size: 0.7rem;
color: #666;
}
input,
select {
flex: 1;
height: 2.5rem;
border-radius: 0.2rem;
padding: 0 2%;
border: 1px solid #ebebeb;
}
}
button {
display: block;
width: 15rem;
height: 2.5rem;
border-radius: 0.2rem;
background-color: @c1;
color: #fff;
margin: 2rem auto 0;
}
}
}
.data-content-copy {
.more-form {
display: none;
}
form {
padding-right: 20%;
}
h2 {
margin-bottom: 0.5rem;
color: @c1;
}
h4 {
margin-bottom: 2rem;
color: @c1;
}
p {
margin-bottom: 1rem;
color: #999;
}
.ui.button {
margin-bottom: 1rem;
}
.ui.form .field > label {
font-size: 1em;
margin-bottom: 0.6rem;
}
.ui.dropdown .menu > .item {
font-size: 0.9em;
}
.ui.button,
.ui.buttons .button,
.ui.buttons .or {
font-size: 0.7rem;
}
}
.safety-content {
.item {
.setColumnCenter;
padding: 0.5rem 0;
border-bottom: 1px solid #ebebeb;
&:last-of-type {
border-bottom: none;
}
.i {
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
border: 1px solid @c1;
.setCenter;
margin-right: 1rem;
}
.txt {
h6 {
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 0.5rem;
span {
font-size: 0.8rem;
&.c1 {
color: @c1;
}
&.c2 {
color: #ffb818;
}
}
}
p {
font-size: 0.7rem;
color: #999;
}
}
a {
margin-left: auto;
width: 6rem;
height: 2rem;
.setCenter;
border: 1px solid @c1;
border-radius: 0.2rem;
font-size: 0.7rem;
color: @c1;
&:hover {
background-color: @c1;
color: #fff;
}
}
}
}
.course-content {
.setBetween;
flex-wrap: wrap;
.item {
width: 49%;
border: 1px solid @c1;
border-radius: 0.5rem;
padding: 1rem;
margin-bottom: 2%;
position: relative;
h6 {
font-size: 0.9rem;
.setColumnCenter;
justify-content: space-between;
object a {
font-size: 0.6rem;
padding: 0.1rem 0.3rem;
border: 1px solid @c1;
border-radius: 3rem;
color: @c1;
text-transform: uppercase;
}
}
.start {
.setColumnCenter;
justify-content: space-between;
margin: 0.5rem 0;
span {
font-size: 0.7rem;
}
}
& > p {
font-size: 0.7rem;
line-height: 1.8;
color: #999;
margin-bottom: 1rem;
}
& > em {
position: absolute;
bottom: 1rem;
right: 1rem;
padding: 0.1rem 0.3rem;
border: 1px solid #ccc;
border-radius: 0.2rem;
font-size: 0.7rem;
}
}
}
.shopping-content {
position: relative;
table {
width: 100%;
* {
font-size: 0.7rem;
}
tr {
border-bottom: 1px solid #ebebeb;
&:last-of-type {
border-bottom: none;
}
}
.t {
border-bottom: 1px solid #ebebeb;
th {
padding-bottom: 0.5rem;
font-size: 1.1rem;
vertical-align: middle;
text-align: center;
&:first-of-type {
text-align: left;
padding-left: 2rem;
padding-right: 2rem;
}
&:last-of-type {
text-align: right;
padding-left: 2rem;
padding-right: 2rem;
}
}
}
.b {
td {
padding: 1rem 0;
padding-right: 2rem;
width: 20%;
vertical-align: middle;
text-align: center;
&:first-of-type {
text-align: left;
}
&:last-of-type {
text-align: right;
padding-right: 0;
}
}
.b1 {
width: 30%;
& > div {
display: flex;
align-items: flex-start;
& > input {
margin: 0;
margin-right: 1rem;
width: 0.8rem;
height: 0.8rem;
cursor: pointer;
}
div {
flex: 1;
width: 100%;
}
}
span {
padding: 0.1rem 0.4rem;
border-radius: 0.1rem;
background-color: #c5cbfc;
color: #fff;
text-transform: uppercase;
}
h6 {
font-size: 0.9rem;
margin: 0.5rem 0;
}
em {
}
p {
color: #666;
margin-top: 0.5rem;
}
}
.b2 {
a {
display: block;
border: 1px solid #ebebeb;
text-align: center;
padding: 0.1rem 0;
color: #666;
margin-top: 0.2rem;
max-width: 10rem;
}
}
.b4 {
font-size: 1rem;
position: relative;
button {
position: absolute;
bottom: 0.5rem;
right: 0;
padding: 0.3rem 1rem;
background-color: @c1;
color: #fff;
border-radius: 2rem;
margin-top: 2rem;
}
em {
position: absolute;
bottom: 0.5rem;
right: 0;
display: block;
width: fit-content;
margin-left: auto;
color: #666;
padding: 0.3rem 0;
border-bottom: 1px solid #666;
cursor: pointer;
&:hover {
color: @c1;
border-color: @c1;
}
}
}
}
}
.tip {
font-size: 0.7rem;
color: #999;
text-align: right;
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px solid #ebebeb;
}
.count {
& > div {
text-align: right;
width: 15rem;
margin-left: auto;
.setBetween;
* {
color: #666;
}
}
.s {
margin-top: 2rem;
em {
font-size: 1.2rem;
}
strong {
font-size: 1rem;
}
}
.b {
margin-top: 1rem;
em {
font-size: 1.6rem;
}
strong {
font-size: 1.6rem;
}
}
}
.oper-all {
position: absolute;
right: 0;
bottom: calc(100% + 2rem);
border: 1px solid @c1;
color: @c1;
padding: 0.3rem 1rem;
border-radius: 0.2rem;
cursor: pointer;
transform: translateY(50%);
&:hover {
color: #fff;
background-color: @c1;
}
}
.oper-btn {
display: flex;
justify-content: flex-end;
.btn {
margin-left: 1rem;
}
}
.pay-btn {
text-align: right;
margin-top: 2rem;
& > .btn {
display: inline-block;
margin-left: auto;
padding-left: 3rem;
padding-right: 3rem;
}
}
}
.payment-content {
h6 {
font-size: 0.9rem;
font-weight: normal;
margin-bottom: 1rem;
margin-top: 3rem;
&.hint {
color: #ff8400;
}
&:first-of-type {
margin-top: 0;
}
}
.sec {
padding-bottom: 1rem;
border-bottom: 1px solid #ebebeb;
margin-bottom: 1rem;
&:last-of-type {
border-bottom: none;
}
& > p {
text-align: right;
strong {
font-size: 1.6rem;
color: #f01414;
font-weight: bold;
}
}
.pay-btn {
text-align: right;
margin-top: 2rem;
.btn {
padding: 0.5rem 1.5rem;
}
}
}
.info {
background-color: #f8f8f9;
padding: 1rem;
position: relative;
span {
display: inline-block;
padding: 0.2rem 1rem;
background-color: rgba(59, 82, 246, 0.4);
color: #fff;
font-size: 0.7rem;
border-radius: 0.2rem;
text-transform: uppercase;
margin-bottom: 0.5rem;
}
h4 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
}
p {
margin-bottom: 0.5rem;
&:last-of-type {
color: #999;
margin-bottom: 0;
}
}
strong {
position: absolute;
bottom: 1rem;
right: 1rem;
color: #f01414;
font-size: 1.1rem;
}
}
.way {
display: flex;
.item {
flex: 1;
height: 4.5rem;
margin-right: 0.5rem;
.setCenter;
background-color: #f8f8f9;
border: 1px solid transparent;
border-radius: 0.2rem;
&.active {
border-color: @c1;
}
&:last-of-type {
margin-right: 0;
}
}
}
}
.order-content {
.item {
display: block;
padding: 1rem 0;
border-bottom: 1px solid #ebebeb;
&:last-of-type {
border-bottom: none;
}
.t {
position: relative;
margin-bottom: 0.5rem;
h6 {
font-size: 0.9rem;
}
p {
font-size: 0.7rem;
color: #666;
}
.btn {
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
font-size: 0.7rem;
}
}
.par-con {
.setBetween;
.par {
min-width: initial;
}
}
}
}
.help-content {
li {
display: flex;
cursor: pointer;
margin-bottom: 0.5rem;
&.active {
.text {
& > p {
i {
transform: rotate(-180deg);
}
}
}
.info {
max-height: 10rem !important;
transition: all linear 0.5s !important;
}
}
.q {
width: 2.1rem;
height: 2.1rem;
border-radius: 50%;
background-color: @c1;
color: #fff;
flex-shrink: 0;
.setCenter;
font-size: 1.1rem;
margin-right: 1rem;
}
.text {
flex: 1;
border-bottom: 1px solid #ebebeb;
padding: 0.5rem 0;
& > p {
.setBetween;
font-weight: bold;
margin-bottom: 0.5rem;
i {
margin-left: auto;
}
}
.info {
overflow: hidden;
max-height: 0;
transition: none;
*,
& {
color: #666;
}
}
}
}
}
.course-list-content {
padding-bottom: 4rem;
.th {
padding: 0 1rem;
}
.td,
.th {
display: flex;
justify-content: space-between;
& > div {
width: calc(100% / 8);
text-align: center;
font-size: 0.7rem;
}
}
.td {
padding: 1rem;
border-radius: 0.2rem;
box-shadow: 0rem 0.15rem 0.8rem 0rem rgba(32, 30, 29, 0.35);
margin-top: 1.5rem;
& > div {
display: flex;
align-items: center;
justify-content: center;
}
.alt {
position: relative;
&.c1 {
color: #ef3333;
}
&.c2 {
color: #1571e4;
}
&.c3 {
color: #f1bc1c;
}
&.c4 {
color: #31af18;
}
&:hover {
text-decoration: underline;
.alt-txt {
display: block;
}
}
.alt-txt {
position: absolute;
top: 100%;
left: 100%;
width: 10rem;
padding: 0.8rem;
border: 1px solid @c1;
background-color: #fff;
box-shadow: 0rem 0.15rem 0.8rem 0rem rgba(32, 30, 29, 0.35);
border-radius: 0.25rem;
display: none;
color: @c1;
}
}
}
}
}
}
}
.data-container {
}
@media screen and (max-width:1024px){
.member-container .container .img{
max-width: 22rem;
img{
max-width: 14rem;
}
}
}
@media screen and (max-width: 768px) {
html {
font-size: 16px;
}
.member-container {
.content-title {
justify-content: center;
}
.container {
flex-direction: column;
& > div {
flex: none;
width: 100% !important;
}
.img {
max-width: 100%;
padding-top: 0;
margin-bottom: 2rem;
p {
text-align: center;
}
img {
max-width: 50%;
margin: 0 auto;
}
}
.text {
width: 100%;
}
}
}
.user-container {
.container {
flex-direction: column;
& > div {
width: 100% !important;
}
.left {
display: flex;
overflow-x: scroll;
a {
white-space: nowrap;
padding: 0.5rem 1rem;
margin-right: 1rem;
&::before {
display: none !important;
}
&.active {
background-color: @c1;
color: #fff;
}
}
}
.right {
&>h1{
font-size: 1.8rem;
}
.order-content {
.item {
.t {
h6 {
margin-bottom: 0.2rem;
}
}
.par-con {
flex-wrap: wrap;
.par {
width: 50%;
display: flex;
flex-wrap: wrap;
}
}
}
}
.shopping-content {
table {
.t {
th {
padding-left: 0 !important;
padding-right: 0 !important;
}
}
.b {
.b1 {
span {
white-space: nowrap;
}
}
td {
width: auto;
padding-right: 0;
}
}
}
}
.course-content {
.item {
width: 100%;
}
}
.safety-content {
.item {
a {
flex-shrink: 0;
}
}
}
.course-list-scroll {
overflow-x: auto;
padding: 0 0.5rem;
.course-list-content {
width: 50rem;
}
}
}
}
}
}