#3553 Ad post contact - Options Design

This commit is contained in:
Diatrex 2021-04-28 17:21:43 +03:00
parent 038e85bf45
commit ccff35a77c
5 changed files with 134 additions and 68 deletions

View File

@ -1,11 +1,30 @@
/* Main styles */ /* Main styles */
html {
font-size: 12px;
@media only screen and (min-width: 576px) {
font-size: 7.5789px;
}
@media only screen and (min-width: 768px) {
font-size: 10.1052px;
}
@media only screen and (min-width: 992px) {
font-size: 13.4736px;
}
@media only screen and (min-width: 1200px) {
font-size: 16px;
}
}
label { label {
margin-bottom: 0; margin-bottom: 0;
} }
/* End Main styles */ /* End Main styles */
#pageTitle { #pageTitle {
margin: 4rem 0; margin: 2rem 0;
@media only screen and (min-width: 576px) {
margin: 4rem 0;
}
h1 { h1 {
font-weight: 700; font-weight: 700;
@ -13,18 +32,21 @@ label {
h2 { h2 {
color: #707070; color: #707070;
font-size: 24px; font-size: calc(24rem / 16);
font-weight: 400; font-weight: 400;
} }
} }
#contactInfo { #contactInfo {
background-color: #FBFBFD; background-color: #FBFBFD;
padding: 2.4rem 4rem 5.5rem; padding: 1.4rem 1rem 1.5rem;
@media only screen and (min-width: 576px) {
padding: 2.4rem 4rem 5.5rem;
}
h3 { h3 {
color: #6E5DDB; color: #6E5DDB;
font-size: 26px; font-size: calc(26rem / 16);
margin-bottom: 2rem; margin-bottom: 2rem;
} }
@ -34,14 +56,14 @@ label {
p { p {
color: #4A4A4A; color: #4A4A4A;
font-size: 14px; font-size: calc(14rem / 16);
font-weight: 600; font-weight: 600;
} }
div { div {
label { label {
color: #505050; color: #505050;
font-size: 18px; font-size: calc(18rem / 16);
font-weight: 500; font-weight: 500;
} }
} }
@ -49,17 +71,25 @@ label {
#contactSummary { #contactSummary {
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
margin-bottom: 2rem; margin-bottom: 1rem;
@media only screen and (min-width: 576px) {
margin-bottom: 2rem;
}
label { label {
font-size: 14px; font-size: calc(14rem / 16);
color: #4A4A4A; color: #4A4A4A;
width: 32.4%; width: 100%;
font-weight: 600; font-weight: 600;
margin-bottom: 1rem;
@media only screen and (min-width: 576px) {
width: 32.4%;
margin-bottom: 0;
}
input { input {
box-shadow: 0 1px 2px rgba(0, 0, 0, .04); box-shadow: 0 calc(1rem / 16) calc(2rem / 16) rgba(0, 0, 0, .04);
font-size: 17px; font-size: calc(17rem / 16);
padding: 1.1rem 1.5rem; padding: 1.1rem 1.5rem;
color: #707070; color: #707070;
} }
@ -70,7 +100,7 @@ label {
button { button {
color: #0075FF; color: #0075FF;
background: none; background: none;
font-size: 18px; font-size: calc(18rem / 16);
svg { svg {
height: 1.08rem; height: 1.08rem;
@ -86,31 +116,42 @@ label {
#mainInfo { #mainInfo {
background-color: #FBFBFD; background-color: #FBFBFD;
padding: 2.4rem 4rem 4.3rem; padding: 1.4rem 1rem 2.3rem;
@media only screen and (min-width: 576px) {
padding: 2.4rem 4rem 4.3rem;
}
h3 { h3 {
color: #6E5DDB; color: #6E5DDB;
font-size: 26px; font-size: calc(26rem / 16);
margin-bottom: 2rem; margin-bottom: 2rem;
} }
label { label {
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 14px; font-size: calc(14rem / 16);
color: #4A4A4A; color: #4A4A4A;
font-weight: 600; font-weight: 600;
input { input {
box-shadow: 0 1px 2px rgba(0, 0, 0, .04); box-shadow: 0 calc(1rem / 16) calc(2rem / 16) rgba(0, 0, 0, .04);
font-size: 17px; font-size: calc(17rem / 16);
padding: 1.1rem 1.5rem; padding: 1.1rem 1.5rem;
color: #707070; color: #707070;
} }
} }
#stockInput { #stockInput {
flex-wrap: wrap;
@media only screen and (min-width: 576px) {
flex-wrap: nowrap;
}
& > label { & > label {
width: 47.5%; width: 100%;
@media only screen and (min-width: 576px) {
width: 47.5%;
}
&:not(.d-none) + div { &:not(.d-none) + div {
top: .6rem; top: .6rem;
@ -122,8 +163,12 @@ label {
} }
div { div {
width: 47.5%;
position: relative; position: relative;
margin: 1rem 0;
@media only screen and (min-width: 576px) {
margin: 0;
width: 47.5%;
}
svg { svg {
width: 2.2rem; width: 2.2rem;
@ -134,7 +179,7 @@ label {
position: relative; position: relative;
top: .25rem; top: .25rem;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: calc(16rem / 16);
} }
} }
} }
@ -155,14 +200,16 @@ label {
} }
input, select { input, select {
box-shadow: 0 1px 2px rgba(0, 0, 0, .04); box-shadow: 0 calc(1rem / 16) calc(2rem / 16) rgba(0, 0, 0, .04);
font-size: 17px; font-size: calc(17rem / 16);
padding: 1.1rem 1.5rem; padding: 1.1rem 1.5rem;
color: #707070; color: #707070;
} }
&:first-child { &:first-child {
width: 47.5%; @media only screen and (min-width: 576px) {
width: 47.5%;
}
input { input {
&.decimal-price { &.decimal-price {
@ -172,7 +219,9 @@ label {
} }
&:last-child { &:last-child {
width: 50.75%; @media only screen and (min-width: 576px) {
width: 50.75%;
}
select, .decimal-price { select, .decimal-price {
width: 17%; width: 17%;
@ -187,8 +236,8 @@ label {
#simpleOptionsInput { #simpleOptionsInput {
.select2-selection { .select2-selection {
box-shadow: 0 1px 2px rgba(0, 0, 0, .04); box-shadow: 0 calc(1rem / 16) calc(2rem / 16) rgba(0, 0, 0, .04);
font-size: 17px; font-size: calc(17rem / 16);
padding: 1.1rem 1.5rem; padding: 1.1rem 1.5rem;
color: #707070; color: #707070;
border: 0; border: 0;

View File

@ -65,7 +65,7 @@
{% include 'visiosoft.module.advs::new-ad/partials/contact-info' %} {% include 'visiosoft.module.advs::new-ad/partials/contact-info' %}
<div id="mainInfo" class="border"> <div id="mainInfo">
<h3>{{ trans('visiosoft.module.advs::field.ad_info') }}</h3> <h3>{{ trans('visiosoft.module.advs::field.ad_info') }}</h3>
<label class="w-100 mb-2"> <label class="w-100 mb-2">
@ -81,8 +81,8 @@
{{ addBlock('new-ad/fields', {'adv': adv})|raw }} {{ addBlock('new-ad/fields', {'adv': adv})|raw }}
{% endif %} {% endif %}
<div id="priceInput" class="d-flex justify-content-between mb-4"> <div id="priceInput" class="d-flex justify-content-between mb-4 flex-wrap">
<div class="select-price{{ hidePrice ? ' hidden' }}"> <div class="mb-3 mb-sm-0 select-price{{ hidePrice ? ' hidden' }}">
<label> <label>
{{ form.fields.price.label|raw }} {{ form.fields.price.label|raw }}
<span class="required">*</span> <span class="required">*</span>

View File

@ -1,19 +1,20 @@
<div id="contactInfo" class="mb-3"> <div id="contactInfo" class="mb-3">
<h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3> <h3>{{ trans('visiosoft.module.advs::field.contact_info') }}</h3>
<div id="reachInfo"> {# TODO Add an option to show or hide phone number #}
<p>Size nasıl ulaşılsın?</p> {# <div id="reachInfo">#}
<div> {# <p>Size nasıl ulaşılsın?</p>#}
<label class="mr-3"> {# <div>#}
<input type="radio" class="mr-1" checked> {# <label class="mr-3">#}
Telefon numaralarım ile {# <input type="radio" class="mr-1" checked>#}
</label> {# Telefon numaralarım ile#}
<label> {# </label>#}
<input type="radio" class="mr-1"> {# <label>#}
Telefonla ulaşılmak istemiyorum {# <input type="radio" class="mr-1">#}
</label> {# Telefonla ulaşılmak istemiyorum#}
</div> {# </label>#}
</div> {# </div>#}
<div id="contactSummary" class="d-flex justify-content-between"> {# </div>#}
<div id="contactSummary" class="d-flex justify-content-between flex-wrap">
<label> <label>
{{ trans('visiosoft.module.profile::field.name.name') }} {{ trans('visiosoft.module.profile::field.name.name') }}
<input type="text" class="d-block mt-3 w-100 border-0 bg-white infoName" value="{{ auth_user().name }}" <input type="text" class="d-block mt-3 w-100 border-0 bg-white infoName" value="{{ auth_user().name }}"

View File

@ -1,6 +1,6 @@
/* Main styles */ /* Main styles */
.multiple-field_type .selected { .multiple-field_type .selected {
margin-top: 15px; margin-top: calc(15rem / 16);
} }
.multiple-field_type .selected table tr td { .multiple-field_type .selected table tr td {
@ -11,11 +11,11 @@
.multiple-field_type .selected table tr td:first-of-type { .multiple-field_type .selected table tr td:first-of-type {
width: 0; width: 0;
padding-right: 15px; padding-right: calc(15rem / 16);
} }
.multiple-field_type .selected table tr td:last-of-type { .multiple-field_type .selected table tr td:last-of-type {
padding-left: 15px; padding-left: calc(15rem / 16);
} }
/* End main styles */ /* End main styles */
@ -24,7 +24,7 @@
background-color: #6E5DDB; background-color: #6E5DDB;
padding: 1rem 2rem; padding: 1rem 2rem;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 18px; font-size: calc(18rem / 16);
border-radius: .25rem; border-radius: .25rem;
border: 0; border: 0;
color: #fff; color: #fff;
@ -35,14 +35,19 @@
&:hover { &:hover {
color: #fff; color: #fff;
} }
svg {
width: 1.5rem;
height: auto;
}
} }
/* End Button */ /* End Button */
/* Modal */ /* Modal */
.modal { .multiple-select-btn ~ .modal {
.modal-dialog { .modal-dialog {
@media only screen and (min-width: 576px) { @media only screen and (min-width: 576px) {
max-width: 840px; max-width: calc(840rem / 16);
margin: 1.75rem auto; margin: 1.75rem auto;
} }
@ -70,13 +75,19 @@
h4 { h4 {
color: #6E5DDB; color: #6E5DDB;
padding: 0 5rem; padding: 0 1rem;
@media only screen and (min-width: 576px) {
padding: 0 5rem;
}
} }
} }
.table-filters { .table-filters {
padding: 0 5rem; padding: 0 1rem;
margin: 2rem 0; margin: 2rem 0;
@media only screen and (min-width: 576px) {
padding: 0 5rem;
}
form { form {
justify-content: space-between; justify-content: space-between;
@ -84,7 +95,7 @@
select { select {
border: 0; border: 0;
box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
font-size: 14px; font-size: calc(14rem / 16);
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-weight: 500; font-weight: 500;
padding: .5rem 1.5rem; padding: .5rem 1.5rem;
@ -106,16 +117,19 @@
} }
.table-responsive { .table-responsive {
padding: 0 5rem; padding: 0 1rem;
@media only screen and (min-width: 576px) {
padding: 0 5rem;
}
table { table {
thead { thead {
tr { tr {
th { th {
border-bottom: 1px solid #E5E5E5; border-bottom: calc(1rem / 16) solid #E5E5E5;
border-top: 0; border-top: 0;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 19px; font-size: calc(19rem / 16);
font-weight: 600; font-weight: 600;
color: #505050; color: #505050;
@ -132,8 +146,8 @@
tbody { tbody {
td { td {
border-bottom: 1px solid #E5E5E5; border-bottom: calc(1rem / 16) solid #E5E5E5;
font-size: 19px; font-size: calc(19rem / 16);
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-weight: 500; font-weight: 500;
color: #505050; color: #505050;
@ -153,7 +167,7 @@
background-color: #6E5DDB; background-color: #6E5DDB;
padding: 1rem 2rem; padding: 1rem 2rem;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 18px; font-size: calc(18rem / 16);
border-radius: .25rem; border-radius: .25rem;
border: 0; border: 0;
color: #fff; color: #fff;
@ -176,7 +190,7 @@
color: #999; color: #999;
small { small {
font-size: 15px; font-size: calc(15rem / 16);
color: #999 !important; color: #999 !important;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
} }
@ -192,16 +206,18 @@
/* Value table */ /* Value table */
.multiple-field_type-value-table { .multiple-field_type-value-table {
.table-responsive { .table-responsive {
padding: 0 4rem; @media only screen and (min-width: 576px) {
padding: 0 4rem;
}
table { table {
thead { thead {
tr { tr {
th { th {
border-bottom: 1px solid #E5E5E5; border-bottom: calc(1rem / 16) solid #E5E5E5;
border-top: 0; border-top: 0;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 19px; font-size: calc(19rem / 16);
font-weight: 600; font-weight: 600;
color: #505050; color: #505050;
@ -214,8 +230,8 @@
tbody { tbody {
td { td {
border-bottom: 1px solid #E5E5E5; border-bottom: calc(1rem / 16) solid #E5E5E5;
font-size: 19px; font-size: calc(19rem / 16);
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-weight: 500; font-weight: 500;
color: #505050; color: #505050;
@ -230,7 +246,7 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
line-height: 1; line-height: 1;
font-size: 17px; font-size: calc(17rem / 16);
cursor: pointer; cursor: pointer;
} }
@ -250,7 +266,7 @@
background-color: #6E5DDB; background-color: #6E5DDB;
padding: 1rem 2rem; padding: 1rem 2rem;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 18px; font-size: calc(18rem / 16);
border-radius: .25rem; border-radius: .25rem;
border: 0; border: 0;
color: #fff; color: #fff;
@ -273,7 +289,7 @@
color: #999; color: #999;
small { small {
font-size: 15px; font-size: calc(15rem / 16);
color: #999 !important; color: #999 !important;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
} }

View File

@ -6,7 +6,7 @@
<input type="hidden" name="{{ table.options.prefix }}page" value=""> <input type="hidden" name="{{ table.options.prefix }}page" value="">
{% for filter in table.filters %} {% for filter in table.filters %}
<div class="form-group"> <div class="form-group mb-0">
{{ filter.input|raw }} {{ filter.input|raw }}
</div> </div>
{% endfor %} {% endfor %}