feat: cria estilizacao responsiva da newsletter.

This commit is contained in:
Emmanuel Vitor Pereira de Jesus 2023-02-05 13:21:29 -03:00
parent 5c52dbbdef
commit fb7d5e5292
2 changed files with 223 additions and 3 deletions

View File

@ -8,5 +8,108 @@
/* Media Query M3 */
/* Grid breakpoints */
.newsletter {
background: red;
background: #000;
color: #fff;
margin: 64px 0;
}
@media (max-width: 1024px) {
.newsletter {
margin: 32px 0;
}
}
.newsletter :global(.vtex-store-components-3-x-container) {
padding: 0;
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) {
padding: 32px 0 13px;
width: 100%;
max-width: 774px;
position: relative;
}
@media (max-width: 1024px) {
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) {
max-width: 100%;
padding: 64px 0 32px;
padding-left: 16px;
padding-right: 16px;
}
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) .label {
display: flex;
flex-direction: column;
font-size: 0;
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) .label::before {
font-family: "Open Sans", sans-serif;
content: "Assine nossa newsletter";
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: #FFFFFF;
padding-bottom: 4px;
}
@media (max-width: 1920px) {
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) .label::before {
padding-bottom: 10px;
}
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) .label::after {
content: "Receba ofertas e novidades por e-mail";
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #929292;
}
@media (max-width: 1024px) {
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) .label::after {
font-size: 16px;
line-height: 22px;
}
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-inputGroup) {
border-bottom: 1px solid #929292;
}
@media (max-width: 1024px) {
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-inputGroup) {
display: flex;
}
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-inputGroup) :global(.vtex-input) :global(.vtex-input-prefix__group) {
border: none;
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-inputGroup) :global(.vtex-input) :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) {
background: transparent;
color: #929292;
}
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-inputGroup) :global(.vtex-input) :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input)::placeholder {
font-family: "Open Sans", sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
color: #929292;
}
@media (max-width: 1024px) {
.newsletter :global(.vtex-store-components-3-x-container) :global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-inputGroup) :global(.vtex-input) :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input)::placeholder {
font-size: 12px;
line-height: 16px;
}
}
@media (max-width: 1024px) {
.newsletter .buttonContainer {
width: auto;
}
}
.newsletter .buttonContainer :global(.vtex-button) {
background: none;
border: none;
border-radius: 0;
width: 100%;
max-width: 84px;
height: 32px;
border-bottom: 3px solid #BFBFBF;
}

View File

@ -1,3 +1,120 @@
.newsletter {
background: red;
background: #000;
color: #fff;
margin: 64px 0;
@media (max-width:1024px) {
margin: 32px 0;
}
:global(.vtex-store-components-3-x-container) {
padding: 0;
:global(.vtex-store-components-3-x-form) {
padding: 32px 0 13px;
width: 100%;
max-width: 774px;
position: relative;
@media (max-width:1024px) {
max-width: 100%;
padding: 64px 0 32px;
padding-left: 16px;
padding-right: 16px;
}
.label {
display: flex;
flex-direction: column;
font-size: 0;
&::before {
font-family: 'Open Sans', sans-serif;
content: "Assine nossa newsletter";
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: #FFFFFF;
padding-bottom: 4px;
@media (max-width:1920px) {
padding-bottom: 10px;
}
}
&::after {
content: "Receba ofertas e novidades por e-mail";
font-family: 'Open Sans', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
text-align: center;
color: #929292;
@media (max-width:1024px) {
font-size: 16px;
line-height: 22px;
}
}
}
:global(.vtex-store-components-3-x-inputGroup) {
border-bottom: 1px solid #929292;
@media (max-width:1024px) {
display: flex;
}
:global(.vtex-input) {
// tanto faz essa linha de cima
:global(.vtex-input-prefix__group) {
border: none;
:global(.vtex-styleguide-9-x-input) {
background: transparent;
color: #929292;
&::placeholder {
font-family: 'Open Sans', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 18px;
line-height: 25px;
color: #929292;
@media (max-width:1024px) {
font-size: 12px;
line-height: 16px;
}
}
}
}
}
}
}
}
.buttonContainer {
@media (max-width:1024px) {
width: auto;
}
:global(.vtex-button) {
background: none;
border: none;
border-radius: 0;
width: 100%;
max-width: 84px;
height: 32px;
border-bottom: 3px solid #BFBFBF;
}
}
}
// FIM NEWSLETTER