Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                section.sect.sect_checkout
  div.wrapper
    h3.section_block_title Оформление заказа
    div.checkout_block#accordion
      div.panel
        h4 Способ оформления заказа
        div.panel_collapse.collapse.active#collapse-checkout-option
          div.panel_body
            div.checkout_panel__login
             div.checkout_panel__login_group
               div.checkout_panel__login__reg_onreg
                 p.check_registration#checkout_registrastion Зарегистрироваться
                 p.check__or_guest или
                 p.check_no_registration#checkout_no_registrastion Оформить заказ без регистрации 
             div.checkout_panel__login_group
               div.checkout_panel__login__auth
                 form#check_auth.check_auth_form(action="#" mathod="post")
                   h3.check_form_title Войти на сайт
                   div.check_form_input_group
                     input.check_auth__input(type="text" name="name" value="" placeholder="Ваш E-MAIL" requred)
                     input.check_auth__input(type="password" name="password" value="" placeholder="Пароль" requred)
                   p#recovery_pass.check_recovery_text Забыли пароль?
                   div#check_auth_submit.check_auth_btn Войти
      div.panel
        h4 Платежная информация
        div.panel_collapse.collapse#collapse-payment-address
          div.panel_body
            div.checkout_panel__payinfo
              form#check_payinfo.check_form_payinfo(action="#" mathod="post" data-type="fiz")
                div.form_row.form_user_type
                  input#user_type_1(type="radio" name="customer_group_id" value="1" checked)
                  label(for="user_type_1") Физическое лицо
                  input#user_type_2(type="radio" name="customer_group_id" value="2")
                  label(for="user_type_2") Юридическое лицо
                div.form_row.contact_name_card
                  input#user_name(type="text" name="firstname" value="" placeholder="Имя" required)
                div.form_row.contact_mail
                  input#user_mail(type="email" name="email" value="" placeholder="E-mail" required)
                div.form_row.contact_phone
                  input#user_phone(type="text" name="telephone" value="" placeholder="Телефон" required)
                div.form_row.contact_birthday.date
                  input#user_name(type="text" name="firstname" value="" placeholder="Дата рождения" required)
                div.form_row.contact_org_inn.company_name
                  input#input-company(type="text" name="company" value=""  placeholder="Название организации" required)
                  div.check_field_file
                    input.org_file(type="file" name="custom_field[]" value="")
                    button#button-custom-field.org_file_upload(type="button" data-loading-text="Загрузка...") Загрузить
                div.form_row.contact_org_inn.company_inn
                  input#input-custom-field(type="text" name="custom_field" value=""  placeholder="ИНН" required)
                div.form_row.contact_org_inn.company_address
                  input#input-custom-field(type="text" name="custom_field" value=""  placeholder="Адрес" required)
                div.form_row.contact_btn_confirm
                  p#check_payinfo_submit.check_form_btn Продолжить
      div.panel
        h4 Способ оплаты
        div.panel_collapse.collapse#collapse-payment-method
          div.panel_body
            div.checkout_panel__paymethod
              form#check_paymetod.check_form_paymetod(action="#" mathod="post")
                div.check_form__radio_group
                  div.check_form__radio_list
                    input#pay_code_1(type="radio" name="payment_method" value="1" checked)
                    label(for="pay_code_1") Наличные
                  div.check_form__radio_list
                    input#pay_code_2(type="radio" name="payment_method" value="2")
                    label(for="pay_code_2") Банковская карта
                  div.check_form__radio_list
                    input#pay_code_3(type="radio" name="payment_method" value="3")
                    label(for="pay_code_3") Расчетный счет
                div.form_row.contact_btn_confirm
                  p#check_paymethod_submit.check_form_btn Продолжить
      div.panel
        h4 Подтверждение заказа
        div.panel_collapse.collapse#collapse-checkout-confirm
          div.panel_body
            div.checkout_panel__confirm
              div.check_confirm__product_list
                div.check_confirm__product.product_name
                  p Шамбертен Кло де Без Гран Крю
                div.check_confirm__product.product_count
                  p 2
                div.check_confirm__product.product_total
                  p 84 000 руб.
              div.check_confirm__product_list
                div.check_confirm__product.product_name
                  p Ле Гранж Барон Эдмонд де Ротшильд О-Медок
                div.check_confirm__product.product_count
                  p 2
                div.check_confirm__product.product_total
                  p 2 800 руб.
              div.check_confirm__product_list
                div.check_confirm__product.product_name
                  p Шато Пальмер (Марго)
                div.check_confirm__product.product_count
                  p 1
                div.check_confirm__product.product_total
                  p 9 000 руб.
              div.check_confirm__total_pay
                p.check_confirm__total_pay__text Всего к оплате:
                p.check_confirm__total_pay__summ 295 800 руб.
              div.check_confirm_btn.contact_btn_confirm
                  p#check_confirm_submit.check_form_btn Оформить заказ
              
            
!

CSS

              
                @font-face{
  font-family: PFDinLight; 
  src: url(http://a1wine.promolink.su/catalog/view/theme/a1wine/stylesheet/fonts/PFDinTextCondProLight.ttf);
  font-weight: 300;
}

body{
	width: 100%;
	background: #f5f5f5;
	font-family: PFDinLight;
	font-size: 16px;
	font-weight: 300;
}

header, section, footer{
	width: 100%;
	position: relative;
}

.wrapper{
	width: 1280px;
	margin: 0 auto;
	position: relative;
}

.section_block_title{
	font-family: Barkentina;
	font-size: 24px;
	font-weight: 500;
	text-align: center;
  text-transform: uppercase;
	color: #393738;
	margin-bottom: 55px;
}

/* CHECKOUT */

.checkout_block{
    width: 100%;
    margin-top: 50px;
    overflow: hidden;
    position: relative;
}

.checkout_block *{
  font-weight: 300;
}

.panel{
    background: #fff;
    width: 100%;
    margin-bottom: 30px;
}

.panel > h4{
    font-size: 24px;
    line-height: 48px;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.collapse {
    display: none;
}

.collapse.active {
    display: block;
}

.panel_collapse{
    padding: 0 15px;
    overflow: hidden;
}

.panel_body{
    padding: 15px 0;
    overflow: hidden;
}

.checkout_panel__login_group{
  width: 618px;
  height: 252px;
  background: #f5f5f5;
  overflow: hidden;
}

.checkout_panel__login_group:first-child{
  float: left;
}

.checkout_panel__login_group:last-child{
  float: right;
}

.checkout_panel__login__reg_onreg{
  text-align: center;
  font-size: 24px;
  padding: 70px 0;
}

.checkout_panel__login__reg_onreg > p{
  margin: 0;
}

.checkout_panel__login__reg_onreg > p.check_registration{
  text-decoration: underline;
  margin-bottom: 15px;
  cursor: pointer;
}

.checkout_panel__login__reg_onreg > p.check__or_guest{
  margin-bottom: 15px;
}

.checkout_panel__login__reg_onreg > p.check_no_registration{
  background: #d9b362;
  line-height: 36px;
  text-decoration: underline;
  text-transform: uppercase;
  padding: 2px 15px;
  display: inline-block;
  cursor: pointer;
}

.checkout_panel__login__auth{
  padding: 20px 0 15px;
  font-size: 24px;
}

.check_auth_form{
  width: 330px;
  margin: 0 auto;
}

.check_form_title{
  margin-top: 0;
  margin-bottom: 30px;
}

.check_form_input_group{
  width: 100%;
}

.check_form_input_group > .check_auth__input{
  width: 305px;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 5px;
  border: 0;
  outline: 0;
  font-size: 24px;
  color: #000;
}

.check_form_input_group > .check_auth__input::-webkit-input-placeholder {color:#000;font-size: 24px;}
.check_form_input_group > .check_auth__input::-moz-placeholder          {color:#000;font-size: 24px;}/* Firefox 19+ */
.check_form_input_group > .check_auth__input:-moz-placeholder           {color:#000;font-size: 24px;}/* Firefox 18- */
.check_form_input_group > .check_auth__input:-ms-input-placeholder      {color:#000;font-size: 24px;}

.check_recovery_text{
  margin-top: 20px;
  font-size: 14px;
  float: left;
  text-decoration: underline;
  cursor: pointer;
}

.check_auth_btn{
  background: #d9b362;
  float: right;
  width: 114px;
  margin-top: 30px;
  line-height: 38px;
  text-align: center;
  text-decoration: underline;
  text-transform: uppercase;
  display: block;
  cursor: pointer;
}

/* Позже вырезать */

.form_row{
	width: 100%;
	float: none;
	clear: both;
	margin-bottom: 12px;
}

.form_row > label{
	width: 220px;
    text-align: right;
    display: block;
    float: left;
    margin-right: 25px;
	margin-top: 10px;
	font-size: 18px;
	color: #000;
}

.form_row > input:not([type="radio"]){
	width: 290px;
	height: 40px;
	border: 2px solid #ececec;
	outline: 0;
	padding: 0 15px;
	font-size: 18px;
	color: #000;
}

.form_row > input.number_card,
.form_row > input.org_file{
	position: absolute;
	width: 220px;
    margin-left: 50px;
}

.form_row > input::-webkit-input-placeholder {color:#000;font-size: 18px;}
.form_row > input::-moz-placeholder          {color:#000;font-size: 18px;}/* Firefox 19+ */
.form_row > input:-moz-placeholder           {color:#000;font-size: 18px;}/* Firefox 18- */
.form_row > input:-ms-input-placeholder      {color:#000;font-size: 18px;}

.form_row.form_user_type{
	overflow: hidden;
	margin-bottom: 35px;
}

.form_row.form_user_type > input{
	display: none;
}

.form_row.form_user_type > label{
	width: 48%;
    float: right;
    text-align: left;
    text-transform: uppercase;
    margin-right: 0;
    margin-top: 5px;
    color: #989898;
    cursor: pointer;
}

.form_row.form_user_type > label > span{
	border-bottom: 1px solid #989898;
}

.form_row.form_user_type > label[for="user_type_1"]{
	width: 48%;
    float: left;
    text-align: right;
    text-transform: uppercase;
}

.form_row.form_user_type > input:checked + label{
	color: #000;
}

.form_row.form_user_type > input:checked + label > span{
	border-bottom: 1px solid #000;
}

.form_row.contact_gender{
	margin: 20px 0;
}

.form_row.contact_gender > label{
	margin-top: -3px;
}

.form_row.contact_gender > .user_gender_type > input{
	display: none;
}

.form_row.contact_gender > .user_gender_type > label{
	position: relative;
	margin-left: 60px;
	cursor: pointer;
}

.form_row.contact_gender > .user_gender_type > label:before{
	content: '';
	background: url(../img/icons/icon_checkbox.png) no-repeat;
	background-position: 0 0;
    background-size: cover;
    width: 15px;
    height: 15px;
    position: absolute;
    left: -25px;
    top: 2px;
}

.form_row.contact_gender > .user_gender_type > input:checked + label:before{
	background-position: 0 -15px;
}

.text_danger{
	width: 100%;
	position: absolute;
    left: 245px;
    margin-top: 50px;
    font-size: 14px;
    color: red;
}

.text_danger.danger_file{
	left: 619px;
	margin-top: 36px;
}

.org_file{
	display: none;
}

.org_file_upload{
	background: transparent;
    border: 0;
    border-bottom: 1px solid #000;
    outline: 0;
    font-family: PFDinLight;
    font-size: 18px;
    text-transform: uppercase;
    position: absolute;
    margin: 9px 0 0 50px;
    cursor: pointer;
}

.org_file_uploaded{
	border: 0;
	font-family: PFDinLight;
    font-size: 16px;
    text-transform: none;
    color: green;
    position: absolute;
    width: 130px;
    margin: 33px 0 0 50px;
}

.org_file_uploaded.error{
	color: red;
}

.form_row.contact_captcha > input{
	display: none;
}

.form_row.contact_captcha > label{
	float: none;
    width: 100px;
    margin-left: 270px;
    margin-top: 22px;
    position: relative;
}

.form_row.contact_requred{
	margin: 25px 0 20px;
}

.form_row.contact_requred > p{
	text-align: center;
    width: 92.5%;
}

.form_row.contact_submitted{
	margin-bottom: 50px;
}

/* Конец вырезки */

/* PAYINFO */

.check_form_payinfo{
  width: 466px;
  margin: 0 auto;
  display: block;
}

.check_form_payinfo > .form_row > input{
  width: 426px;
  padding: 6px 15px 0;
}

.check_form_payinfo > .form_row > input::-webkit-input-placeholder {color:#808080;font-size: 24px;}
.check_form_payinfo > .form_row > input::-moz-placeholder          {color:#808080;font-size: 24px;}/* Firefox 19+ */
.check_form_payinfo > .form_row > input:-moz-placeholder           {color:#808080;font-size: 24px;}/* Firefox 18- */
.check_form_payinfo > .form_row > input:-ms-input-placeholder      {color:#808080;font-size: 24px;}

.check_form_payinfo > .form_row > input[name="customer_group_id"]:checked + label{
  text-decoration: underline;
}

.check_form_payinfo > .form_row > .check_field_file{
  position: relative;
}

.check_form_payinfo > .form_row > .check_field_file > .org_file_upload{
    right: -120px;
    margin: 26px 0 0;
    padding: 0;
    z-index: 999;
    display: inline-block;
}

.contact_btn_confirm{
  width: 100%;
  text-align: center;
}

.check_form_btn{
  font-size: 24px;
  text-decoration: underline;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
}

.check_form_paymetod{
  width: 148px;
  margin: 0 auto;
}

/* PAYMETOD */

.check_form__radio_list{
  width: 260px;
  margin-bottom: 15px;
}

.check_form__radio_list > input{
	display: none;
}

.check_form__radio_list > label{
	font-size: 24px;
	text-transform: uppercase;
	cursor: pointer;
  position: relative;
}

.check_form__radio_list > label:before{
	content: '';
	width: 15px;
	height: 15px;
  background: #fff;
	position: absolute;
	left: -50px;
  top: 5px;
  border: 1px solid #e6e6e6;
}

.check_form__radio_list > input:checked + label:after{
	content: '';
	width: 9px;
	height: 9px;
	background: #000;
	position: absolute;
	left: 0;
	left: -46px;
  top: 9px;
  border-radius: 50%;
}

.check_form__radio_list > input:not(checked) + label:after{
	background: #e6e6e6;
}

/* CONFIRM */

.checkout_panel__confirm{
  width: 1008px;
  margin: 0 auto;
}

.check_confirm__product_list{
  background: #f5f5f5;
  width: 100%;
  font-size: 24px;
  height: 48px;
  margin-bottom: 5px;
  overflow: hidden;
  clear: both;
}

.check_confirm__product > p{
  line-height: 48px;
  margin: 0;
}

.check_confirm__product.product_name{
  width: 614px;
  float: left;
}

.check_confirm__product.product_name > p{
  margin-left: 20px;
}

.check_confirm__product.product_count{
  width: 62px;
  float: left;
  text-align: center;
}

.check_confirm__product.product_total{
  width: 332px;
  float: right;
}

.check_confirm__product.product_total > p{
  margin-left: 145px;
}

.check_confirm__total_pay{
  width: 368px;
  font-size: 24px;
  float: right;
}

.check_confirm__total_pay__text{
  width: 180px;
  float: left;
}

.check_confirm_btn{
  clear: both;
}
              
            
!

JS

              
                $('#checkout_no_registrastion').click(function(){
  if($(this).parents('.collapse').hasClass('active')){
    $('#collapse-payment-address').slideDown(200);
    $(this).parents('.collapse').delay(150).slideUp(200);
    setTimeout(function(){
      $('#collapse-checkout-option').removeClass('active');
      $('#collapse-checkout-option').prev().addClass('clicked_collapse');
      $('#collapse-payment-address').addClass('no_registration active');
    },350);
  }
});

$('#check_payinfo_submit').click(function(){
  if($(this).parents('.collapse').hasClass('active')){
    $('#collapse-payment-method').slideDown(200).addClass('no_registration');
    $(this).parents('.collapse').delay(150).slideUp(200);
    setTimeout(function(){
      $('#collapse-payment-address').removeClass('active');
      $('#collapse-payment-address').prev().addClass('clicked_collapse');
      $('#collapse-payment-method').addClass('no_registration active');
    },350);
  }
});

$('#check_paymethod_submit').click(function(){
  if($(this).parents('.collapse').hasClass('active')){
    $('#collapse-checkout-confirm').slideDown(200).addClass('no_registration');
    $(this).parents('.collapse').delay(150).slideUp(200);
    setTimeout(function(){
      $('#collapse-payment-method').removeClass('active');
      $('#collapse-payment-method').prev().addClass('clicked_collapse');
      $('#collapse-checkout-confirm').addClass('active');
    },350);
  }
});

$('#check_confirm_submit').click(function(){
  console.log('Успех!');
});

$(document).delegate('.clicked_collapse', 'click', function(){
  console.log($(this).text());
  $(this).next().slideDown(200);
  $('.collapse.active').slideUp(200);
  $('.collapse.active').queue(function () {
    $(this).removeClass('active');
    $(this).dequeue();
  });
  $(this).next().addClass('active');
});
              
            
!
999px

Console