lbry.tech/app/sass/partials/_email-subscribe.scss

138 lines
2.3 KiB
SCSS
Raw Permalink Normal View History

2018-07-12 17:21:42 +02:00
.newsletter-cta {
2019-02-15 23:45:25 +01:00
background-color: $lbry-gray-1;
2018-07-12 17:21:42 +02:00
padding-top: 1rem;
padding-bottom: 1rem;
text-align: center;
> div:first-of-type {
margin-right: auto;
margin-left: auto;
@media (min-width: 551px) {
width: 500px;
}
@media (max-width: 550px) {
width: 90%;
}
}
&::after {
@include clearfix;
}
}
.newsletter-cta__title {
font-size: 0.8rem;
letter-spacing: 0.05rem;
margin-bottom: 0.75rem;
text-transform: uppercase;
}
.newsletter-cta__input,
.newsletter-cta__submit {
@extend .__button-padding-horizontal;
border-style: solid;
border-width: 1px;
@media (max-width: 550px) {
width: 100%;
}
}
.newsletter-cta__input {
2018-10-06 00:46:08 +02:00
height: 38px;
2018-10-13 00:29:53 +02:00
background-color: $lbry-white;
2018-07-12 17:21:42 +02:00
font-size: 1rem;
transition: border 0.2s;
@media (min-width: 551px) {
width: calc(100% - 112px);
2018-10-06 00:46:08 +02:00
float: left;
2018-07-12 17:21:42 +02:00
}
@media (max-width: 550px) {
text-align: center;
}
&:not(:focus) {
2018-10-13 00:29:53 +02:00
border-top-color: $lbry-black;
border-left-color: $lbry-black;
2018-07-12 17:21:42 +02:00
@media (min-width: 551px) {
border-right-color: transparent;
2018-10-13 00:29:53 +02:00
border-bottom-color: $lbry-black;
2018-07-12 17:21:42 +02:00
}
@media (max-width: 550px) {
2018-10-13 00:29:53 +02:00
border-right-color: $lbry-black;
2018-10-06 00:46:08 +02:00
border-bottom-color: transparent;
2018-07-12 17:21:42 +02:00
}
}
&:focus {
2018-10-13 00:29:53 +02:00
border-top-color: $lbry-teal-5;
border-left-color: $lbry-teal-5;
2018-07-12 17:21:42 +02:00
@media (min-width: 551px) {
border-right-color: transparent;
2018-10-13 00:29:53 +02:00
border-bottom-color: $lbry-teal-5;
2018-07-12 17:21:42 +02:00
}
@media (max-width: 550px) {
2018-10-13 00:29:53 +02:00
border-right-color: $lbry-teal-5;
2018-10-06 00:46:08 +02:00
border-bottom-color: transparent;
2018-07-12 17:21:42 +02:00
}
}
}
.newsletter-cta__submit {
@extend .__button-basic;
@extend .__button-padding-vertical;
2018-10-13 00:29:53 +02:00
color: $lbry-white;
2018-07-12 17:21:42 +02:00
@media (min-width: 551px) {
width: 112px; height: 38px;
2018-10-06 00:46:08 +02:00
left: -1px;
2018-07-12 17:21:42 +02:00
float: right;
}
@media (max-width: 550px) {
top: -1px;
2018-10-06 00:46:08 +02:00
display: block;
2018-07-12 17:21:42 +02:00
}
&:not(:hover) {
2018-10-13 00:29:53 +02:00
background-color: $lbry-black;
border-color: $lbry-black;
2018-07-12 17:21:42 +02:00
}
&:hover {
2018-10-13 00:29:53 +02:00
background-color: $lbry-teal-3;
border-color: $lbry-teal-5;
2018-07-12 17:21:42 +02:00
}
}
.newsletter-cta__message {
@include clearfix;
2018-10-13 00:29:53 +02:00
color: $lbry-white;
2018-10-10 21:04:16 +02:00
cursor: default;
display: inline-block;
font-size: 0.8rem;
text-align: center;
&:not(:empty) {
2018-10-10 21:04:16 +02:00
margin: 0.5rem auto 0; padding: 0.25rem 1rem;
}
&:not(.error) {
2018-10-13 00:29:53 +02:00
background-color: $lbry-teal-3;
2018-10-10 21:04:16 +02:00
}
&.error {
2018-10-13 00:29:53 +02:00
background-color: $lbry-red-3;
}
2018-07-12 17:21:42 +02:00
}