123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- @media screen and (min-width: 768px) {
- .form {
- .form-item {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- margin-bottom: 25px;
- .form-label {
- font-size: 16px;
- color: #999;
- line-height: 40px;
- min-width: 100px;
- text-align: right;
- margin-right: 16px;
- em {
- color: #ff0000;
- margin-right: 4px;
- }
- }
- .form-control {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- color: #505050;
- font-size: 16px;
- &.input {
- input {
- display: block;
- width: 100%;
- line-height: 40px;
- border: 1px solid #dedede;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0 16px;
- border-radius: 4px;
- }
- }
- &.textarea {
- textarea {
- display: block;
- width: 100%;
- line-height: 26px;
- border: 1px solid #dedede;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 8px 16px;
- border-radius: 2px;
- resize: none;
- }
- }
- &.select-group {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- .select {
- width: 100%;
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- position: relative;
- margin-right: 16px;
- border: 1px solid #e8e8e8;
- border-radius: 2px;
- &:last-child {
- margin-right: 0;
- }
- select {
- display: block;
- width: 100%;
- border: 0;
- line-height: 40px;
- padding: 0 16px;
- padding-right: 40px;
- color: #272727;
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- border-radius: 2px;
- }
- &::after {
- position: absolute;
- right: 0;
- top: 0;
- content: '';
- z-index: 1;
- display: block;
- width: 40px;
- height: 40px;
- background: url(/img/icon-arrow-down.png) no-repeat center;
- background-size: 24px 24px;
- pointer-events: none;
- }
- }
- }
- &.radio {
- line-height: 40px;
- label {
- margin-right: 35px;
- }
- input {
- margin-right: 10px;
- }
- }
- &.upload-image {
- input {
- display: none;
- }
- .tip {
- width: 120px;
- height: 120px;
- border: 1px solid #dedede;
- margin-top: 10px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding-top: 80px;
- text-align: center;
- font-size: 14px;
- color: #999;
- cursor: pointer;
- position: relative;
- &::before,
- &::after {
- content: '';
- display: block;
- position: absolute;
- background: #dedede;
- width: 2px;
- height: 30px;
- left: 50%;
- top: 50%;
- }
- &::before {
- -webkit-transform: translateX(-50%) translateY(-80%);
- transform: translateX(-50%) translateY(-80%);
- }
- &::after {
- -webkit-transform: translateX(-50%) translateY(-80%) rotateZ(90deg);
- transform: translateX(-50%) translateY(-80%) rotateZ(90deg);
- }
- }
- }
- &.upload-file {
- [type='file'] {
- display: none;
- }
- .button {
- line-height: 40px;
- width: 207px;
- background: #0688d2;
- color: #fff;
- text-align: center;
- margin-left: 16px;
- cursor: pointer;
- -webkit-transition: all 0.4s;
- transition: all 0.4s;
- &:hover {
- background: #077ec4;
- }
- }
- }
- }
- }
- .form-submit {
- text-align: center;
- margin-top: 80px;
- button {
- width: 330px;
- height: 48px;
- background: transparent;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- border: 0;
- cursor: pointer;
- margin: 0 24px;
- -webkit-transition: all 0.4s;
- transition: all 0.4s;
- }
- [type='reset'] {
- border: 1px solid #0688d2;
- color: #0688d2;
- line-height: 46px;
- &:hover {
- border-color: #0679b8;
- color: #0679b8;
- }
- }
- [type='submit'] {
- background: #0688d2;
- color: #fff;
- line-height: 48px;
- &:hover {
- background: #077ec4;
- }
- }
- }
- }
- }
- @media screen and (max-width: 768px) {
- .form {
- .form-item {
- margin-bottom: 0.32rem;
- &.inline {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- .form-label {
- line-height: 0.9rem;
- margin-right: 0.16rem;
- margin-bottom: 0;
- min-width: 1rem;
- }
- }
- .form-label {
- font-size: 0.26rem;
- color: #999;
- margin-bottom: 0.16rem;
- em {
- color: #ff0000;
- margin-right: 0.08rem;
- }
- }
- .form-control {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- color: #505050;
- font-size: 0.24rem;
- &.input {
- input {
- display: block;
- width: 100%;
- line-height: 0.9rem;
- border: 1px solid #dedede;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0 0.24rem;
- border-radius: 0.04rem;
- }
- }
- &.textarea {
- textarea {
- display: block;
- width: 100%;
- line-height: 0.48rem;
- border: 0.01rem solid #dedede;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding: 0.16rem 0.24rem;
- border-radius: 0.02rem;
- resize: none;
- }
- }
- &.select-group {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-pack: justify;
- -ms-flex-pack: justify;
- justify-content: space-between;
- .select {
- width: 100%;
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- position: relative;
- margin-right: 0.24rem;
- border: 0.01rem solid #e8e8e8;
- border-radius: 0.02rem;
- &:last-child {
- margin-right: 0;
- }
- select {
- display: block;
- width: 100%;
- border: 0;
- line-height: 0.9rem;
- padding: 0 0.24rem;
- padding-right: 0.4rem;
- color: #272727;
- -webkit-appearance: none;
- -moz-appearance: none;
- appearance: none;
- border-radius: 0.02rem;
- }
- &::after {
- position: absolute;
- right: 0;
- top: 0;
- content: '';
- z-index: 1;
- display: block;
- width: 0.9rem;
- height: 0.9rem;
- background: url(/img/icon-arrow-down.png) no-repeat center;
- background-size: 0.24rem 0.24rem;
- pointer-events: none;
- }
- }
- }
- &.radio {
- line-height: 0.9rem;
- label {
- margin-right: 0.35rem;
- }
- input {
- margin-right: 0.1rem;
- }
- }
- &.upload-image {
- input {
- display: none;
- }
- .tip {
- width: 1.62rem;
- height: 1.62rem;
- border: 0.01rem solid #dedede;
- margin-top: 0.2rem;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- padding-top: 1.2rem;
- text-align: center;
- font-size: 0.24rem;
- color: #999;
- cursor: pointer;
- position: relative;
- &::before,
- &::after {
- content: '';
- display: block;
- position: absolute;
- background: #dedede;
- width: 2px;
- height: 30px;
- left: 50%;
- top: 50%;
- }
- &::before {
- -webkit-transform: translateX(-50%) translateY(-80%);
- transform: translateX(-50%) translateY(-80%);
- }
- &::after {
- -webkit-transform: translateX(-50%) translateY(-80%) rotateZ(90deg);
- transform: translateX(-50%) translateY(-80%) rotateZ(90deg);
- }
- }
- }
- &.upload-file {
- [type='file'] {
- display: none;
- }
- .button {
- line-height: 0.9rem;
- width: 2rem;
- background: #0688d2;
- color: #fff;
- text-align: center;
- margin-left: 0.24rem;
- cursor: pointer;
- -webkit-transition: all 0.4s;
- transition: all 0.4s;
- &:hover {
- background: #077ec4;
- }
- }
- }
- }
- }
- .form-submit {
- text-align: center;
- margin-top: 1rem;
- button {
- width: 6rem;
- height: 0.9rem;
- background: transparent;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- border: 0;
- cursor: pointer;
- -webkit-transition: all 0.4s;
- transition: all 0.4s;
- font-size: 0.26rem;
- }
- [type='reset'] {
- border: 0.01rem solid #0688d2;
- color: #0688d2;
- line-height: 0.88rem;
- &:hover {
- border-color: #0679b8;
- color: #0679b8;
- }
- }
- [type='submit'] {
- background: #0688d2;
- color: #fff;
- line-height: 0.9rem;
- &:hover {
- background: #077ec4;
- }
- }
- }
- }
- }
|